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 LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN PYTHON QMTEST RUNTEST tclsh 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 LLVMGCC LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
482 # Initialize some variables set by options.
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
494 program_transform_name=s,x,x,
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532 # Accept the important Cygnus configure options, so we can diagnose typos.
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
554 cache_file=config.cache ;;
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560 datadir=$ac_optarg ;;
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "enable_$ac_feature='$ac_optarg'" ;;
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
597 -help | --help | --hel | --he | -h)
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
621 -libdir | --libdir | --libdi | --libd)
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
648 # Obsolete; use --without-fp.
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712 sbindir=$ac_optarg ;;
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723 sharedstatedir=$ac_optarg ;;
725 -site | --site | --sit)
727 -site=* | --site=* | --sit=*)
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
750 -version | --version | --versio | --versi | --vers | -V)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
764 eval "with_$ac_package='$ac_optarg'" ;;
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
776 # Obsolete; use --with-x.
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
819 if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838 localstatedir libdir includedir oldincludedir infodir mandir
840 eval ac_val=$`echo $ac_var`
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
869 test "$silent" = yes && exec 6>/dev/null
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
889 if test ! -r $srcdir/$ac_unique_file; then
893 ac_srcdir_defaulted=no
895 if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
962 # Report the --help message.
964 if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
968 \`configure' configures llvm 1.4 to adapt to many kinds of systems.
970 Usage: $0 [OPTION]... [VAR=VALUE]...
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE. See below for descriptions of some of the useful variables.
975 Defaults for the options are specified in brackets.
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
991 Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1002 For better control, use the options below.
1004 Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1028 if test -n "$ac_init_help"; then
1029 case $ac_init_help in
1030 short | recursive ) echo "Configuration of llvm 1.4:";;
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1038 --enable-jit Enable Just In Time Compiling (default is YES)
1039 --enable-doxygen Build doxygen documentation (default is NO)
1040 --enable-ltdl-install install libltdl
1041 --enable-shared[=PKGS]
1042 build shared libraries [default=yes]
1043 --enable-static[=PKGS]
1044 build static libraries [default=yes]
1045 --enable-fast-install[=PKGS]
1046 optimize for fast installation [default=yes]
1047 --disable-libtool-lock avoid locking (might break parallel builds)
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1052 --with-llvmgccdir Location of LLVM GCC front-end
1053 --with-tclinclude directory where tcl headers are
1054 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1055 --with-pic try to use only PIC/non-PIC objects [default=use
1058 include additional configurations [automatic]
1060 Some influential environment variables:
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1064 nonstandard directory <lib dir>
1065 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066 headers in a nonstandard directory <include dir>
1068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
1070 CXXCPP C++ preprocessor
1071 F77 Fortran 77 compiler command
1072 FFLAGS Fortran 77 compiler flags
1074 Use these variables to override the choices made by `configure' or to help
1075 it to find libraries and programs with nonstandard names/locations.
1077 Report bugs to <llvmbugs@cs.uiuc.edu>.
1081 if test "$ac_init_help" = "recursive"; then
1082 # If there are subdirs, report their specific --help.
1084 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085 test -d $ac_dir || continue
1088 if test "$ac_dir" != .; then
1089 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090 # A "../" for each directory in $ac_dir_suffix.
1091 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093 ac_dir_suffix= ac_top_builddir=
1097 .) # No --srcdir option. We are building in place.
1099 if test -z "$ac_top_builddir"; then
1102 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104 [\\/]* | ?:[\\/]* ) # Absolute path.
1105 ac_srcdir=$srcdir$ac_dir_suffix;
1106 ac_top_srcdir=$srcdir ;;
1108 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1112 # Do not use `cd foo && pwd` to compute absolute paths, because
1113 # the directories may not exist.
1115 .) ac_abs_builddir="$ac_dir";;
1118 .) ac_abs_builddir=`pwd`;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1123 case $ac_abs_builddir in
1124 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 case ${ac_top_builddir}. in
1127 .) ac_abs_top_builddir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1132 case $ac_abs_builddir in
1133 .) ac_abs_srcdir=$ac_srcdir;;
1136 .) ac_abs_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1141 case $ac_abs_builddir in
1142 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 case $ac_top_srcdir in
1145 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1152 # Check for guested configure; otherwise get Cygnus style configure.
1153 if test -f $ac_srcdir/configure.gnu; then
1155 $SHELL $ac_srcdir/configure.gnu --help=recursive
1156 elif test -f $ac_srcdir/configure; then
1158 $SHELL $ac_srcdir/configure --help=recursive
1159 elif test -f $ac_srcdir/configure.ac ||
1160 test -f $ac_srcdir/configure.in; then
1162 $ac_configure --help
1164 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1170 test -n "$ac_init_help" && exit 0
1171 if $ac_init_version; then
1174 generated by GNU Autoconf 2.59
1176 Copyright (C) 2003 Free Software Foundation, Inc.
1177 This configure script is free software; the Free Software Foundation
1178 gives unlimited permission to copy, distribute and modify it.
1186 This file contains any messages produced by compilers while
1187 running configure, to aid debugging if configure makes a mistake.
1189 It was created by llvm $as_me 1.4, which was
1190 generated by GNU Autoconf 2.59. Invocation command line was
1201 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1210 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1211 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1212 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1214 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1215 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1216 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1224 test -z "$as_dir" && as_dir=.
1225 echo "PATH: $as_dir"
1240 # Keep a trace of the command line.
1241 # Strip out --no-create and --no-recursion so they do not pile up.
1242 # Strip out --silent because we don't want to record it for future runs.
1243 # Also quote any args containing shell meta-characters.
1244 # Make two passes to allow for proper duplicate-argument suppression.
1249 ac_must_keep_next=false
1255 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1263 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266 if test $ac_must_keep_next = true; then
1267 ac_must_keep_next=false # Got value, back to normal.
1270 *=* | --config-cache | -C | -disable-* | --disable-* \
1271 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273 | -with-* | --with-* | -without-* | --without-* | --x)
1274 case "$ac_configure_args0 " in
1275 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1278 -* ) ac_must_keep_next=true ;;
1281 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282 # Get rid of the leading space.
1288 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1291 # When interrupted or exit'd, cleanup temporary files, and complete
1292 # config.log. We remove comments because anyway the quotes in there
1293 # would cause problems or look ugly.
1294 # WARNING: Be sure not to use single quotes in there, as some shells,
1295 # such as our DU 5.0 friend, will then `close' the trap.
1296 trap 'exit_status=$?
1297 # Save into config.log some information that might help in debugging.
1302 ## ---------------- ##
1303 ## Cache variables. ##
1304 ## ---------------- ##
1307 # The following way of writing the cache mishandles newlines in values,
1310 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1313 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1318 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1325 ## ----------------- ##
1326 ## Output variables. ##
1327 ## ----------------- ##
1330 for ac_var in $ac_subst_vars
1332 eval ac_val=$`echo $ac_var`
1333 echo "$ac_var='"'"'$ac_val'"'"'"
1337 if test -n "$ac_subst_files"; then
1344 for ac_var in $ac_subst_files
1346 eval ac_val=$`echo $ac_var`
1347 echo "$ac_var='"'"'$ac_val'"'"'"
1352 if test -s confdefs.h; then
1359 sed "/^$/d" confdefs.h | sort
1362 test "$ac_signal" != 0 &&
1363 echo "$as_me: caught signal $ac_signal"
1364 echo "$as_me: exit $exit_status"
1366 rm -f core *.core &&
1367 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1370 for ac_signal in 1 2 13 15; do
1371 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1375 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1376 rm -rf conftest* confdefs.h
1377 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1380 # Predefined preprocessor variables.
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_NAME "$PACKAGE_NAME"
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_STRING "$PACKAGE_STRING"
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1407 # Let the site file select an alternate cache file if it wants to.
1408 # Prefer explicitly selected file to automatically selected ones.
1409 if test -z "$CONFIG_SITE"; then
1410 if test "x$prefix" != xNONE; then
1411 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1416 for ac_site_file in $CONFIG_SITE; do
1417 if test -r "$ac_site_file"; then
1418 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419 echo "$as_me: loading site script $ac_site_file" >&6;}
1420 sed 's/^/| /' "$ac_site_file" >&5
1425 if test -r "$cache_file"; then
1426 # Some versions of bash will fail to source /dev/null (special
1427 # files actually), so we avoid doing that.
1428 if test -f "$cache_file"; then
1429 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430 echo "$as_me: loading cache $cache_file" >&6;}
1432 [\\/]* | ?:[\\/]* ) . $cache_file;;
1433 *) . ./$cache_file;;
1437 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438 echo "$as_me: creating cache $cache_file" >&6;}
1442 # Check that the precious variables saved in the cache have kept the same
1444 ac_cache_corrupted=false
1445 for ac_var in `(set) 2>&1 |
1446 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448 eval ac_new_set=\$ac_env_${ac_var}_set
1449 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450 eval ac_new_val="\$ac_env_${ac_var}_value"
1451 case $ac_old_set,$ac_new_set in
1453 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455 ac_cache_corrupted=: ;;
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1462 if test "x$ac_old_val" != "x$ac_new_val"; then
1463 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1464 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1465 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1466 echo "$as_me: former value: $ac_old_val" >&2;}
1467 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1468 echo "$as_me: current value: $ac_new_val" >&2;}
1469 ac_cache_corrupted=:
1472 # Pass precious variables to config.status.
1473 if test "$ac_new_set" = set; then
1475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477 *) ac_arg=$ac_var=$ac_new_val ;;
1479 case " $ac_configure_args " in
1480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1481 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1485 if $ac_cache_corrupted; then
1486 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490 { (exit 1); exit 1; }; }
1494 ac_cpp='$CPP $CPPFLAGS'
1495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1535 for ac_dir in autoconf $srcdir/autoconf; do
1536 if test -f $ac_dir/install-sh; then
1538 ac_install_sh="$ac_aux_dir/install-sh -c"
1540 elif test -f $ac_dir/install.sh; then
1542 ac_install_sh="$ac_aux_dir/install.sh -c"
1544 elif test -f $ac_dir/shtool; then
1546 ac_install_sh="$ac_aux_dir/shtool install -c"
1550 if test -z "$ac_aux_dir"; then
1551 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1552 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1553 { (exit 1); exit 1; }; }
1555 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1556 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1557 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1560 if test ${srcdir} != "." ; then
1561 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1562 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1563 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1564 { (exit 1); exit 1; }; }
1568 for i in `ls ${srcdir}/projects`
1570 if test -d ${srcdir}/projects/${i} ; then
1575 subdirs="$subdirs projects/sample"
1579 subdirs="$subdirs projects/Stacker"
1583 subdirs="$subdirs projects/llvm-test"
1587 subdirs="$subdirs projects/llvm-reopt"
1591 subdirs="$subdirs projects/llvm-gcc"
1595 subdirs="$subdirs projects/Java"
1599 subdirs="$subdirs projects/llvm-tv"
1603 subdirs="$subdirs projects/llvm-fefw"
1607 subdirs="$subdirs projects/poolalloc"
1610 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1611 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1618 # Make sure we can run config.sub.
1619 $ac_config_sub sun4 >/dev/null 2>&1 ||
1620 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1621 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1622 { (exit 1); exit 1; }; }
1624 echo "$as_me:$LINENO: checking build system type" >&5
1625 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1626 if test "${ac_cv_build+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1629 ac_cv_build_alias=$build_alias
1630 test -z "$ac_cv_build_alias" &&
1631 ac_cv_build_alias=`$ac_config_guess`
1632 test -z "$ac_cv_build_alias" &&
1633 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1634 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1635 { (exit 1); exit 1; }; }
1636 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1638 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1639 { (exit 1); exit 1; }; }
1642 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1643 echo "${ECHO_T}$ac_cv_build" >&6
1645 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650 echo "$as_me:$LINENO: checking host system type" >&5
1651 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1652 if test "${ac_cv_host+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 ac_cv_host_alias=$host_alias
1656 test -z "$ac_cv_host_alias" &&
1657 ac_cv_host_alias=$ac_cv_build_alias
1658 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1659 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1660 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1661 { (exit 1); exit 1; }; }
1664 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1665 echo "${ECHO_T}$ac_cv_host" >&6
1667 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1668 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1669 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1672 echo "$as_me:$LINENO: checking target system type" >&5
1673 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1674 if test "${ac_cv_target+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 ac_cv_target_alias=$target_alias
1678 test "x$ac_cv_target_alias" = "x" &&
1679 ac_cv_target_alias=$ac_cv_host_alias
1680 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1681 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1682 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1683 { (exit 1); exit 1; }; }
1686 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1687 echo "${ECHO_T}$ac_cv_target" >&6
1688 target=$ac_cv_target
1689 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1690 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1691 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1694 # The aliases save the names the user supplied, while $host etc.
1695 # will get canonicalized.
1696 test -n "$target_alias" &&
1697 test "$program_prefix$program_suffix$program_transform_name" = \
1699 program_prefix=${target_alias}-
1701 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1702 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1703 if test "${llvm_cv_platform_type+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 *-*-aix*) llvm_cv_platform_type="AIX" ;;
1708 *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1709 *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1710 *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1711 *-*-interix*) llvm_cv_platform_type="Interix" ;;
1712 *-*-linux*) llvm_cv_platform_type="Linux" ;;
1713 *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1714 *-*-win32*) llvm_cv_platform_type="Win32" ;;
1715 *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1716 *) llvm_cv_platform_type="Unknown" ;;
1719 echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1720 echo "${ECHO_T}$llvm_cv_platform_type" >&6
1722 if test "$llvm_cv_platform_type" = "Unknown" ; then
1723 { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1724 echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
1725 { (exit 1); exit 1; }; }
1728 OS=$llvm_cv_platform_type
1731 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
1735 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1740 echo "$as_me:$LINENO: checking target architecture" >&5
1741 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1742 if test "${llvm_cv_target_arch+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1746 i*86-*) llvm_cv_target_arch="x86" ;;
1747 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1748 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1749 *) llvm_cv_target_arch="Unknown" ;;
1752 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1753 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1755 if test "$llvm_cv_target_arch" = "Unknown" ; then
1756 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1757 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1760 ARCH=$llvm_cv_target_arch
1764 ac_cpp='$CPP $CPPFLAGS'
1765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1768 if test -n "$ac_tool_prefix"; then
1769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1770 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_CC+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 if test -n "$CC"; then
1777 ac_cv_prog_CC="$CC" # Let the user override the test.
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 if test -n "$CC"; then
1797 echo "$as_me:$LINENO: result: $CC" >&5
1798 echo "${ECHO_T}$CC" >&6
1800 echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1805 if test -z "$ac_cv_prog_CC"; then
1807 # Extract the first word of "gcc", so it can be a program name with args.
1808 set dummy gcc; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 if test -n "$ac_ct_CC"; then
1815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_ac_ct_CC="gcc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1834 if test -n "$ac_ct_CC"; then
1835 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1836 echo "${ECHO_T}$ac_ct_CC" >&6
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1847 if test -z "$CC"; then
1848 if test -n "$ac_tool_prefix"; then
1849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1850 set dummy ${ac_tool_prefix}cc; ac_word=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853 if test "${ac_cv_prog_CC+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 if test -n "$CC"; then
1857 ac_cv_prog_CC="$CC" # Let the user override the test.
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 test -z "$as_dir" && as_dir=.
1864 for ac_exec_ext in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_CC="${ac_tool_prefix}cc"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 if test -n "$CC"; then
1877 echo "$as_me:$LINENO: result: $CC" >&5
1878 echo "${ECHO_T}$CC" >&6
1880 echo "$as_me:$LINENO: result: no" >&5
1881 echo "${ECHO_T}no" >&6
1885 if test -z "$ac_cv_prog_CC"; then
1887 # Extract the first word of "cc", so it can be a program name with args.
1888 set dummy cc; ac_word=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 if test -n "$ac_ct_CC"; then
1895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_ac_ct_CC="cc"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1914 if test -n "$ac_ct_CC"; then
1915 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1916 echo "${ECHO_T}$ac_ct_CC" >&6
1918 echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1928 if test -z "$CC"; then
1929 # Extract the first word of "cc", so it can be a program name with args.
1930 set dummy cc; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 if test -n "$CC"; then
1937 ac_cv_prog_CC="$CC" # Let the user override the test.
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1948 ac_prog_rejected=yes
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 if test $ac_prog_rejected = yes; then
1959 # We found a bogon in the path, so make sure we never use it.
1960 set dummy $ac_cv_prog_CC
1962 if test $# != 0; then
1963 # We chose a different compiler from the bogus one.
1964 # However, it has the same basename, so the bogon will be chosen
1965 # first if we set CC to just the basename; use the full file name.
1967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1973 if test -n "$CC"; then
1974 echo "$as_me:$LINENO: result: $CC" >&5
1975 echo "${ECHO_T}$CC" >&6
1977 echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1982 if test -z "$CC"; then
1983 if test -n "$ac_tool_prefix"; then
1986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 if test -n "$CC"; then
2014 echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6
2017 echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2021 test -n "$CC" && break
2024 if test -z "$CC"; then
2028 # Extract the first word of "$ac_prog", so it can be a program name with args.
2029 set dummy $ac_prog; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 if test -n "$ac_ct_CC"; then
2036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045 ac_cv_prog_ac_ct_CC="$ac_prog"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055 if test -n "$ac_ct_CC"; then
2056 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057 echo "${ECHO_T}$ac_ct_CC" >&6
2059 echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2063 test -n "$ac_ct_CC" && break
2072 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&5
2074 echo "$as_me: error: no acceptable C compiler found in \$PATH
2075 See \`config.log' for more details." >&2;}
2076 { (exit 1); exit 1; }; }
2078 # Provide some information about the compiler.
2079 echo "$as_me:$LINENO:" \
2080 "checking for C compiler version" >&5
2081 ac_compiler=`set X $ac_compile; echo $2`
2082 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2083 (eval $ac_compiler --version </dev/null >&5) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }
2087 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2088 (eval $ac_compiler -v </dev/null >&5) 2>&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }
2092 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2093 (eval $ac_compiler -V </dev/null >&5) 2>&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2098 cat >conftest.$ac_ext <<_ACEOF
2101 cat confdefs.h >>conftest.$ac_ext
2102 cat >>conftest.$ac_ext <<_ACEOF
2103 /* end confdefs.h. */
2113 ac_clean_files_save=$ac_clean_files
2114 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2115 # Try to create an executable without -o first, disregard a.out.
2116 # It will help us diagnose broken compilers, and finding out an intuition
2118 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2119 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2120 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2121 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2122 (eval $ac_link_default) 2>&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; then
2126 # Find the output, starting from the most likely. This scheme is
2127 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2130 # Be careful to initialize this variable, since it used to be cached.
2131 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2133 # b.out is created by i960 compilers.
2134 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2136 test -f "$ac_file" || continue
2138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2141 # This is the source file.
2144 # We found the default executable, but exeext='' is most
2148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149 # FIXME: I believe we export ac_cv_exeext for Libtool,
2150 # but it would be cool to find out if it's true. Does anybody
2151 # maintain Libtool? --akim.
2159 echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2162 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: C compiler cannot create executables
2165 See \`config.log' for more details." >&2;}
2166 { (exit 77); exit 77; }; }
2169 ac_exeext=$ac_cv_exeext
2170 echo "$as_me:$LINENO: result: $ac_file" >&5
2171 echo "${ECHO_T}$ac_file" >&6
2173 # Check the compiler produces executables we can run. If not, either
2174 # the compiler is broken, or we cross compile.
2175 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2176 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2177 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2178 # If not cross compiling, check that we can run a simple program.
2179 if test "$cross_compiling" != yes; then
2180 if { ac_try='./$ac_file'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2188 if test "$cross_compiling" = maybe; then
2191 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2192 If you meant to cross compile, use \`--host'.
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: cannot run C compiled programs.
2195 If you meant to cross compile, use \`--host'.
2196 See \`config.log' for more details." >&2;}
2197 { (exit 1); exit 1; }; }
2201 echo "$as_me:$LINENO: result: yes" >&5
2202 echo "${ECHO_T}yes" >&6
2204 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2205 ac_clean_files=$ac_clean_files_save
2206 # Check the compiler produces executables we can run. If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2209 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2210 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2211 echo "${ECHO_T}$cross_compiling" >&6
2213 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2214 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2216 (eval $ac_link) 2>&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; then
2220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2222 # work properly (i.e., refer to `conftest.exe'), while it won't with
2224 for ac_file in conftest.exe conftest conftest.*; do
2225 test -f "$ac_file" || continue
2227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2235 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2238 See \`config.log' for more details." >&2;}
2239 { (exit 1); exit 1; }; }
2242 rm -f conftest$ac_cv_exeext
2243 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2244 echo "${ECHO_T}$ac_cv_exeext" >&6
2246 rm -f conftest.$ac_ext
2247 EXEEXT=$ac_cv_exeext
2249 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2250 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2251 if test "${ac_cv_objext+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 cat >conftest.$ac_ext <<_ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2269 rm -f conftest.o conftest.obj
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2283 echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2293 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2295 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296 echo "${ECHO_T}$ac_cv_objext" >&6
2297 OBJEXT=$ac_cv_objext
2299 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2301 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 cat >conftest.$ac_ext <<_ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h. */
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>conftest.er1
2326 grep -v '^ *+' conftest.er1 >conftest.err
2328 cat conftest.err >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2355 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2356 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357 GCC=`test $ac_compiler_gnu = yes && echo yes`
2358 ac_test_CFLAGS=${CFLAGS+set}
2359 ac_save_CFLAGS=$CFLAGS
2361 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363 if test "${ac_cv_prog_cc_g+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 cat >conftest.$ac_ext <<_ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2381 rm -f conftest.$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>conftest.er1
2385 grep -v '^ *+' conftest.er1 >conftest.err
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -z "$ac_c_werror_flag"
2391 || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2405 echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2412 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414 if test "$ac_test_CFLAGS" = set; then
2415 CFLAGS=$ac_save_CFLAGS
2416 elif test $ac_cv_prog_cc_g = yes; then
2417 if test "$GCC" = yes; then
2423 if test "$GCC" = yes; then
2429 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 ac_cv_prog_cc_stdc=no
2436 cat >conftest.$ac_ext <<_ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h. */
2444 #include <sys/types.h>
2445 #include <sys/stat.h>
2446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2447 struct buf { int x; };
2448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449 static char *e (p, i)
2455 static char *f (char * (*g) (char **, int), char **p, ...)
2460 s = g (p, va_arg (v,int));
2465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2466 function prototypes and stuff, but not '\xHH' hex character constants.
2467 These don't provoke an error unfortunately, instead are silently treated
2468 as 'x'. The following induces an error, until -std1 is added to get
2469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2470 array size at least. It's necessary to write '\x00'==0 to get something
2471 that's true only with -std1. */
2472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2474 int test (int i, double x);
2475 struct s1 {int (*f) (int a);};
2476 struct s2 {int (*f) (double a);};
2477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2483 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2488 # Don't try gcc -ansi; that turns off useful extensions and
2489 # breaks some systems' header files.
2490 # AIX -qlanglvl=ansi
2491 # Ultrix and OSF/1 -std1
2492 # HP-UX 10.20 and later -Ae
2493 # HP-UX older versions -Aa -D_HPUX_SOURCE
2494 # SVR4 -Xc -D__EXTENSIONS__
2495 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2497 CC="$ac_save_CC $ac_arg"
2498 rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2502 grep -v '^ *+' conftest.er1 >conftest.err
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2520 ac_cv_prog_cc_stdc=$ac_arg
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2527 rm -f conftest.err conftest.$ac_objext
2529 rm -f conftest.$ac_ext conftest.$ac_objext
2534 case "x$ac_cv_prog_cc_stdc" in
2536 echo "$as_me:$LINENO: result: none needed" >&5
2537 echo "${ECHO_T}none needed" >&6 ;;
2539 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2540 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2541 CC="$CC $ac_cv_prog_cc_stdc" ;;
2544 # Some people use a C++ compiler to compile C. Since we use `exit',
2545 # in C++ we need to declare it. In case someone uses the same compiler
2546 # for both compiling C and C++ we need to have the C++ compiler decide
2547 # the declaration of exit, since it's the most demanding environment.
2548 cat >conftest.$ac_ext <<_ACEOF
2553 rm -f conftest.$ac_objext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555 (eval $ac_compile) 2>conftest.er1
2557 grep -v '^ *+' conftest.er1 >conftest.err
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag"
2563 || test ! -s conftest.err'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2575 for ac_declaration in \
2577 'extern "C" void std::exit (int) throw (); using std::exit;' \
2578 'extern "C" void std::exit (int); using std::exit;' \
2579 'extern "C" void exit (int) throw ();' \
2580 'extern "C" void exit (int);' \
2583 cat >conftest.$ac_ext <<_ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h. */
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2603 grep -v '^ *+' conftest.er1 >conftest.err
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag"
2609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -z "$ac_c_werror_flag"
2654 || test ! -s conftest.err'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; } &&
2660 { ac_try='test -s conftest.$ac_objext'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675 if test -n "$ac_declaration"; then
2676 echo '#ifdef __cplusplus' >>confdefs.h
2677 echo $ac_declaration >>confdefs.h
2678 echo '#endif' >>confdefs.h
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688 ac_cpp='$CPP $CPPFLAGS'
2689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2695 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2696 if test "${ac_cv_c_bigendian+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 # See if sys/param.h defines the BYTE_ORDER macro.
2700 cat >conftest.$ac_ext <<_ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2706 #include <sys/types.h>
2707 #include <sys/param.h>
2712 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2724 grep -v '^ *+' conftest.er1 >conftest.err
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_c_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 # It does; now see whether it defined to BIG_ENDIAN or not.
2743 cat >conftest.$ac_ext <<_ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2749 #include <sys/types.h>
2750 #include <sys/param.h>
2755 #if BYTE_ORDER != BIG_ENDIAN
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_c_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 ac_cv_c_bigendian=yes
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2790 ac_cv_c_bigendian=no
2792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2797 # It does not; compile a test program.
2798 if test "$cross_compiling" = yes; then
2799 # try to guess the endianness by grepping values into an object file
2800 ac_cv_c_bigendian=unknown
2801 cat >conftest.$ac_ext <<_ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h. */
2807 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2808 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2809 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2810 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2811 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2812 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2816 _ascii (); _ebcdic ();
2821 rm -f conftest.$ac_objext
2822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823 (eval $ac_compile) 2>conftest.er1
2825 grep -v '^ *+' conftest.er1 >conftest.err
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } &&
2830 { ac_try='test -z "$ac_c_werror_flag"
2831 || test ! -s conftest.err'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2843 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2844 ac_cv_c_bigendian=yes
2846 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2847 if test "$ac_cv_c_bigendian" = unknown; then
2848 ac_cv_c_bigendian=no
2850 # finding both strings is unlikely to happen, but who knows?
2851 ac_cv_c_bigendian=unknown
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861 cat >conftest.$ac_ext <<_ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2870 /* Are we little or big endian? From Harbison&Steele. */
2874 char c[sizeof (long)];
2877 exit (u.c[sizeof (long) - 1] == 1);
2880 rm -f conftest$ac_exeext
2881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2882 (eval $ac_link) 2>&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 ac_cv_c_bigendian=no
2893 echo "$as_me: program exited with status $ac_status" >&5
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2898 ac_cv_c_bigendian=yes
2900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2906 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2907 case $ac_cv_c_bigendian in
2915 { { echo "$as_me:$LINENO: error: unknown endianness
2916 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2917 echo "$as_me: error: unknown endianness
2918 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2919 { (exit 1); exit 1; }; } ;;
2924 # Check whether --enable-optimized or --disable-optimized was given.
2925 if test "${enable_optimized+set}" = set; then
2926 enableval="$enable_optimized"
2931 if test ${enableval} = "no" ; then
2935 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2939 # Check whether --enable-jit or --disable-jit was given.
2940 if test "${enable_jit+set}" = set; then
2941 enableval="$enable_jit"
2946 if test ${enableval} = "no"
2951 case "$llvm_cv_target_arch" in
2952 x86) JIT=TARGET_HAS_JIT=1
2954 Sparc) JIT=TARGET_HAS_JIT=1
2956 PowerPC) JIT=TARGET_HAS_JIT=1
2963 # Check whether --enable-doxygen or --disable-doxygen was given.
2964 if test "${enable_doxygen+set}" = set; then
2965 enableval="$enable_doxygen"
2970 case "$enableval" in
2971 yes) ENABLE_DOXYGEN=1
2973 no) ENABLE_DOXYGEN=0
2975 default) ENABLE_DOXYGEN=0
2977 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2978 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2979 { (exit 1); exit 1; }; } ;;
2983 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2984 if test "${with_llvmgccdir+set}" = set; then
2985 withval="$with_llvmgccdir"
2990 if test "x$LLVMGCCDIR" = x ; then
2991 case "$llvm_cv_platform_type" in
2993 if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2994 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2999 if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
3000 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3014 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3015 # On Suns, sometimes $CPP names a directory.
3016 if test -n "$CPP" && test -d "$CPP"; then
3019 if test -z "$CPP"; then
3020 if test "${ac_cv_prog_CPP+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 # Double quotes because CPP needs to be expanded
3024 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3027 for ac_c_preproc_warn_flag in '' yes
3029 # Use a header file that comes with gcc, so configuring glibc
3030 # with a fresh cross-compiler works.
3031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3032 # <limits.h> exists even on freestanding compilers.
3033 # On the NeXT, cc -E runs the code through the compiler's parser,
3034 # not just through cpp. "Syntax error" is here to catch this case.
3035 cat >conftest.$ac_ext <<_ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3042 # include <limits.h>
3044 # include <assert.h>
3048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3051 grep -v '^ *+' conftest.er1 >conftest.err
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } >/dev/null; then
3056 if test -s conftest.err; then
3057 ac_cpp_err=$ac_c_preproc_warn_flag
3058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3065 if test -z "$ac_cpp_err"; then
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3071 # Broken: fails on valid input.
3074 rm -f conftest.err conftest.$ac_ext
3076 # OK, works on sane cases. Now check whether non-existent headers
3077 # can be detected and how.
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3084 #include <ac_nonexistent.h>
3086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } >/dev/null; then
3094 if test -s conftest.err; then
3095 ac_cpp_err=$ac_c_preproc_warn_flag
3096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3103 if test -z "$ac_cpp_err"; then
3104 # Broken: success on invalid input.
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3110 # Passes both tests.
3114 rm -f conftest.err conftest.$ac_ext
3117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3118 rm -f conftest.err conftest.$ac_ext
3119 if $ac_preproc_ok; then
3131 echo "$as_me:$LINENO: result: $CPP" >&5
3132 echo "${ECHO_T}$CPP" >&6
3134 for ac_c_preproc_warn_flag in '' yes
3136 # Use a header file that comes with gcc, so configuring glibc
3137 # with a fresh cross-compiler works.
3138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3139 # <limits.h> exists even on freestanding compilers.
3140 # On the NeXT, cc -E runs the code through the compiler's parser,
3141 # not just through cpp. "Syntax error" is here to catch this case.
3142 cat >conftest.$ac_ext <<_ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3149 # include <limits.h>
3151 # include <assert.h>
3155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3158 grep -v '^ *+' conftest.er1 >conftest.err
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } >/dev/null; then
3163 if test -s conftest.err; then
3164 ac_cpp_err=$ac_c_preproc_warn_flag
3165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3172 if test -z "$ac_cpp_err"; then
3175 echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3178 # Broken: fails on valid input.
3181 rm -f conftest.err conftest.$ac_ext
3183 # OK, works on sane cases. Now check whether non-existent headers
3184 # can be detected and how.
3185 cat >conftest.$ac_ext <<_ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3191 #include <ac_nonexistent.h>
3193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3196 grep -v '^ *+' conftest.er1 >conftest.err
3198 cat conftest.err >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } >/dev/null; then
3201 if test -s conftest.err; then
3202 ac_cpp_err=$ac_c_preproc_warn_flag
3203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3210 if test -z "$ac_cpp_err"; then
3211 # Broken: success on invalid input.
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3217 # Passes both tests.
3221 rm -f conftest.err conftest.$ac_ext
3224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3225 rm -f conftest.err conftest.$ac_ext
3226 if $ac_preproc_ok; then
3229 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3230 See \`config.log' for more details." >&5
3231 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3232 See \`config.log' for more details." >&2;}
3233 { (exit 1); exit 1; }; }
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247 if test -n "$ac_tool_prefix"; then
3250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3252 echo "$as_me:$LINENO: checking for $ac_word" >&5
3253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3254 if test "${ac_cv_prog_CC+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 if test -n "$CC"; then
3258 ac_cv_prog_CC="$CC" # Let the user override the test.
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 test -z "$as_dir" && as_dir=.
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 if test -n "$CC"; then
3278 echo "$as_me:$LINENO: result: $CC" >&5
3279 echo "${ECHO_T}$CC" >&6
3281 echo "$as_me:$LINENO: result: no" >&5
3282 echo "${ECHO_T}no" >&6
3285 test -n "$CC" && break
3288 if test -z "$CC"; then
3292 # Extract the first word of "$ac_prog", so it can be a program name with args.
3293 set dummy $ac_prog; ac_word=$2
3294 echo "$as_me:$LINENO: checking for $ac_word" >&5
3295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3296 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 if test -n "$ac_ct_CC"; then
3300 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309 ac_cv_prog_ac_ct_CC="$ac_prog"
3310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3319 if test -n "$ac_ct_CC"; then
3320 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3321 echo "${ECHO_T}$ac_ct_CC" >&6
3323 echo "$as_me:$LINENO: result: no" >&5
3324 echo "${ECHO_T}no" >&6
3327 test -n "$ac_ct_CC" && break
3334 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3335 See \`config.log' for more details." >&5
3336 echo "$as_me: error: no acceptable C compiler found in \$PATH
3337 See \`config.log' for more details." >&2;}
3338 { (exit 1); exit 1; }; }
3340 # Provide some information about the compiler.
3341 echo "$as_me:$LINENO:" \
3342 "checking for C compiler version" >&5
3343 ac_compiler=`set X $ac_compile; echo $2`
3344 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3345 (eval $ac_compiler --version </dev/null >&5) 2>&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }
3349 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3350 (eval $ac_compiler -v </dev/null >&5) 2>&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }
3354 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3355 (eval $ac_compiler -V </dev/null >&5) 2>&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }
3360 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3361 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3362 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 cat >conftest.$ac_ext <<_ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3383 rm -f conftest.$ac_objext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3385 (eval $ac_compile) 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try='test -z "$ac_c_werror_flag"
3393 || test ! -s conftest.err'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; } &&
3399 { ac_try='test -s conftest.$ac_objext'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; }; then
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3413 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3416 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3417 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3418 GCC=`test $ac_compiler_gnu = yes && echo yes`
3419 ac_test_CFLAGS=${CFLAGS+set}
3420 ac_save_CFLAGS=$CFLAGS
3422 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3423 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3424 if test "${ac_cv_prog_cc_g+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 cat >conftest.$ac_ext <<_ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3442 rm -f conftest.$ac_objext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444 (eval $ac_compile) 2>conftest.er1
3446 grep -v '^ *+' conftest.er1 >conftest.err
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try='test -z "$ac_c_werror_flag"
3452 || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3474 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3475 if test "$ac_test_CFLAGS" = set; then
3476 CFLAGS=$ac_save_CFLAGS
3477 elif test $ac_cv_prog_cc_g = yes; then
3478 if test "$GCC" = yes; then
3484 if test "$GCC" = yes; then
3490 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3491 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3492 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 ac_cv_prog_cc_stdc=no
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3505 #include <sys/types.h>
3506 #include <sys/stat.h>
3507 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3508 struct buf { int x; };
3509 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3510 static char *e (p, i)
3516 static char *f (char * (*g) (char **, int), char **p, ...)
3521 s = g (p, va_arg (v,int));
3526 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3527 function prototypes and stuff, but not '\xHH' hex character constants.
3528 These don't provoke an error unfortunately, instead are silently treated
3529 as 'x'. The following induces an error, until -std1 is added to get
3530 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3531 array size at least. It's necessary to write '\x00'==0 to get something
3532 that's true only with -std1. */
3533 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3535 int test (int i, double x);
3536 struct s1 {int (*f) (int a);};
3537 struct s2 {int (*f) (double a);};
3538 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3544 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3549 # Don't try gcc -ansi; that turns off useful extensions and
3550 # breaks some systems' header files.
3551 # AIX -qlanglvl=ansi
3552 # Ultrix and OSF/1 -std1
3553 # HP-UX 10.20 and later -Ae
3554 # HP-UX older versions -Aa -D_HPUX_SOURCE
3555 # SVR4 -Xc -D__EXTENSIONS__
3556 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3558 CC="$ac_save_CC $ac_arg"
3559 rm -f conftest.$ac_objext
3560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3561 (eval $ac_compile) 2>conftest.er1
3563 grep -v '^ *+' conftest.er1 >conftest.err
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
3568 { ac_try='test -z "$ac_c_werror_flag"
3569 || test ! -s conftest.err'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; } &&
3575 { ac_try='test -s conftest.$ac_objext'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3581 ac_cv_prog_cc_stdc=$ac_arg
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3588 rm -f conftest.err conftest.$ac_objext
3590 rm -f conftest.$ac_ext conftest.$ac_objext
3595 case "x$ac_cv_prog_cc_stdc" in
3597 echo "$as_me:$LINENO: result: none needed" >&5
3598 echo "${ECHO_T}none needed" >&6 ;;
3600 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3601 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3602 CC="$CC $ac_cv_prog_cc_stdc" ;;
3605 # Some people use a C++ compiler to compile C. Since we use `exit',
3606 # in C++ we need to declare it. In case someone uses the same compiler
3607 # for both compiling C and C++ we need to have the C++ compiler decide
3608 # the declaration of exit, since it's the most demanding environment.
3609 cat >conftest.$ac_ext <<_ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>conftest.er1
3618 grep -v '^ *+' conftest.er1 >conftest.err
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try='test -z "$ac_c_werror_flag"
3624 || test ! -s conftest.err'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; } &&
3630 { ac_try='test -s conftest.$ac_objext'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3636 for ac_declaration in \
3638 'extern "C" void std::exit (int) throw (); using std::exit;' \
3639 'extern "C" void std::exit (int); using std::exit;' \
3640 'extern "C" void exit (int) throw ();' \
3641 'extern "C" void exit (int);' \
3644 cat >conftest.$ac_ext <<_ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3660 rm -f conftest.$ac_objext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>conftest.er1
3664 grep -v '^ *+' conftest.er1 >conftest.err
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -z "$ac_c_werror_flag"
3670 || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3690 cat >conftest.$ac_ext <<_ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3705 rm -f conftest.$ac_objext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3707 (eval $ac_compile) 2>conftest.er1
3709 grep -v '^ *+' conftest.er1 >conftest.err
3711 cat conftest.err >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -z "$ac_c_werror_flag"
3715 || test ! -s conftest.err'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; } &&
3721 { ac_try='test -s conftest.$ac_objext'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3729 echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3736 if test -n "$ac_declaration"; then
3737 echo '#ifdef __cplusplus' >>confdefs.h
3738 echo $ac_declaration >>confdefs.h
3739 echo '#endif' >>confdefs.h
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755 ac_cpp='$CXXCPP $CPPFLAGS'
3756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3759 if test -n "$ac_tool_prefix"; then
3760 for ac_prog in $CCC g++
3762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3764 echo "$as_me:$LINENO: checking for $ac_word" >&5
3765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3766 if test "${ac_cv_prog_CXX+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 if test -n "$CXX"; then
3770 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 if test -n "$CXX"; then
3790 echo "$as_me:$LINENO: result: $CXX" >&5
3791 echo "${ECHO_T}$CXX" >&6
3793 echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3797 test -n "$CXX" && break
3800 if test -z "$CXX"; then
3802 for ac_prog in $CCC g++
3804 # Extract the first word of "$ac_prog", so it can be a program name with args.
3805 set dummy $ac_prog; ac_word=$2
3806 echo "$as_me:$LINENO: checking for $ac_word" >&5
3807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3808 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 if test -n "$ac_ct_CXX"; then
3812 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 test -z "$as_dir" && as_dir=.
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3821 ac_cv_prog_ac_ct_CXX="$ac_prog"
3822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3831 if test -n "$ac_ct_CXX"; then
3832 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3833 echo "${ECHO_T}$ac_ct_CXX" >&6
3835 echo "$as_me:$LINENO: result: no" >&5
3836 echo "${ECHO_T}no" >&6
3839 test -n "$ac_ct_CXX" && break
3841 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3847 # Provide some information about the compiler.
3848 echo "$as_me:$LINENO:" \
3849 "checking for C++ compiler version" >&5
3850 ac_compiler=`set X $ac_compile; echo $2`
3851 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3852 (eval $ac_compiler --version </dev/null >&5) 2>&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }
3856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3857 (eval $ac_compiler -v </dev/null >&5) 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }
3861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3862 (eval $ac_compiler -V </dev/null >&5) 2>&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }
3867 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3868 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3869 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 cat >conftest.$ac_ext <<_ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3890 rm -f conftest.$ac_objext
3891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892 (eval $ac_compile) 2>conftest.er1
3894 grep -v '^ *+' conftest.er1 >conftest.err
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } &&
3899 { ac_try='test -z "$ac_cxx_werror_flag"
3900 || test ! -s conftest.err'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; } &&
3906 { ac_try='test -s conftest.$ac_objext'
3907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; }; then
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3920 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3923 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3924 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3925 GXX=`test $ac_compiler_gnu = yes && echo yes`
3926 ac_test_CXXFLAGS=${CXXFLAGS+set}
3927 ac_save_CXXFLAGS=$CXXFLAGS
3929 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3930 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3931 if test "${ac_cv_prog_cxx_g+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 cat >conftest.$ac_ext <<_ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3949 rm -f conftest.$ac_objext
3950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3951 (eval $ac_compile) 2>conftest.er1
3953 grep -v '^ *+' conftest.er1 >conftest.err
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } &&
3958 { ac_try='test -z "$ac_cxx_werror_flag"
3959 || test ! -s conftest.err'
3960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; } &&
3965 { ac_try='test -s conftest.$ac_objext'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; }; then
3971 ac_cv_prog_cxx_g=yes
3973 echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3980 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3981 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3982 if test "$ac_test_CXXFLAGS" = set; then
3983 CXXFLAGS=$ac_save_CXXFLAGS
3984 elif test $ac_cv_prog_cxx_g = yes; then
3985 if test "$GXX" = yes; then
3991 if test "$GXX" = yes; then
3997 for ac_declaration in \
3999 'extern "C" void std::exit (int) throw (); using std::exit;' \
4000 'extern "C" void std::exit (int); using std::exit;' \
4001 'extern "C" void exit (int) throw ();' \
4002 'extern "C" void exit (int);' \
4005 cat >conftest.$ac_ext <<_ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4021 rm -f conftest.$ac_objext
4022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023 (eval $ac_compile) 2>conftest.er1
4025 grep -v '^ *+' conftest.er1 >conftest.err
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_cxx_werror_flag"
4031 || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4051 cat >conftest.$ac_ext <<_ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4066 rm -f conftest.$ac_objext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>conftest.er1
4070 grep -v '^ *+' conftest.er1 >conftest.err
4072 cat conftest.err >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } &&
4075 { ac_try='test -z "$ac_cxx_werror_flag"
4076 || test ! -s conftest.err'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4097 if test -n "$ac_declaration"; then
4098 echo '#ifdef __cplusplus' >>confdefs.h
4099 echo $ac_declaration >>confdefs.h
4100 echo '#endif' >>confdefs.h
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109 echo "$as_me:$LINENO: checking " >&5
4110 echo $ECHO_N "checking ... $ECHO_C" >&6
4111 if test "${ac_cv_has_flex+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 for ac_prog in flex lex
4116 # Extract the first word of "$ac_prog", so it can be a program name with args.
4117 set dummy $ac_prog; ac_word=$2
4118 echo "$as_me:$LINENO: checking for $ac_word" >&5
4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4120 if test "${ac_cv_prog_LEX+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 if test -n "$LEX"; then
4124 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133 ac_cv_prog_LEX="$ac_prog"
4134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 if test -n "$LEX"; then
4144 echo "$as_me:$LINENO: result: $LEX" >&5
4145 echo "${ECHO_T}$LEX" >&6
4147 echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6
4151 test -n "$LEX" && break
4153 test -n "$LEX" || LEX=":"
4155 if test -z "$LEXLIB"
4157 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4158 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4159 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 ac_check_lib_save_LIBS=$LIBS
4164 cat >conftest.$ac_ext <<_ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4171 /* Override any gcc2 internal prototype to avoid an error. */
4175 /* We use char because int might match the return type of a gcc2
4176 builtin and then its argument prototype would still apply. */
4186 rm -f conftest.$ac_objext conftest$ac_exeext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4188 (eval $ac_link) 2>conftest.er1
4190 grep -v '^ *+' conftest.er1 >conftest.err
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } &&
4195 { ac_try='test -z "$ac_c_werror_flag"
4196 || test ! -s conftest.err'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest$ac_exeext'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 ac_cv_lib_fl_yywrap=yes
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4213 ac_cv_lib_fl_yywrap=no
4215 rm -f conftest.err conftest.$ac_objext \
4216 conftest$ac_exeext conftest.$ac_ext
4217 LIBS=$ac_check_lib_save_LIBS
4219 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4220 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4221 if test $ac_cv_lib_fl_yywrap = yes; then
4224 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4225 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4226 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 ac_check_lib_save_LIBS=$LIBS
4231 cat >conftest.$ac_ext <<_ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4238 /* Override any gcc2 internal prototype to avoid an error. */
4242 /* We use char because int might match the return type of a gcc2
4243 builtin and then its argument prototype would still apply. */
4253 rm -f conftest.$ac_objext conftest$ac_exeext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4255 (eval $ac_link) 2>conftest.er1
4257 grep -v '^ *+' conftest.er1 >conftest.err
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try='test -z "$ac_c_werror_flag"
4263 || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_lib_l_yywrap=yes
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 ac_cv_lib_l_yywrap=no
4282 rm -f conftest.err conftest.$ac_objext \
4283 conftest$ac_exeext conftest.$ac_ext
4284 LIBS=$ac_check_lib_save_LIBS
4286 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4287 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4288 if test $ac_cv_lib_l_yywrap = yes; then
4296 if test "x$LEX" != "x:"; then
4297 echo "$as_me:$LINENO: checking lex output file root" >&5
4298 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4299 if test "${ac_cv_prog_lex_root+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 # The minimal lex program is just a single line: %%. But some broken lexes
4303 # (Solaris, I think it was) want two %% lines, so accommodate them.
4304 cat >conftest.l <<_ACEOF
4308 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4309 (eval $LEX conftest.l) 2>&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }
4313 if test -f lex.yy.c; then
4314 ac_cv_prog_lex_root=lex.yy
4315 elif test -f lexyy.c; then
4316 ac_cv_prog_lex_root=lexyy
4318 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4319 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4320 { (exit 1); exit 1; }; }
4323 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4324 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4326 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4328 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4329 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4330 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 # POSIX says lex can declare yytext either as a pointer or an array; the
4334 # default is implementation-dependent. Figure out which it is, since
4335 # not all implementations provide the %pointer and %array declarations.
4336 ac_cv_prog_lex_yytext_pointer=no
4337 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4339 LIBS="$LIBS $LEXLIB"
4340 cat >conftest.$ac_ext <<_ACEOF
4341 `cat $LEX_OUTPUT_ROOT.c`
4343 rm -f conftest.$ac_objext conftest$ac_exeext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4345 (eval $ac_link) 2>conftest.er1
4347 grep -v '^ *+' conftest.er1 >conftest.err
4349 cat conftest.err >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } &&
4352 { ac_try='test -z "$ac_c_werror_flag"
4353 || test ! -s conftest.err'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; } &&
4359 { ac_try='test -s conftest$ac_exeext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_prog_lex_yytext_pointer=yes
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4371 rm -f conftest.err conftest.$ac_objext \
4372 conftest$ac_exeext conftest.$ac_ext
4374 rm -f "${LEX_OUTPUT_ROOT}.c"
4377 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4378 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4379 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4381 cat >>confdefs.h <<\_ACEOF
4382 #define YYTEXT_POINTER 1
4390 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4391 echo "${ECHO_T}$ac_cv_has_flex" >&6
4392 if test "$LEX" != "flex"; then
4393 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4394 echo "$as_me: error: flex not found but required" >&2;}
4395 { (exit 1); exit 1; }; }
4401 echo "$as_me:$LINENO: checking " >&5
4402 echo $ECHO_N "checking ... $ECHO_C" >&6
4403 if test "${llvm_cv_has_bison+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 for ac_prog in 'bison -y' byacc
4408 # Extract the first word of "$ac_prog", so it can be a program name with args.
4409 set dummy $ac_prog; ac_word=$2
4410 echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4412 if test "${ac_cv_prog_YACC+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 if test -n "$YACC"; then
4416 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425 ac_cv_prog_YACC="$ac_prog"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 YACC=$ac_cv_prog_YACC
4435 if test -n "$YACC"; then
4436 echo "$as_me:$LINENO: result: $YACC" >&5
4437 echo "${ECHO_T}$YACC" >&6
4439 echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6
4443 test -n "$YACC" && break
4445 test -n "$YACC" || YACC="yacc"
4449 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4450 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4451 if test "$YACC" != "bison -y"; then
4452 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4453 echo "$as_me: error: bison not found but required" >&2;}
4454 { (exit 1); exit 1; }; }
4461 echo "$as_me:$LINENO: checking for GNU make" >&5
4462 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4463 if test "${llvm_cv_gnu_make_command+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 llvm_cv_gnu_make_command=''
4467 for a in "$MAKE" make gmake gnumake ; do
4468 if test -z "$a" ; then continue ; fi ;
4469 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4471 llvm_cv_gnu_make_command=$a ;
4476 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4477 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4478 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4482 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4483 echo "${ECHO_T}\"Not found\"" >&6;
4487 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4488 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4490 if test "$LN_S" = "ln -s"; then
4491 echo "$as_me:$LINENO: result: yes" >&5
4492 echo "${ECHO_T}yes" >&6
4494 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4495 echo "${ECHO_T}no, using $LN_S" >&6
4498 # Extract the first word of "date", so it can be a program name with args.
4499 set dummy date; ac_word=$2
4500 echo "$as_me:$LINENO: checking for $ac_word" >&5
4501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4502 if test "${ac_cv_path_DATE+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4528 DATE=$ac_cv_path_DATE
4530 if test -n "$DATE"; then
4531 echo "$as_me:$LINENO: result: $DATE" >&5
4532 echo "${ECHO_T}$DATE" >&6
4534 echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6
4538 # Extract the first word of "find", so it can be a program name with args.
4539 set dummy find; ac_word=$2
4540 echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542 if test "${ac_cv_path_FIND+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4568 FIND=$ac_cv_path_FIND
4570 if test -n "$FIND"; then
4571 echo "$as_me:$LINENO: result: $FIND" >&5
4572 echo "${ECHO_T}$FIND" >&6
4574 echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6
4578 # Extract the first word of "grep", so it can be a program name with args.
4579 set dummy grep; ac_word=$2
4580 echo "$as_me:$LINENO: checking for $ac_word" >&5
4581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4582 if test "${ac_cv_path_GREP+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4608 GREP=$ac_cv_path_GREP
4610 if test -n "$GREP"; then
4611 echo "$as_me:$LINENO: result: $GREP" >&5
4612 echo "${ECHO_T}$GREP" >&6
4614 echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6
4618 # Extract the first word of "mkdir", so it can be a program name with args.
4619 set dummy mkdir; ac_word=$2
4620 echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622 if test "${ac_cv_path_MKDIR+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4637 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4648 MKDIR=$ac_cv_path_MKDIR
4650 if test -n "$MKDIR"; then
4651 echo "$as_me:$LINENO: result: $MKDIR" >&5
4652 echo "${ECHO_T}$MKDIR" >&6
4654 echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6
4658 # Extract the first word of "mv", so it can be a program name with args.
4659 set dummy mv; ac_word=$2
4660 echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4662 if test "${ac_cv_path_MV+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4690 if test -n "$MV"; then
4691 echo "$as_me:$LINENO: result: $MV" >&5
4692 echo "${ECHO_T}$MV" >&6
4694 echo "$as_me:$LINENO: result: no" >&5
4695 echo "${ECHO_T}no" >&6
4698 # Extract the first word of "pax", so it can be a program name with args.
4699 set dummy pax; ac_word=$2
4700 echo "$as_me:$LINENO: checking for $ac_word" >&5
4701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4702 if test "${ac_cv_path_PAX+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4730 if test -n "$PAX"; then
4731 echo "$as_me:$LINENO: result: $PAX" >&5
4732 echo "${ECHO_T}$PAX" >&6
4734 echo "$as_me:$LINENO: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4738 if test -n "$ac_tool_prefix"; then
4739 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4740 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4741 echo "$as_me:$LINENO: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743 if test "${ac_cv_prog_RANLIB+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 if test -n "$RANLIB"; then
4747 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 RANLIB=$ac_cv_prog_RANLIB
4766 if test -n "$RANLIB"; then
4767 echo "$as_me:$LINENO: result: $RANLIB" >&5
4768 echo "${ECHO_T}$RANLIB" >&6
4770 echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6
4775 if test -z "$ac_cv_prog_RANLIB"; then
4776 ac_ct_RANLIB=$RANLIB
4777 # Extract the first word of "ranlib", so it can be a program name with args.
4778 set dummy ranlib; ac_word=$2
4779 echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 if test -n "$ac_ct_RANLIB"; then
4785 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794 ac_cv_prog_ac_ct_RANLIB="ranlib"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4804 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4805 if test -n "$ac_ct_RANLIB"; then
4806 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4807 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4809 echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6
4813 RANLIB=$ac_ct_RANLIB
4815 RANLIB="$ac_cv_prog_RANLIB"
4818 # Extract the first word of "rm", so it can be a program name with args.
4819 set dummy rm; ac_word=$2
4820 echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4822 if test "${ac_cv_path_RM+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4850 if test -n "$RM"; then
4851 echo "$as_me:$LINENO: result: $RM" >&5
4852 echo "${ECHO_T}$RM" >&6
4854 echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6
4858 # Extract the first word of "sed", so it can be a program name with args.
4859 set dummy sed; ac_word=$2
4860 echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862 if test "${ac_cv_path_SED+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4890 if test -n "$SED"; then
4891 echo "$as_me:$LINENO: result: $SED" >&5
4892 echo "${ECHO_T}$SED" >&6
4894 echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6
4898 # Extract the first word of "tar", so it can be a program name with args.
4899 set dummy tar; ac_word=$2
4900 echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4902 if test "${ac_cv_path_TAR+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
4930 if test -n "$TAR"; then
4931 echo "$as_me:$LINENO: result: $TAR" >&5
4932 echo "${ECHO_T}$TAR" >&6
4934 echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6
4939 # Find a good install program. We prefer a C program (faster),
4940 # so one script is as good as another. But avoid the broken or
4941 # incompatible versions:
4942 # SysV /etc/install, /usr/sbin/install
4943 # SunOS /usr/etc/install
4944 # IRIX /sbin/install
4946 # AmigaOS /C/install, which installs bootblocks on floppy discs
4947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4950 # OS/2's system install, which has a completely different semantic
4951 # ./install, which can be erroneously created by make from ./install.sh.
4952 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4953 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4954 if test -z "$INSTALL"; then
4955 if test "${ac_cv_path_install+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 test -z "$as_dir" && as_dir=.
4963 # Account for people who put trailing slashes in PATH elements.
4965 ./ | .// | /cC/* | \
4966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4967 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4970 # OSF1 and SCO ODT 3.0 have their own names for install.
4971 # Don't use installbsd from OSF since it installs stuff as root
4973 for ac_prog in ginstall scoinst install; do
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4976 if test $ac_prog = install &&
4977 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4978 # AIX install. It has an incompatible calling convention.
4980 elif test $ac_prog = install &&
4981 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4982 # program-specific install script used by HP pwplus--don't use.
4985 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4997 if test "${ac_cv_path_install+set}" = set; then
4998 INSTALL=$ac_cv_path_install
5000 # As a last resort, use the slow shell script. We don't cache a
5001 # path for INSTALL within a source directory, because that will
5002 # break other packages using the cache if that directory is
5003 # removed, or if the path is relative.
5004 INSTALL=$ac_install_sh
5007 echo "$as_me:$LINENO: result: $INSTALL" >&5
5008 echo "${ECHO_T}$INSTALL" >&6
5010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5011 # It thinks the first close brace ends the variable substitution.
5012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5019 # Extract the first word of "bzip2", so it can be a program name with args.
5020 set dummy bzip2; ac_word=$2
5021 echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5023 if test "${ac_cv_path_BZIP2+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5049 BZIP2=$ac_cv_path_BZIP2
5051 if test -n "$BZIP2"; then
5052 echo "$as_me:$LINENO: result: $BZIP2" >&5
5053 echo "${ECHO_T}$BZIP2" >&6
5055 echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6
5059 # Extract the first word of "dot", so it can be a program name with args.
5060 set dummy dot; ac_word=$2
5061 echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5063 if test "${ac_cv_path_DOT+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5091 if test -n "$DOT"; then
5092 echo "$as_me:$LINENO: result: $DOT" >&5
5093 echo "${ECHO_T}$DOT" >&6
5095 echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6
5099 # Extract the first word of "doxygen", so it can be a program name with args.
5100 set dummy doxygen; ac_word=$2
5101 echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5129 DOXYGEN=$ac_cv_path_DOXYGEN
5131 if test -n "$DOXYGEN"; then
5132 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5133 echo "${ECHO_T}$DOXYGEN" >&6
5135 echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6
5139 # Extract the first word of "etags", so it can be a program name with args.
5140 set dummy etags; ac_word=$2
5141 echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5143 if test "${ac_cv_path_ETAGS+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5169 ETAGS=$ac_cv_path_ETAGS
5171 if test -n "$ETAGS"; then
5172 echo "$as_me:$LINENO: result: $ETAGS" >&5
5173 echo "${ECHO_T}$ETAGS" >&6
5175 echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6
5179 # Extract the first word of "groff", so it can be a program name with args.
5180 set dummy groff; ac_word=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_path_GROFF+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5209 GROFF=$ac_cv_path_GROFF
5211 if test -n "$GROFF"; then
5212 echo "$as_me:$LINENO: result: $GROFF" >&5
5213 echo "${ECHO_T}$GROFF" >&6
5215 echo "$as_me:$LINENO: result: no" >&5
5216 echo "${ECHO_T}no" >&6
5219 # Extract the first word of "gzip", so it can be a program name with args.
5220 set dummy gzip; ac_word=$2
5221 echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5223 if test "${ac_cv_path_GZIP+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5249 GZIP=$ac_cv_path_GZIP
5251 if test -n "$GZIP"; then
5252 echo "$as_me:$LINENO: result: $GZIP" >&5
5253 echo "${ECHO_T}$GZIP" >&6
5255 echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6
5259 # Extract the first word of "pod2html", so it can be a program name with args.
5260 set dummy pod2html; ac_word=$2
5261 echo "$as_me:$LINENO: checking for $ac_word" >&5
5262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5263 if test "${ac_cv_path_POD2HTML+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5289 POD2HTML=$ac_cv_path_POD2HTML
5291 if test -n "$POD2HTML"; then
5292 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5293 echo "${ECHO_T}$POD2HTML" >&6
5295 echo "$as_me:$LINENO: result: no" >&5
5296 echo "${ECHO_T}no" >&6
5299 # Extract the first word of "pod2man", so it can be a program name with args.
5300 set dummy pod2man; ac_word=$2
5301 echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5303 if test "${ac_cv_path_POD2MAN+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5329 POD2MAN=$ac_cv_path_POD2MAN
5331 if test -n "$POD2MAN"; then
5332 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5333 echo "${ECHO_T}$POD2MAN" >&6
5335 echo "$as_me:$LINENO: result: no" >&5
5336 echo "${ECHO_T}no" >&6
5339 # Extract the first word of "python", so it can be a program name with args.
5340 set dummy python; ac_word=$2
5341 echo "$as_me:$LINENO: checking for $ac_word" >&5
5342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343 if test "${ac_cv_path_PYTHON+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
5369 PYTHON=$ac_cv_path_PYTHON
5371 if test -n "$PYTHON"; then
5372 echo "$as_me:$LINENO: result: $PYTHON" >&5
5373 echo "${ECHO_T}$PYTHON" >&6
5375 echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6
5379 # Extract the first word of "qmtest", so it can be a program name with args.
5380 set dummy qmtest; ac_word=$2
5381 echo "$as_me:$LINENO: checking for $ac_word" >&5
5382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5383 if test "${ac_cv_path_QMTEST+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
5399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
5409 QMTEST=$ac_cv_path_QMTEST
5411 if test -n "$QMTEST"; then
5412 echo "$as_me:$LINENO: result: $QMTEST" >&5
5413 echo "${ECHO_T}$QMTEST" >&6
5415 echo "$as_me:$LINENO: result: no" >&5
5416 echo "${ECHO_T}no" >&6
5419 # Extract the first word of "runtest", so it can be a program name with args.
5420 set dummy runtest; ac_word=$2
5421 echo "$as_me:$LINENO: checking for $ac_word" >&5
5422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5423 if test "${ac_cv_path_RUNTEST+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5449 RUNTEST=$ac_cv_path_RUNTEST
5451 if test -n "$RUNTEST"; then
5452 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5453 echo "${ECHO_T}$RUNTEST" >&6
5455 echo "$as_me:$LINENO: result: no" >&5
5456 echo "${ECHO_T}no" >&6
5460 dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../
5461 ../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../..
5464 echo "$as_me:$LINENO: checking for the tclsh program" >&5
5465 echo $ECHO_N "checking for the tclsh program... $ECHO_C" >&6
5467 # Check whether --with-tclinclude or --without-tclinclude was given.
5468 if test "${with_tclinclude+set}" = set; then
5469 withval="$with_tclinclude"
5470 with_tclinclude=${withval}
5472 if test "${ac_cv_path_tclsh+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 if test x"${with_tclinclude}" != x ; then
5477 if test -f ${with_tclinclude}/tclsh ; then
5478 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5479 elif test -f ${with_tclinclude}/src/tclsh ; then
5480 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5482 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5483 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5484 { (exit 1); exit 1; }; }
5491 if test x"${ac_cv_path_tclsh}" = x ; then
5492 for i in $dirlist; do
5493 if test -n "`ls -dr $srcdir/$i/tcl* 2>/dev/null`" ; then
5499 for i in `ls -dr $tclpath/tcl* 2>/dev/null ` ; do
5500 if test -f $i/src/tclsh ; then
5501 ac_cv_path_tclsh=`(cd $i/src; pwd)`/tclsh
5507 if test x"${ac_cv_path_tclsh}" = x ; then
5508 echo "$as_me:$LINENO: result: none" >&5
5509 echo "${ECHO_T}none" >&6
5510 # Extract the first word of "tclsh", so it can be a program name with args.
5511 set dummy tclsh; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_path_tclsh+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 ac_cv_path_tclsh="$tclsh" # Let the user override the test with a path.
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_path_tclsh="$as_dir/$ac_word$ac_exec_ext"
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5539 tclsh=$ac_cv_path_tclsh
5541 if test -n "$tclsh"; then
5542 echo "$as_me:$LINENO: result: $tclsh" >&5
5543 echo "${ECHO_T}$tclsh" >&6
5545 echo "$as_me:$LINENO: result: no" >&5
5546 echo "${ECHO_T}no" >&6
5550 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5551 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5553 TCLSH="${ac_cv_path_tclsh}"
5556 # Extract the first word of "zip", so it can be a program name with args.
5557 set dummy zip; ac_word=$2
5558 echo "$as_me:$LINENO: checking for $ac_word" >&5
5559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5560 if test "${ac_cv_path_ZIP+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5588 if test -n "$ZIP"; then
5589 echo "$as_me:$LINENO: result: $ZIP" >&5
5590 echo "${ECHO_T}$ZIP" >&6
5592 echo "$as_me:$LINENO: result: no" >&5
5593 echo "${ECHO_T}no" >&6
5597 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5598 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5599 if test "${llvm_cv_link_use_r+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 ac_cpp='$CPP $CPPFLAGS'
5604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5609 CFLAGS="$CFLAGS -Wl,-R."
5610 cat >conftest.$ac_ext <<_ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5620 int main() { return 0; }
5625 rm -f conftest.$ac_objext conftest$ac_exeext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5627 (eval $ac_link) 2>conftest.er1
5629 grep -v '^ *+' conftest.er1 >conftest.err
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } &&
5634 { ac_try='test -z "$ac_c_werror_flag"
5635 || test ! -s conftest.err'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; } &&
5641 { ac_try='test -s conftest$ac_exeext'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
5647 llvm_cv_link_use_r=yes
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5652 llvm_cv_link_use_r=no
5654 rm -f conftest.err conftest.$ac_objext \
5655 conftest$ac_exeext conftest.$ac_ext
5658 ac_cpp='$CPP $CPPFLAGS'
5659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5665 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5666 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5667 if test "$llvm_cv_link_use_r" = yes ; then
5669 cat >>confdefs.h <<\_ACEOF
5670 #define HAVE_LINK_R 1
5678 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5679 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5680 if test "${ac_cv_c_const+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 cat >conftest.$ac_ext <<_ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5693 /* FIXME: Include the comments suggested by Paul. */
5695 /* Ultrix mips cc rejects this. */
5696 typedef int charset[2];
5698 /* SunOS 4.1.1 cc rejects this. */
5699 char const *const *ccp;
5701 /* NEC SVR4.0.2 mips cc rejects this. */
5702 struct point {int x, y;};
5703 static struct point const zero = {0,0};
5704 /* AIX XL C 1.02.0.0 rejects this.
5705 It does not let you subtract one const X* pointer from another in
5706 an arm of an if-expression whose if-part is not a constant
5708 const char *g = "string";
5709 ccp = &g + (g ? g-g : 0);
5710 /* HPUX 7.0 cc rejects these. */
5713 ccp = (char const *const *) p;
5714 { /* SCO 3.2v4 cc rejects this. */
5716 char const *s = 0 ? (char *) 0 : (char const *) 0;
5720 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5722 const int *foo = &x[0];
5725 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5726 typedef const int *iptr;
5730 { /* AIX XL C 1.02.0.0 rejects this saying
5731 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5732 struct s { int j; const int *ap[3]; };
5733 struct s *b; b->j = 5;
5735 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5744 rm -f conftest.$ac_objext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746 (eval $ac_compile) 2>conftest.er1
5748 grep -v '^ *+' conftest.er1 >conftest.err
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } &&
5753 { ac_try='test -z "$ac_c_werror_flag"
5754 || test ! -s conftest.err'
5755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; } &&
5760 { ac_try='test -s conftest.$ac_objext'
5761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; }; then
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5775 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5776 echo "${ECHO_T}$ac_cv_c_const" >&6
5777 if test $ac_cv_c_const = no; then
5779 cat >>confdefs.h <<\_ACEOF
5786 echo "$as_me:$LINENO: checking for egrep" >&5
5787 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5788 if test "${ac_cv_prog_egrep+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5792 then ac_cv_prog_egrep='grep -E'
5793 else ac_cv_prog_egrep='egrep'
5796 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5797 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5798 EGREP=$ac_cv_prog_egrep
5801 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5802 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5803 if test "${ac_cv_header_stdc+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 cat >conftest.$ac_ext <<_ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5825 rm -f conftest.$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>conftest.er1
5829 grep -v '^ *+' conftest.er1 >conftest.err
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try='test -z "$ac_c_werror_flag"
5835 || test ! -s conftest.err'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; } &&
5841 { ac_try='test -s conftest.$ac_objext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_cv_header_stdc=yes
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5852 ac_cv_header_stdc=no
5854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5856 if test $ac_cv_header_stdc = yes; then
5857 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5858 cat >conftest.$ac_ext <<_ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5868 $EGREP "memchr" >/dev/null 2>&1; then
5871 ac_cv_header_stdc=no
5877 if test $ac_cv_header_stdc = yes; then
5878 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5879 cat >conftest.$ac_ext <<_ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5889 $EGREP "free" >/dev/null 2>&1; then
5892 ac_cv_header_stdc=no
5898 if test $ac_cv_header_stdc = yes; then
5899 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5900 if test "$cross_compiling" = yes; then
5903 cat >conftest.$ac_ext <<_ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5910 #if ((' ' & 0x0FF) == 0x020)
5911 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5912 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5914 # define ISLOWER(c) \
5915 (('a' <= (c) && (c) <= 'i') \
5916 || ('j' <= (c) && (c) <= 'r') \
5917 || ('s' <= (c) && (c) <= 'z'))
5918 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5921 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5926 for (i = 0; i < 256; i++)
5927 if (XOR (islower (i), ISLOWER (i))
5928 || toupper (i) != TOUPPER (i))
5933 rm -f conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935 (eval $ac_link) 2>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; }; then
5946 echo "$as_me: program exited with status $ac_status" >&5
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5951 ac_cv_header_stdc=no
5953 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5957 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5958 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5959 if test $ac_cv_header_stdc = yes; then
5961 cat >>confdefs.h <<\_ACEOF
5962 #define STDC_HEADERS 1
5973 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5974 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5975 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5976 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 cat >conftest.$ac_ext <<_ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 #include <sys/types.h>
5998 rm -f conftest.$ac_objext
5999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000 (eval $ac_compile) 2>conftest.er1
6002 grep -v '^ *+' conftest.er1 >conftest.err
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try='test -z "$ac_c_werror_flag"
6008 || test ! -s conftest.err'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; } &&
6014 { ac_try='test -s conftest.$ac_objext'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
6020 eval "$as_ac_Header=yes"
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 eval "$as_ac_Header=no"
6027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6032 cat >>confdefs.h <<_ACEOF
6033 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6036 ac_header_dirent=$ac_hdr; break
6040 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6041 if test $ac_header_dirent = dirent.h; then
6042 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6043 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6044 if test "${ac_cv_search_opendir+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 ac_func_search_save_LIBS=$LIBS
6048 ac_cv_search_opendir=no
6049 cat >conftest.$ac_ext <<_ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6056 /* Override any gcc2 internal prototype to avoid an error. */
6060 /* We use char because int might match the return type of a gcc2
6061 builtin and then its argument prototype would still apply. */
6071 rm -f conftest.$ac_objext conftest$ac_exeext
6072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6073 (eval $ac_link) 2>conftest.er1
6075 grep -v '^ *+' conftest.er1 >conftest.err
6077 cat conftest.err >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } &&
6080 { ac_try='test -z "$ac_c_werror_flag"
6081 || test ! -s conftest.err'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try='test -s conftest$ac_exeext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6093 ac_cv_search_opendir="none required"
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6099 rm -f conftest.err conftest.$ac_objext \
6100 conftest$ac_exeext conftest.$ac_ext
6101 if test "$ac_cv_search_opendir" = no; then
6102 for ac_lib in dir; do
6103 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6104 cat >conftest.$ac_ext <<_ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6111 /* Override any gcc2 internal prototype to avoid an error. */
6115 /* We use char because int might match the return type of a gcc2
6116 builtin and then its argument prototype would still apply. */
6126 rm -f conftest.$ac_objext conftest$ac_exeext
6127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6128 (eval $ac_link) 2>conftest.er1
6130 grep -v '^ *+' conftest.er1 >conftest.err
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } &&
6135 { ac_try='test -z "$ac_c_werror_flag"
6136 || test ! -s conftest.err'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; } &&
6142 { ac_try='test -s conftest$ac_exeext'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; }; then
6148 ac_cv_search_opendir="-l$ac_lib"
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6155 rm -f conftest.err conftest.$ac_objext \
6156 conftest$ac_exeext conftest.$ac_ext
6159 LIBS=$ac_func_search_save_LIBS
6161 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6162 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6163 if test "$ac_cv_search_opendir" != no; then
6164 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6169 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6170 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6171 if test "${ac_cv_search_opendir+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 ac_func_search_save_LIBS=$LIBS
6175 ac_cv_search_opendir=no
6176 cat >conftest.$ac_ext <<_ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6183 /* Override any gcc2 internal prototype to avoid an error. */
6187 /* We use char because int might match the return type of a gcc2
6188 builtin and then its argument prototype would still apply. */
6198 rm -f conftest.$ac_objext conftest$ac_exeext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200 (eval $ac_link) 2>conftest.er1
6202 grep -v '^ *+' conftest.er1 >conftest.err
6204 cat conftest.err >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } &&
6207 { ac_try='test -z "$ac_c_werror_flag"
6208 || test ! -s conftest.err'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; } &&
6214 { ac_try='test -s conftest$ac_exeext'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; }; then
6220 ac_cv_search_opendir="none required"
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6226 rm -f conftest.err conftest.$ac_objext \
6227 conftest$ac_exeext conftest.$ac_ext
6228 if test "$ac_cv_search_opendir" = no; then
6230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6231 cat >conftest.$ac_ext <<_ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6238 /* Override any gcc2 internal prototype to avoid an error. */
6242 /* We use char because int might match the return type of a gcc2
6243 builtin and then its argument prototype would still apply. */
6253 rm -f conftest.$ac_objext conftest$ac_exeext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6255 (eval $ac_link) 2>conftest.er1
6257 grep -v '^ *+' conftest.er1 >conftest.err
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } &&
6262 { ac_try='test -z "$ac_c_werror_flag"
6263 || test ! -s conftest.err'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; } &&
6269 { ac_try='test -s conftest$ac_exeext'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 ac_cv_search_opendir="-l$ac_lib"
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6282 rm -f conftest.err conftest.$ac_objext \
6283 conftest$ac_exeext conftest.$ac_ext
6286 LIBS=$ac_func_search_save_LIBS
6288 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6289 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6290 if test "$ac_cv_search_opendir" != no; then
6291 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6308 inttypes.h stdint.h unistd.h
6310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6311 echo "$as_me:$LINENO: checking for $ac_header" >&5
6312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 cat >conftest.$ac_ext <<_ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6322 $ac_includes_default
6324 #include <$ac_header>
6326 rm -f conftest.$ac_objext
6327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6328 (eval $ac_compile) 2>conftest.er1
6330 grep -v '^ *+' conftest.er1 >conftest.err
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } &&
6335 { ac_try='test -z "$ac_c_werror_flag"
6336 || test ! -s conftest.err'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; } &&
6342 { ac_try='test -s conftest.$ac_objext'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; }; then
6348 eval "$as_ac_Header=yes"
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6353 eval "$as_ac_Header=no"
6355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6360 cat >>confdefs.h <<_ACEOF
6361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6370 for ac_header in dlfcn.h
6372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6374 echo "$as_me:$LINENO: checking for $ac_header" >&5
6375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6382 # Is the header compilable?
6383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6385 cat >conftest.$ac_ext <<_ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6391 $ac_includes_default
6392 #include <$ac_header>
6394 rm -f conftest.$ac_objext
6395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6396 (eval $ac_compile) 2>conftest.er1
6398 grep -v '^ *+' conftest.er1 >conftest.err
6400 cat conftest.err >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try='test -z "$ac_c_werror_flag"
6404 || test ! -s conftest.err'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; } &&
6410 { ac_try='test -s conftest.$ac_objext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 ac_header_compiler=yes
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6421 ac_header_compiler=no
6423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6425 echo "${ECHO_T}$ac_header_compiler" >&6
6427 # Is the header present?
6428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6430 cat >conftest.$ac_ext <<_ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 #include <$ac_header>
6438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6441 grep -v '^ *+' conftest.er1 >conftest.err
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } >/dev/null; then
6446 if test -s conftest.err; then
6447 ac_cpp_err=$ac_c_preproc_warn_flag
6448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6455 if test -z "$ac_cpp_err"; then
6456 ac_header_preproc=yes
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6461 ac_header_preproc=no
6463 rm -f conftest.err conftest.$ac_ext
6464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6465 echo "${ECHO_T}$ac_header_preproc" >&6
6467 # So? What about this header?
6468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6474 ac_header_preproc=yes
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6491 ## ----------------------------------- ##
6492 ## Report this to llvmbugs@cs.uiuc.edu ##
6493 ## ----------------------------------- ##
6496 sed "s/^/$as_me: WARNING: /" >&2
6499 echo "$as_me:$LINENO: checking for $ac_header" >&5
6500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 eval "$as_ac_Header=\$ac_header_preproc"
6506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6511 cat >>confdefs.h <<_ACEOF
6512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6519 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6520 if test "${enable_ltdl_install+set}" = set; then
6521 enableval="$enable_ltdl_install"
6527 if test x"${enable_ltdl_install-no}" != xno; then
6529 INSTALL_LTDL_FALSE='#'
6531 INSTALL_LTDL_TRUE='#'
6537 if test x"${enable_ltdl_convenience-no}" != xno; then
6538 CONVENIENCE_LTDL_TRUE=
6539 CONVENIENCE_LTDL_FALSE='#'
6541 CONVENIENCE_LTDL_TRUE='#'
6542 CONVENIENCE_LTDL_FALSE=
6546 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6547 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6549 libname_spec='lib$name'
6557 shlibpath_overrides_runpath=unknown
6559 dynamic_linker="$host_os ld.so"
6560 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6561 if test "$GCC" = yes; then
6562 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6563 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6564 # if the path contains ";" then we assume it to be the separator
6565 # otherwise default to the standard path separator (i.e. ":") - it is
6566 # assumed that no part of a normal pathname contains ";" but that should
6567 # okay in the real world where ";" in dirpaths is itself problematic.
6568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6573 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6575 need_lib_prefix=unknown
6576 hardcode_into_libs=no
6578 # when you set need_version to no, make sure it does not cause -set_version
6579 # flags to be left without arguments
6580 need_version=unknown
6585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6586 shlibpath_var=LIBPATH
6588 # AIX 3 has no versioning support, so we append a major version to the name.
6589 soname_spec='${libname}${release}${shared_ext}$major'
6596 hardcode_into_libs=yes
6597 if test "$host_cpu" = ia64; then
6598 # AIX 5 supports IA64
6599 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6600 shlibpath_var=LD_LIBRARY_PATH
6602 # With GCC up to 2.95.x, collect2 would create an import file
6603 # for dependence libraries. The import file would start with
6604 # the line `#! .'. This would cause the generated library to
6605 # depend on `.', always an invalid library. This was fixed in
6606 # development snapshots of GCC prior to 3.0.
6608 aix4 | aix4.[01] | aix4.[01].*)
6609 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6611 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6618 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6619 # soname into executable. Probably we can add versioning support to
6620 # collect2, so additional links can be useful in future.
6621 if test "$aix_use_runtimelinking" = yes; then
6622 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6623 # instead of lib<name>.a to let people know that these are not
6624 # typical AIX shared libraries.
6625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6627 # We preserve .a as extension for shared libraries through AIX4.2
6628 # and later when we are not doing run time linking.
6629 library_names_spec='${libname}${release}.a $libname.a'
6630 soname_spec='${libname}${release}${shared_ext}$major'
6632 shlibpath_var=LIBPATH
6637 library_names_spec='$libname.ixlibrary $libname.a'
6638 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6639 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'
6643 library_names_spec='${libname}${shared_ext}'
6644 dynamic_linker="$host_os ld.so"
6645 shlibpath_var=LIBRARY_PATH
6651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6652 soname_spec='${libname}${release}${shared_ext}$major'
6653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6654 shlibpath_var=LD_LIBRARY_PATH
6655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6657 # the default ld.so.conf also contains /usr/contrib/lib and
6658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6659 # libtool to hard-code these into programs
6662 cygwin* | mingw* | pw32*)
6663 version_type=windows
6668 case $GCC,$host_os in
6669 yes,cygwin* | yes,mingw* | yes,pw32*)
6670 library_names_spec='$libname.dll.a'
6671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6672 postinstall_cmds='base_file=`basename \${file}`~
6673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6674 dldir=$destdir/`dirname \$dlpath`~
6675 test -d \$dldir || mkdir -p \$dldir~
6676 $install_prog $dir/$dlname \$dldir/$dlname'
6677 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6678 dlpath=$dir/\$dldll~
6680 shlibpath_overrides_runpath=yes
6684 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6685 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6686 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6689 # MinGW DLLs use traditional 'lib' prefix
6690 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6691 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6692 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6693 # It is most probably a Windows format PATH printed by
6694 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6695 # path with ; separators, and with drive letters. We can handle the
6696 # drive letters (cygwin fileutils understands them), so leave them,
6697 # especially as we might pass files found there to a mingw objdump,
6698 # which wouldn't understand a cygwinified path. Ahh.
6699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6705 # pw32 DLLs use 'pw' prefix rather than 'lib'
6706 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6712 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6715 dynamic_linker='Win32 ld.exe'
6716 # FIXME: first we should search . and the directory the executable is in
6720 darwin* | rhapsody*)
6721 dynamic_linker="$host_os dyld"
6725 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6726 soname_spec='${libname}${release}${major}$shared_ext'
6727 shlibpath_overrides_runpath=yes
6728 shlibpath_var=DYLD_LIBRARY_PATH
6729 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6730 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6731 if test "$GCC" = yes; then
6732 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"`
6734 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6736 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6744 soname_spec='${libname}${release}${shared_ext}$major'
6745 shlibpath_var=LD_LIBRARY_PATH
6756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6757 soname_spec='${libname}${release}${shared_ext}$major'
6758 shlibpath_var=LD_LIBRARY_PATH
6759 shlibpath_overrides_runpath=no
6760 hardcode_into_libs=yes
6761 dynamic_linker='GNU ld.so'
6765 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6766 version_type=freebsd-$objformat
6767 case $version_type in
6769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6778 shlibpath_var=LD_LIBRARY_PATH
6781 shlibpath_overrides_runpath=yes
6783 freebsd3.01* | freebsdelf3.01*)
6784 shlibpath_overrides_runpath=yes
6785 hardcode_into_libs=yes
6788 shlibpath_overrides_runpath=no
6789 hardcode_into_libs=yes
6798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6799 soname_spec='${libname}${release}${shared_ext}$major'
6800 shlibpath_var=LD_LIBRARY_PATH
6801 hardcode_into_libs=yes
6804 hpux9* | hpux10* | hpux11*)
6805 # Give a soname corresponding to the major version so that dld.sl refuses to
6806 # link against other versions.
6813 hardcode_into_libs=yes
6814 dynamic_linker="$host_os dld.so"
6815 shlibpath_var=LD_LIBRARY_PATH
6816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6818 soname_spec='${libname}${release}${shared_ext}$major'
6819 if test "X$HPUX_IA64_MODE" = X32; then
6820 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6822 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6828 hardcode_into_libs=yes
6829 dynamic_linker="$host_os dld.sl"
6830 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6833 soname_spec='${libname}${release}${shared_ext}$major'
6834 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6839 dynamic_linker="$host_os dld.sl"
6840 shlibpath_var=SHLIB_PATH
6841 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
6846 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6847 postinstall_cmds='chmod 555 $lib'
6850 irix5* | irix6* | nonstopux*)
6852 nonstopux*) version_type=nonstopux ;;
6854 if test "$lt_cv_prog_gnu_ld" = yes; then
6862 soname_spec='${libname}${release}${shared_ext}$major'
6863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6865 irix5* | nonstopux*)
6869 case $LD in # libtool.m4 will add one of these switches to LD
6870 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6871 libsuff= shlibsuff= libmagic=32-bit;;
6872 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6873 libsuff=32 shlibsuff=N32 libmagic=N32;;
6874 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6875 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6876 *) libsuff= shlibsuff= libmagic=never-match;;
6880 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6881 shlibpath_overrides_runpath=no
6882 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6883 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6884 hardcode_into_libs=yes
6887 # No shared lib support for Linux oldld, aout, or coff.
6888 linux*oldld* | linux*aout* | linux*coff*)
6892 # This must be Linux ELF.
6897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6898 soname_spec='${libname}${release}${shared_ext}$major'
6899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6900 shlibpath_var=LD_LIBRARY_PATH
6901 shlibpath_overrides_runpath=no
6902 # This implies no fast_install, which is unacceptable.
6903 # Some rework will be needed to allow for fast_install
6904 # before this can be enabled.
6905 hardcode_into_libs=yes
6907 # Append ld.so.conf contents to the search path
6908 if test -f /etc/ld.so.conf; then
6909 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6913 # We used to test for /lib/ld.so.1 and disable shared libraries on
6914 # powerpc, because MkLinux only supported shared libraries with the
6915 # GNU dynamic linker. Since this was broken with cross compilers,
6916 # most powerpc-linux boxes support dynamic linking these days and
6917 # people can always --disable-shared, the test was removed, and we
6918 # assume the GNU/Linux dynamic linker is in use.
6919 dynamic_linker='GNU/Linux ld.so'
6926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6927 soname_spec='${libname}${release}${shared_ext}$major'
6928 shlibpath_var=LD_LIBRARY_PATH
6929 shlibpath_overrides_runpath=no
6930 hardcode_into_libs=yes
6931 dynamic_linker='GNU ld.so'
6938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6941 dynamic_linker='NetBSD (a.out) ld.so'
6943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6944 soname_spec='${libname}${release}${shared_ext}$major'
6945 dynamic_linker='NetBSD ld.elf_so'
6947 shlibpath_var=LD_LIBRARY_PATH
6948 shlibpath_overrides_runpath=yes
6949 hardcode_into_libs=yes
6954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6955 shlibpath_var=LD_LIBRARY_PATH
6956 shlibpath_overrides_runpath=yes
6963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6964 soname_spec='${libname}${release}${shared_ext}$major'
6965 shlibpath_var=LD_LIBRARY_PATH
6966 shlibpath_overrides_runpath=yes
6973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6975 shlibpath_var=LD_LIBRARY_PATH
6976 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6978 openbsd2.[89] | openbsd2.[89].*)
6979 shlibpath_overrides_runpath=no
6982 shlibpath_overrides_runpath=yes
6986 shlibpath_overrides_runpath=yes
6991 libname_spec='$name'
6994 library_names_spec='$libname${shared_ext} $libname.a'
6995 dynamic_linker='OS/2 ld.exe'
6996 shlibpath_var=LIBPATH
6999 osf3* | osf4* | osf5*)
7003 soname_spec='${libname}${release}${shared_ext}$major'
7004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7005 shlibpath_var=LD_LIBRARY_PATH
7006 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7007 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7012 soname_spec='${libname}${release}${shared_ext}$major'
7013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7014 shlibpath_var=LD_LIBRARY_PATH
7021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7022 soname_spec='${libname}${release}${shared_ext}$major'
7023 shlibpath_var=LD_LIBRARY_PATH
7024 shlibpath_overrides_runpath=yes
7025 hardcode_into_libs=yes
7026 # ldd complains unless libraries are executable
7027 postinstall_cmds='chmod +x $lib'
7032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7033 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7034 shlibpath_var=LD_LIBRARY_PATH
7035 shlibpath_overrides_runpath=yes
7036 if test "$with_gnu_ld" = yes; then
7042 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7045 soname_spec='${libname}${release}${shared_ext}$major'
7046 shlibpath_var=LD_LIBRARY_PATH
7047 case $host_vendor in
7049 shlibpath_overrides_runpath=no
7051 export_dynamic_flag_spec='${wl}-Blargedynsym'
7052 runpath_var=LD_RUN_PATH
7060 shlibpath_overrides_runpath=no
7061 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7067 if test -d /usr/nec ;then
7069 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7070 soname_spec='$libname${shared_ext}.$major'
7071 shlibpath_var=LD_LIBRARY_PATH
7077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7078 soname_spec='${libname}${release}${shared_ext}$major'
7079 shlibpath_var=LD_LIBRARY_PATH
7086 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7087 echo "${ECHO_T}$dynamic_linker" >&6
7088 test "$dynamic_linker" = no && can_build_shared=no
7091 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7092 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7093 if test "${libltdl_cv_shlibext+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 eval libltdl_cv_shlibext=$shrext_cmds
7101 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7102 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7103 if test -n "$libltdl_cv_shlibext"; then
7105 cat >>confdefs.h <<_ACEOF
7106 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7112 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7113 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7114 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 libltdl_cv_shlibpath_var="$shlibpath_var"
7119 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7120 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7121 if test -n "$libltdl_cv_shlibpath_var"; then
7123 cat >>confdefs.h <<_ACEOF
7124 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7130 echo "$as_me:$LINENO: checking for the default library search path" >&5
7131 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7132 if test "${libltdl_cv_sys_search_path+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7137 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7138 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7139 if test -n "$libltdl_cv_sys_search_path"; then
7141 for dir in $libltdl_cv_sys_search_path; do
7142 if test -z "$sys_search_path"; then
7143 sys_search_path="$dir"
7145 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7149 cat >>confdefs.h <<_ACEOF
7150 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7155 echo "$as_me:$LINENO: checking for objdir" >&5
7156 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7157 if test "${libltdl_cv_objdir+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 libltdl_cv_objdir="$objdir"
7161 if test -n "$objdir"; then
7164 rm -f .libs 2>/dev/null
7165 mkdir .libs 2>/dev/null
7166 if test -d .libs; then
7167 libltdl_cv_objdir=.libs
7169 # MS-DOS does not allow filenames that begin with a dot.
7170 libltdl_cv_objdir=_libs
7172 rmdir .libs 2>/dev/null
7176 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7177 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7179 cat >>confdefs.h <<_ACEOF
7180 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7184 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7185 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7186 if test "${lt_cv_path_NM+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 if test -n "$NM"; then
7190 # Let the user override the test.
7193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7194 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7196 test -z "$ac_dir" && ac_dir=.
7197 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7198 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7199 # Check to see if the nm accepts a BSD-compat flag.
7200 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7201 # nm: unknown option "B" ignored
7202 # Tru64's nm complains that /dev/null is an invalid object file
7203 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7204 */dev/null* | *'Invalid file or object type'*)
7205 lt_cv_path_NM="$tmp_nm -B"
7209 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7211 lt_cv_path_NM="$tmp_nm -p"
7215 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7216 continue # so that we can try to find one that supports BSD flags
7223 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7226 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7227 echo "${ECHO_T}$lt_cv_path_NM" >&6
7234 # Check for command to grab the raw symbol name followed by C symbol from nm.
7235 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7236 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7237 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 # These are sane defaults that work on at least a few old systems.
7242 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7244 # Character class describing NM global symbol codes.
7245 symcode='[BCDEGRST]'
7247 # Regexp to match symbols that can be accessed directly from C.
7248 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7250 # Transform the above into a raw symbol and a C symbol.
7251 symxfrm='\1 \2\3 \3'
7253 # Transform an extracted symbol line into a proper C declaration
7254 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7256 # Transform an extracted symbol line into symbol name and symbol address
7257 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'"
7259 # Define system-specific variables.
7264 cygwin* | mingw* | pw32*)
7265 symcode='[ABCDGISTW]'
7267 hpux*) # Its linker distinguishes data from code symbols
7268 if test "$host_cpu" = ia64; then
7269 symcode='[ABCDEGRST]'
7271 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7272 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'"
7275 if test "$host_cpu" = ia64; then
7276 symcode='[ABCDGIRSTW]'
7277 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7278 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'"
7282 symcode='[BCDEGRST]'
7285 symcode='[BCDEGQRST]'
7295 # Handle CRLF in mingw tool chain
7299 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7303 # If we're using GNU nm, then use its standard symbol codes.
7304 case `$NM -V 2>&1` in
7305 *GNU* | *'with BFD'*)
7306 symcode='[ABCDGIRSTW]' ;;
7309 # Try without a prefix undercore, then with it.
7310 for ac_symprfx in "" "_"; do
7312 # Write the raw and C identifiers.
7313 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7315 # Check to see that the pipe works correctly.
7319 cat > conftest.$ac_ext <<EOF
7324 void nm_test_func(){}
7328 int main(){nm_test_var='a';nm_test_func();return(0);}
7331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7332 (eval $ac_compile) 2>&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); }; then
7336 # Now try to grab the symbols.
7338 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7339 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } && test -s "$nlist"; then
7343 # Try sorting and uniquifying the output.
7344 if sort "$nlist" | uniq > "$nlist"T; then
7345 mv -f "$nlist"T "$nlist"
7350 # Make sure that we snagged all the symbols we need.
7351 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7352 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7353 cat <<EOF > conftest.$ac_ext
7359 # Now generate the symbol file.
7360 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7362 cat <<EOF >> conftest.$ac_ext
7363 #if defined (__STDC__) && __STDC__
7364 # define lt_ptr_t void *
7366 # define lt_ptr_t char *
7370 /* The mapping between symbol names and symbols. */
7375 lt_preloaded_symbols[] =
7378 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7379 cat <<\EOF >> conftest.$ac_ext
7387 # Now try linking the two files.
7388 mv conftest.$ac_objext conftstm.$ac_objext
7389 lt_save_LIBS="$LIBS"
7390 lt_save_CFLAGS="$CFLAGS"
7391 LIBS="conftstm.$ac_objext"
7392 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7394 (eval $ac_link) 2>&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7400 LIBS="$lt_save_LIBS"
7401 CFLAGS="$lt_save_CFLAGS"
7403 echo "cannot find nm_test_func in $nlist" >&5
7406 echo "cannot find nm_test_var in $nlist" >&5
7409 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7412 echo "$progname: failed program was:" >&5
7413 cat conftest.$ac_ext >&5
7415 rm -f conftest* conftst*
7417 # Do not use the global_symbol_pipe unless it works.
7418 if test "$pipe_works" = yes; then
7421 lt_cv_sys_global_symbol_pipe=
7427 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7428 lt_cv_sys_global_symbol_to_cdecl=
7430 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7431 echo "$as_me:$LINENO: result: failed" >&5
7432 echo "${ECHO_T}failed" >&6
7434 echo "$as_me:$LINENO: result: ok" >&5
7435 echo "${ECHO_T}ok" >&6
7439 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7440 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7441 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7445 libltdl_cv_preloaded_symbols=yes
7447 libltdl_cv_preloaded_symbols=no
7451 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7452 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7453 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7455 cat >>confdefs.h <<\_ACEOF
7456 #define HAVE_PRELOADED_SYMBOLS 1
7464 ac_cpp='$CPP $CPPFLAGS'
7465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7470 echo "$as_me:$LINENO: checking for shl_load" >&5
7471 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7472 if test "${ac_cv_func_shl_load+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 cat >conftest.$ac_ext <<_ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7481 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7483 #define shl_load innocuous_shl_load
7485 /* System header to define __stub macros and hopefully few prototypes,
7486 which can conflict with char shl_load (); below.
7487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7488 <limits.h> exists even on freestanding compilers. */
7491 # include <limits.h>
7493 # include <assert.h>
7498 /* Override any gcc2 internal prototype to avoid an error. */
7503 /* We use char because int might match the return type of a gcc2
7504 builtin and then its argument prototype would still apply. */
7506 /* The GNU C library defines this for functions which it implements
7507 to always fail with ENOSYS. Some functions are actually named
7508 something starting with __ and the normal name is an alias. */
7509 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7512 char (*f) () = shl_load;
7521 return f != shl_load;
7526 rm -f conftest.$ac_objext conftest$ac_exeext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7528 (eval $ac_link) 2>conftest.er1
7530 grep -v '^ *+' conftest.er1 >conftest.err
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } &&
7535 { ac_try='test -z "$ac_c_werror_flag"
7536 || test ! -s conftest.err'
7537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); }; } &&
7542 { ac_try='test -s conftest$ac_exeext'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
7548 ac_cv_func_shl_load=yes
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7553 ac_cv_func_shl_load=no
7555 rm -f conftest.err conftest.$ac_objext \
7556 conftest$ac_exeext conftest.$ac_ext
7558 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7559 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7560 if test $ac_cv_func_shl_load = yes; then
7562 cat >>confdefs.h <<\_ACEOF
7563 #define HAVE_SHL_LOAD 1
7567 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7568 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7569 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 ac_check_lib_save_LIBS=$LIBS
7574 cat >conftest.$ac_ext <<_ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7581 /* Override any gcc2 internal prototype to avoid an error. */
7585 /* We use char because int might match the return type of a gcc2
7586 builtin and then its argument prototype would still apply. */
7596 rm -f conftest.$ac_objext conftest$ac_exeext
7597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7598 (eval $ac_link) 2>conftest.er1
7600 grep -v '^ *+' conftest.er1 >conftest.err
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } &&
7605 { ac_try='test -z "$ac_c_werror_flag"
7606 || test ! -s conftest.err'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; } &&
7612 { ac_try='test -s conftest$ac_exeext'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618 ac_cv_lib_dld_shl_load=yes
7620 echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7623 ac_cv_lib_dld_shl_load=no
7625 rm -f conftest.err conftest.$ac_objext \
7626 conftest$ac_exeext conftest.$ac_ext
7627 LIBS=$ac_check_lib_save_LIBS
7629 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7630 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7631 if test $ac_cv_lib_dld_shl_load = yes; then
7633 cat >>confdefs.h <<\_ACEOF
7634 #define HAVE_SHL_LOAD 1
7637 LIBADD_DL="$LIBADD_DL -ldld"
7639 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7640 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7641 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 ac_check_lib_save_LIBS=$LIBS
7646 cat >conftest.$ac_ext <<_ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7653 /* Override any gcc2 internal prototype to avoid an error. */
7657 /* We use char because int might match the return type of a gcc2
7658 builtin and then its argument prototype would still apply. */
7668 rm -f conftest.$ac_objext conftest$ac_exeext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7670 (eval $ac_link) 2>conftest.er1
7672 grep -v '^ *+' conftest.er1 >conftest.err
7674 cat conftest.err >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } &&
7677 { ac_try='test -z "$ac_c_werror_flag"
7678 || test ! -s conftest.err'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; } &&
7684 { ac_try='test -s conftest$ac_exeext'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; }; then
7690 ac_cv_lib_dl_dlopen=yes
7692 echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7695 ac_cv_lib_dl_dlopen=no
7697 rm -f conftest.err conftest.$ac_objext \
7698 conftest$ac_exeext conftest.$ac_ext
7699 LIBS=$ac_check_lib_save_LIBS
7701 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7702 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7703 if test $ac_cv_lib_dl_dlopen = yes; then
7705 cat >>confdefs.h <<\_ACEOF
7706 #define HAVE_LIBDL 1
7709 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7711 cat >conftest.$ac_ext <<_ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h. */
7729 rm -f conftest.$ac_objext conftest$ac_exeext
7730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7731 (eval $ac_link) 2>conftest.er1
7733 grep -v '^ *+' conftest.er1 >conftest.err
7735 cat conftest.err >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try='test -z "$ac_c_werror_flag"
7739 || test ! -s conftest.err'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; } &&
7745 { ac_try='test -s conftest$ac_exeext'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; }; then
7752 cat >>confdefs.h <<\_ACEOF
7753 #define HAVE_LIBDL 1
7755 libltdl_cv_func_dlopen="yes"
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7760 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7761 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7762 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7765 ac_check_lib_save_LIBS=$LIBS
7767 cat >conftest.$ac_ext <<_ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h. */
7774 /* Override any gcc2 internal prototype to avoid an error. */
7778 /* We use char because int might match the return type of a gcc2
7779 builtin and then its argument prototype would still apply. */
7789 rm -f conftest.$ac_objext conftest$ac_exeext
7790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7791 (eval $ac_link) 2>conftest.er1
7793 grep -v '^ *+' conftest.er1 >conftest.err
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } &&
7798 { ac_try='test -z "$ac_c_werror_flag"
7799 || test ! -s conftest.err'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; } &&
7805 { ac_try='test -s conftest$ac_exeext'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; }; then
7811 ac_cv_lib_svld_dlopen=yes
7813 echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7816 ac_cv_lib_svld_dlopen=no
7818 rm -f conftest.err conftest.$ac_objext \
7819 conftest$ac_exeext conftest.$ac_ext
7820 LIBS=$ac_check_lib_save_LIBS
7822 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7823 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7824 if test $ac_cv_lib_svld_dlopen = yes; then
7826 cat >>confdefs.h <<\_ACEOF
7827 #define HAVE_LIBDL 1
7830 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7832 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7833 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7834 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 ac_check_lib_save_LIBS=$LIBS
7839 cat >conftest.$ac_ext <<_ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7846 /* Override any gcc2 internal prototype to avoid an error. */
7850 /* We use char because int might match the return type of a gcc2
7851 builtin and then its argument prototype would still apply. */
7861 rm -f conftest.$ac_objext conftest$ac_exeext
7862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7863 (eval $ac_link) 2>conftest.er1
7865 grep -v '^ *+' conftest.er1 >conftest.err
7867 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } &&
7870 { ac_try='test -z "$ac_c_werror_flag"
7871 || test ! -s conftest.err'
7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; } &&
7877 { ac_try='test -s conftest$ac_exeext'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; }; then
7883 ac_cv_lib_dld_dld_link=yes
7885 echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.$ac_ext >&5
7888 ac_cv_lib_dld_dld_link=no
7890 rm -f conftest.err conftest.$ac_objext \
7891 conftest$ac_exeext conftest.$ac_ext
7892 LIBS=$ac_check_lib_save_LIBS
7894 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7895 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7896 if test $ac_cv_lib_dld_dld_link = yes; then
7898 cat >>confdefs.h <<\_ACEOF
7902 LIBADD_DL="$LIBADD_DL -ldld"
7904 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7905 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7906 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 cat >conftest.$ac_ext <<_ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7915 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7917 #define _dyld_func_lookup innocuous__dyld_func_lookup
7919 /* System header to define __stub macros and hopefully few prototypes,
7920 which can conflict with char _dyld_func_lookup (); below.
7921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7922 <limits.h> exists even on freestanding compilers. */
7925 # include <limits.h>
7927 # include <assert.h>
7930 #undef _dyld_func_lookup
7932 /* Override any gcc2 internal prototype to avoid an error. */
7937 /* We use char because int might match the return type of a gcc2
7938 builtin and then its argument prototype would still apply. */
7939 char _dyld_func_lookup ();
7940 /* The GNU C library defines this for functions which it implements
7941 to always fail with ENOSYS. Some functions are actually named
7942 something starting with __ and the normal name is an alias. */
7943 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7946 char (*f) () = _dyld_func_lookup;
7955 return f != _dyld_func_lookup;
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962 (eval $ac_link) 2>conftest.er1
7964 grep -v '^ *+' conftest.er1 >conftest.err
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
7969 { ac_try='test -z "$ac_c_werror_flag"
7970 || test ! -s conftest.err'
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; } &&
7976 { ac_try='test -s conftest$ac_exeext'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 ac_cv_func__dyld_func_lookup=yes
7984 echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7987 ac_cv_func__dyld_func_lookup=no
7989 rm -f conftest.err conftest.$ac_objext \
7990 conftest$ac_exeext conftest.$ac_ext
7992 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7993 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7994 if test $ac_cv_func__dyld_func_lookup = yes; then
7996 cat >>confdefs.h <<\_ACEOF
8010 rm -f conftest.err conftest.$ac_objext \
8011 conftest$ac_exeext conftest.$ac_ext
8022 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8024 lt_save_LIBS="$LIBS"
8025 LIBS="$LIBS $LIBADD_DL"
8027 for ac_func in dlerror
8029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8030 echo "$as_me:$LINENO: checking for $ac_func" >&5
8031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8032 if eval "test \"\${$as_ac_var+set}\" = set"; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 cat >conftest.$ac_ext <<_ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8043 #define $ac_func innocuous_$ac_func
8045 /* System header to define __stub macros and hopefully few prototypes,
8046 which can conflict with char $ac_func (); below.
8047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8048 <limits.h> exists even on freestanding compilers. */
8051 # include <limits.h>
8053 # include <assert.h>
8058 /* Override any gcc2 internal prototype to avoid an error. */
8063 /* We use char because int might match the return type of a gcc2
8064 builtin and then its argument prototype would still apply. */
8066 /* The GNU C library defines this for functions which it implements
8067 to always fail with ENOSYS. Some functions are actually named
8068 something starting with __ and the normal name is an alias. */
8069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8072 char (*f) () = $ac_func;
8081 return f != $ac_func;
8086 rm -f conftest.$ac_objext conftest$ac_exeext
8087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8088 (eval $ac_link) 2>conftest.er1
8090 grep -v '^ *+' conftest.er1 >conftest.err
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try='test -z "$ac_c_werror_flag"
8096 || test ! -s conftest.err'
8097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; } &&
8102 { ac_try='test -s conftest$ac_exeext'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; }; then
8108 eval "$as_ac_var=yes"
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8113 eval "$as_ac_var=no"
8115 rm -f conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext conftest.$ac_ext
8118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8120 if test `eval echo '${'$as_ac_var'}'` = yes; then
8121 cat >>confdefs.h <<_ACEOF
8122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8128 LIBS="$lt_save_LIBS"
8131 ac_cpp='$CPP $CPPFLAGS'
8132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8138 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8139 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8140 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 ac_cv_sys_symbol_underscore=no
8144 cat > conftest.$ac_ext <<EOF
8145 void nm_test_func(){}
8146 int main(){nm_test_func;return 0;}
8148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8149 (eval $ac_compile) 2>&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; then
8153 # Now try to grab the symbols.
8154 ac_nlist=conftest.nm
8155 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8156 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } && test -s "$ac_nlist"; then
8160 # See whether the symbols have a leading underscore.
8161 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8162 ac_cv_sys_symbol_underscore=yes
8164 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8167 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8171 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8174 echo "configure: failed program was:" >&5
8180 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8181 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8184 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8185 if test x"$libltdl_cv_func_dlopen" = xyes ||
8186 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8187 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8188 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8189 if test "${libltdl_cv_need_uscore+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 libltdl_cv_need_uscore=unknown
8194 LIBS="$LIBS $LIBADD_DL"
8195 if test "$cross_compiling" = yes; then :
8196 libltdl_cv_need_uscore=cross
8198 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8199 lt_status=$lt_dlunknown
8200 cat > conftest.$ac_ext <<EOF
8201 #line 8201 "configure"
8202 #include "confdefs.h"
8211 # define LT_DLGLOBAL RTLD_GLOBAL
8214 # define LT_DLGLOBAL DL_GLOBAL
8216 # define LT_DLGLOBAL 0
8220 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8221 find out it does not work in some platform. */
8222 #ifndef LT_DLLAZY_OR_NOW
8224 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8227 # define LT_DLLAZY_OR_NOW DL_LAZY
8230 # define LT_DLLAZY_OR_NOW RTLD_NOW
8233 # define LT_DLLAZY_OR_NOW DL_NOW
8235 # define LT_DLLAZY_OR_NOW 0
8243 extern "C" void exit (int);
8246 void fnord() { int i=42;}
8249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8250 int status = $lt_dlunknown;
8254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8255 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8256 /* dlclose (self); */
8262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8263 (eval $ac_link) 2>&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8267 (./conftest; exit; ) 2>/dev/null
8270 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8271 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8275 # compilation failed
8284 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8285 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8289 if test x"$libltdl_cv_need_uscore" = xyes; then
8291 cat >>confdefs.h <<\_ACEOF
8292 #define NEED_USCORE 1
8298 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8299 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8300 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8303 # PORTME does your system automatically load deplibs for dlopen?
8304 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8305 # For now, we just catch OSes we know something about -- in the
8306 # future, we'll try test this programmatically.
8307 libltdl_cv_sys_dlopen_deplibs=unknown
8309 aix3*|aix4.1.*|aix4.2.*)
8310 # Unknown whether this is true for these versions of AIX, but
8311 # we want this `case' here to explicitly catch those versions.
8312 libltdl_cv_sys_dlopen_deplibs=unknown
8315 libltdl_cv_sys_dlopen_deplibs=yes
8318 # Assuming the user has installed a libdl from somewhere, this is true
8319 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8320 libltdl_cv_sys_dlopen_deplibs=yes
8322 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8323 # GNU and its variants, using gnu ld.so (Glibc)
8324 libltdl_cv_sys_dlopen_deplibs=yes
8327 libltdl_cv_sys_dlopen_deplibs=yes
8329 irix[12345]*|irix6.[01]*)
8330 # Catch all versions of IRIX before 6.2, and indicate that we don't
8331 # know how it worked for any of those versions.
8332 libltdl_cv_sys_dlopen_deplibs=unknown
8335 # The case above catches anything before 6.2, and it's known that
8336 # at 6.2 and later dlopen does load deplibs.
8337 libltdl_cv_sys_dlopen_deplibs=yes
8340 libltdl_cv_sys_dlopen_deplibs=yes
8343 libltdl_cv_sys_dlopen_deplibs=yes
8346 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8347 # it did *not* use an RPATH in a shared library to find objects the
8348 # library depends on, so we explictly say `no'.
8349 libltdl_cv_sys_dlopen_deplibs=no
8351 osf5.0|osf5.0a|osf5.1)
8352 # dlopen *does* load deplibs and with the right loader patch applied
8353 # it even uses RPATH in a shared library to search for shared objects
8354 # that the library depends on, but there's no easy way to know if that
8355 # patch is installed. Since this is the case, all we can really
8356 # say is unknown -- it depends on the patch being installed. If
8357 # it is, this changes to `yes'. Without it, it would be `no'.
8358 libltdl_cv_sys_dlopen_deplibs=unknown
8361 # the two cases above should catch all versions of osf <= 5.1. Read
8362 # the comments above for what we know about them.
8363 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8364 # is used to find them so we can finally say `yes'.
8365 libltdl_cv_sys_dlopen_deplibs=yes
8368 libltdl_cv_sys_dlopen_deplibs=yes
8373 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8374 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8375 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8377 cat >>confdefs.h <<\_ACEOF
8378 #define LTDL_DLOPEN_DEPLIBS 1
8384 for ac_header in argz.h
8386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8388 echo "$as_me:$LINENO: checking for $ac_header" >&5
8389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8396 # Is the header compilable?
8397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8399 cat >conftest.$ac_ext <<_ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 $ac_includes_default
8406 #include <$ac_header>
8408 rm -f conftest.$ac_objext
8409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8410 (eval $ac_compile) 2>conftest.er1
8412 grep -v '^ *+' conftest.er1 >conftest.err
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -z "$ac_c_werror_flag"
8418 || test ! -s conftest.err'
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest.$ac_objext'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; }; then
8430 ac_header_compiler=yes
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435 ac_header_compiler=no
8437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8439 echo "${ECHO_T}$ac_header_compiler" >&6
8441 # Is the header present?
8442 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8444 cat >conftest.$ac_ext <<_ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8450 #include <$ac_header>
8452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8455 grep -v '^ *+' conftest.er1 >conftest.err
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } >/dev/null; then
8460 if test -s conftest.err; then
8461 ac_cpp_err=$ac_c_preproc_warn_flag
8462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8469 if test -z "$ac_cpp_err"; then
8470 ac_header_preproc=yes
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8475 ac_header_preproc=no
8477 rm -f conftest.err conftest.$ac_ext
8478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8479 echo "${ECHO_T}$ac_header_preproc" >&6
8481 # So? What about this header?
8482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8488 ac_header_preproc=yes
8491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8505 ## ----------------------------------- ##
8506 ## Report this to llvmbugs@cs.uiuc.edu ##
8507 ## ----------------------------------- ##
8510 sed "s/^/$as_me: WARNING: /" >&2
8513 echo "$as_me:$LINENO: checking for $ac_header" >&5
8514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8518 eval "$as_ac_Header=\$ac_header_preproc"
8520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8525 cat >>confdefs.h <<_ACEOF
8526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8534 echo "$as_me:$LINENO: checking for error_t" >&5
8535 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8536 if test "${ac_cv_type_error_t+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 cat >conftest.$ac_ext <<_ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8554 if (sizeof (error_t))
8560 rm -f conftest.$ac_objext
8561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8562 (eval $ac_compile) 2>conftest.er1
8564 grep -v '^ *+' conftest.er1 >conftest.err
8566 cat conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } &&
8569 { ac_try='test -z "$ac_c_werror_flag"
8570 || test ! -s conftest.err'
8571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }; } &&
8576 { ac_try='test -s conftest.$ac_objext'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; }; then
8582 ac_cv_type_error_t=yes
8584 echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8587 ac_cv_type_error_t=no
8589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8591 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8592 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8593 if test $ac_cv_type_error_t = yes; then
8595 cat >>confdefs.h <<_ACEOF
8596 #define HAVE_ERROR_T 1
8602 cat >>confdefs.h <<\_ACEOF
8614 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8617 echo "$as_me:$LINENO: checking for $ac_func" >&5
8618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8619 if eval "test \"\${$as_ac_var+set}\" = set"; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 cat >conftest.$ac_ext <<_ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8630 #define $ac_func innocuous_$ac_func
8632 /* System header to define __stub macros and hopefully few prototypes,
8633 which can conflict with char $ac_func (); below.
8634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8635 <limits.h> exists even on freestanding compilers. */
8638 # include <limits.h>
8640 # include <assert.h>
8645 /* Override any gcc2 internal prototype to avoid an error. */
8650 /* We use char because int might match the return type of a gcc2
8651 builtin and then its argument prototype would still apply. */
8653 /* The GNU C library defines this for functions which it implements
8654 to always fail with ENOSYS. Some functions are actually named
8655 something starting with __ and the normal name is an alias. */
8656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8659 char (*f) () = $ac_func;
8668 return f != $ac_func;
8673 rm -f conftest.$ac_objext conftest$ac_exeext
8674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8675 (eval $ac_link) 2>conftest.er1
8677 grep -v '^ *+' conftest.er1 >conftest.err
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } &&
8682 { ac_try='test -z "$ac_c_werror_flag"
8683 || test ! -s conftest.err'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; } &&
8689 { ac_try='test -s conftest$ac_exeext'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; }; then
8695 eval "$as_ac_var=yes"
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8700 eval "$as_ac_var=no"
8702 rm -f conftest.err conftest.$ac_objext \
8703 conftest$ac_exeext conftest.$ac_ext
8705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8707 if test `eval echo '${'$as_ac_var'}'` = yes; then
8708 cat >>confdefs.h <<_ACEOF
8709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8742 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8747 echo "$as_me:$LINENO: checking for $ac_header" >&5
8748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8755 # Is the header compilable?
8756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8758 cat >conftest.$ac_ext <<_ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8764 $ac_includes_default
8765 #include <$ac_header>
8767 rm -f conftest.$ac_objext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8769 (eval $ac_compile) 2>conftest.er1
8771 grep -v '^ *+' conftest.er1 >conftest.err
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } &&
8776 { ac_try='test -z "$ac_c_werror_flag"
8777 || test ! -s conftest.err'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; } &&
8783 { ac_try='test -s conftest.$ac_objext'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; }; then
8789 ac_header_compiler=yes
8791 echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8794 ac_header_compiler=no
8796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8798 echo "${ECHO_T}$ac_header_compiler" >&6
8800 # Is the header present?
8801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8803 cat >conftest.$ac_ext <<_ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8809 #include <$ac_header>
8811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8814 grep -v '^ *+' conftest.er1 >conftest.err
8816 cat conftest.err >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } >/dev/null; then
8819 if test -s conftest.err; then
8820 ac_cpp_err=$ac_c_preproc_warn_flag
8821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8828 if test -z "$ac_cpp_err"; then
8829 ac_header_preproc=yes
8831 echo "$as_me: failed program was:" >&5
8832 sed 's/^/| /' conftest.$ac_ext >&5
8834 ac_header_preproc=no
8836 rm -f conftest.err conftest.$ac_ext
8837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8838 echo "${ECHO_T}$ac_header_preproc" >&6
8840 # So? What about this header?
8841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8847 ac_header_preproc=yes
8850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8864 ## ----------------------------------- ##
8865 ## Report this to llvmbugs@cs.uiuc.edu ##
8866 ## ----------------------------------- ##
8869 sed "s/^/$as_me: WARNING: /" >&2
8872 echo "$as_me:$LINENO: checking for $ac_header" >&5
8873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 eval "$as_ac_Header=\$ac_header_preproc"
8879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8884 cat >>confdefs.h <<_ACEOF
8885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8896 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8900 echo "$as_me:$LINENO: checking for $ac_header" >&5
8901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8908 # Is the header compilable?
8909 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8911 cat >conftest.$ac_ext <<_ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8917 $ac_includes_default
8918 #include <$ac_header>
8920 rm -f conftest.$ac_objext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8922 (eval $ac_compile) 2>conftest.er1
8924 grep -v '^ *+' conftest.er1 >conftest.err
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -z "$ac_c_werror_flag"
8930 || test ! -s conftest.err'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try='test -s conftest.$ac_objext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_header_compiler=yes
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8947 ac_header_compiler=no
8949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8950 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8951 echo "${ECHO_T}$ac_header_compiler" >&6
8953 # Is the header present?
8954 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8955 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8956 cat >conftest.$ac_ext <<_ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8962 #include <$ac_header>
8964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8967 grep -v '^ *+' conftest.er1 >conftest.err
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } >/dev/null; then
8972 if test -s conftest.err; then
8973 ac_cpp_err=$ac_c_preproc_warn_flag
8974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8981 if test -z "$ac_cpp_err"; then
8982 ac_header_preproc=yes
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8987 ac_header_preproc=no
8989 rm -f conftest.err conftest.$ac_ext
8990 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8991 echo "${ECHO_T}$ac_header_preproc" >&6
8993 # So? What about this header?
8994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9000 ac_header_preproc=yes
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9006 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9010 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9017 ## ----------------------------------- ##
9018 ## Report this to llvmbugs@cs.uiuc.edu ##
9019 ## ----------------------------------- ##
9022 sed "s/^/$as_me: WARNING: /" >&2
9025 echo "$as_me:$LINENO: checking for $ac_header" >&5
9026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 eval "$as_ac_Header=\$ac_header_preproc"
9032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9037 cat >>confdefs.h <<_ACEOF
9038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9047 for ac_header in string.h strings.h
9049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9051 echo "$as_me:$LINENO: checking for $ac_header" >&5
9052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9059 # Is the header compilable?
9060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9062 cat >conftest.$ac_ext <<_ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9068 $ac_includes_default
9069 #include <$ac_header>
9071 rm -f conftest.$ac_objext
9072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9073 (eval $ac_compile) 2>conftest.er1
9075 grep -v '^ *+' conftest.er1 >conftest.err
9077 cat conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } &&
9080 { ac_try='test -z "$ac_c_werror_flag"
9081 || test ! -s conftest.err'
9082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; } &&
9087 { ac_try='test -s conftest.$ac_objext'
9088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; }; then
9093 ac_header_compiler=yes
9095 echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9098 ac_header_compiler=no
9100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9102 echo "${ECHO_T}$ac_header_compiler" >&6
9104 # Is the header present?
9105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9107 cat >conftest.$ac_ext <<_ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9113 #include <$ac_header>
9115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9118 grep -v '^ *+' conftest.er1 >conftest.err
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } >/dev/null; then
9123 if test -s conftest.err; then
9124 ac_cpp_err=$ac_c_preproc_warn_flag
9125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9132 if test -z "$ac_cpp_err"; then
9133 ac_header_preproc=yes
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9138 ac_header_preproc=no
9140 rm -f conftest.err conftest.$ac_ext
9141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9142 echo "${ECHO_T}$ac_header_preproc" >&6
9144 # So? What about this header?
9145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9151 ac_header_preproc=yes
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9168 ## ----------------------------------- ##
9169 ## Report this to llvmbugs@cs.uiuc.edu ##
9170 ## ----------------------------------- ##
9173 sed "s/^/$as_me: WARNING: /" >&2
9176 echo "$as_me:$LINENO: checking for $ac_header" >&5
9177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 eval "$as_ac_Header=\$ac_header_preproc"
9183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9188 cat >>confdefs.h <<_ACEOF
9189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9199 for ac_func in strchr index
9201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9202 echo "$as_me:$LINENO: checking for $ac_func" >&5
9203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9204 if eval "test \"\${$as_ac_var+set}\" = set"; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 cat >conftest.$ac_ext <<_ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9215 #define $ac_func innocuous_$ac_func
9217 /* System header to define __stub macros and hopefully few prototypes,
9218 which can conflict with char $ac_func (); below.
9219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9220 <limits.h> exists even on freestanding compilers. */
9223 # include <limits.h>
9225 # include <assert.h>
9230 /* Override any gcc2 internal prototype to avoid an error. */
9235 /* We use char because int might match the return type of a gcc2
9236 builtin and then its argument prototype would still apply. */
9238 /* The GNU C library defines this for functions which it implements
9239 to always fail with ENOSYS. Some functions are actually named
9240 something starting with __ and the normal name is an alias. */
9241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9244 char (*f) () = $ac_func;
9253 return f != $ac_func;
9258 rm -f conftest.$ac_objext conftest$ac_exeext
9259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9260 (eval $ac_link) 2>conftest.er1
9262 grep -v '^ *+' conftest.er1 >conftest.err
9264 cat conftest.err >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); } &&
9267 { ac_try='test -z "$ac_c_werror_flag"
9268 || test ! -s conftest.err'
9269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; } &&
9274 { ac_try='test -s conftest$ac_exeext'
9275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; }; then
9280 eval "$as_ac_var=yes"
9282 echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9285 eval "$as_ac_var=no"
9287 rm -f conftest.err conftest.$ac_objext \
9288 conftest$ac_exeext conftest.$ac_ext
9290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9292 if test `eval echo '${'$as_ac_var'}'` = yes; then
9293 cat >>confdefs.h <<_ACEOF
9294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9302 for ac_func in strrchr rindex
9304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9305 echo "$as_me:$LINENO: checking for $ac_func" >&5
9306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9307 if eval "test \"\${$as_ac_var+set}\" = set"; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 cat >conftest.$ac_ext <<_ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9318 #define $ac_func innocuous_$ac_func
9320 /* System header to define __stub macros and hopefully few prototypes,
9321 which can conflict with char $ac_func (); below.
9322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9323 <limits.h> exists even on freestanding compilers. */
9326 # include <limits.h>
9328 # include <assert.h>
9333 /* Override any gcc2 internal prototype to avoid an error. */
9338 /* We use char because int might match the return type of a gcc2
9339 builtin and then its argument prototype would still apply. */
9341 /* The GNU C library defines this for functions which it implements
9342 to always fail with ENOSYS. Some functions are actually named
9343 something starting with __ and the normal name is an alias. */
9344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9347 char (*f) () = $ac_func;
9356 return f != $ac_func;
9361 rm -f conftest.$ac_objext conftest$ac_exeext
9362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9363 (eval $ac_link) 2>conftest.er1
9365 grep -v '^ *+' conftest.er1 >conftest.err
9367 cat conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } &&
9370 { ac_try='test -z "$ac_c_werror_flag"
9371 || test ! -s conftest.err'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; } &&
9377 { ac_try='test -s conftest$ac_exeext'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; }; then
9383 eval "$as_ac_var=yes"
9385 echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9388 eval "$as_ac_var=no"
9390 rm -f conftest.err conftest.$ac_objext \
9391 conftest$ac_exeext conftest.$ac_ext
9393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9395 if test `eval echo '${'$as_ac_var'}'` = yes; then
9396 cat >>confdefs.h <<_ACEOF
9397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9405 for ac_func in memcpy bcopy
9407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9408 echo "$as_me:$LINENO: checking for $ac_func" >&5
9409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9410 if eval "test \"\${$as_ac_var+set}\" = set"; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 cat >conftest.$ac_ext <<_ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9421 #define $ac_func innocuous_$ac_func
9423 /* System header to define __stub macros and hopefully few prototypes,
9424 which can conflict with char $ac_func (); below.
9425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9426 <limits.h> exists even on freestanding compilers. */
9429 # include <limits.h>
9431 # include <assert.h>
9436 /* Override any gcc2 internal prototype to avoid an error. */
9441 /* We use char because int might match the return type of a gcc2
9442 builtin and then its argument prototype would still apply. */
9444 /* The GNU C library defines this for functions which it implements
9445 to always fail with ENOSYS. Some functions are actually named
9446 something starting with __ and the normal name is an alias. */
9447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9450 char (*f) () = $ac_func;
9459 return f != $ac_func;
9464 rm -f conftest.$ac_objext conftest$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466 (eval $ac_link) 2>conftest.er1
9468 grep -v '^ *+' conftest.er1 >conftest.err
9470 cat conftest.err >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
9473 { ac_try='test -z "$ac_c_werror_flag"
9474 || test ! -s conftest.err'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; } &&
9480 { ac_try='test -s conftest$ac_exeext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 eval "$as_ac_var=yes"
9488 echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9491 eval "$as_ac_var=no"
9493 rm -f conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
9496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9497 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9498 if test `eval echo '${'$as_ac_var'}'` = yes; then
9499 cat >>confdefs.h <<_ACEOF
9500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9508 for ac_func in memmove strcmp
9510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9511 echo "$as_me:$LINENO: checking for $ac_func" >&5
9512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9513 if eval "test \"\${$as_ac_var+set}\" = set"; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 cat >conftest.$ac_ext <<_ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9524 #define $ac_func innocuous_$ac_func
9526 /* System header to define __stub macros and hopefully few prototypes,
9527 which can conflict with char $ac_func (); below.
9528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9529 <limits.h> exists even on freestanding compilers. */
9532 # include <limits.h>
9534 # include <assert.h>
9539 /* Override any gcc2 internal prototype to avoid an error. */
9544 /* We use char because int might match the return type of a gcc2
9545 builtin and then its argument prototype would still apply. */
9547 /* The GNU C library defines this for functions which it implements
9548 to always fail with ENOSYS. Some functions are actually named
9549 something starting with __ and the normal name is an alias. */
9550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9553 char (*f) () = $ac_func;
9562 return f != $ac_func;
9567 rm -f conftest.$ac_objext conftest$ac_exeext
9568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9569 (eval $ac_link) 2>conftest.er1
9571 grep -v '^ *+' conftest.er1 >conftest.err
9573 cat conftest.err >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } &&
9576 { ac_try='test -z "$ac_c_werror_flag"
9577 || test ! -s conftest.err'
9578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; } &&
9583 { ac_try='test -s conftest$ac_exeext'
9584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); }; }; then
9589 eval "$as_ac_var=yes"
9591 echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.$ac_ext >&5
9594 eval "$as_ac_var=no"
9596 rm -f conftest.err conftest.$ac_objext \
9597 conftest$ac_exeext conftest.$ac_ext
9599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9601 if test `eval echo '${'$as_ac_var'}'` = yes; then
9602 cat >>confdefs.h <<_ACEOF
9603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9612 for ac_func in closedir opendir readdir
9614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9615 echo "$as_me:$LINENO: checking for $ac_func" >&5
9616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9617 if eval "test \"\${$as_ac_var+set}\" = set"; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 cat >conftest.$ac_ext <<_ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h. */
9626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9628 #define $ac_func innocuous_$ac_func
9630 /* System header to define __stub macros and hopefully few prototypes,
9631 which can conflict with char $ac_func (); below.
9632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9633 <limits.h> exists even on freestanding compilers. */
9636 # include <limits.h>
9638 # include <assert.h>
9643 /* Override any gcc2 internal prototype to avoid an error. */
9648 /* We use char because int might match the return type of a gcc2
9649 builtin and then its argument prototype would still apply. */
9651 /* The GNU C library defines this for functions which it implements
9652 to always fail with ENOSYS. Some functions are actually named
9653 something starting with __ and the normal name is an alias. */
9654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9657 char (*f) () = $ac_func;
9666 return f != $ac_func;
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673 (eval $ac_link) 2>conftest.er1
9675 grep -v '^ *+' conftest.er1 >conftest.err
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -z "$ac_c_werror_flag"
9681 || test ! -s conftest.err'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; } &&
9687 { ac_try='test -s conftest$ac_exeext'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; }; then
9693 eval "$as_ac_var=yes"
9695 echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9698 eval "$as_ac_var=no"
9700 rm -f conftest.err conftest.$ac_objext \
9701 conftest$ac_exeext conftest.$ac_ext
9703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9705 if test `eval echo '${'$as_ac_var'}'` = yes; then
9706 cat >>confdefs.h <<_ACEOF
9707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9714 # Check whether --enable-shared or --disable-shared was given.
9715 if test "${enable_shared+set}" = set; then
9716 enableval="$enable_shared"
9717 p=${PACKAGE-default}
9719 yes) enable_shared=yes ;;
9720 no) enable_shared=no ;;
9723 # Look at the argument we got. We use all the common list separators.
9724 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9725 for pkg in $enableval; do
9727 if test "X$pkg" = "X$p"; then
9738 # Check whether --enable-static or --disable-static was given.
9739 if test "${enable_static+set}" = set; then
9740 enableval="$enable_static"
9741 p=${PACKAGE-default}
9743 yes) enable_static=yes ;;
9744 no) enable_static=no ;;
9747 # Look at the argument we got. We use all the common list separators.
9748 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9749 for pkg in $enableval; do
9751 if test "X$pkg" = "X$p"; then
9762 # Check whether --enable-fast-install or --disable-fast-install was given.
9763 if test "${enable_fast_install+set}" = set; then
9764 enableval="$enable_fast_install"
9765 p=${PACKAGE-default}
9767 yes) enable_fast_install=yes ;;
9768 no) enable_fast_install=no ;;
9770 enable_fast_install=no
9771 # Look at the argument we got. We use all the common list separators.
9772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9773 for pkg in $enableval; do
9775 if test "X$pkg" = "X$p"; then
9776 enable_fast_install=yes
9783 enable_fast_install=yes
9786 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9787 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9788 if test "${lt_cv_path_SED+set}" = set; then
9789 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 # Loop through the user's path and test for sed and gsed.
9792 # Then use that list of sed's as ones to test for truncation.
9793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9797 test -z "$as_dir" && as_dir=.
9798 for lt_ac_prog in sed gsed; do
9799 for ac_exec_ext in '' $ac_executable_extensions; do
9800 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9801 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9808 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9809 # along with /bin/sed that truncates output.
9810 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9811 test ! -f $lt_ac_sed && break
9812 cat /dev/null > conftest.in
9814 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9815 # Check for GNU sed and select it if it is found.
9816 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9817 lt_cv_path_SED=$lt_ac_sed
9821 cat conftest.in conftest.in >conftest.tmp
9822 mv conftest.tmp conftest.in
9823 cp conftest.in conftest.nl
9825 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9826 cmp -s conftest.out conftest.nl || break
9827 # 10000 chars as input seems more than enough
9828 test $lt_ac_count -gt 10 && break
9829 lt_ac_count=`expr $lt_ac_count + 1`
9830 if test $lt_ac_count -gt $lt_ac_max; then
9831 lt_ac_max=$lt_ac_count
9832 lt_cv_path_SED=$lt_ac_sed
9840 echo "$as_me:$LINENO: result: $SED" >&5
9841 echo "${ECHO_T}$SED" >&6
9844 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9845 if test "${with_gnu_ld+set}" = set; then
9846 withval="$with_gnu_ld"
9847 test "$withval" = no || with_gnu_ld=yes
9852 if test "$GCC" = yes; then
9853 # Check if gcc -print-prog-name=ld gives a path.
9854 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9855 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9858 # gcc leaves a trailing carriage return which upsets mingw
9859 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9861 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9864 # Accept absolute paths.
9866 re_direlt='/[^/][^/]*/\.\./'
9867 # Canonicalize the pathname of ld
9868 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9869 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9870 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9872 test -z "$LD" && LD="$ac_prog"
9875 # If it fails, then pretend we aren't using GCC.
9879 # If it is relative, then search for the first ld in PATH.
9883 elif test "$with_gnu_ld" = yes; then
9884 echo "$as_me:$LINENO: checking for GNU ld" >&5
9885 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9887 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9888 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9890 if test "${lt_cv_path_LD+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 if test -z "$LD"; then
9894 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9895 for ac_dir in $PATH; do
9897 test -z "$ac_dir" && ac_dir=.
9898 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9899 lt_cv_path_LD="$ac_dir/$ac_prog"
9900 # Check to see if the program is GNU ld. I'd rather use --version,
9901 # but apparently some GNU ld's only accept -v.
9902 # Break only if it was the GNU/non-GNU ld that we prefer.
9903 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9904 *GNU* | *'with BFD'*)
9905 test "$with_gnu_ld" != no && break
9908 test "$with_gnu_ld" != yes && break
9915 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9920 if test -n "$LD"; then
9921 echo "$as_me:$LINENO: result: $LD" >&5
9922 echo "${ECHO_T}$LD" >&6
9924 echo "$as_me:$LINENO: result: no" >&5
9925 echo "${ECHO_T}no" >&6
9927 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9928 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9929 { (exit 1); exit 1; }; }
9930 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9931 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9932 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9936 case `$LD -v 2>&1 </dev/null` in
9937 *GNU* | *'with BFD'*)
9938 lt_cv_prog_gnu_ld=yes
9941 lt_cv_prog_gnu_ld=no
9945 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9946 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9947 with_gnu_ld=$lt_cv_prog_gnu_ld
9950 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9951 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9952 if test "${lt_cv_ld_reload_flag+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 lt_cv_ld_reload_flag='-r'
9957 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9958 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9959 reload_flag=$lt_cv_ld_reload_flag
9960 case $reload_flag in
9962 *) reload_flag=" $reload_flag" ;;
9964 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9967 if test "$GCC" = yes; then
9968 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9970 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9975 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9976 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9977 if test "${lt_cv_deplibs_check_method+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 lt_cv_file_magic_cmd='$MAGIC_CMD'
9981 lt_cv_file_magic_test_file=
9982 lt_cv_deplibs_check_method='unknown'
9983 # Need to set the preceding variable on all platforms that support
9984 # interlibrary dependencies.
9985 # 'none' -- dependencies not supported.
9986 # `unknown' -- same as none, but documents that we really don't know.
9987 # 'pass_all' -- all dependencies passed with no checks.
9988 # 'test_compile' -- check by making test program.
9989 # 'file_magic [[regex]]' -- check by looking for files in library path
9990 # which responds to the $file_magic_cmd with a given extended regex.
9991 # If you have `file' or equivalent on your system and you're not sure
9992 # whether `pass_all' will *always* work, you probably want this one.
9996 lt_cv_deplibs_check_method=pass_all
10000 lt_cv_deplibs_check_method=pass_all
10004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10005 lt_cv_file_magic_cmd='/usr/bin/file -L'
10006 lt_cv_file_magic_test_file=/shlib/libc.so
10010 # func_win32_libid is a shell function defined in ltmain.sh
10011 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10012 lt_cv_file_magic_cmd='func_win32_libid'
10016 # Base MSYS/MinGW do not provide the 'file' command needed by
10017 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10018 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10019 lt_cv_file_magic_cmd='$OBJDUMP -f'
10022 darwin* | rhapsody*)
10023 lt_cv_deplibs_check_method=pass_all
10026 freebsd* | kfreebsd*-gnu)
10027 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10030 # Not sure whether the presence of OpenBSD here was a mistake.
10031 # Let's accept both of them until this is cleared up.
10032 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10033 lt_cv_file_magic_cmd=/usr/bin/file
10034 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10038 lt_cv_deplibs_check_method=pass_all
10043 lt_cv_deplibs_check_method=pass_all
10046 hpux10.20* | hpux11*)
10047 lt_cv_file_magic_cmd=/usr/bin/file
10048 case "$host_cpu" in
10050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10051 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10054 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]'
10055 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10059 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10064 irix5* | irix6* | nonstopux*)
10066 *-32|*"-32 ") libmagic=32-bit;;
10067 *-n32|*"-n32 ") libmagic=N32;;
10068 *-64|*"-64 ") libmagic=64-bit;;
10069 *) libmagic=never-match;;
10071 lt_cv_deplibs_check_method=pass_all
10074 # This must be Linux ELF.
10076 lt_cv_deplibs_check_method=pass_all
10080 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10089 lt_cv_file_magic_cmd=/usr/bin/file
10090 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10094 lt_cv_deplibs_check_method=unknown
10098 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10105 osf3* | osf4* | osf5*)
10106 lt_cv_deplibs_check_method=pass_all
10110 lt_cv_deplibs_check_method=pass_all
10114 lt_cv_deplibs_check_method=pass_all
10117 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10118 case $host_vendor in
10120 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]'
10121 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10124 lt_cv_deplibs_check_method=pass_all
10127 lt_cv_file_magic_cmd='/bin/file'
10128 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10131 lt_cv_file_magic_cmd='/bin/file'
10132 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10133 lt_cv_file_magic_test_file=/lib/libc.so
10136 lt_cv_deplibs_check_method=pass_all
10141 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10142 lt_cv_deplibs_check_method=pass_all
10147 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10148 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10149 file_magic_cmd=$lt_cv_file_magic_cmd
10150 deplibs_check_method=$lt_cv_deplibs_check_method
10151 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10155 # If no C compiler was specified, use CC.
10158 # Allow CC to be a program name with arguments.
10161 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10162 if test "${enable_libtool_lock+set}" = set; then
10163 enableval="$enable_libtool_lock"
10166 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10168 # Some flags need to be propagated to the compiler or linker for good
10172 # Find out which ABI we are using.
10173 echo 'int i;' > conftest.$ac_ext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10175 (eval $ac_compile) 2>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; then
10179 case `/usr/bin/file conftest.$ac_objext` in
10181 HPUX_IA64_MODE="32"
10184 HPUX_IA64_MODE="64"
10191 # Find out which ABI we are using.
10192 echo '#line 10192 "configure"' > conftest.$ac_ext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194 (eval $ac_compile) 2>&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; then
10198 if test "$lt_cv_prog_gnu_ld" = yes; then
10199 case `/usr/bin/file conftest.$ac_objext` in
10201 LD="${LD-ld} -melf32bsmip"
10204 LD="${LD-ld} -melf32bmipn32"
10207 LD="${LD-ld} -melf64bmip"
10211 case `/usr/bin/file conftest.$ac_objext` in
10227 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10228 # Find out which ABI we are using.
10229 echo 'int i;' > conftest.$ac_ext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10231 (eval $ac_compile) 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; then
10235 case "`/usr/bin/file conftest.o`" in
10239 LD="${LD-ld} -m elf_i386"
10241 ppc64-*linux*|powerpc64-*linux*)
10242 LD="${LD-ld} -m elf32ppclinux"
10245 LD="${LD-ld} -m elf_s390"
10248 LD="${LD-ld} -m elf32_sparc"
10255 LD="${LD-ld} -m elf_x86_64"
10257 ppc*-*linux*|powerpc*-*linux*)
10258 LD="${LD-ld} -m elf64ppc"
10261 LD="${LD-ld} -m elf64_s390"
10264 LD="${LD-ld} -m elf64_sparc"
10274 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10275 SAVE_CFLAGS="$CFLAGS"
10276 CFLAGS="$CFLAGS -belf"
10277 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10278 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10279 if test "${lt_cv_cc_needs_belf+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 ac_cpp='$CPP $CPPFLAGS'
10284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10288 cat >conftest.$ac_ext <<_ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10296 rm -f conftest.$ac_objext conftest$ac_exeext
10297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10298 (eval $ac_link) 2>conftest.er1
10300 grep -v '^ *+' conftest.er1 >conftest.err
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } &&
10305 { ac_try='test -z "$ac_c_werror_flag"
10306 || test ! -s conftest.err'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; } &&
10312 { ac_try='test -s conftest$ac_exeext'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 lt_cv_cc_needs_belf=yes
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10323 lt_cv_cc_needs_belf=no
10325 rm -f conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10328 ac_cpp='$CPP $CPPFLAGS'
10329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10334 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10335 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10336 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10337 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10338 CFLAGS="$SAVE_CFLAGS"
10344 need_locks="$enable_libtool_lock"
10349 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10350 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10351 (test "X$CXX" != "Xg++"))) ; then
10353 ac_cpp='$CXXCPP $CPPFLAGS'
10354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10357 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10358 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10359 if test -z "$CXXCPP"; then
10360 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 # Double quotes because CXXCPP needs to be expanded
10364 for CXXCPP in "$CXX -E" "/lib/cpp"
10366 ac_preproc_ok=false
10367 for ac_cxx_preproc_warn_flag in '' yes
10369 # Use a header file that comes with gcc, so configuring glibc
10370 # with a fresh cross-compiler works.
10371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10372 # <limits.h> exists even on freestanding compilers.
10373 # On the NeXT, cc -E runs the code through the compiler's parser,
10374 # not just through cpp. "Syntax error" is here to catch this case.
10375 cat >conftest.$ac_ext <<_ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10382 # include <limits.h>
10384 # include <assert.h>
10388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10391 grep -v '^ *+' conftest.er1 >conftest.err
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } >/dev/null; then
10396 if test -s conftest.err; then
10397 ac_cpp_err=$ac_cxx_preproc_warn_flag
10398 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10405 if test -z "$ac_cpp_err"; then
10408 echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10411 # Broken: fails on valid input.
10414 rm -f conftest.err conftest.$ac_ext
10416 # OK, works on sane cases. Now check whether non-existent headers
10417 # can be detected and how.
10418 cat >conftest.$ac_ext <<_ACEOF
10421 cat confdefs.h >>conftest.$ac_ext
10422 cat >>conftest.$ac_ext <<_ACEOF
10423 /* end confdefs.h. */
10424 #include <ac_nonexistent.h>
10426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10429 grep -v '^ *+' conftest.er1 >conftest.err
10431 cat conftest.err >&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } >/dev/null; then
10434 if test -s conftest.err; then
10435 ac_cpp_err=$ac_cxx_preproc_warn_flag
10436 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10443 if test -z "$ac_cpp_err"; then
10444 # Broken: success on invalid input.
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10450 # Passes both tests.
10454 rm -f conftest.err conftest.$ac_ext
10457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10458 rm -f conftest.err conftest.$ac_ext
10459 if $ac_preproc_ok; then
10464 ac_cv_prog_CXXCPP=$CXXCPP
10467 CXXCPP=$ac_cv_prog_CXXCPP
10469 ac_cv_prog_CXXCPP=$CXXCPP
10471 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10472 echo "${ECHO_T}$CXXCPP" >&6
10473 ac_preproc_ok=false
10474 for ac_cxx_preproc_warn_flag in '' yes
10476 # Use a header file that comes with gcc, so configuring glibc
10477 # with a fresh cross-compiler works.
10478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10479 # <limits.h> exists even on freestanding compilers.
10480 # On the NeXT, cc -E runs the code through the compiler's parser,
10481 # not just through cpp. "Syntax error" is here to catch this case.
10482 cat >conftest.$ac_ext <<_ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10489 # include <limits.h>
10491 # include <assert.h>
10495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10498 grep -v '^ *+' conftest.er1 >conftest.err
10500 cat conftest.err >&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } >/dev/null; then
10503 if test -s conftest.err; then
10504 ac_cpp_err=$ac_cxx_preproc_warn_flag
10505 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10512 if test -z "$ac_cpp_err"; then
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 # Broken: fails on valid input.
10521 rm -f conftest.err conftest.$ac_ext
10523 # OK, works on sane cases. Now check whether non-existent headers
10524 # can be detected and how.
10525 cat >conftest.$ac_ext <<_ACEOF
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h. */
10531 #include <ac_nonexistent.h>
10533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10536 grep -v '^ *+' conftest.er1 >conftest.err
10538 cat conftest.err >&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } >/dev/null; then
10541 if test -s conftest.err; then
10542 ac_cpp_err=$ac_cxx_preproc_warn_flag
10543 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10550 if test -z "$ac_cpp_err"; then
10551 # Broken: success on invalid input.
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10557 # Passes both tests.
10561 rm -f conftest.err conftest.$ac_ext
10564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10565 rm -f conftest.err conftest.$ac_ext
10566 if $ac_preproc_ok; then
10569 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10570 See \`config.log' for more details." >&5
10571 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10572 See \`config.log' for more details." >&2;}
10573 { (exit 1); exit 1; }; }
10577 ac_cpp='$CXXCPP $CPPFLAGS'
10578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10586 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10587 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10588 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10589 if test -n "$ac_tool_prefix"; then
10590 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10594 echo "$as_me:$LINENO: checking for $ac_word" >&5
10595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10596 if test "${ac_cv_prog_F77+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10599 if test -n "$F77"; then
10600 ac_cv_prog_F77="$F77" # Let the user override the test.
10602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10603 for as_dir in $PATH
10606 test -z "$as_dir" && as_dir=.
10607 for ac_exec_ext in '' $ac_executable_extensions; do
10608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10609 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10618 F77=$ac_cv_prog_F77
10619 if test -n "$F77"; then
10620 echo "$as_me:$LINENO: result: $F77" >&5
10621 echo "${ECHO_T}$F77" >&6
10623 echo "$as_me:$LINENO: result: no" >&5
10624 echo "${ECHO_T}no" >&6
10627 test -n "$F77" && break
10630 if test -z "$F77"; then
10632 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10634 # Extract the first word of "$ac_prog", so it can be a program name with args.
10635 set dummy $ac_prog; ac_word=$2
10636 echo "$as_me:$LINENO: checking for $ac_word" >&5
10637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10638 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10641 if test -n "$ac_ct_F77"; then
10642 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10645 for as_dir in $PATH
10648 test -z "$as_dir" && as_dir=.
10649 for ac_exec_ext in '' $ac_executable_extensions; do
10650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10651 ac_cv_prog_ac_ct_F77="$ac_prog"
10652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10660 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10661 if test -n "$ac_ct_F77"; then
10662 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10663 echo "${ECHO_T}$ac_ct_F77" >&6
10665 echo "$as_me:$LINENO: result: no" >&5
10666 echo "${ECHO_T}no" >&6
10669 test -n "$ac_ct_F77" && break
10676 # Provide some information about the compiler.
10677 echo "$as_me:10677:" \
10678 "checking for Fortran 77 compiler version" >&5
10679 ac_compiler=`set X $ac_compile; echo $2`
10680 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10681 (eval $ac_compiler --version </dev/null >&5) 2>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }
10685 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10686 (eval $ac_compiler -v </dev/null >&5) 2>&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }
10690 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10691 (eval $ac_compiler -V </dev/null >&5) 2>&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }
10697 # If we don't use `.F' as extension, the preprocessor is not run on the
10698 # input file. (Note that this only needs to work for GNU compilers.)
10699 ac_save_ext=$ac_ext
10701 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10702 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10703 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10706 cat >conftest.$ac_ext <<_ACEOF
10714 rm -f conftest.$ac_objext
10715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10716 (eval $ac_compile) 2>conftest.er1
10718 grep -v '^ *+' conftest.er1 >conftest.err
10720 cat conftest.err >&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
10723 { ac_try='test -z "$ac_f77_werror_flag"
10724 || test ! -s conftest.err'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try='test -s conftest.$ac_objext'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_compiler_gnu=yes
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10744 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10747 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10748 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10749 ac_ext=$ac_save_ext
10750 ac_test_FFLAGS=${FFLAGS+set}
10751 ac_save_FFLAGS=$FFLAGS
10753 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10754 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10755 if test "${ac_cv_prog_f77_g+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 cat >conftest.$ac_ext <<_ACEOF
10764 rm -f conftest.$ac_objext
10765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10766 (eval $ac_compile) 2>conftest.er1
10768 grep -v '^ *+' conftest.er1 >conftest.err
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } &&
10773 { ac_try='test -z "$ac_f77_werror_flag"
10774 || test ! -s conftest.err'
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); }; } &&
10780 { ac_try='test -s conftest.$ac_objext'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
10786 ac_cv_prog_f77_g=yes
10788 echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10791 ac_cv_prog_f77_g=no
10793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10796 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10797 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10798 if test "$ac_test_FFLAGS" = set; then
10799 FFLAGS=$ac_save_FFLAGS
10800 elif test $ac_cv_prog_f77_g = yes; then
10801 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10807 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10814 G77=`test $ac_compiler_gnu = yes && echo yes`
10816 ac_cpp='$CPP $CPPFLAGS'
10817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10823 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10825 # find the maximum length of command line arguments
10826 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10827 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10828 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10836 # On DJGPP, this test can blow up pretty badly due to problems in libc
10837 # (any single argument exceeding 2000 bytes causes a buffer overrun
10838 # during glob expansion). Even if it were fixed, the result of this
10839 # check would be larger than it should be.
10840 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10844 # Under GNU Hurd, this test is not required because there is
10845 # no limit to the length of command line arguments.
10846 # Libtool will interpret -1 as no limit whatsoever
10847 lt_cv_sys_max_cmd_len=-1;
10851 # On Win9x/ME, this test blows up -- it succeeds, but takes
10852 # about 5 minutes as the teststring grows exponentially.
10853 # Worse, since 9x/ME are not pre-emptively multitasking,
10854 # you end up with a "frozen" computer, even though with patience
10855 # the test eventually succeeds (with a max line length of 256k).
10856 # Instead, let's just punt: use the minimum linelength reported by
10857 # all of the supported platforms: 8192 (on NT/2K/XP).
10858 lt_cv_sys_max_cmd_len=8192;
10862 # On AmigaOS with pdksh, this test takes hours, literally.
10863 # So we just punt and use a minimum line length of 8192.
10864 lt_cv_sys_max_cmd_len=8192;
10867 netbsd* | freebsd* | openbsd* | darwin* )
10868 # This has been around since 386BSD, at least. Likely further.
10869 if test -x /sbin/sysctl; then
10870 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10871 elif test -x /usr/sbin/sysctl; then
10872 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10874 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10876 # And add a safety zone
10877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10881 # If test is not a shell built-in, we'll probably end up computing a
10882 # maximum length that is only half of the actual maximum length, but
10884 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10885 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10886 = "XX$teststring") >/dev/null 2>&1 &&
10887 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10888 lt_cv_sys_max_cmd_len=$new_result &&
10889 test $i != 17 # 1/2 MB should be enough
10892 teststring=$teststring$teststring
10895 # Add a significant safety factor because C++ compilers can tack on massive
10896 # amounts of additional arguments before passing them to the linker.
10897 # It appears as though 1/2 is a usable value.
10898 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10904 if test -n $lt_cv_sys_max_cmd_len ; then
10905 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10906 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10908 echo "$as_me:$LINENO: result: none" >&5
10909 echo "${ECHO_T}none" >&6
10915 # Check for command to grab the raw symbol name followed by C symbol from nm.
10916 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10917 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10918 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10922 # These are sane defaults that work on at least a few old systems.
10923 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10925 # Character class describing NM global symbol codes.
10926 symcode='[BCDEGRST]'
10928 # Regexp to match symbols that can be accessed directly from C.
10929 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10931 # Transform the above into a raw symbol and a C symbol.
10932 symxfrm='\1 \2\3 \3'
10934 # Transform an extracted symbol line into a proper C declaration
10935 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10937 # Transform an extracted symbol line into symbol name and symbol address
10938 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'"
10940 # Define system-specific variables.
10945 cygwin* | mingw* | pw32*)
10946 symcode='[ABCDGISTW]'
10948 hpux*) # Its linker distinguishes data from code symbols
10949 if test "$host_cpu" = ia64; then
10950 symcode='[ABCDEGRST]'
10952 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10953 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'"
10956 if test "$host_cpu" = ia64; then
10957 symcode='[ABCDGIRSTW]'
10958 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10959 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'"
10962 irix* | nonstopux*)
10963 symcode='[BCDEGRST]'
10966 symcode='[BCDEGQRST]'
10976 # Handle CRLF in mingw tool chain
10980 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10984 # If we're using GNU nm, then use its standard symbol codes.
10985 case `$NM -V 2>&1` in
10986 *GNU* | *'with BFD'*)
10987 symcode='[ABCDGIRSTW]' ;;
10990 # Try without a prefix undercore, then with it.
10991 for ac_symprfx in "" "_"; do
10993 # Write the raw and C identifiers.
10994 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10996 # Check to see that the pipe works correctly.
11000 cat > conftest.$ac_ext <<EOF
11005 void nm_test_func(){}
11009 int main(){nm_test_var='a';nm_test_func();return(0);}
11012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11013 (eval $ac_compile) 2>&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; then
11017 # Now try to grab the symbols.
11019 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11020 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } && test -s "$nlist"; then
11024 # Try sorting and uniquifying the output.
11025 if sort "$nlist" | uniq > "$nlist"T; then
11026 mv -f "$nlist"T "$nlist"
11031 # Make sure that we snagged all the symbols we need.
11032 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11033 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11034 cat <<EOF > conftest.$ac_ext
11040 # Now generate the symbol file.
11041 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11043 cat <<EOF >> conftest.$ac_ext
11044 #if defined (__STDC__) && __STDC__
11045 # define lt_ptr_t void *
11047 # define lt_ptr_t char *
11051 /* The mapping between symbol names and symbols. */
11056 lt_preloaded_symbols[] =
11059 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11060 cat <<\EOF >> conftest.$ac_ext
11068 # Now try linking the two files.
11069 mv conftest.$ac_objext conftstm.$ac_objext
11070 lt_save_LIBS="$LIBS"
11071 lt_save_CFLAGS="$CFLAGS"
11072 LIBS="conftstm.$ac_objext"
11073 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11075 (eval $ac_link) 2>&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11081 LIBS="$lt_save_LIBS"
11082 CFLAGS="$lt_save_CFLAGS"
11084 echo "cannot find nm_test_func in $nlist" >&5
11087 echo "cannot find nm_test_var in $nlist" >&5
11090 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11093 echo "$progname: failed program was:" >&5
11094 cat conftest.$ac_ext >&5
11096 rm -f conftest* conftst*
11098 # Do not use the global_symbol_pipe unless it works.
11099 if test "$pipe_works" = yes; then
11102 lt_cv_sys_global_symbol_pipe=
11108 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11109 lt_cv_sys_global_symbol_to_cdecl=
11111 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11112 echo "$as_me:$LINENO: result: failed" >&5
11113 echo "${ECHO_T}failed" >&6
11115 echo "$as_me:$LINENO: result: ok" >&5
11116 echo "${ECHO_T}ok" >&6
11119 echo "$as_me:$LINENO: checking for objdir" >&5
11120 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11121 if test "${lt_cv_objdir+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11124 rm -f .libs 2>/dev/null
11125 mkdir .libs 2>/dev/null
11126 if test -d .libs; then
11129 # MS-DOS does not allow filenames that begin with a dot.
11132 rmdir .libs 2>/dev/null
11134 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11135 echo "${ECHO_T}$lt_cv_objdir" >&6
11136 objdir=$lt_cv_objdir
11144 # AIX sometimes has problems with the GCC collect2 program. For some
11145 # reason, if we set the COLLECT_NAMES environment variable, the problems
11146 # vanish in a puff of smoke.
11147 if test "X${COLLECT_NAMES+set}" != Xset; then
11149 export COLLECT_NAMES
11154 # Sed substitution that helps us do robust quoting. It backslashifies
11155 # metacharacters that are still active within double-quoted strings.
11156 Xsed='sed -e s/^X//'
11157 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11159 # Same as above, but do not quote variable references.
11160 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11162 # Sed substitution to delay expansion of an escaped shell variable in a
11163 # double_quote_subst'ed string.
11164 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11166 # Sed substitution to avoid accidental globbing in evaled expressions
11167 no_glob_subst='s/\*/\\\*/g'
11172 # Global variables:
11173 default_ofile=mklib
11174 can_build_shared=yes
11176 # All known linkers require a `.a' archive for static linking (except M$VC,
11177 # which needs '.lib').
11179 ltmain="$ac_aux_dir/ltmain.sh"
11180 ofile="$default_ofile"
11181 with_gnu_ld="$lt_cv_prog_gnu_ld"
11183 if test -n "$ac_tool_prefix"; then
11184 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11185 set dummy ${ac_tool_prefix}ar; ac_word=$2
11186 echo "$as_me:$LINENO: checking for $ac_word" >&5
11187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11188 if test "${ac_cv_prog_AR+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11191 if test -n "$AR"; then
11192 ac_cv_prog_AR="$AR" # Let the user override the test.
11194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195 for as_dir in $PATH
11198 test -z "$as_dir" && as_dir=.
11199 for ac_exec_ext in '' $ac_executable_extensions; do
11200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11201 ac_cv_prog_AR="${ac_tool_prefix}ar"
11202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11211 if test -n "$AR"; then
11212 echo "$as_me:$LINENO: result: $AR" >&5
11213 echo "${ECHO_T}$AR" >&6
11215 echo "$as_me:$LINENO: result: no" >&5
11216 echo "${ECHO_T}no" >&6
11220 if test -z "$ac_cv_prog_AR"; then
11222 # Extract the first word of "ar", so it can be a program name with args.
11223 set dummy ar; ac_word=$2
11224 echo "$as_me:$LINENO: checking for $ac_word" >&5
11225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11226 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 if test -n "$ac_ct_AR"; then
11230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH
11236 test -z "$as_dir" && as_dir=.
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11239 ac_cv_prog_ac_ct_AR="ar"
11240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11246 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11249 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11250 if test -n "$ac_ct_AR"; then
11251 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11252 echo "${ECHO_T}$ac_ct_AR" >&6
11254 echo "$as_me:$LINENO: result: no" >&5
11255 echo "${ECHO_T}no" >&6
11260 AR="$ac_cv_prog_AR"
11263 if test -n "$ac_tool_prefix"; then
11264 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11265 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11266 echo "$as_me:$LINENO: checking for $ac_word" >&5
11267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11268 if test "${ac_cv_prog_RANLIB+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 if test -n "$RANLIB"; then
11272 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275 for as_dir in $PATH
11278 test -z "$as_dir" && as_dir=.
11279 for ac_exec_ext in '' $ac_executable_extensions; do
11280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11281 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11290 RANLIB=$ac_cv_prog_RANLIB
11291 if test -n "$RANLIB"; then
11292 echo "$as_me:$LINENO: result: $RANLIB" >&5
11293 echo "${ECHO_T}$RANLIB" >&6
11295 echo "$as_me:$LINENO: result: no" >&5
11296 echo "${ECHO_T}no" >&6
11300 if test -z "$ac_cv_prog_RANLIB"; then
11301 ac_ct_RANLIB=$RANLIB
11302 # Extract the first word of "ranlib", so it can be a program name with args.
11303 set dummy ranlib; ac_word=$2
11304 echo "$as_me:$LINENO: checking for $ac_word" >&5
11305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11306 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 if test -n "$ac_ct_RANLIB"; then
11310 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313 for as_dir in $PATH
11316 test -z "$as_dir" && as_dir=.
11317 for ac_exec_ext in '' $ac_executable_extensions; do
11318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11319 ac_cv_prog_ac_ct_RANLIB="ranlib"
11320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11326 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11329 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11330 if test -n "$ac_ct_RANLIB"; then
11331 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11332 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11334 echo "$as_me:$LINENO: result: no" >&5
11335 echo "${ECHO_T}no" >&6
11338 RANLIB=$ac_ct_RANLIB
11340 RANLIB="$ac_cv_prog_RANLIB"
11343 if test -n "$ac_tool_prefix"; then
11344 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11345 set dummy ${ac_tool_prefix}strip; ac_word=$2
11346 echo "$as_me:$LINENO: checking for $ac_word" >&5
11347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11348 if test "${ac_cv_prog_STRIP+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 if test -n "$STRIP"; then
11352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355 for as_dir in $PATH
11358 test -z "$as_dir" && as_dir=.
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11361 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11370 STRIP=$ac_cv_prog_STRIP
11371 if test -n "$STRIP"; then
11372 echo "$as_me:$LINENO: result: $STRIP" >&5
11373 echo "${ECHO_T}$STRIP" >&6
11375 echo "$as_me:$LINENO: result: no" >&5
11376 echo "${ECHO_T}no" >&6
11380 if test -z "$ac_cv_prog_STRIP"; then
11382 # Extract the first word of "strip", so it can be a program name with args.
11383 set dummy strip; ac_word=$2
11384 echo "$as_me:$LINENO: checking for $ac_word" >&5
11385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11386 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 if test -n "$ac_ct_STRIP"; then
11390 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393 for as_dir in $PATH
11396 test -z "$as_dir" && as_dir=.
11397 for ac_exec_ext in '' $ac_executable_extensions; do
11398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11399 ac_cv_prog_ac_ct_STRIP="strip"
11400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11406 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11409 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11410 if test -n "$ac_ct_STRIP"; then
11411 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11412 echo "${ECHO_T}$ac_ct_STRIP" >&6
11414 echo "$as_me:$LINENO: result: no" >&5
11415 echo "${ECHO_T}no" >&6
11420 STRIP="$ac_cv_prog_STRIP"
11425 old_CFLAGS="$CFLAGS"
11427 # Set sane defaults for various variables
11428 test -z "$AR" && AR=ar
11429 test -z "$AR_FLAGS" && AR_FLAGS=cru
11430 test -z "$AS" && AS=as
11431 test -z "$CC" && CC=cc
11432 test -z "$LTCC" && LTCC=$CC
11433 test -z "$DLLTOOL" && DLLTOOL=dlltool
11434 test -z "$LD" && LD=ld
11435 test -z "$LN_S" && LN_S="ln -s"
11436 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11437 test -z "$NM" && NM=nm
11438 test -z "$SED" && SED=sed
11439 test -z "$OBJDUMP" && OBJDUMP=objdump
11440 test -z "$RANLIB" && RANLIB=:
11441 test -z "$STRIP" && STRIP=:
11442 test -z "$ac_objext" && ac_objext=o
11444 # Determine commands to create old-style static archives.
11445 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11446 old_postinstall_cmds='chmod 644 $oldlib'
11447 old_postuninstall_cmds=
11449 if test -n "$RANLIB"; then
11452 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11455 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11458 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11461 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11463 # Only perform the check for file, if the check method requires it
11464 case $deplibs_check_method in
11466 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11467 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11468 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11469 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11474 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11477 lt_save_MAGIC_CMD="$MAGIC_CMD"
11478 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11479 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11480 for ac_dir in $ac_dummy; do
11482 test -z "$ac_dir" && ac_dir=.
11483 if test -f $ac_dir/${ac_tool_prefix}file; then
11484 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11485 if test -n "$file_magic_test_file"; then
11486 case $deplibs_check_method in
11488 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11490 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11491 $EGREP "$file_magic_regex" > /dev/null; then
11496 *** Warning: the command libtool uses to detect shared libraries,
11497 *** $file_magic_cmd, produces output that libtool cannot recognize.
11498 *** The result is that libtool may fail to recognize shared libraries
11499 *** as such. This will affect the creation of libtool libraries that
11500 *** depend on shared libraries, but programs linked with such libtool
11501 *** libraries will work regardless of this problem. Nevertheless, you
11502 *** may want to report the problem to your system manager and/or to
11503 *** bug-libtool@gnu.org
11513 MAGIC_CMD="$lt_save_MAGIC_CMD"
11518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11519 if test -n "$MAGIC_CMD"; then
11520 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11521 echo "${ECHO_T}$MAGIC_CMD" >&6
11523 echo "$as_me:$LINENO: result: no" >&5
11524 echo "${ECHO_T}no" >&6
11527 if test -z "$lt_cv_path_MAGIC_CMD"; then
11528 if test -n "$ac_tool_prefix"; then
11529 echo "$as_me:$LINENO: checking for file" >&5
11530 echo $ECHO_N "checking for file... $ECHO_C" >&6
11531 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11539 lt_save_MAGIC_CMD="$MAGIC_CMD"
11540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11541 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11542 for ac_dir in $ac_dummy; do
11544 test -z "$ac_dir" && ac_dir=.
11545 if test -f $ac_dir/file; then
11546 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11547 if test -n "$file_magic_test_file"; then
11548 case $deplibs_check_method in
11550 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11551 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11552 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11553 $EGREP "$file_magic_regex" > /dev/null; then
11558 *** Warning: the command libtool uses to detect shared libraries,
11559 *** $file_magic_cmd, produces output that libtool cannot recognize.
11560 *** The result is that libtool may fail to recognize shared libraries
11561 *** as such. This will affect the creation of libtool libraries that
11562 *** depend on shared libraries, but programs linked with such libtool
11563 *** libraries will work regardless of this problem. Nevertheless, you
11564 *** may want to report the problem to your system manager and/or to
11565 *** bug-libtool@gnu.org
11575 MAGIC_CMD="$lt_save_MAGIC_CMD"
11580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11581 if test -n "$MAGIC_CMD"; then
11582 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11583 echo "${ECHO_T}$MAGIC_CMD" >&6
11585 echo "$as_me:$LINENO: result: no" >&5
11586 echo "${ECHO_T}no" >&6
11599 enable_win32_dll=no
11601 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11602 if test "${enable_libtool_lock+set}" = set; then
11603 enableval="$enable_libtool_lock"
11606 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11609 # Check whether --with-pic or --without-pic was given.
11610 if test "${with_pic+set}" = set; then
11611 withval="$with_pic"
11612 pic_mode="$withval"
11616 test -z "$pic_mode" && pic_mode=default
11618 # Use C for the default configuration in the libtool script
11622 ac_cpp='$CPP $CPPFLAGS'
11623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11628 # Source file extension for C test sources.
11631 # Object file extension for compiled C test sources.
11635 # Code to be used in simple compile tests
11636 lt_simple_compile_test_code="int some_variable = 0;\n"
11638 # Code to be used in simple link tests
11639 lt_simple_link_test_code='int main(){return(0);}\n'
11642 # If no C compiler was specified, use CC.
11645 # Allow CC to be a program name with arguments.
11650 # Check for any special shared library compilation flags.
11653 if test "$GCC" = no; then
11656 lt_prog_cc_shlib='-belf'
11660 if test -n "$lt_prog_cc_shlib"; then
11661 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11662 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11663 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11665 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11666 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11667 lt_cv_prog_cc_can_build_shared=no
11673 # Check to make sure the static flag actually works.
11675 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11676 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11677 if test "${lt_prog_compiler_static_works+set}" = set; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11680 lt_prog_compiler_static_works=no
11681 save_LDFLAGS="$LDFLAGS"
11682 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11683 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11684 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11685 # The compiler can only warn and ignore the option if not recognized
11686 # So say no if there are warnings
11687 if test -s conftest.err; then
11688 # Append any errors to the config.log.
11689 cat conftest.err 1>&5
11691 lt_prog_compiler_static_works=yes
11695 LDFLAGS="$save_LDFLAGS"
11698 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11699 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11701 if test x"$lt_prog_compiler_static_works" = xyes; then
11704 lt_prog_compiler_static=
11710 lt_prog_compiler_no_builtin_flag=
11712 if test "$GCC" = yes; then
11713 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11716 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11717 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11718 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 lt_cv_prog_compiler_rtti_exceptions=no
11722 ac_outfile=conftest.$ac_objext
11723 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11724 lt_compiler_flag="-fno-rtti -fno-exceptions"
11725 # Insert the option either (1) after the last *FLAGS variable, or
11726 # (2) before a word containing "conftest.", or (3) at the end.
11727 # Note that $ac_compile itself does not contain backslashes and begins
11728 # with a dollar sign (not a hyphen), so the echo should work correctly.
11729 # The option is referenced via a variable to avoid confusing sed.
11730 lt_compile=`echo "$ac_compile" | $SED \
11731 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11733 -e 's:$: $lt_compiler_flag:'`
11734 (eval echo "\"\$as_me:11734: $lt_compile\"" >&5)
11735 (eval "$lt_compile" 2>conftest.err)
11737 cat conftest.err >&5
11738 echo "$as_me:11738: \$? = $ac_status" >&5
11739 if (exit $ac_status) && test -s "$ac_outfile"; then
11740 # The compiler can only warn and ignore the option if not recognized
11741 # So say no if there are warnings
11742 if test ! -s conftest.err; then
11743 lt_cv_prog_compiler_rtti_exceptions=yes
11749 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11750 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11752 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11753 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11760 lt_prog_compiler_wl=
11761 lt_prog_compiler_pic=
11762 lt_prog_compiler_static=
11764 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11765 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11767 if test "$GCC" = yes; then
11768 lt_prog_compiler_wl='-Wl,'
11769 lt_prog_compiler_static='-static'
11773 # All AIX code is PIC.
11774 if test "$host_cpu" = ia64; then
11775 # AIX 5 now supports IA64 processor
11776 lt_prog_compiler_static='-Bstatic'
11781 # FIXME: we need at least 68020 code to build shared libraries, but
11782 # adding the `-m68020' flag to GCC prevents building anything better,
11784 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11787 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11788 # PIC is the default for these OSes.
11791 mingw* | pw32* | os2*)
11792 # This hack is so that the source file can tell whether it is being
11793 # built for inclusion in a dll (and should export symbols for example).
11794 lt_prog_compiler_pic='-DDLL_EXPORT'
11797 darwin* | rhapsody*)
11798 # PIC is the default on this platform
11799 # Common symbols not allowed in MH_DYLIB files
11800 lt_prog_compiler_pic='-fno-common'
11804 # Just because we use GCC doesn't mean we suddenly get shared libraries
11805 # on systems that don't support them.
11806 lt_prog_compiler_can_build_shared=no
11811 if test -d /usr/nec; then
11812 lt_prog_compiler_pic=-Kconform_pic
11817 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11818 # not for PA HP-UX.
11819 case "$host_cpu" in
11824 lt_prog_compiler_pic='-fPIC'
11830 lt_prog_compiler_pic='-fPIC'
11834 # PORTME Check for flag to pass linker flags through the system compiler.
11837 lt_prog_compiler_wl='-Wl,'
11838 if test "$host_cpu" = ia64; then
11839 # AIX 5 now supports IA64 processor
11840 lt_prog_compiler_static='-Bstatic'
11842 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11846 # PIC is the default on this platform
11847 # Common symbols not allowed in MH_DYLIB files
11848 case "$cc_basename" in
11850 lt_prog_compiler_pic='-qnocommon'
11851 lt_prog_compiler_wl='-Wl,'
11856 mingw* | pw32* | os2*)
11857 # This hack is so that the source file can tell whether it is being
11858 # built for inclusion in a dll (and should export symbols for example).
11859 lt_prog_compiler_pic='-DDLL_EXPORT'
11862 hpux9* | hpux10* | hpux11*)
11863 lt_prog_compiler_wl='-Wl,'
11864 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11865 # not for PA HP-UX.
11866 case "$host_cpu" in
11871 lt_prog_compiler_pic='+Z'
11874 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11875 lt_prog_compiler_static='${wl}-a ${wl}archive'
11878 irix5* | irix6* | nonstopux*)
11879 lt_prog_compiler_wl='-Wl,'
11880 # PIC (with -KPIC) is the default.
11881 lt_prog_compiler_static='-non_shared'
11885 lt_prog_compiler_pic='-KPIC'
11886 lt_prog_compiler_static='-Bstatic'
11892 lt_prog_compiler_wl='-Wl,'
11893 lt_prog_compiler_pic='-KPIC'
11894 lt_prog_compiler_static='-static'
11897 lt_prog_compiler_wl='-Wl,'
11898 # All Alpha code is PIC.
11899 lt_prog_compiler_static='-non_shared'
11904 osf3* | osf4* | osf5*)
11905 lt_prog_compiler_wl='-Wl,'
11906 # All OSF/1 code is PIC.
11907 lt_prog_compiler_static='-non_shared'
11911 lt_prog_compiler_pic='-Kpic'
11912 lt_prog_compiler_static='-dn'
11916 lt_prog_compiler_wl='-Wl,'
11917 lt_prog_compiler_pic='-KPIC'
11918 lt_prog_compiler_static='-Bstatic'
11922 lt_prog_compiler_wl='-Qoption ld '
11923 lt_prog_compiler_pic='-PIC'
11924 lt_prog_compiler_static='-Bstatic'
11927 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11928 lt_prog_compiler_wl='-Wl,'
11929 lt_prog_compiler_pic='-KPIC'
11930 lt_prog_compiler_static='-Bstatic'
11934 if test -d /usr/nec ;then
11935 lt_prog_compiler_pic='-Kconform_pic'
11936 lt_prog_compiler_static='-Bstatic'
11941 lt_prog_compiler_pic='-pic'
11942 lt_prog_compiler_static='-Bstatic'
11946 lt_prog_compiler_can_build_shared=no
11951 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11952 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11955 # Check to make sure the PIC flag actually works.
11957 if test -n "$lt_prog_compiler_pic"; then
11959 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11960 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11961 if test "${lt_prog_compiler_pic_works+set}" = set; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 lt_prog_compiler_pic_works=no
11965 ac_outfile=conftest.$ac_objext
11966 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11967 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11968 # Insert the option either (1) after the last *FLAGS variable, or
11969 # (2) before a word containing "conftest.", or (3) at the end.
11970 # Note that $ac_compile itself does not contain backslashes and begins
11971 # with a dollar sign (not a hyphen), so the echo should work correctly.
11972 # The option is referenced via a variable to avoid confusing sed.
11973 lt_compile=`echo "$ac_compile" | $SED \
11974 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11976 -e 's:$: $lt_compiler_flag:'`
11977 (eval echo "\"\$as_me:11977: $lt_compile\"" >&5)
11978 (eval "$lt_compile" 2>conftest.err)
11980 cat conftest.err >&5
11981 echo "$as_me:11981: \$? = $ac_status" >&5
11982 if (exit $ac_status) && test -s "$ac_outfile"; then
11983 # The compiler can only warn and ignore the option if not recognized
11984 # So say no if there are warnings
11985 if test ! -s conftest.err; then
11986 lt_prog_compiler_pic_works=yes
11992 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11993 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11995 if test x"$lt_prog_compiler_pic_works" = xyes; then
11996 case $lt_prog_compiler_pic in
11998 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12001 lt_prog_compiler_pic=
12002 lt_prog_compiler_can_build_shared=no
12007 # For platforms which do not support PIC, -DPIC is meaningless:
12009 lt_prog_compiler_pic=
12012 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12016 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12017 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12018 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 lt_cv_prog_compiler_c_o=no
12022 $rm -r conftest 2>/dev/null
12026 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12028 lt_compiler_flag="-o out/conftest2.$ac_objext"
12029 # Insert the option either (1) after the last *FLAGS variable, or
12030 # (2) before a word containing "conftest.", or (3) at the end.
12031 # Note that $ac_compile itself does not contain backslashes and begins
12032 # with a dollar sign (not a hyphen), so the echo should work correctly.
12033 lt_compile=`echo "$ac_compile" | $SED \
12034 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12036 -e 's:$: $lt_compiler_flag:'`
12037 (eval echo "\"\$as_me:12037: $lt_compile\"" >&5)
12038 (eval "$lt_compile" 2>out/conftest.err)
12040 cat out/conftest.err >&5
12041 echo "$as_me:12041: \$? = $ac_status" >&5
12042 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12044 # The compiler can only warn and ignore the option if not recognized
12045 # So say no if there are warnings
12046 if test ! -s out/conftest.err; then
12047 lt_cv_prog_compiler_c_o=yes
12052 # SGI C++ compiler will create directory out/ii_files/ for
12053 # template instantiation
12054 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12055 $rm out/* && rmdir out
12061 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12062 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12065 hard_links="nottested"
12066 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12067 # do not overwrite the value of need_locks provided by the user
12068 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12069 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12072 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12074 ln conftest.a conftest.b 2>&5 || hard_links=no
12075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12076 echo "$as_me:$LINENO: result: $hard_links" >&5
12077 echo "${ECHO_T}$hard_links" >&6
12078 if test "$hard_links" = no; then
12079 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12080 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12087 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12088 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12091 allow_undefined_flag=
12092 enable_shared_with_static_runtimes=no
12094 archive_expsym_cmds=
12095 old_archive_From_new_cmds=
12096 old_archive_from_expsyms_cmds=
12097 export_dynamic_flag_spec=
12098 whole_archive_flag_spec=
12099 thread_safe_flag_spec=
12100 hardcode_libdir_flag_spec=
12101 hardcode_libdir_flag_spec_ld=
12102 hardcode_libdir_separator=
12104 hardcode_minus_L=no
12105 hardcode_shlibpath_var=unsupported
12106 link_all_deplibs=unknown
12107 hardcode_automatic=no
12109 module_expsym_cmds=
12110 always_export_symbols=no
12111 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12112 # include_expsyms should be a list of space-separated symbols to be *always*
12113 # included in the symbol list
12115 # exclude_expsyms can be an extended regexp of symbols to exclude
12116 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12117 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12118 # as well as any symbol that contains `d'.
12119 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12120 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12121 # platforms (ab)use it in PIC code, but their linkers get confused if
12122 # the symbol is explicitly referenced. Since portable code cannot
12123 # rely on this symbol name, it's probably fine to never include it in
12124 # preloaded symbol tables.
12125 extract_expsyms_cmds=
12128 cygwin* | mingw* | pw32*)
12129 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12130 # When not using gcc, we currently assume that we are using
12131 # Microsoft Visual C++.
12132 if test "$GCC" != yes; then
12142 if test "$with_gnu_ld" = yes; then
12143 # If archive_cmds runs LD, not CC, wlarc should be empty
12146 # See if GNU ld supports shared libraries.
12148 aix3* | aix4* | aix5*)
12149 # On AIX/PPC, the GNU linker is very broken
12150 if test "$host_cpu" != ia64; then
12154 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12155 *** to be unable to reliably create shared libraries on AIX.
12156 *** Therefore, libtool is disabling shared libraries support. If you
12157 *** really care for shared libraries, you may want to modify your PATH
12158 *** so that a non-GNU linker is found, and then restart.
12165 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)'
12166 hardcode_libdir_flag_spec='-L$libdir'
12167 hardcode_minus_L=yes
12169 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12170 # that the semantics of dynamic libraries on AmigaOS, at least up
12171 # to version 4, is to share data among multiple programs linked
12172 # with the same dynamic library. Since this doesn't match the
12173 # behavior of shared libraries on other platforms, we can't use
12179 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12180 allow_undefined_flag=unsupported
12181 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12182 # support --undefined. This deserves some investigation. FIXME
12183 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12189 cygwin* | mingw* | pw32*)
12190 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12191 # as there is no search path for DLLs.
12192 hardcode_libdir_flag_spec='-L$libdir'
12193 allow_undefined_flag=unsupported
12194 always_export_symbols=no
12195 enable_shared_with_static_runtimes=yes
12196 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12198 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12200 # If the export-symbols file already is a .def file (1st line
12201 # is EXPORTS), use it as is; otherwise, prepend...
12202 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12203 cp $export_symbols $output_objdir/$soname.def;
12205 echo EXPORTS > $output_objdir/$soname.def;
12206 cat $export_symbols >> $output_objdir/$soname.def;
12208 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12215 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12216 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12220 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12225 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12229 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12230 *** create shared libraries on Solaris systems. Therefore, libtool
12231 *** is disabling shared libraries support. We urge you to upgrade GNU
12232 *** binutils to release 2.9.1 or newer. Another option is to modify
12233 *** your PATH or compiler configuration so that the native linker is
12234 *** used, and then restart.
12237 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12239 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12246 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12248 hardcode_direct=yes
12249 hardcode_shlibpath_var=no
12253 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12254 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12255 archive_cmds="$tmp_archive_cmds"
12256 supports_anon_versioning=no
12257 case `$LD -v 2>/dev/null` in
12258 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12259 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12260 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12261 *\ 2.11.*) ;; # other 2.11 versions
12262 *) supports_anon_versioning=yes ;;
12264 if test $supports_anon_versioning = yes; then
12265 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12266 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12267 $echo "local: *; };" >> $output_objdir/$libname.ver~
12268 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12270 archive_expsym_cmds="$tmp_archive_cmds"
12278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12280 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12287 if test "$ld_shlibs" = yes; then
12288 runpath_var=LD_RUN_PATH
12289 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12290 export_dynamic_flag_spec='${wl}--export-dynamic'
12291 # ancient GNU ld didn't support --whole-archive et. al.
12292 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12293 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12295 whole_archive_flag_spec=
12299 # PORTME fill in a description of your system's linker (not GNU ld)
12302 allow_undefined_flag=unsupported
12303 always_export_symbols=yes
12304 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'
12305 # Note: this linker hardcodes the directories in LIBPATH if there
12306 # are no directories specified by -L.
12307 hardcode_minus_L=yes
12308 if test "$GCC" = yes && test -z "$link_static_flag"; then
12309 # Neither direct hardcoding nor static linking is supported with a
12311 hardcode_direct=unsupported
12316 if test "$host_cpu" = ia64; then
12317 # On IA64, the linker does run time linking by default, so we don't
12318 # have to do anything special.
12319 aix_use_runtimelinking=no
12320 exp_sym_flag='-Bexport'
12323 # If we're using GNU nm, then we don't want the "-C" option.
12324 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12325 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12326 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'
12328 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'
12330 aix_use_runtimelinking=no
12332 # Test if we are trying to use run time linking or normal
12333 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12334 # need to do runtime linking.
12335 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12336 for ld_flag in $LDFLAGS; do
12337 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12338 aix_use_runtimelinking=yes
12344 exp_sym_flag='-bexport'
12345 no_entry_flag='-bnoentry'
12348 # When large executables or shared objects are built, AIX ld can
12349 # have problems creating the table of contents. If linking a library
12350 # or program results in "error TOC overflow" add -mminimal-toc to
12351 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12352 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12355 hardcode_direct=yes
12356 hardcode_libdir_separator=':'
12357 link_all_deplibs=yes
12359 if test "$GCC" = yes; then
12360 case $host_os in aix4.012|aix4.012.*)
12361 # We only want to do this on AIX 4.2 and lower, the check
12362 # below for broken collect2 doesn't work under 4.3+
12363 collect2name=`${CC} -print-prog-name=collect2`
12364 if test -f "$collect2name" && \
12365 strings "$collect2name" | grep resolve_lib_name >/dev/null
12367 # We have reworked collect2
12368 hardcode_direct=yes
12370 # We have old collect2
12371 hardcode_direct=unsupported
12372 # It fails to find uninstalled libraries when the uninstalled
12373 # path is not listed in the libpath. Setting hardcode_minus_L
12374 # to unsupported forces relinking
12375 hardcode_minus_L=yes
12376 hardcode_libdir_flag_spec='-L$libdir'
12377 hardcode_libdir_separator=
12380 shared_flag='-shared'
12383 if test "$host_cpu" = ia64; then
12384 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12385 # chokes on -Wl,-G. The following line is correct:
12388 if test "$aix_use_runtimelinking" = yes; then
12389 shared_flag='${wl}-G'
12391 shared_flag='${wl}-bM:SRE'
12396 # It seems that -bexpall does not export symbols beginning with
12397 # underscore (_), so it is better to generate a list of symbols to export.
12398 always_export_symbols=yes
12399 if test "$aix_use_runtimelinking" = yes; then
12400 # Warning - without using the other runtime loading flags (-brtl),
12401 # -berok will link without error, but may produce a broken library.
12402 allow_undefined_flag='-berok'
12403 # Determine the default libpath from the value encoded in an empty executable.
12404 cat >conftest.$ac_ext <<_ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12421 (eval $ac_link) 2>conftest.er1
12423 grep -v '^ *+' conftest.er1 >conftest.err
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
12428 { ac_try='test -z "$ac_c_werror_flag"
12429 || test ! -s conftest.err'
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; } &&
12435 { ac_try='test -s conftest$ac_exeext'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; }; then
12442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12444 # Check for a 64-bit object if we didn't find anything.
12445 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; }
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12452 rm -f conftest.err conftest.$ac_objext \
12453 conftest$ac_exeext conftest.$ac_ext
12454 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12456 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12457 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"
12459 if test "$host_cpu" = ia64; then
12460 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12461 allow_undefined_flag="-z nodefs"
12462 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"
12464 # Determine the default libpath from the value encoded in an empty executable.
12465 cat >conftest.$ac_ext <<_ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12480 rm -f conftest.$ac_objext conftest$ac_exeext
12481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12482 (eval $ac_link) 2>conftest.er1
12484 grep -v '^ *+' conftest.er1 >conftest.err
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -z "$ac_c_werror_flag"
12490 || test ! -s conftest.err'
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; } &&
12496 { ac_try='test -s conftest$ac_exeext'
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12503 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12505 # Check for a 64-bit object if we didn't find anything.
12506 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; }
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12513 rm -f conftest.err conftest.$ac_objext \
12514 conftest$ac_exeext conftest.$ac_ext
12515 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12517 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12518 # Warning - without using the other run time loading flags,
12519 # -berok will link without error, but may produce a broken library.
12520 no_undefined_flag=' ${wl}-bernotok'
12521 allow_undefined_flag=' ${wl}-berok'
12522 # -bexpall does not export symbols beginning with underscore (_)
12523 always_export_symbols=yes
12524 # Exported symbols can be pulled into shared objects from archives
12525 whole_archive_flag_spec=' '
12526 archive_cmds_need_lc=yes
12527 # This is similar to how AIX traditionally builds it's shared libraries.
12528 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'
12534 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)'
12535 hardcode_libdir_flag_spec='-L$libdir'
12536 hardcode_minus_L=yes
12537 # see comment about different semantics on the GNU ld section
12542 export_dynamic_flag_spec=-rdynamic
12545 cygwin* | mingw* | pw32*)
12546 # When not using gcc, we currently assume that we are using
12547 # Microsoft Visual C++.
12548 # hardcode_libdir_flag_spec is actually meaningless, as there is
12549 # no search path for DLLs.
12550 hardcode_libdir_flag_spec=' '
12551 allow_undefined_flag=unsupported
12552 # Tell ltmain to make .lib files, not .a files.
12554 # Tell ltmain to make .dll files, not .so files.
12556 # FIXME: Setting linknames here is a bad hack.
12557 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12558 # The linker will automatically build a .lib file if we build a DLL.
12559 old_archive_From_new_cmds='true'
12560 # FIXME: Should let the user specify the lib program.
12561 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12562 fix_srcfile_path='`cygpath -w "$srcfile"`'
12563 enable_shared_with_static_runtimes=yes
12566 darwin* | rhapsody*)
12568 rhapsody* | darwin1.[012])
12569 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12572 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12573 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12575 case ${MACOSX_DEPLOYMENT_TARGET} in
12577 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12580 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12586 archive_cmds_need_lc=no
12588 hardcode_automatic=yes
12589 hardcode_shlibpath_var=unsupported
12590 whole_archive_flag_spec=''
12591 link_all_deplibs=yes
12592 if test "$GCC" = yes ; then
12593 output_verbose_link_cmd='echo'
12594 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12595 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12596 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12597 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}'
12598 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}'
12600 case "$cc_basename" in
12602 output_verbose_link_cmd='echo'
12603 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12604 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12605 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12606 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}'
12607 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}'
12617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12618 hardcode_libdir_flag_spec='-L$libdir'
12619 hardcode_shlibpath_var=no
12626 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12627 # support. Future versions do this automatically, but an explicit c++rt0.o
12628 # does not break anything, and helps significantly (at the cost of a little
12631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12632 hardcode_libdir_flag_spec='-R$libdir'
12633 hardcode_direct=yes
12634 hardcode_shlibpath_var=no
12637 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12639 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12640 hardcode_direct=yes
12641 hardcode_minus_L=yes
12642 hardcode_shlibpath_var=no
12645 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12646 freebsd* | kfreebsd*-gnu)
12647 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12648 hardcode_libdir_flag_spec='-R$libdir'
12649 hardcode_direct=yes
12650 hardcode_shlibpath_var=no
12654 if test "$GCC" = yes; then
12655 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'
12657 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'
12659 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12660 hardcode_libdir_separator=:
12661 hardcode_direct=yes
12663 # hardcode_minus_L: Not really in the search PATH,
12664 # but as the default location of the library.
12665 hardcode_minus_L=yes
12666 export_dynamic_flag_spec='${wl}-E'
12670 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12671 case "$host_cpu" in
12673 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12676 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12680 case "$host_cpu" in
12682 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12685 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12689 if test "$with_gnu_ld" = no; then
12690 case "$host_cpu" in
12692 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12693 hardcode_libdir_flag_spec_ld='+b $libdir'
12694 hardcode_libdir_separator=:
12696 hardcode_shlibpath_var=no
12699 hardcode_libdir_flag_spec='-L$libdir'
12701 hardcode_shlibpath_var=no
12703 # hardcode_minus_L: Not really in the search PATH,
12704 # but as the default location of the library.
12705 hardcode_minus_L=yes
12708 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12709 hardcode_libdir_separator=:
12710 hardcode_direct=yes
12711 export_dynamic_flag_spec='${wl}-E'
12713 # hardcode_minus_L: Not really in the search PATH,
12714 # but as the default location of the library.
12715 hardcode_minus_L=yes
12721 irix5* | irix6* | nonstopux*)
12722 if test "$GCC" = yes; then
12723 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'
12725 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'
12726 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12729 hardcode_libdir_separator=:
12730 link_all_deplibs=yes
12734 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12737 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12739 hardcode_libdir_flag_spec='-R$libdir'
12740 hardcode_direct=yes
12741 hardcode_shlibpath_var=no
12745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12746 hardcode_direct=yes
12747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12748 hardcode_libdir_separator=:
12749 hardcode_shlibpath_var=no
12753 hardcode_direct=yes
12754 hardcode_shlibpath_var=no
12755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12757 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12759 export_dynamic_flag_spec='${wl}-E'
12762 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12764 hardcode_libdir_flag_spec='-R$libdir'
12767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12768 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12775 hardcode_libdir_flag_spec='-L$libdir'
12776 hardcode_minus_L=yes
12777 allow_undefined_flag=unsupported
12778 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'
12779 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12783 if test "$GCC" = yes; then
12784 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12785 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12787 allow_undefined_flag=' -expect_unresolved \*'
12788 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'
12790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12791 hardcode_libdir_separator=:
12794 osf4* | osf5*) # as osf3* with the addition of -msym flag
12795 if test "$GCC" = yes; then
12796 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12797 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'
12798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12800 allow_undefined_flag=' -expect_unresolved \*'
12801 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'
12802 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12803 $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'
12805 # Both c and cxx compiler support -rpath directly
12806 hardcode_libdir_flag_spec='-rpath $libdir'
12808 hardcode_libdir_separator=:
12812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12813 hardcode_shlibpath_var=no
12814 export_dynamic_flag_spec='${wl}-Bexport'
12815 runpath_var=LD_RUN_PATH
12816 hardcode_runpath_var=yes
12820 no_undefined_flag=' -z text'
12821 if test "$GCC" = yes; then
12822 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12823 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12824 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12826 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12827 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12828 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12830 hardcode_libdir_flag_spec='-R$libdir'
12831 hardcode_shlibpath_var=no
12833 solaris2.[0-5] | solaris2.[0-5].*) ;;
12834 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12835 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12837 link_all_deplibs=yes
12841 if test "x$host_vendor" = xsequent; then
12842 # Use $CC to link under sequent, because it throws in some extra .o
12843 # files that make .init and .fini sections work.
12844 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12846 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12848 hardcode_libdir_flag_spec='-L$libdir'
12849 hardcode_direct=yes
12850 hardcode_minus_L=yes
12851 hardcode_shlibpath_var=no
12855 case $host_vendor in
12857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12858 hardcode_direct=yes # is this really true???
12861 ## LD is ld it makes a PLAMLIB
12862 ## CC just makes a GrossModule.
12863 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12864 reload_cmds='$CC -r -o $output$reload_objs'
12868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12869 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12872 runpath_var='LD_RUN_PATH'
12873 hardcode_shlibpath_var=no
12877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12878 hardcode_shlibpath_var=no
12879 export_dynamic_flag_spec='-Bexport'
12883 if test -d /usr/nec; then
12884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12885 hardcode_shlibpath_var=no
12886 runpath_var=LD_RUN_PATH
12887 hardcode_runpath_var=yes
12893 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12894 hardcode_direct=yes
12895 hardcode_minus_L=no
12896 hardcode_shlibpath_var=no
12897 hardcode_runpath_var=yes
12898 runpath_var=LD_RUN_PATH
12901 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12902 no_undefined_flag='${wl}-z ${wl}text'
12903 if test "$GCC" = yes; then
12904 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12906 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12908 runpath_var='LD_RUN_PATH'
12909 hardcode_shlibpath_var=no
12913 no_undefined_flag=' -z text'
12914 # $CC -shared without GNU ld will not create a library from C++
12915 # object files and a static libstdc++, better avoid it by now
12916 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12917 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12918 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12919 hardcode_libdir_flag_spec=
12920 hardcode_shlibpath_var=no
12921 runpath_var='LD_RUN_PATH'
12925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12926 hardcode_libdir_flag_spec='-L$libdir'
12927 hardcode_shlibpath_var=no
12936 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12937 echo "${ECHO_T}$ld_shlibs" >&6
12938 test "$ld_shlibs" = no && can_build_shared=no
12940 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12941 if test "$GCC" = yes; then
12942 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12946 # Do we need to explicitly link libc?
12948 case "x$archive_cmds_need_lc" in
12950 # Assume -lc should be added
12951 archive_cmds_need_lc=yes
12953 if test "$enable_shared" = yes && test "$GCC" = yes; then
12954 case $archive_cmds in
12956 # FIXME: we may have to deal with multi-command sequences.
12959 # Test whether the compiler implicitly links with -lc since on some
12960 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12961 # to ld, don't add -lc before -lgcc.
12962 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12963 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12965 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12968 (eval $ac_compile) 2>&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } 2>conftest.err; then
12974 libobjs=conftest.$ac_objext
12976 wl=$lt_prog_compiler_wl
12982 lt_save_allow_undefined_flag=$allow_undefined_flag
12983 allow_undefined_flag=
12984 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12985 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }
12990 archive_cmds_need_lc=no
12992 archive_cmds_need_lc=yes
12994 allow_undefined_flag=$lt_save_allow_undefined_flag
12996 cat conftest.err 1>&5
12999 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13000 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13007 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13008 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13009 library_names_spec=
13010 libname_spec='lib$name'
13014 postuninstall_cmds=
13018 shlibpath_overrides_runpath=unknown
13020 dynamic_linker="$host_os ld.so"
13021 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13022 if test "$GCC" = yes; then
13023 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13024 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13025 # if the path contains ";" then we assume it to be the separator
13026 # otherwise default to the standard path separator (i.e. ":") - it is
13027 # assumed that no part of a normal pathname contains ";" but that should
13028 # okay in the real world where ";" in dirpaths is itself problematic.
13029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13034 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13036 need_lib_prefix=unknown
13037 hardcode_into_libs=no
13039 # when you set need_version to no, make sure it does not cause -set_version
13040 # flags to be left without arguments
13041 need_version=unknown
13046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13047 shlibpath_var=LIBPATH
13049 # AIX 3 has no versioning support, so we append a major version to the name.
13050 soname_spec='${libname}${release}${shared_ext}$major'
13057 hardcode_into_libs=yes
13058 if test "$host_cpu" = ia64; then
13059 # AIX 5 supports IA64
13060 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13061 shlibpath_var=LD_LIBRARY_PATH
13063 # With GCC up to 2.95.x, collect2 would create an import file
13064 # for dependence libraries. The import file would start with
13065 # the line `#! .'. This would cause the generated library to
13066 # depend on `.', always an invalid library. This was fixed in
13067 # development snapshots of GCC prior to 3.0.
13069 aix4 | aix4.[01] | aix4.[01].*)
13070 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13072 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13075 can_build_shared=no
13079 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13080 # soname into executable. Probably we can add versioning support to
13081 # collect2, so additional links can be useful in future.
13082 if test "$aix_use_runtimelinking" = yes; then
13083 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13084 # instead of lib<name>.a to let people know that these are not
13085 # typical AIX shared libraries.
13086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13088 # We preserve .a as extension for shared libraries through AIX4.2
13089 # and later when we are not doing run time linking.
13090 library_names_spec='${libname}${release}.a $libname.a'
13091 soname_spec='${libname}${release}${shared_ext}$major'
13093 shlibpath_var=LIBPATH
13098 library_names_spec='$libname.ixlibrary $libname.a'
13099 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13100 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'
13104 library_names_spec='${libname}${shared_ext}'
13105 dynamic_linker="$host_os ld.so"
13106 shlibpath_var=LIBRARY_PATH
13112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13113 soname_spec='${libname}${release}${shared_ext}$major'
13114 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13115 shlibpath_var=LD_LIBRARY_PATH
13116 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13117 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13118 # the default ld.so.conf also contains /usr/contrib/lib and
13119 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13120 # libtool to hard-code these into programs
13123 cygwin* | mingw* | pw32*)
13124 version_type=windows
13129 case $GCC,$host_os in
13130 yes,cygwin* | yes,mingw* | yes,pw32*)
13131 library_names_spec='$libname.dll.a'
13132 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13133 postinstall_cmds='base_file=`basename \${file}`~
13134 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13135 dldir=$destdir/`dirname \$dlpath`~
13136 test -d \$dldir || mkdir -p \$dldir~
13137 $install_prog $dir/$dlname \$dldir/$dlname'
13138 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13139 dlpath=$dir/\$dldll~
13141 shlibpath_overrides_runpath=yes
13145 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13146 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13147 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13150 # MinGW DLLs use traditional 'lib' prefix
13151 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13152 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13153 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13154 # It is most probably a Windows format PATH printed by
13155 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13156 # path with ; separators, and with drive letters. We can handle the
13157 # drive letters (cygwin fileutils understands them), so leave them,
13158 # especially as we might pass files found there to a mingw objdump,
13159 # which wouldn't understand a cygwinified path. Ahh.
13160 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13162 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13166 # pw32 DLLs use 'pw' prefix rather than 'lib'
13167 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13173 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13176 dynamic_linker='Win32 ld.exe'
13177 # FIXME: first we should search . and the directory the executable is in
13181 darwin* | rhapsody*)
13182 dynamic_linker="$host_os dyld"
13183 version_type=darwin
13186 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13187 soname_spec='${libname}${release}${major}$shared_ext'
13188 shlibpath_overrides_runpath=yes
13189 shlibpath_var=DYLD_LIBRARY_PATH
13190 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13191 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13192 if test "$GCC" = yes; then
13193 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"`
13195 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13197 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13205 soname_spec='${libname}${release}${shared_ext}$major'
13206 shlibpath_var=LD_LIBRARY_PATH
13217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13218 soname_spec='${libname}${release}${shared_ext}$major'
13219 shlibpath_var=LD_LIBRARY_PATH
13220 shlibpath_overrides_runpath=no
13221 hardcode_into_libs=yes
13222 dynamic_linker='GNU ld.so'
13226 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13227 version_type=freebsd-$objformat
13228 case $version_type in
13230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13239 shlibpath_var=LD_LIBRARY_PATH
13242 shlibpath_overrides_runpath=yes
13244 freebsd3.01* | freebsdelf3.01*)
13245 shlibpath_overrides_runpath=yes
13246 hardcode_into_libs=yes
13249 shlibpath_overrides_runpath=no
13250 hardcode_into_libs=yes
13259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13260 soname_spec='${libname}${release}${shared_ext}$major'
13261 shlibpath_var=LD_LIBRARY_PATH
13262 hardcode_into_libs=yes
13265 hpux9* | hpux10* | hpux11*)
13266 # Give a soname corresponding to the major version so that dld.sl refuses to
13267 # link against other versions.
13271 case "$host_cpu" in
13274 hardcode_into_libs=yes
13275 dynamic_linker="$host_os dld.so"
13276 shlibpath_var=LD_LIBRARY_PATH
13277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279 soname_spec='${libname}${release}${shared_ext}$major'
13280 if test "X$HPUX_IA64_MODE" = X32; then
13281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13283 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13289 hardcode_into_libs=yes
13290 dynamic_linker="$host_os dld.sl"
13291 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13294 soname_spec='${libname}${release}${shared_ext}$major'
13295 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13300 dynamic_linker="$host_os dld.sl"
13301 shlibpath_var=SHLIB_PATH
13302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
13307 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13308 postinstall_cmds='chmod 555 $lib'
13311 irix5* | irix6* | nonstopux*)
13313 nonstopux*) version_type=nonstopux ;;
13315 if test "$lt_cv_prog_gnu_ld" = yes; then
13323 soname_spec='${libname}${release}${shared_ext}$major'
13324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13326 irix5* | nonstopux*)
13327 libsuff= shlibsuff=
13330 case $LD in # libtool.m4 will add one of these switches to LD
13331 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13332 libsuff= shlibsuff= libmagic=32-bit;;
13333 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13334 libsuff=32 shlibsuff=N32 libmagic=N32;;
13335 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13336 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13337 *) libsuff= shlibsuff= libmagic=never-match;;
13341 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13342 shlibpath_overrides_runpath=no
13343 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13344 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13345 hardcode_into_libs=yes
13348 # No shared lib support for Linux oldld, aout, or coff.
13349 linux*oldld* | linux*aout* | linux*coff*)
13353 # This must be Linux ELF.
13358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13359 soname_spec='${libname}${release}${shared_ext}$major'
13360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13361 shlibpath_var=LD_LIBRARY_PATH
13362 shlibpath_overrides_runpath=no
13363 # This implies no fast_install, which is unacceptable.
13364 # Some rework will be needed to allow for fast_install
13365 # before this can be enabled.
13366 hardcode_into_libs=yes
13368 # Append ld.so.conf contents to the search path
13369 if test -f /etc/ld.so.conf; then
13370 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13371 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13374 # We used to test for /lib/ld.so.1 and disable shared libraries on
13375 # powerpc, because MkLinux only supported shared libraries with the
13376 # GNU dynamic linker. Since this was broken with cross compilers,
13377 # most powerpc-linux boxes support dynamic linking these days and
13378 # people can always --disable-shared, the test was removed, and we
13379 # assume the GNU/Linux dynamic linker is in use.
13380 dynamic_linker='GNU/Linux ld.so'
13387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13388 soname_spec='${libname}${release}${shared_ext}$major'
13389 shlibpath_var=LD_LIBRARY_PATH
13390 shlibpath_overrides_runpath=no
13391 hardcode_into_libs=yes
13392 dynamic_linker='GNU ld.so'
13399 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13402 dynamic_linker='NetBSD (a.out) ld.so'
13404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13405 soname_spec='${libname}${release}${shared_ext}$major'
13406 dynamic_linker='NetBSD ld.elf_so'
13408 shlibpath_var=LD_LIBRARY_PATH
13409 shlibpath_overrides_runpath=yes
13410 hardcode_into_libs=yes
13415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416 shlibpath_var=LD_LIBRARY_PATH
13417 shlibpath_overrides_runpath=yes
13424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13425 soname_spec='${libname}${release}${shared_ext}$major'
13426 shlibpath_var=LD_LIBRARY_PATH
13427 shlibpath_overrides_runpath=yes
13434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13436 shlibpath_var=LD_LIBRARY_PATH
13437 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13439 openbsd2.[89] | openbsd2.[89].*)
13440 shlibpath_overrides_runpath=no
13443 shlibpath_overrides_runpath=yes
13447 shlibpath_overrides_runpath=yes
13452 libname_spec='$name'
13455 library_names_spec='$libname${shared_ext} $libname.a'
13456 dynamic_linker='OS/2 ld.exe'
13457 shlibpath_var=LIBPATH
13460 osf3* | osf4* | osf5*)
13464 soname_spec='${libname}${release}${shared_ext}$major'
13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13466 shlibpath_var=LD_LIBRARY_PATH
13467 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13468 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13473 soname_spec='${libname}${release}${shared_ext}$major'
13474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13475 shlibpath_var=LD_LIBRARY_PATH
13482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13483 soname_spec='${libname}${release}${shared_ext}$major'
13484 shlibpath_var=LD_LIBRARY_PATH
13485 shlibpath_overrides_runpath=yes
13486 hardcode_into_libs=yes
13487 # ldd complains unless libraries are executable
13488 postinstall_cmds='chmod +x $lib'
13493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13494 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13495 shlibpath_var=LD_LIBRARY_PATH
13496 shlibpath_overrides_runpath=yes
13497 if test "$with_gnu_ld" = yes; then
13503 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13506 soname_spec='${libname}${release}${shared_ext}$major'
13507 shlibpath_var=LD_LIBRARY_PATH
13508 case $host_vendor in
13510 shlibpath_overrides_runpath=no
13512 export_dynamic_flag_spec='${wl}-Blargedynsym'
13513 runpath_var=LD_RUN_PATH
13521 shlibpath_overrides_runpath=no
13522 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13528 if test -d /usr/nec ;then
13530 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13531 soname_spec='$libname${shared_ext}.$major'
13532 shlibpath_var=LD_LIBRARY_PATH
13538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13539 soname_spec='${libname}${release}${shared_ext}$major'
13540 shlibpath_var=LD_LIBRARY_PATH
13547 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13548 echo "${ECHO_T}$dynamic_linker" >&6
13549 test "$dynamic_linker" = no && can_build_shared=no
13551 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13552 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13554 if test -n "$hardcode_libdir_flag_spec" || \
13555 test -n "$runpath_var" || \
13556 test "X$hardcode_automatic" = "Xyes" ; then
13558 # We can hardcode non-existant directories.
13559 if test "$hardcode_direct" != no &&
13560 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13561 # have to relink, otherwise we might link with an installed library
13562 # when we should be linking with a yet-to-be-installed one
13563 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13564 test "$hardcode_minus_L" != no; then
13565 # Linking always hardcodes the temporary library directory.
13566 hardcode_action=relink
13568 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13569 hardcode_action=immediate
13572 # We cannot hardcode anything, or else we can only hardcode existing
13574 hardcode_action=unsupported
13576 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13577 echo "${ECHO_T}$hardcode_action" >&6
13579 if test "$hardcode_action" = relink; then
13580 # Fast installation is not supported
13581 enable_fast_install=no
13582 elif test "$shlibpath_overrides_runpath" = yes ||
13583 test "$enable_shared" = no; then
13584 # Fast installation is not necessary
13585 enable_fast_install=needless
13590 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13591 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13592 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13593 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13594 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13595 echo "$as_me:$LINENO: result: yes" >&5
13596 echo "${ECHO_T}yes" >&6
13598 # FIXME - insert some real tests, host_os isn't really good enough
13601 if test -n "$STRIP" ; then
13602 striplib="$STRIP -x"
13603 echo "$as_me:$LINENO: result: yes" >&5
13604 echo "${ECHO_T}yes" >&6
13606 echo "$as_me:$LINENO: result: no" >&5
13607 echo "${ECHO_T}no" >&6
13611 echo "$as_me:$LINENO: result: no" >&5
13612 echo "${ECHO_T}no" >&6
13617 if test "x$enable_dlopen" != xyes; then
13618 enable_dlopen=unknown
13619 enable_dlopen_self=unknown
13620 enable_dlopen_self_static=unknown
13627 lt_cv_dlopen="load_add_on"
13629 lt_cv_dlopen_self=yes
13633 lt_cv_dlopen="LoadLibrary"
13638 lt_cv_dlopen="dlopen"
13643 # if libdl is installed we need to link against it
13644 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13645 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13646 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 ac_check_lib_save_LIBS=$LIBS
13651 cat >conftest.$ac_ext <<_ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h. */
13658 /* Override any gcc2 internal prototype to avoid an error. */
13662 /* We use char because int might match the return type of a gcc2
13663 builtin and then its argument prototype would still apply. */
13673 rm -f conftest.$ac_objext conftest$ac_exeext
13674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13675 (eval $ac_link) 2>conftest.er1
13677 grep -v '^ *+' conftest.er1 >conftest.err
13679 cat conftest.err >&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } &&
13682 { ac_try='test -z "$ac_c_werror_flag"
13683 || test ! -s conftest.err'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; } &&
13689 { ac_try='test -s conftest$ac_exeext'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; }; then
13695 ac_cv_lib_dl_dlopen=yes
13697 echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13700 ac_cv_lib_dl_dlopen=no
13702 rm -f conftest.err conftest.$ac_objext \
13703 conftest$ac_exeext conftest.$ac_ext
13704 LIBS=$ac_check_lib_save_LIBS
13706 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13707 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13708 if test $ac_cv_lib_dl_dlopen = yes; then
13709 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13712 lt_cv_dlopen="dyld"
13714 lt_cv_dlopen_self=yes
13721 echo "$as_me:$LINENO: checking for shl_load" >&5
13722 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13723 if test "${ac_cv_func_shl_load+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13726 cat >conftest.$ac_ext <<_ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13732 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13734 #define shl_load innocuous_shl_load
13736 /* System header to define __stub macros and hopefully few prototypes,
13737 which can conflict with char shl_load (); below.
13738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13739 <limits.h> exists even on freestanding compilers. */
13742 # include <limits.h>
13744 # include <assert.h>
13749 /* Override any gcc2 internal prototype to avoid an error. */
13754 /* We use char because int might match the return type of a gcc2
13755 builtin and then its argument prototype would still apply. */
13757 /* The GNU C library defines this for functions which it implements
13758 to always fail with ENOSYS. Some functions are actually named
13759 something starting with __ and the normal name is an alias. */
13760 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13763 char (*f) () = shl_load;
13772 return f != shl_load;
13777 rm -f conftest.$ac_objext conftest$ac_exeext
13778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13779 (eval $ac_link) 2>conftest.er1
13781 grep -v '^ *+' conftest.er1 >conftest.err
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -z "$ac_c_werror_flag"
13787 || test ! -s conftest.err'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; } &&
13793 { ac_try='test -s conftest$ac_exeext'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_cv_func_shl_load=yes
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13804 ac_cv_func_shl_load=no
13806 rm -f conftest.err conftest.$ac_objext \
13807 conftest$ac_exeext conftest.$ac_ext
13809 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13810 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13811 if test $ac_cv_func_shl_load = yes; then
13812 lt_cv_dlopen="shl_load"
13814 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13815 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13816 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 ac_check_lib_save_LIBS=$LIBS
13821 cat >conftest.$ac_ext <<_ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13828 /* Override any gcc2 internal prototype to avoid an error. */
13832 /* We use char because int might match the return type of a gcc2
13833 builtin and then its argument prototype would still apply. */
13843 rm -f conftest.$ac_objext conftest$ac_exeext
13844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13845 (eval $ac_link) 2>conftest.er1
13847 grep -v '^ *+' conftest.er1 >conftest.err
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
13852 { ac_try='test -z "$ac_c_werror_flag"
13853 || test ! -s conftest.err'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; } &&
13859 { ac_try='test -s conftest$ac_exeext'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
13865 ac_cv_lib_dld_shl_load=yes
13867 echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13870 ac_cv_lib_dld_shl_load=no
13872 rm -f conftest.err conftest.$ac_objext \
13873 conftest$ac_exeext conftest.$ac_ext
13874 LIBS=$ac_check_lib_save_LIBS
13876 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13877 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13878 if test $ac_cv_lib_dld_shl_load = yes; then
13879 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13881 echo "$as_me:$LINENO: checking for dlopen" >&5
13882 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13883 if test "${ac_cv_func_dlopen+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 cat >conftest.$ac_ext <<_ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13892 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13894 #define dlopen innocuous_dlopen
13896 /* System header to define __stub macros and hopefully few prototypes,
13897 which can conflict with char dlopen (); below.
13898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13899 <limits.h> exists even on freestanding compilers. */
13902 # include <limits.h>
13904 # include <assert.h>
13909 /* Override any gcc2 internal prototype to avoid an error. */
13914 /* We use char because int might match the return type of a gcc2
13915 builtin and then its argument prototype would still apply. */
13917 /* The GNU C library defines this for functions which it implements
13918 to always fail with ENOSYS. Some functions are actually named
13919 something starting with __ and the normal name is an alias. */
13920 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13923 char (*f) () = dlopen;
13932 return f != dlopen;
13937 rm -f conftest.$ac_objext conftest$ac_exeext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13939 (eval $ac_link) 2>conftest.er1
13941 grep -v '^ *+' conftest.er1 >conftest.err
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -z "$ac_c_werror_flag"
13947 || test ! -s conftest.err'
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; } &&
13953 { ac_try='test -s conftest$ac_exeext'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959 ac_cv_func_dlopen=yes
13961 echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13964 ac_cv_func_dlopen=no
13966 rm -f conftest.err conftest.$ac_objext \
13967 conftest$ac_exeext conftest.$ac_ext
13969 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13970 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13971 if test $ac_cv_func_dlopen = yes; then
13972 lt_cv_dlopen="dlopen"
13974 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13975 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13976 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13977 echo $ECHO_N "(cached) $ECHO_C" >&6
13979 ac_check_lib_save_LIBS=$LIBS
13981 cat >conftest.$ac_ext <<_ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h. */
13988 /* Override any gcc2 internal prototype to avoid an error. */
13992 /* We use char because int might match the return type of a gcc2
13993 builtin and then its argument prototype would still apply. */
14003 rm -f conftest.$ac_objext conftest$ac_exeext
14004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14005 (eval $ac_link) 2>conftest.er1
14007 grep -v '^ *+' conftest.er1 >conftest.err
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } &&
14012 { ac_try='test -z "$ac_c_werror_flag"
14013 || test ! -s conftest.err'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; } &&
14019 { ac_try='test -s conftest$ac_exeext'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 ac_cv_lib_dl_dlopen=yes
14027 echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14030 ac_cv_lib_dl_dlopen=no
14032 rm -f conftest.err conftest.$ac_objext \
14033 conftest$ac_exeext conftest.$ac_ext
14034 LIBS=$ac_check_lib_save_LIBS
14036 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14037 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14038 if test $ac_cv_lib_dl_dlopen = yes; then
14039 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14041 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14042 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14043 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14046 ac_check_lib_save_LIBS=$LIBS
14047 LIBS="-lsvld $LIBS"
14048 cat >conftest.$ac_ext <<_ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h. */
14055 /* Override any gcc2 internal prototype to avoid an error. */
14059 /* We use char because int might match the return type of a gcc2
14060 builtin and then its argument prototype would still apply. */
14070 rm -f conftest.$ac_objext conftest$ac_exeext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14072 (eval $ac_link) 2>conftest.er1
14074 grep -v '^ *+' conftest.er1 >conftest.err
14076 cat conftest.err >&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
14079 { ac_try='test -z "$ac_c_werror_flag"
14080 || test ! -s conftest.err'
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; } &&
14086 { ac_try='test -s conftest$ac_exeext'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14092 ac_cv_lib_svld_dlopen=yes
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14097 ac_cv_lib_svld_dlopen=no
14099 rm -f conftest.err conftest.$ac_objext \
14100 conftest$ac_exeext conftest.$ac_ext
14101 LIBS=$ac_check_lib_save_LIBS
14103 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14104 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14105 if test $ac_cv_lib_svld_dlopen = yes; then
14106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14108 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14109 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14110 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14111 echo $ECHO_N "(cached) $ECHO_C" >&6
14113 ac_check_lib_save_LIBS=$LIBS
14115 cat >conftest.$ac_ext <<_ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14122 /* Override any gcc2 internal prototype to avoid an error. */
14126 /* We use char because int might match the return type of a gcc2
14127 builtin and then its argument prototype would still apply. */
14137 rm -f conftest.$ac_objext conftest$ac_exeext
14138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14139 (eval $ac_link) 2>conftest.er1
14141 grep -v '^ *+' conftest.er1 >conftest.err
14143 cat conftest.err >&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } &&
14146 { ac_try='test -z "$ac_c_werror_flag"
14147 || test ! -s conftest.err'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; } &&
14153 { ac_try='test -s conftest$ac_exeext'
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
14159 ac_cv_lib_dld_dld_link=yes
14161 echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14164 ac_cv_lib_dld_dld_link=no
14166 rm -f conftest.err conftest.$ac_objext \
14167 conftest$ac_exeext conftest.$ac_ext
14168 LIBS=$ac_check_lib_save_LIBS
14170 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14171 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14172 if test $ac_cv_lib_dld_dld_link = yes; then
14173 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14194 if test "x$lt_cv_dlopen" != xno; then
14200 case $lt_cv_dlopen in
14202 save_CPPFLAGS="$CPPFLAGS"
14203 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14205 save_LDFLAGS="$LDFLAGS"
14206 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14209 LIBS="$lt_cv_dlopen_libs $LIBS"
14211 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14212 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14213 if test "${lt_cv_dlopen_self+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 if test "$cross_compiling" = yes; then :
14217 lt_cv_dlopen_self=cross
14219 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14220 lt_status=$lt_dlunknown
14221 cat > conftest.$ac_ext <<EOF
14222 #line 14222 "configure"
14223 #include "confdefs.h"
14232 # define LT_DLGLOBAL RTLD_GLOBAL
14235 # define LT_DLGLOBAL DL_GLOBAL
14237 # define LT_DLGLOBAL 0
14241 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14242 find out it does not work in some platform. */
14243 #ifndef LT_DLLAZY_OR_NOW
14245 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14248 # define LT_DLLAZY_OR_NOW DL_LAZY
14251 # define LT_DLLAZY_OR_NOW RTLD_NOW
14254 # define LT_DLLAZY_OR_NOW DL_NOW
14256 # define LT_DLLAZY_OR_NOW 0
14264 extern "C" void exit (int);
14267 void fnord() { int i=42;}
14270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14271 int status = $lt_dlunknown;
14275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14276 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14277 /* dlclose (self); */
14283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14284 (eval $ac_link) 2>&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14288 (./conftest; exit; ) 2>/dev/null
14290 case x$lt_status in
14291 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14292 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14293 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14296 # compilation failed
14297 lt_cv_dlopen_self=no
14304 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14305 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14307 if test "x$lt_cv_dlopen_self" = xyes; then
14308 LDFLAGS="$LDFLAGS $link_static_flag"
14309 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14310 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14311 if test "${lt_cv_dlopen_self_static+set}" = set; then
14312 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 if test "$cross_compiling" = yes; then :
14315 lt_cv_dlopen_self_static=cross
14317 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14318 lt_status=$lt_dlunknown
14319 cat > conftest.$ac_ext <<EOF
14320 #line 14320 "configure"
14321 #include "confdefs.h"
14330 # define LT_DLGLOBAL RTLD_GLOBAL
14333 # define LT_DLGLOBAL DL_GLOBAL
14335 # define LT_DLGLOBAL 0
14339 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14340 find out it does not work in some platform. */
14341 #ifndef LT_DLLAZY_OR_NOW
14343 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14346 # define LT_DLLAZY_OR_NOW DL_LAZY
14349 # define LT_DLLAZY_OR_NOW RTLD_NOW
14352 # define LT_DLLAZY_OR_NOW DL_NOW
14354 # define LT_DLLAZY_OR_NOW 0
14362 extern "C" void exit (int);
14365 void fnord() { int i=42;}
14368 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14369 int status = $lt_dlunknown;
14373 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14374 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14375 /* dlclose (self); */
14381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14382 (eval $ac_link) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14386 (./conftest; exit; ) 2>/dev/null
14388 case x$lt_status in
14389 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14390 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14391 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14394 # compilation failed
14395 lt_cv_dlopen_self_static=no
14402 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14403 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14406 CPPFLAGS="$save_CPPFLAGS"
14407 LDFLAGS="$save_LDFLAGS"
14412 case $lt_cv_dlopen_self in
14413 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14414 *) enable_dlopen_self=unknown ;;
14417 case $lt_cv_dlopen_self_static in
14418 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14419 *) enable_dlopen_self_static=unknown ;;
14424 # Report which librarie types wil actually be built
14425 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14426 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14427 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14428 echo "${ECHO_T}$can_build_shared" >&6
14430 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14431 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14432 test "$can_build_shared" = "no" && enable_shared=no
14434 # On AIX, shared libraries and static libraries use the same namespace, and
14435 # are all built from PIC.
14438 test "$enable_shared" = yes && enable_static=no
14439 if test -n "$RANLIB"; then
14440 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14441 postinstall_cmds='$RANLIB $lib'
14446 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14447 test "$enable_shared" = yes && enable_static=no
14451 echo "$as_me:$LINENO: result: $enable_shared" >&5
14452 echo "${ECHO_T}$enable_shared" >&6
14454 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14455 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14456 # Make sure either enable_shared or enable_static is yes.
14457 test "$enable_shared" = yes || enable_static=yes
14458 echo "$as_me:$LINENO: result: $enable_static" >&5
14459 echo "${ECHO_T}$enable_static" >&6
14461 # The else clause should only fire when bootstrapping the
14462 # libtool distribution, otherwise you forgot to ship ltmain.sh
14463 # with your package, and you will get complaints that there are
14464 # no rules to generate ltmain.sh.
14465 if test -f "$ltmain"; then
14466 # See if we are running on zsh, and set the options which allow our commands through
14467 # without removal of \ escapes.
14468 if test -n "${ZSH_VERSION+set}" ; then
14469 setopt NO_GLOB_SUBST
14471 # Now quote all the things that may contain metacharacters while being
14472 # careful not to overquote the AC_SUBSTed values. We take copies of the
14473 # variables and quote the copies for generation of the libtool script.
14474 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14476 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14477 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14478 deplibs_check_method reload_flag reload_cmds need_locks \
14479 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14480 lt_cv_sys_global_symbol_to_c_name_address \
14481 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14482 old_postinstall_cmds old_postuninstall_cmds \
14486 lt_prog_compiler_wl \
14487 lt_prog_compiler_pic \
14488 lt_prog_compiler_static \
14489 lt_prog_compiler_no_builtin_flag \
14490 export_dynamic_flag_spec \
14491 thread_safe_flag_spec \
14492 whole_archive_flag_spec \
14493 enable_shared_with_static_runtimes \
14495 old_archive_from_new_cmds \
14500 compiler_lib_search_path \
14502 archive_expsym_cmds \
14504 postuninstall_cmds \
14505 old_archive_from_expsyms_cmds \
14506 allow_undefined_flag \
14507 no_undefined_flag \
14508 export_symbols_cmds \
14509 hardcode_libdir_flag_spec \
14510 hardcode_libdir_flag_spec_ld \
14511 hardcode_libdir_separator \
14512 hardcode_automatic \
14514 module_expsym_cmds \
14515 lt_cv_prog_compiler_c_o \
14517 include_expsyms; do
14520 old_archive_cmds | \
14521 old_archive_from_new_cmds | \
14523 archive_expsym_cmds | \
14525 module_expsym_cmds | \
14526 old_archive_from_expsyms_cmds | \
14527 export_symbols_cmds | \
14528 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14529 postinstall_cmds | postuninstall_cmds | \
14530 old_postinstall_cmds | old_postuninstall_cmds | \
14531 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14532 # Double-quote double-evaled strings.
14533 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14536 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14542 *'\$0 --fallback-echo"')
14543 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14547 cfgfile="${ofile}T"
14548 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14550 { echo "$as_me:$LINENO: creating $ofile" >&5
14551 echo "$as_me: creating $ofile" >&6;}
14553 cat <<__EOF__ >> "$cfgfile"
14556 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14557 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14558 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14560 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14561 # Free Software Foundation, Inc.
14563 # This file is part of GNU Libtool:
14564 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14566 # This program is free software; you can redistribute it and/or modify
14567 # it under the terms of the GNU General Public License as published by
14568 # the Free Software Foundation; either version 2 of the License, or
14569 # (at your option) any later version.
14571 # This program is distributed in the hope that it will be useful, but
14572 # WITHOUT ANY WARRANTY; without even the implied warranty of
14573 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14574 # General Public License for more details.
14576 # You should have received a copy of the GNU General Public License
14577 # along with this program; if not, write to the Free Software
14578 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14580 # As a special exception to the GNU General Public License, if you
14581 # distribute this file as part of a program that contains a
14582 # configuration script generated by Autoconf, you may include it under
14583 # the same distribution terms that you use for the rest of that program.
14585 # A sed program that does not truncate output.
14588 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14589 Xsed="$SED -e s/^X//"
14591 # The HP-UX ksh and POSIX shell print the target directory to stdout
14592 # if CDPATH is set.
14593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14595 # The names of the tagged configurations supported by this script.
14598 # ### BEGIN LIBTOOL CONFIG
14600 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14602 # Shell to use when invoking shell scripts.
14605 # Whether or not to build shared libraries.
14606 build_libtool_libs=$enable_shared
14608 # Whether or not to build static libraries.
14609 build_old_libs=$enable_static
14611 # Whether or not to add -lc for building shared libraries.
14612 build_libtool_need_lc=$archive_cmds_need_lc
14614 # Whether or not to disallow shared libs when runtime libs are static
14615 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14617 # Whether or not to optimize for fast installation.
14618 fast_install=$enable_fast_install
14621 host_alias=$host_alias
14624 # An echo program that does not interpret backslashes.
14629 AR_FLAGS=$lt_AR_FLAGS
14634 # A language-specific compiler.
14637 # Is the compiler the GNU C compiler?
14643 # The linker used to build libraries.
14646 # Whether we need hard or soft links.
14649 # A BSD-compatible nm program.
14652 # A symbol stripping program
14655 # Used to examine libraries when file_magic_cmd begins "file"
14656 MAGIC_CMD=$MAGIC_CMD
14658 # Used on cygwin: DLL creation program.
14661 # Used on cygwin: object dumper.
14664 # Used on cygwin: assembler.
14667 # The name of the directory that contains temporary libtool files.
14670 # How to create reloadable object files.
14671 reload_flag=$lt_reload_flag
14672 reload_cmds=$lt_reload_cmds
14674 # How to pass a linker flag through the compiler.
14675 wl=$lt_lt_prog_compiler_wl
14677 # Object file suffix (normally "o").
14678 objext="$ac_objext"
14680 # Old archive suffix (normally "a").
14683 # Shared library suffix (normally ".so").
14684 shrext_cmds='$shrext_cmds'
14686 # Executable file suffix (normally "").
14689 # Additional compiler flags for building library objects.
14690 pic_flag=$lt_lt_prog_compiler_pic
14693 # What is the maximum length of a command?
14694 max_cmd_len=$lt_cv_sys_max_cmd_len
14696 # Does compiler simultaneously support -c and -o options?
14697 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14699 # Must we lock files when doing compilation ?
14700 need_locks=$lt_need_locks
14702 # Do we need the lib prefix for modules?
14703 need_lib_prefix=$need_lib_prefix
14705 # Do we need a version for libraries?
14706 need_version=$need_version
14708 # Whether dlopen is supported.
14709 dlopen_support=$enable_dlopen
14711 # Whether dlopen of programs is supported.
14712 dlopen_self=$enable_dlopen_self
14714 # Whether dlopen of statically linked programs is supported.
14715 dlopen_self_static=$enable_dlopen_self_static
14717 # Compiler flag to prevent dynamic linking.
14718 link_static_flag=$lt_lt_prog_compiler_static
14720 # Compiler flag to turn off builtin functions.
14721 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14723 # Compiler flag to allow reflexive dlopens.
14724 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14726 # Compiler flag to generate shared objects directly from archives.
14727 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14729 # Compiler flag to generate thread-safe objects.
14730 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14732 # Library versioning type.
14733 version_type=$version_type
14735 # Format of library name prefix.
14736 libname_spec=$lt_libname_spec
14738 # List of archive names. First name is the real one, the rest are links.
14739 # The last name is the one that the linker finds with -lNAME.
14740 library_names_spec=$lt_library_names_spec
14742 # The coded name of the library, if different from the real name.
14743 soname_spec=$lt_soname_spec
14745 # Commands used to build and install an old-style archive.
14747 old_archive_cmds=$lt_old_archive_cmds
14748 old_postinstall_cmds=$lt_old_postinstall_cmds
14749 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14751 # Create an old-style archive from a shared archive.
14752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14754 # Create a temporary old-style archive to link instead of a shared archive.
14755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14757 # Commands used to build and install a shared archive.
14758 archive_cmds=$lt_archive_cmds
14759 archive_expsym_cmds=$lt_archive_expsym_cmds
14760 postinstall_cmds=$lt_postinstall_cmds
14761 postuninstall_cmds=$lt_postuninstall_cmds
14763 # Commands used to build a loadable module (assumed same as above if empty)
14764 module_cmds=$lt_module_cmds
14765 module_expsym_cmds=$lt_module_expsym_cmds
14767 # Commands to strip libraries.
14768 old_striplib=$lt_old_striplib
14769 striplib=$lt_striplib
14771 # Dependencies to place before the objects being linked to create a
14773 predep_objects=$lt_predep_objects
14775 # Dependencies to place after the objects being linked to create a
14777 postdep_objects=$lt_postdep_objects
14779 # Dependencies to place before the objects being linked to create a
14781 predeps=$lt_predeps
14783 # Dependencies to place after the objects being linked to create a
14785 postdeps=$lt_postdeps
14787 # The library search path used internally by the compiler when linking
14788 # a shared library.
14789 compiler_lib_search_path=$lt_compiler_lib_search_path
14791 # Method to check whether dependent libraries are shared objects.
14792 deplibs_check_method=$lt_deplibs_check_method
14794 # Command to use when deplibs_check_method == file_magic.
14795 file_magic_cmd=$lt_file_magic_cmd
14797 # Flag that allows shared libraries with undefined symbols to be built.
14798 allow_undefined_flag=$lt_allow_undefined_flag
14800 # Flag that forces no undefined symbols.
14801 no_undefined_flag=$lt_no_undefined_flag
14803 # Commands used to finish a libtool library installation in a directory.
14804 finish_cmds=$lt_finish_cmds
14806 # Same as above, but a single script fragment to be evaled but not shown.
14807 finish_eval=$lt_finish_eval
14809 # Take the output of nm and produce a listing of raw symbols and C names.
14810 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14812 # Transform the output of nm in a proper C declaration
14813 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14815 # Transform the output of nm in a C name address pair
14816 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14818 # This is the shared library runtime path variable.
14819 runpath_var=$runpath_var
14821 # This is the shared library path variable.
14822 shlibpath_var=$shlibpath_var
14824 # Is shlibpath searched before the hard-coded library search path?
14825 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14827 # How to hardcode a shared library path into an executable.
14828 hardcode_action=$hardcode_action
14830 # Whether we should hardcode library paths into libraries.
14831 hardcode_into_libs=$hardcode_into_libs
14833 # Flag to hardcode \$libdir into a binary during linking.
14834 # This must work even if \$libdir does not exist.
14835 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14837 # If ld is used when linking, flag to hardcode \$libdir into
14838 # a binary during linking. This must work even if \$libdir does
14840 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14842 # Whether we need a single -rpath flag with a separated argument.
14843 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14845 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14846 # resulting binary.
14847 hardcode_direct=$hardcode_direct
14849 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14850 # resulting binary.
14851 hardcode_minus_L=$hardcode_minus_L
14853 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14854 # the resulting binary.
14855 hardcode_shlibpath_var=$hardcode_shlibpath_var
14857 # Set to yes if building a shared library automatically hardcodes DIR into the library
14858 # and all subsequent libraries and executables linked against it.
14859 hardcode_automatic=$hardcode_automatic
14861 # Variables whose values should be saved in libtool wrapper scripts and
14862 # restored at relink time.
14863 variables_saved_for_relink="$variables_saved_for_relink"
14865 # Whether libtool must link a program against all its dependency libraries.
14866 link_all_deplibs=$link_all_deplibs
14868 # Compile-time system search path for libraries
14869 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14871 # Run-time system search path for libraries
14872 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14874 # Fix the shell variable \$srcfile for the compiler.
14875 fix_srcfile_path="$fix_srcfile_path"
14877 # Set to yes if exported symbols are required.
14878 always_export_symbols=$always_export_symbols
14880 # The commands to list exported symbols.
14881 export_symbols_cmds=$lt_export_symbols_cmds
14883 # The commands to extract the exported symbol list from a shared archive.
14884 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14886 # Symbols that should not be listed in the preloaded symbols.
14887 exclude_expsyms=$lt_exclude_expsyms
14889 # Symbols that must always be exported.
14890 include_expsyms=$lt_include_expsyms
14892 # ### END LIBTOOL CONFIG
14899 cat <<\EOF >> "$cfgfile"
14901 # AIX sometimes has problems with the GCC collect2 program. For some
14902 # reason, if we set the COLLECT_NAMES environment variable, the problems
14903 # vanish in a puff of smoke.
14904 if test "X${COLLECT_NAMES+set}" != Xset; then
14906 export COLLECT_NAMES
14912 # We use sed instead of cat because bash on DJGPP gets confused if
14913 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14914 # text mode, it properly converts lines to CR/LF. This bash problem
14915 # is reportedly fixed, but why not run on old versions too?
14916 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14918 mv -f "$cfgfile" "$ofile" || \
14919 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14923 # If there is no Makefile yet, we rely on a make rule to execute
14924 # `config.status --recheck' to rerun these tests and create the
14925 # libtool script then.
14926 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14927 if test -f "$ltmain_in"; then
14928 test -f Makefile && make "$ltmain"
14934 ac_cpp='$CPP $CPPFLAGS'
14935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14942 # Check whether --with-tags or --without-tags was given.
14943 if test "${with_tags+set}" = set; then
14944 withval="$with_tags"
14945 tagnames="$withval"
14948 if test -f "$ltmain" && test -n "$tagnames"; then
14949 if test ! -f "${ofile}"; then
14950 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14951 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14954 if test -z "$LTCC"; then
14955 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14956 if test -z "$LTCC"; then
14957 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14958 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14960 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14961 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14965 # Extract list of available tagged configurations in $ofile.
14966 # Note that this assumes the entire list is on one line.
14967 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14970 for tagname in $tagnames; do
14972 # Check whether tagname contains only valid characters
14973 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14975 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14976 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14977 { (exit 1); exit 1; }; }
14981 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14983 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14984 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14985 { (exit 1); exit 1; }; }
14988 # Update the list of available tags.
14989 if test -n "$tagname"; then
14990 echo appending configuration tag "$tagname" to $ofile
14994 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14995 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14996 (test "X$CXX" != "Xg++"))) ; then
14998 ac_cpp='$CXXCPP $CPPFLAGS'
14999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15006 archive_cmds_need_lc_CXX=no
15007 allow_undefined_flag_CXX=
15008 always_export_symbols_CXX=no
15009 archive_expsym_cmds_CXX=
15010 export_dynamic_flag_spec_CXX=
15011 hardcode_direct_CXX=no
15012 hardcode_libdir_flag_spec_CXX=
15013 hardcode_libdir_flag_spec_ld_CXX=
15014 hardcode_libdir_separator_CXX=
15015 hardcode_minus_L_CXX=no
15016 hardcode_automatic_CXX=no
15018 module_expsym_cmds_CXX=
15019 link_all_deplibs_CXX=unknown
15020 old_archive_cmds_CXX=$old_archive_cmds
15021 no_undefined_flag_CXX=
15022 whole_archive_flag_spec_CXX=
15023 enable_shared_with_static_runtimes_CXX=no
15025 # Dependencies to place before and after the object being linked:
15026 predep_objects_CXX=
15027 postdep_objects_CXX=
15030 compiler_lib_search_path_CXX=
15032 # Source file extension for C++ test sources.
15035 # Object file extension for compiled C++ test sources.
15039 # Code to be used in simple compile tests
15040 lt_simple_compile_test_code="int some_variable = 0;\n"
15042 # Code to be used in simple link tests
15043 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15045 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15047 # If no C compiler was specified, use CC.
15050 # Allow CC to be a program name with arguments.
15054 # Allow CC to be a program name with arguments.
15059 lt_save_with_gnu_ld=$with_gnu_ld
15060 lt_save_path_LD=$lt_cv_path_LD
15061 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15062 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15064 unset lt_cv_prog_gnu_ld
15066 if test -n "${lt_cv_path_LDCXX+set}"; then
15067 lt_cv_path_LD=$lt_cv_path_LDCXX
15069 unset lt_cv_path_LD
15071 test -z "${LDCXX+set}" || LD=$LDCXX
15075 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15077 # We don't want -fno-exception wen compiling C++ code, so set the
15078 # no_builtin_flag separately
15079 if test "$GXX" = yes; then
15080 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15082 lt_prog_compiler_no_builtin_flag_CXX=
15085 if test "$GXX" = yes; then
15086 # Set up default GNU C++ configuration
15089 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15090 if test "${with_gnu_ld+set}" = set; then
15091 withval="$with_gnu_ld"
15092 test "$withval" = no || with_gnu_ld=yes
15097 if test "$GCC" = yes; then
15098 # Check if gcc -print-prog-name=ld gives a path.
15099 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15100 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15103 # gcc leaves a trailing carriage return which upsets mingw
15104 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15106 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15109 # Accept absolute paths.
15111 re_direlt='/[^/][^/]*/\.\./'
15112 # Canonicalize the pathname of ld
15113 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15114 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15115 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15117 test -z "$LD" && LD="$ac_prog"
15120 # If it fails, then pretend we aren't using GCC.
15124 # If it is relative, then search for the first ld in PATH.
15125 with_gnu_ld=unknown
15128 elif test "$with_gnu_ld" = yes; then
15129 echo "$as_me:$LINENO: checking for GNU ld" >&5
15130 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15132 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15133 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15135 if test "${lt_cv_path_LD+set}" = set; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15138 if test -z "$LD"; then
15139 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15140 for ac_dir in $PATH; do
15142 test -z "$ac_dir" && ac_dir=.
15143 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15144 lt_cv_path_LD="$ac_dir/$ac_prog"
15145 # Check to see if the program is GNU ld. I'd rather use --version,
15146 # but apparently some GNU ld's only accept -v.
15147 # Break only if it was the GNU/non-GNU ld that we prefer.
15148 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15149 *GNU* | *'with BFD'*)
15150 test "$with_gnu_ld" != no && break
15153 test "$with_gnu_ld" != yes && break
15160 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15164 LD="$lt_cv_path_LD"
15165 if test -n "$LD"; then
15166 echo "$as_me:$LINENO: result: $LD" >&5
15167 echo "${ECHO_T}$LD" >&6
15169 echo "$as_me:$LINENO: result: no" >&5
15170 echo "${ECHO_T}no" >&6
15172 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15173 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15174 { (exit 1); exit 1; }; }
15175 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15176 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15177 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15178 echo $ECHO_N "(cached) $ECHO_C" >&6
15180 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15181 case `$LD -v 2>&1 </dev/null` in
15182 *GNU* | *'with BFD'*)
15183 lt_cv_prog_gnu_ld=yes
15186 lt_cv_prog_gnu_ld=no
15190 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15191 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15192 with_gnu_ld=$lt_cv_prog_gnu_ld
15196 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15197 # archiving commands below assume that GNU ld is being used.
15198 if test "$with_gnu_ld" = yes; then
15199 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15200 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'
15202 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15203 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15205 # If archive_cmds runs LD, not CC, wlarc should be empty
15206 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15207 # investigate it a little bit more. (MM)
15210 # ancient GNU ld didn't support --whole-archive et. al.
15211 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15212 grep 'no-whole-archive' > /dev/null; then
15213 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15215 whole_archive_flag_spec_CXX=
15221 # A generic and very simple default shared library creation
15222 # command for GNU C++ for the case where it uses the native
15223 # linker, instead of GNU ld. If possible, this setting should
15224 # overridden to take advantage of the native linker features on
15225 # the platform it is being used on.
15226 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15229 # Commands to make compiler produce verbose output that lists
15230 # what "hidden" libraries, object files and flags are used when
15231 # linking a shared library.
15232 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15240 # PORTME: fill in a description of your system's C++ link characteristics
15241 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15242 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15246 # FIXME: insert proper C++ library support
15250 if test "$host_cpu" = ia64; then
15251 # On IA64, the linker does run time linking by default, so we don't
15252 # have to do anything special.
15253 aix_use_runtimelinking=no
15254 exp_sym_flag='-Bexport'
15257 aix_use_runtimelinking=no
15259 # Test if we are trying to use run time linking or normal
15260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15261 # need to do runtime linking.
15262 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15263 for ld_flag in $LDFLAGS; do
15266 aix_use_runtimelinking=yes
15273 exp_sym_flag='-bexport'
15274 no_entry_flag='-bnoentry'
15277 # When large executables or shared objects are built, AIX ld can
15278 # have problems creating the table of contents. If linking a library
15279 # or program results in "error TOC overflow" add -mminimal-toc to
15280 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15281 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15283 archive_cmds_CXX=''
15284 hardcode_direct_CXX=yes
15285 hardcode_libdir_separator_CXX=':'
15286 link_all_deplibs_CXX=yes
15288 if test "$GXX" = yes; then
15289 case $host_os in aix4.012|aix4.012.*)
15290 # We only want to do this on AIX 4.2 and lower, the check
15291 # below for broken collect2 doesn't work under 4.3+
15292 collect2name=`${CC} -print-prog-name=collect2`
15293 if test -f "$collect2name" && \
15294 strings "$collect2name" | grep resolve_lib_name >/dev/null
15296 # We have reworked collect2
15297 hardcode_direct_CXX=yes
15299 # We have old collect2
15300 hardcode_direct_CXX=unsupported
15301 # It fails to find uninstalled libraries when the uninstalled
15302 # path is not listed in the libpath. Setting hardcode_minus_L
15303 # to unsupported forces relinking
15304 hardcode_minus_L_CXX=yes
15305 hardcode_libdir_flag_spec_CXX='-L$libdir'
15306 hardcode_libdir_separator_CXX=
15309 shared_flag='-shared'
15312 if test "$host_cpu" = ia64; then
15313 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15314 # chokes on -Wl,-G. The following line is correct:
15317 if test "$aix_use_runtimelinking" = yes; then
15318 shared_flag='${wl}-G'
15320 shared_flag='${wl}-bM:SRE'
15325 # It seems that -bexpall does not export symbols beginning with
15326 # underscore (_), so it is better to generate a list of symbols to export.
15327 always_export_symbols_CXX=yes
15328 if test "$aix_use_runtimelinking" = yes; then
15329 # Warning - without using the other runtime loading flags (-brtl),
15330 # -berok will link without error, but may produce a broken library.
15331 allow_undefined_flag_CXX='-berok'
15332 # Determine the default libpath from the value encoded in an empty executable.
15333 cat >conftest.$ac_ext <<_ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h. */
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15350 (eval $ac_link) 2>conftest.er1
15352 grep -v '^ *+' conftest.er1 >conftest.err
15354 cat conftest.err >&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } &&
15357 { ac_try='test -z "$ac_cxx_werror_flag"
15358 || test ! -s conftest.err'
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; } &&
15364 { ac_try='test -s conftest$ac_exeext'
15365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15371 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15373 # Check for a 64-bit object if we didn't find anything.
15374 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; }
15377 echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15381 rm -f conftest.err conftest.$ac_objext \
15382 conftest$ac_exeext conftest.$ac_ext
15383 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15385 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15387 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"
15389 if test "$host_cpu" = ia64; then
15390 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15391 allow_undefined_flag_CXX="-z nodefs"
15392 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"
15394 # Determine the default libpath from the value encoded in an empty executable.
15395 cat >conftest.$ac_ext <<_ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h. */
15410 rm -f conftest.$ac_objext conftest$ac_exeext
15411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15412 (eval $ac_link) 2>conftest.er1
15414 grep -v '^ *+' conftest.er1 >conftest.err
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } &&
15419 { ac_try='test -z "$ac_cxx_werror_flag"
15420 || test ! -s conftest.err'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; } &&
15426 { ac_try='test -s conftest$ac_exeext'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15433 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15435 # Check for a 64-bit object if we didn't find anything.
15436 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; }
15439 echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15443 rm -f conftest.err conftest.$ac_objext \
15444 conftest$ac_exeext conftest.$ac_ext
15445 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15447 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15448 # Warning - without using the other run time loading flags,
15449 # -berok will link without error, but may produce a broken library.
15450 no_undefined_flag_CXX=' ${wl}-bernotok'
15451 allow_undefined_flag_CXX=' ${wl}-berok'
15452 # -bexpall does not export symbols beginning with underscore (_)
15453 always_export_symbols_CXX=yes
15454 # Exported symbols can be pulled into shared objects from archives
15455 whole_archive_flag_spec_CXX=' '
15456 archive_cmds_need_lc_CXX=yes
15457 # This is similar to how AIX traditionally builds it's shared libraries.
15458 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'
15463 case $cc_basename in
15465 # FIXME: insert proper C++ library support
15472 cygwin* | mingw* | pw32*)
15473 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15474 # as there is no search path for DLLs.
15475 hardcode_libdir_flag_spec_CXX='-L$libdir'
15476 allow_undefined_flag_CXX=unsupported
15477 always_export_symbols_CXX=no
15478 enable_shared_with_static_runtimes_CXX=yes
15480 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15481 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'
15482 # If the export-symbols file already is a .def file (1st line
15483 # is EXPORTS), use it as is; otherwise, prepend...
15484 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15485 cp $export_symbols $output_objdir/$soname.def;
15487 echo EXPORTS > $output_objdir/$soname.def;
15488 cat $export_symbols >> $output_objdir/$soname.def;
15490 $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'
15495 darwin* | rhapsody*)
15497 rhapsody* | darwin1.[012])
15498 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15501 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15502 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15504 case ${MACOSX_DEPLOYMENT_TARGET} in
15506 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15509 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15515 archive_cmds_need_lc_CXX=no
15516 hardcode_direct_CXX=no
15517 hardcode_automatic_CXX=yes
15518 hardcode_shlibpath_var_CXX=unsupported
15519 whole_archive_flag_spec_CXX=''
15520 link_all_deplibs_CXX=yes
15522 if test "$GXX" = yes ; then
15523 lt_int_apple_cc_single_mod=no
15524 output_verbose_link_cmd='echo'
15525 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15526 lt_int_apple_cc_single_mod=yes
15528 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15529 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15531 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'
15533 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15534 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15535 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15536 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}'
15538 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}'
15540 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}'
15542 case "$cc_basename" in
15544 output_verbose_link_cmd='echo'
15545 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'
15546 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15547 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15548 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}'
15549 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}'
15559 case $cc_basename in
15561 # FIXME: insert proper C++ library support
15565 # Green Hills C++ Compiler
15566 # FIXME: insert proper C++ library support
15570 # FIXME: insert proper C++ library support
15576 # C++ shared libraries reported to be fairly broken before switch to ELF
15580 archive_cmds_need_lc_CXX=no
15582 freebsd* | kfreebsd*-gnu)
15583 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15590 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15591 hardcode_libdir_separator_CXX=:
15592 export_dynamic_flag_spec_CXX='${wl}-E'
15593 hardcode_direct_CXX=yes
15594 hardcode_minus_L_CXX=yes # Not in the search PATH,
15595 # but as the default
15596 # location of the library.
15598 case $cc_basename in
15600 # FIXME: insert proper C++ library support
15604 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'
15605 # Commands to make compiler produce verbose output that lists
15606 # what "hidden" libraries, object files and flags are used when
15607 # linking a shared library.
15609 # There doesn't appear to be a way to prevent this compiler from
15610 # explicitly linking system object files so we need to strip them
15611 # from the output so that they don't get included in the library
15613 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'
15616 if test "$GXX" = yes; then
15617 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'
15619 # FIXME: insert proper C++ library support
15626 if test $with_gnu_ld = no; then
15627 case "$host_cpu" in
15629 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15630 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15631 hardcode_libdir_separator_CXX=:
15634 hardcode_libdir_flag_spec_CXX='-L$libdir'
15637 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15638 hardcode_libdir_separator_CXX=:
15639 export_dynamic_flag_spec_CXX='${wl}-E'
15643 case "$host_cpu" in
15645 hardcode_direct_CXX=no
15646 hardcode_shlibpath_var_CXX=no
15649 hardcode_direct_CXX=no
15650 hardcode_shlibpath_var_CXX=no
15651 hardcode_minus_L_CXX=yes # Not in the search PATH,
15652 # but as the default
15653 # location of the library.
15656 hardcode_direct_CXX=yes
15657 hardcode_minus_L_CXX=yes # Not in the search PATH,
15658 # but as the default
15659 # location of the library.
15663 case $cc_basename in
15665 # FIXME: insert proper C++ library support
15669 case "$host_cpu" in
15671 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15674 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15677 # Commands to make compiler produce verbose output that lists
15678 # what "hidden" libraries, object files and flags are used when
15679 # linking a shared library.
15681 # There doesn't appear to be a way to prevent this compiler from
15682 # explicitly linking system object files so we need to strip them
15683 # from the output so that they don't get included in the library
15685 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'
15688 if test "$GXX" = yes; then
15689 if test $with_gnu_ld = no; then
15690 case "$host_cpu" in
15692 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15695 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'
15700 # FIXME: insert proper C++ library support
15707 case $cc_basename in
15710 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'
15712 # Archives containing C++ object files must be created using
15713 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15714 # necessary to make sure instantiated templates are included
15716 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15719 if test "$GXX" = yes; then
15720 if test "$with_gnu_ld" = no; then
15721 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'
15723 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'
15726 link_all_deplibs_CXX=yes
15729 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15730 hardcode_libdir_separator_CXX=:
15733 case $cc_basename in
15735 # Kuck and Associates, Inc. (KAI) C++ Compiler
15737 # KCC will only create a shared library if the output file
15738 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15739 # to its proper name (with version) after linking.
15740 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'
15741 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'
15742 # Commands to make compiler produce verbose output that lists
15743 # what "hidden" libraries, object files and flags are used when
15744 # linking a shared library.
15746 # There doesn't appear to be a way to prevent this compiler from
15747 # explicitly linking system object files so we need to strip them
15748 # from the output so that they don't get included in the library
15750 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'
15752 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15753 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15755 # Archives containing C++ object files must be created using
15756 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15757 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15762 # version 8.0 and above of icpc choke on multiply defined symbols
15763 # if we add $predep_objects and $postdep_objects, however 7.1 and
15764 # earlier do not add the objects themselves.
15765 case `$CC -V 2>&1` in
15767 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15768 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'
15770 *) # Version 8.0 or newer
15771 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15772 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15775 archive_cmds_need_lc_CXX=no
15776 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15777 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15778 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15782 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15783 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'
15785 runpath_var=LD_RUN_PATH
15786 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15787 hardcode_libdir_separator_CXX=:
15789 # Commands to make compiler produce verbose output that lists
15790 # what "hidden" libraries, object files and flags are used when
15791 # linking a shared library.
15793 # There doesn't appear to be a way to prevent this compiler from
15794 # explicitly linking system object files so we need to strip them
15795 # from the output so that they don't get included in the library
15797 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'
15802 # FIXME: insert proper C++ library support
15806 # FIXME: insert proper C++ library support
15810 case $cc_basename in
15812 # FIXME: insert proper C++ library support
15816 # FIXME: insert proper C++ library support
15822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15823 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15825 hardcode_libdir_flag_spec_CXX='-R$libdir'
15826 hardcode_direct_CXX=yes
15827 hardcode_shlibpath_var_CXX=no
15829 # Workaround some broken pre-1.5 toolchains
15830 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15833 # C++ shared libraries are fairly broken
15837 hardcode_direct_CXX=yes
15838 hardcode_shlibpath_var_CXX=no
15839 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15840 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15841 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15842 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15843 export_dynamic_flag_spec_CXX='${wl}-E'
15844 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15846 output_verbose_link_cmd='echo'
15849 case $cc_basename in
15851 # Kuck and Associates, Inc. (KAI) C++ Compiler
15853 # KCC will only create a shared library if the output file
15854 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15855 # to its proper name (with version) after linking.
15856 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'
15858 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15859 hardcode_libdir_separator_CXX=:
15861 # Archives containing C++ object files must be created using
15862 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15863 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15867 # Rational C++ 2.4.1
15868 # FIXME: insert proper C++ library support
15872 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15873 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'
15875 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15876 hardcode_libdir_separator_CXX=:
15878 # Commands to make compiler produce verbose output that lists
15879 # what "hidden" libraries, object files and flags are used when
15880 # linking a shared library.
15882 # There doesn't appear to be a way to prevent this compiler from
15883 # explicitly linking system object files so we need to strip them
15884 # from the output so that they don't get included in the library
15886 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'
15889 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15890 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15891 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'
15893 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15894 hardcode_libdir_separator_CXX=:
15896 # Commands to make compiler produce verbose output that lists
15897 # what "hidden" libraries, object files and flags are used when
15898 # linking a shared library.
15899 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15902 # FIXME: insert proper C++ library support
15909 case $cc_basename in
15911 # Kuck and Associates, Inc. (KAI) C++ Compiler
15913 # KCC will only create a shared library if the output file
15914 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15915 # to its proper name (with version) after linking.
15916 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'
15918 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15919 hardcode_libdir_separator_CXX=:
15921 # Archives containing C++ object files must be created using
15922 # the KAI C++ compiler.
15923 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15926 # Rational C++ 2.4.1
15927 # FIXME: insert proper C++ library support
15931 allow_undefined_flag_CXX=' -expect_unresolved \*'
15932 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'
15933 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15934 echo "-hidden">> $lib.exp~
15935 $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~
15938 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15939 hardcode_libdir_separator_CXX=:
15941 # Commands to make compiler produce verbose output that lists
15942 # what "hidden" libraries, object files and flags are used when
15943 # linking a shared library.
15945 # There doesn't appear to be a way to prevent this compiler from
15946 # explicitly linking system object files so we need to strip them
15947 # from the output so that they don't get included in the library
15949 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'
15952 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15953 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15954 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'
15956 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15957 hardcode_libdir_separator_CXX=:
15959 # Commands to make compiler produce verbose output that lists
15960 # what "hidden" libraries, object files and flags are used when
15961 # linking a shared library.
15962 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15965 # FIXME: insert proper C++ library support
15972 # FIXME: insert proper C++ library support
15976 archive_cmds_need_lc_CXX=no
15977 case $cc_basename in
15979 # FIXME: insert proper C++ library support
15983 # FIXME: insert proper C++ library support
15989 case $cc_basename in
15992 # FIXME: insert proper C++ library support
15997 # FIXME: insert proper C++ library support
16001 # FIXME: insert proper C++ library support
16007 case $cc_basename in
16009 # Sun C++ 4.2, 5.x and Centerline C++
16010 no_undefined_flag_CXX=' -zdefs'
16011 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16012 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16013 $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'
16015 hardcode_libdir_flag_spec_CXX='-R$libdir'
16016 hardcode_shlibpath_var_CXX=no
16018 solaris2.0-5 | solaris2.0-5.*) ;;
16020 # The C++ compiler is used as linker so we must use $wl
16021 # flag to pass the commands to the underlying system
16023 # Supported since Solaris 2.6 (maybe 2.5.1?)
16024 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16027 link_all_deplibs_CXX=yes
16029 # Commands to make compiler produce verbose output that lists
16030 # what "hidden" libraries, object files and flags are used when
16031 # linking a shared library.
16033 # There doesn't appear to be a way to prevent this compiler from
16034 # explicitly linking system object files so we need to strip them
16035 # from the output so that they don't get included in the library
16037 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'
16039 # Archives containing C++ object files must be created using
16040 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16041 # necessary to make sure instantiated templates are included
16043 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16046 # Green Hills C++ Compiler
16047 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16049 # The C++ compiler must be used to create the archive.
16050 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16053 # GNU C++ compiler with Solaris linker
16054 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16055 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16056 if $CC --version | grep -v '^2\.7' > /dev/null; then
16057 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16058 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16059 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16061 # Commands to make compiler produce verbose output that lists
16062 # what "hidden" libraries, object files and flags are used when
16063 # linking a shared library.
16064 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16066 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16068 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16069 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16070 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16072 # Commands to make compiler produce verbose output that lists
16073 # what "hidden" libraries, object files and flags are used when
16074 # linking a shared library.
16075 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16078 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16083 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16084 archive_cmds_need_lc_CXX=no
16087 case $cc_basename in
16089 # NonStop-UX NCC 3.20
16090 # FIXME: insert proper C++ library support
16094 # FIXME: insert proper C++ library support
16100 # FIXME: insert proper C++ library support
16104 # FIXME: insert proper C++ library support
16108 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16109 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16110 test "$ld_shlibs_CXX" = no && can_build_shared=no
16116 cat > conftest.$ac_ext <<EOF
16120 Foo (void) { a = 0; }
16126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16127 (eval $ac_compile) 2>&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; then
16131 # Parse the compiler output and extract the necessary
16132 # objects, libraries and library flags.
16134 # Sentinel used to keep track of whether or not we are before
16135 # the conftest object file.
16136 pre_test_object_deps_done=no
16138 # The `*' in the case matches for architectures that use `case' in
16139 # $output_verbose_cmd can trigger glob expansion during the loop
16140 # eval without this substitution.
16141 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16143 for p in `eval $output_verbose_link_cmd`; do
16147 # Some compilers place space between "-{L,R}" and the path.
16148 # Remove the space.
16149 if test $p = "-L" \
16150 || test $p = "-R"; then
16157 if test "$pre_test_object_deps_done" = no; then
16160 # Internal compiler library paths should come after those
16161 # provided the user. The postdeps already come after the
16162 # user supplied libs so there is no need to process them.
16163 if test -z "$compiler_lib_search_path_CXX"; then
16164 compiler_lib_search_path_CXX="${prev}${p}"
16166 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16169 # The "-l" case would never come before the object being
16170 # linked, so don't bother handling this case.
16173 if test -z "$postdeps_CXX"; then
16174 postdeps_CXX="${prev}${p}"
16176 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16182 # This assumes that the test object file only shows up
16183 # once in the compiler output.
16184 if test "$p" = "conftest.$objext"; then
16185 pre_test_object_deps_done=yes
16189 if test "$pre_test_object_deps_done" = no; then
16190 if test -z "$predep_objects_CXX"; then
16191 predep_objects_CXX="$p"
16193 predep_objects_CXX="$predep_objects_CXX $p"
16196 if test -z "$postdep_objects_CXX"; then
16197 postdep_objects_CXX="$p"
16199 postdep_objects_CXX="$postdep_objects_CXX $p"
16204 *) ;; # Ignore the rest.
16212 echo "libtool.m4: error: problem compiling CXX test program"
16215 $rm -f confest.$objext
16217 case " $postdeps_CXX " in
16218 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16221 lt_prog_compiler_wl_CXX=
16222 lt_prog_compiler_pic_CXX=
16223 lt_prog_compiler_static_CXX=
16225 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16226 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16228 # C++ specific cases for pic, static, wl, etc.
16229 if test "$GXX" = yes; then
16230 lt_prog_compiler_wl_CXX='-Wl,'
16231 lt_prog_compiler_static_CXX='-static'
16235 # All AIX code is PIC.
16236 if test "$host_cpu" = ia64; then
16237 # AIX 5 now supports IA64 processor
16238 lt_prog_compiler_static_CXX='-Bstatic'
16242 # FIXME: we need at least 68020 code to build shared libraries, but
16243 # adding the `-m68020' flag to GCC prevents building anything better,
16245 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16247 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16248 # PIC is the default for these OSes.
16250 mingw* | os2* | pw32*)
16251 # This hack is so that the source file can tell whether it is being
16252 # built for inclusion in a dll (and should export symbols for example).
16253 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16255 darwin* | rhapsody*)
16256 # PIC is the default on this platform
16257 # Common symbols not allowed in MH_DYLIB files
16258 lt_prog_compiler_pic_CXX='-fno-common'
16261 # DJGPP does not support shared libraries at all
16262 lt_prog_compiler_pic_CXX=
16265 if test -d /usr/nec; then
16266 lt_prog_compiler_pic_CXX=-Kconform_pic
16270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16271 # not for PA HP-UX.
16272 case "$host_cpu" in
16276 lt_prog_compiler_pic_CXX='-fPIC'
16281 lt_prog_compiler_pic_CXX='-fPIC'
16287 # All AIX code is PIC.
16288 if test "$host_cpu" = ia64; then
16289 # AIX 5 now supports IA64 processor
16290 lt_prog_compiler_static_CXX='-Bstatic'
16292 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16296 case $cc_basename in
16298 # Green Hills C++ Compiler
16299 # _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"
16304 # PIC is the default on this platform
16305 # Common symbols not allowed in MH_DYLIB files
16306 case "$cc_basename" in
16308 lt_prog_compiler_pic_CXX='-qnocommon'
16309 lt_prog_compiler_wl_CXX='-Wl,'
16314 case $cc_basename in
16316 lt_prog_compiler_pic_CXX='-KPIC'
16319 # Green Hills C++ Compiler
16320 lt_prog_compiler_pic_CXX='-pic'
16326 freebsd* | kfreebsd*-gnu)
16327 # FreeBSD uses GNU C++
16329 hpux9* | hpux10* | hpux11*)
16330 case $cc_basename in
16332 lt_prog_compiler_wl_CXX='-Wl,'
16333 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16334 if test "$host_cpu" != ia64; then
16335 lt_prog_compiler_pic_CXX='+Z'
16339 lt_prog_compiler_wl_CXX='-Wl,'
16340 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16341 case "$host_cpu" in
16346 lt_prog_compiler_pic_CXX='+Z'
16354 irix5* | irix6* | nonstopux*)
16355 case $cc_basename in
16357 lt_prog_compiler_wl_CXX='-Wl,'
16358 lt_prog_compiler_static_CXX='-non_shared'
16359 # CC pic flag -KPIC is the default.
16366 case $cc_basename in
16369 lt_prog_compiler_wl_CXX='--backend -Wl,'
16370 lt_prog_compiler_pic_CXX='-fPIC'
16374 lt_prog_compiler_wl_CXX='-Wl,'
16375 lt_prog_compiler_pic_CXX='-KPIC'
16376 lt_prog_compiler_static_CXX='-static'
16380 # Make sure the PIC flag is empty. It appears that all Alpha
16381 # Linux and Compaq Tru64 Unix objects are PIC.
16382 lt_prog_compiler_pic_CXX=
16383 lt_prog_compiler_static_CXX='-non_shared'
16394 case $cc_basename in
16396 lt_prog_compiler_pic_CXX='-W c,exportall'
16404 osf3* | osf4* | osf5*)
16405 case $cc_basename in
16407 lt_prog_compiler_wl_CXX='--backend -Wl,'
16410 # Rational C++ 2.4.1
16411 lt_prog_compiler_pic_CXX='-pic'
16414 # Digital/Compaq C++
16415 lt_prog_compiler_wl_CXX='-Wl,'
16416 # Make sure the PIC flag is empty. It appears that all Alpha
16417 # Linux and Compaq Tru64 Unix objects are PIC.
16418 lt_prog_compiler_pic_CXX=
16419 lt_prog_compiler_static_CXX='-non_shared'
16428 case $cc_basename in
16430 lt_prog_compiler_pic_CXX='-fPIC'
16437 case $cc_basename in
16439 # Sun C++ 4.2, 5.x and Centerline C++
16440 lt_prog_compiler_pic_CXX='-KPIC'
16441 lt_prog_compiler_static_CXX='-Bstatic'
16442 lt_prog_compiler_wl_CXX='-Qoption ld '
16445 # Green Hills C++ Compiler
16446 lt_prog_compiler_pic_CXX='-PIC'
16453 case $cc_basename in
16456 lt_prog_compiler_pic_CXX='-pic'
16457 lt_prog_compiler_static_CXX='-Bstatic'
16461 lt_prog_compiler_pic_CXX='-pic'
16468 case $cc_basename in
16470 # NonStop-UX NCC 3.20
16471 lt_prog_compiler_pic_CXX='-KPIC'
16482 lt_prog_compiler_can_build_shared_CXX=no
16487 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16488 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16491 # Check to make sure the PIC flag actually works.
16493 if test -n "$lt_prog_compiler_pic_CXX"; then
16495 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16496 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16497 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16500 lt_prog_compiler_pic_works_CXX=no
16501 ac_outfile=conftest.$ac_objext
16502 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16503 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16504 # Insert the option either (1) after the last *FLAGS variable, or
16505 # (2) before a word containing "conftest.", or (3) at the end.
16506 # Note that $ac_compile itself does not contain backslashes and begins
16507 # with a dollar sign (not a hyphen), so the echo should work correctly.
16508 # The option is referenced via a variable to avoid confusing sed.
16509 lt_compile=`echo "$ac_compile" | $SED \
16510 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16512 -e 's:$: $lt_compiler_flag:'`
16513 (eval echo "\"\$as_me:16513: $lt_compile\"" >&5)
16514 (eval "$lt_compile" 2>conftest.err)
16516 cat conftest.err >&5
16517 echo "$as_me:16517: \$? = $ac_status" >&5
16518 if (exit $ac_status) && test -s "$ac_outfile"; then
16519 # The compiler can only warn and ignore the option if not recognized
16520 # So say no if there are warnings
16521 if test ! -s conftest.err; then
16522 lt_prog_compiler_pic_works_CXX=yes
16528 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16529 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16531 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16532 case $lt_prog_compiler_pic_CXX in
16534 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16537 lt_prog_compiler_pic_CXX=
16538 lt_prog_compiler_can_build_shared_CXX=no
16543 # For platforms which do not support PIC, -DPIC is meaningless:
16545 lt_prog_compiler_pic_CXX=
16548 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16552 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16553 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16554 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16555 echo $ECHO_N "(cached) $ECHO_C" >&6
16557 lt_cv_prog_compiler_c_o_CXX=no
16558 $rm -r conftest 2>/dev/null
16562 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16564 lt_compiler_flag="-o out/conftest2.$ac_objext"
16565 # Insert the option either (1) after the last *FLAGS variable, or
16566 # (2) before a word containing "conftest.", or (3) at the end.
16567 # Note that $ac_compile itself does not contain backslashes and begins
16568 # with a dollar sign (not a hyphen), so the echo should work correctly.
16569 lt_compile=`echo "$ac_compile" | $SED \
16570 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16572 -e 's:$: $lt_compiler_flag:'`
16573 (eval echo "\"\$as_me:16573: $lt_compile\"" >&5)
16574 (eval "$lt_compile" 2>out/conftest.err)
16576 cat out/conftest.err >&5
16577 echo "$as_me:16577: \$? = $ac_status" >&5
16578 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16580 # The compiler can only warn and ignore the option if not recognized
16581 # So say no if there are warnings
16582 if test ! -s out/conftest.err; then
16583 lt_cv_prog_compiler_c_o_CXX=yes
16588 # SGI C++ compiler will create directory out/ii_files/ for
16589 # template instantiation
16590 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16591 $rm out/* && rmdir out
16597 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16598 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16601 hard_links="nottested"
16602 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16603 # do not overwrite the value of need_locks provided by the user
16604 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16605 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16610 ln conftest.a conftest.b 2>&5 || hard_links=no
16611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16612 echo "$as_me:$LINENO: result: $hard_links" >&5
16613 echo "${ECHO_T}$hard_links" >&6
16614 if test "$hard_links" = no; then
16615 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16616 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16623 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16624 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16626 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16629 # If we're using GNU nm, then we don't want the "-C" option.
16630 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16631 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16632 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'
16634 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'
16638 export_symbols_cmds_CXX="$ltdll_cmds"
16641 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16644 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16648 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16649 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16650 test "$ld_shlibs_CXX" = no && can_build_shared=no
16652 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16653 if test "$GCC" = yes; then
16654 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16658 # Do we need to explicitly link libc?
16660 case "x$archive_cmds_need_lc_CXX" in
16662 # Assume -lc should be added
16663 archive_cmds_need_lc_CXX=yes
16665 if test "$enable_shared" = yes && test "$GCC" = yes; then
16666 case $archive_cmds_CXX in
16668 # FIXME: we may have to deal with multi-command sequences.
16671 # Test whether the compiler implicitly links with -lc since on some
16672 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16673 # to ld, don't add -lc before -lgcc.
16674 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16675 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16677 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16680 (eval $ac_compile) 2>&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } 2>conftest.err; then
16686 libobjs=conftest.$ac_objext
16688 wl=$lt_prog_compiler_wl_CXX
16694 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16695 allow_undefined_flag_CXX=
16696 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16697 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }
16702 archive_cmds_need_lc_CXX=no
16704 archive_cmds_need_lc_CXX=yes
16706 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16708 cat conftest.err 1>&5
16711 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16712 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16719 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16720 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16721 library_names_spec=
16722 libname_spec='lib$name'
16726 postuninstall_cmds=
16730 shlibpath_overrides_runpath=unknown
16732 dynamic_linker="$host_os ld.so"
16733 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16734 if test "$GCC" = yes; then
16735 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16736 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16737 # if the path contains ";" then we assume it to be the separator
16738 # otherwise default to the standard path separator (i.e. ":") - it is
16739 # assumed that no part of a normal pathname contains ";" but that should
16740 # okay in the real world where ";" in dirpaths is itself problematic.
16741 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16746 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16748 need_lib_prefix=unknown
16749 hardcode_into_libs=no
16751 # when you set need_version to no, make sure it does not cause -set_version
16752 # flags to be left without arguments
16753 need_version=unknown
16758 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16759 shlibpath_var=LIBPATH
16761 # AIX 3 has no versioning support, so we append a major version to the name.
16762 soname_spec='${libname}${release}${shared_ext}$major'
16769 hardcode_into_libs=yes
16770 if test "$host_cpu" = ia64; then
16771 # AIX 5 supports IA64
16772 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16773 shlibpath_var=LD_LIBRARY_PATH
16775 # With GCC up to 2.95.x, collect2 would create an import file
16776 # for dependence libraries. The import file would start with
16777 # the line `#! .'. This would cause the generated library to
16778 # depend on `.', always an invalid library. This was fixed in
16779 # development snapshots of GCC prior to 3.0.
16781 aix4 | aix4.[01] | aix4.[01].*)
16782 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16784 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16787 can_build_shared=no
16791 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16792 # soname into executable. Probably we can add versioning support to
16793 # collect2, so additional links can be useful in future.
16794 if test "$aix_use_runtimelinking" = yes; then
16795 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16796 # instead of lib<name>.a to let people know that these are not
16797 # typical AIX shared libraries.
16798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16800 # We preserve .a as extension for shared libraries through AIX4.2
16801 # and later when we are not doing run time linking.
16802 library_names_spec='${libname}${release}.a $libname.a'
16803 soname_spec='${libname}${release}${shared_ext}$major'
16805 shlibpath_var=LIBPATH
16810 library_names_spec='$libname.ixlibrary $libname.a'
16811 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16812 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'
16816 library_names_spec='${libname}${shared_ext}'
16817 dynamic_linker="$host_os ld.so"
16818 shlibpath_var=LIBRARY_PATH
16824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16825 soname_spec='${libname}${release}${shared_ext}$major'
16826 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16827 shlibpath_var=LD_LIBRARY_PATH
16828 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16829 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16830 # the default ld.so.conf also contains /usr/contrib/lib and
16831 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16832 # libtool to hard-code these into programs
16835 cygwin* | mingw* | pw32*)
16836 version_type=windows
16841 case $GCC,$host_os in
16842 yes,cygwin* | yes,mingw* | yes,pw32*)
16843 library_names_spec='$libname.dll.a'
16844 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16845 postinstall_cmds='base_file=`basename \${file}`~
16846 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16847 dldir=$destdir/`dirname \$dlpath`~
16848 test -d \$dldir || mkdir -p \$dldir~
16849 $install_prog $dir/$dlname \$dldir/$dlname'
16850 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16851 dlpath=$dir/\$dldll~
16853 shlibpath_overrides_runpath=yes
16857 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16858 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16859 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16862 # MinGW DLLs use traditional 'lib' prefix
16863 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16864 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16865 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16866 # It is most probably a Windows format PATH printed by
16867 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16868 # path with ; separators, and with drive letters. We can handle the
16869 # drive letters (cygwin fileutils understands them), so leave them,
16870 # especially as we might pass files found there to a mingw objdump,
16871 # which wouldn't understand a cygwinified path. Ahh.
16872 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16874 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16878 # pw32 DLLs use 'pw' prefix rather than 'lib'
16879 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16885 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16888 dynamic_linker='Win32 ld.exe'
16889 # FIXME: first we should search . and the directory the executable is in
16893 darwin* | rhapsody*)
16894 dynamic_linker="$host_os dyld"
16895 version_type=darwin
16898 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16899 soname_spec='${libname}${release}${major}$shared_ext'
16900 shlibpath_overrides_runpath=yes
16901 shlibpath_var=DYLD_LIBRARY_PATH
16902 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16903 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16904 if test "$GCC" = yes; then
16905 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"`
16907 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16909 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16917 soname_spec='${libname}${release}${shared_ext}$major'
16918 shlibpath_var=LD_LIBRARY_PATH
16929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16930 soname_spec='${libname}${release}${shared_ext}$major'
16931 shlibpath_var=LD_LIBRARY_PATH
16932 shlibpath_overrides_runpath=no
16933 hardcode_into_libs=yes
16934 dynamic_linker='GNU ld.so'
16938 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16939 version_type=freebsd-$objformat
16940 case $version_type in
16942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16951 shlibpath_var=LD_LIBRARY_PATH
16954 shlibpath_overrides_runpath=yes
16956 freebsd3.01* | freebsdelf3.01*)
16957 shlibpath_overrides_runpath=yes
16958 hardcode_into_libs=yes
16961 shlibpath_overrides_runpath=no
16962 hardcode_into_libs=yes
16971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16972 soname_spec='${libname}${release}${shared_ext}$major'
16973 shlibpath_var=LD_LIBRARY_PATH
16974 hardcode_into_libs=yes
16977 hpux9* | hpux10* | hpux11*)
16978 # Give a soname corresponding to the major version so that dld.sl refuses to
16979 # link against other versions.
16983 case "$host_cpu" in
16986 hardcode_into_libs=yes
16987 dynamic_linker="$host_os dld.so"
16988 shlibpath_var=LD_LIBRARY_PATH
16989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16991 soname_spec='${libname}${release}${shared_ext}$major'
16992 if test "X$HPUX_IA64_MODE" = X32; then
16993 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16995 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17001 hardcode_into_libs=yes
17002 dynamic_linker="$host_os dld.sl"
17003 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17006 soname_spec='${libname}${release}${shared_ext}$major'
17007 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17012 dynamic_linker="$host_os dld.sl"
17013 shlibpath_var=SHLIB_PATH
17014 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
17019 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17020 postinstall_cmds='chmod 555 $lib'
17023 irix5* | irix6* | nonstopux*)
17025 nonstopux*) version_type=nonstopux ;;
17027 if test "$lt_cv_prog_gnu_ld" = yes; then
17035 soname_spec='${libname}${release}${shared_ext}$major'
17036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17038 irix5* | nonstopux*)
17039 libsuff= shlibsuff=
17042 case $LD in # libtool.m4 will add one of these switches to LD
17043 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17044 libsuff= shlibsuff= libmagic=32-bit;;
17045 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17046 libsuff=32 shlibsuff=N32 libmagic=N32;;
17047 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17048 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17049 *) libsuff= shlibsuff= libmagic=never-match;;
17053 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17054 shlibpath_overrides_runpath=no
17055 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17056 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17057 hardcode_into_libs=yes
17060 # No shared lib support for Linux oldld, aout, or coff.
17061 linux*oldld* | linux*aout* | linux*coff*)
17065 # This must be Linux ELF.
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071 soname_spec='${libname}${release}${shared_ext}$major'
17072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17073 shlibpath_var=LD_LIBRARY_PATH
17074 shlibpath_overrides_runpath=no
17075 # This implies no fast_install, which is unacceptable.
17076 # Some rework will be needed to allow for fast_install
17077 # before this can be enabled.
17078 hardcode_into_libs=yes
17080 # Append ld.so.conf contents to the search path
17081 if test -f /etc/ld.so.conf; then
17082 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17083 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17086 # We used to test for /lib/ld.so.1 and disable shared libraries on
17087 # powerpc, because MkLinux only supported shared libraries with the
17088 # GNU dynamic linker. Since this was broken with cross compilers,
17089 # most powerpc-linux boxes support dynamic linking these days and
17090 # people can always --disable-shared, the test was removed, and we
17091 # assume the GNU/Linux dynamic linker is in use.
17092 dynamic_linker='GNU/Linux ld.so'
17099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17100 soname_spec='${libname}${release}${shared_ext}$major'
17101 shlibpath_var=LD_LIBRARY_PATH
17102 shlibpath_overrides_runpath=no
17103 hardcode_into_libs=yes
17104 dynamic_linker='GNU ld.so'
17111 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17114 dynamic_linker='NetBSD (a.out) ld.so'
17116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17117 soname_spec='${libname}${release}${shared_ext}$major'
17118 dynamic_linker='NetBSD ld.elf_so'
17120 shlibpath_var=LD_LIBRARY_PATH
17121 shlibpath_overrides_runpath=yes
17122 hardcode_into_libs=yes
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128 shlibpath_var=LD_LIBRARY_PATH
17129 shlibpath_overrides_runpath=yes
17136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17137 soname_spec='${libname}${release}${shared_ext}$major'
17138 shlibpath_var=LD_LIBRARY_PATH
17139 shlibpath_overrides_runpath=yes
17146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17148 shlibpath_var=LD_LIBRARY_PATH
17149 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17151 openbsd2.[89] | openbsd2.[89].*)
17152 shlibpath_overrides_runpath=no
17155 shlibpath_overrides_runpath=yes
17159 shlibpath_overrides_runpath=yes
17164 libname_spec='$name'
17167 library_names_spec='$libname${shared_ext} $libname.a'
17168 dynamic_linker='OS/2 ld.exe'
17169 shlibpath_var=LIBPATH
17172 osf3* | osf4* | osf5*)
17176 soname_spec='${libname}${release}${shared_ext}$major'
17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17178 shlibpath_var=LD_LIBRARY_PATH
17179 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17180 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17187 shlibpath_var=LD_LIBRARY_PATH
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195 soname_spec='${libname}${release}${shared_ext}$major'
17196 shlibpath_var=LD_LIBRARY_PATH
17197 shlibpath_overrides_runpath=yes
17198 hardcode_into_libs=yes
17199 # ldd complains unless libraries are executable
17200 postinstall_cmds='chmod +x $lib'
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17206 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17207 shlibpath_var=LD_LIBRARY_PATH
17208 shlibpath_overrides_runpath=yes
17209 if test "$with_gnu_ld" = yes; then
17215 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17218 soname_spec='${libname}${release}${shared_ext}$major'
17219 shlibpath_var=LD_LIBRARY_PATH
17220 case $host_vendor in
17222 shlibpath_overrides_runpath=no
17224 export_dynamic_flag_spec='${wl}-Blargedynsym'
17225 runpath_var=LD_RUN_PATH
17233 shlibpath_overrides_runpath=no
17234 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17240 if test -d /usr/nec ;then
17242 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17243 soname_spec='$libname${shared_ext}.$major'
17244 shlibpath_var=LD_LIBRARY_PATH
17250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17251 soname_spec='${libname}${release}${shared_ext}$major'
17252 shlibpath_var=LD_LIBRARY_PATH
17259 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17260 echo "${ECHO_T}$dynamic_linker" >&6
17261 test "$dynamic_linker" = no && can_build_shared=no
17263 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17264 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17265 hardcode_action_CXX=
17266 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17267 test -n "$runpath_var_CXX" || \
17268 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17270 # We can hardcode non-existant directories.
17271 if test "$hardcode_direct_CXX" != no &&
17272 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17273 # have to relink, otherwise we might link with an installed library
17274 # when we should be linking with a yet-to-be-installed one
17275 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17276 test "$hardcode_minus_L_CXX" != no; then
17277 # Linking always hardcodes the temporary library directory.
17278 hardcode_action_CXX=relink
17280 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17281 hardcode_action_CXX=immediate
17284 # We cannot hardcode anything, or else we can only hardcode existing
17286 hardcode_action_CXX=unsupported
17288 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17289 echo "${ECHO_T}$hardcode_action_CXX" >&6
17291 if test "$hardcode_action_CXX" = relink; then
17292 # Fast installation is not supported
17293 enable_fast_install=no
17294 elif test "$shlibpath_overrides_runpath" = yes ||
17295 test "$enable_shared" = no; then
17296 # Fast installation is not necessary
17297 enable_fast_install=needless
17302 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17303 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17304 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17305 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17306 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17307 echo "$as_me:$LINENO: result: yes" >&5
17308 echo "${ECHO_T}yes" >&6
17310 # FIXME - insert some real tests, host_os isn't really good enough
17313 if test -n "$STRIP" ; then
17314 striplib="$STRIP -x"
17315 echo "$as_me:$LINENO: result: yes" >&5
17316 echo "${ECHO_T}yes" >&6
17318 echo "$as_me:$LINENO: result: no" >&5
17319 echo "${ECHO_T}no" >&6
17323 echo "$as_me:$LINENO: result: no" >&5
17324 echo "${ECHO_T}no" >&6
17329 if test "x$enable_dlopen" != xyes; then
17330 enable_dlopen=unknown
17331 enable_dlopen_self=unknown
17332 enable_dlopen_self_static=unknown
17339 lt_cv_dlopen="load_add_on"
17341 lt_cv_dlopen_self=yes
17345 lt_cv_dlopen="LoadLibrary"
17350 lt_cv_dlopen="dlopen"
17355 # if libdl is installed we need to link against it
17356 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17357 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17358 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17359 echo $ECHO_N "(cached) $ECHO_C" >&6
17361 ac_check_lib_save_LIBS=$LIBS
17363 cat >conftest.$ac_ext <<_ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17370 /* Override any gcc2 internal prototype to avoid an error. */
17374 /* We use char because int might match the return type of a gcc2
17375 builtin and then its argument prototype would still apply. */
17385 rm -f conftest.$ac_objext conftest$ac_exeext
17386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17387 (eval $ac_link) 2>conftest.er1
17389 grep -v '^ *+' conftest.er1 >conftest.err
17391 cat conftest.err >&5
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); } &&
17394 { ac_try='test -z "$ac_cxx_werror_flag"
17395 || test ! -s conftest.err'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; } &&
17401 { ac_try='test -s conftest$ac_exeext'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
17407 ac_cv_lib_dl_dlopen=yes
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 ac_cv_lib_dl_dlopen=no
17414 rm -f conftest.err conftest.$ac_objext \
17415 conftest$ac_exeext conftest.$ac_ext
17416 LIBS=$ac_check_lib_save_LIBS
17418 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17419 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17420 if test $ac_cv_lib_dl_dlopen = yes; then
17421 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17424 lt_cv_dlopen="dyld"
17426 lt_cv_dlopen_self=yes
17433 echo "$as_me:$LINENO: checking for shl_load" >&5
17434 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17435 if test "${ac_cv_func_shl_load+set}" = set; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17438 cat >conftest.$ac_ext <<_ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17444 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17446 #define shl_load innocuous_shl_load
17448 /* System header to define __stub macros and hopefully few prototypes,
17449 which can conflict with char shl_load (); below.
17450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17451 <limits.h> exists even on freestanding compilers. */
17454 # include <limits.h>
17456 # include <assert.h>
17461 /* Override any gcc2 internal prototype to avoid an error. */
17466 /* We use char because int might match the return type of a gcc2
17467 builtin and then its argument prototype would still apply. */
17469 /* The GNU C library defines this for functions which it implements
17470 to always fail with ENOSYS. Some functions are actually named
17471 something starting with __ and the normal name is an alias. */
17472 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17475 char (*f) () = shl_load;
17484 return f != shl_load;
17489 rm -f conftest.$ac_objext conftest$ac_exeext
17490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17491 (eval $ac_link) 2>conftest.er1
17493 grep -v '^ *+' conftest.er1 >conftest.err
17495 cat conftest.err >&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); } &&
17498 { ac_try='test -z "$ac_cxx_werror_flag"
17499 || test ! -s conftest.err'
17500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17501 (eval $ac_try) 2>&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; } &&
17505 { ac_try='test -s conftest$ac_exeext'
17506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; }; then
17511 ac_cv_func_shl_load=yes
17513 echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17516 ac_cv_func_shl_load=no
17518 rm -f conftest.err conftest.$ac_objext \
17519 conftest$ac_exeext conftest.$ac_ext
17521 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17522 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17523 if test $ac_cv_func_shl_load = yes; then
17524 lt_cv_dlopen="shl_load"
17526 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17527 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17528 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17529 echo $ECHO_N "(cached) $ECHO_C" >&6
17531 ac_check_lib_save_LIBS=$LIBS
17533 cat >conftest.$ac_ext <<_ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h. */
17540 /* Override any gcc2 internal prototype to avoid an error. */
17544 /* We use char because int might match the return type of a gcc2
17545 builtin and then its argument prototype would still apply. */
17555 rm -f conftest.$ac_objext conftest$ac_exeext
17556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17557 (eval $ac_link) 2>conftest.er1
17559 grep -v '^ *+' conftest.er1 >conftest.err
17561 cat conftest.err >&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); } &&
17564 { ac_try='test -z "$ac_cxx_werror_flag"
17565 || test ! -s conftest.err'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; } &&
17571 { ac_try='test -s conftest$ac_exeext'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17577 ac_cv_lib_dld_shl_load=yes
17579 echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17582 ac_cv_lib_dld_shl_load=no
17584 rm -f conftest.err conftest.$ac_objext \
17585 conftest$ac_exeext conftest.$ac_ext
17586 LIBS=$ac_check_lib_save_LIBS
17588 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17589 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17590 if test $ac_cv_lib_dld_shl_load = yes; then
17591 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17593 echo "$as_me:$LINENO: checking for dlopen" >&5
17594 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17595 if test "${ac_cv_func_dlopen+set}" = set; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17598 cat >conftest.$ac_ext <<_ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17606 #define dlopen innocuous_dlopen
17608 /* System header to define __stub macros and hopefully few prototypes,
17609 which can conflict with char dlopen (); below.
17610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17611 <limits.h> exists even on freestanding compilers. */
17614 # include <limits.h>
17616 # include <assert.h>
17621 /* Override any gcc2 internal prototype to avoid an error. */
17626 /* We use char because int might match the return type of a gcc2
17627 builtin and then its argument prototype would still apply. */
17629 /* The GNU C library defines this for functions which it implements
17630 to always fail with ENOSYS. Some functions are actually named
17631 something starting with __ and the normal name is an alias. */
17632 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17635 char (*f) () = dlopen;
17644 return f != dlopen;
17649 rm -f conftest.$ac_objext conftest$ac_exeext
17650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17651 (eval $ac_link) 2>conftest.er1
17653 grep -v '^ *+' conftest.er1 >conftest.err
17655 cat conftest.err >&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
17658 { ac_try='test -z "$ac_cxx_werror_flag"
17659 || test ! -s conftest.err'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; } &&
17665 { ac_try='test -s conftest$ac_exeext'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
17671 ac_cv_func_dlopen=yes
17673 echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17676 ac_cv_func_dlopen=no
17678 rm -f conftest.err conftest.$ac_objext \
17679 conftest$ac_exeext conftest.$ac_ext
17681 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17682 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17683 if test $ac_cv_func_dlopen = yes; then
17684 lt_cv_dlopen="dlopen"
17686 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17687 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17688 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17691 ac_check_lib_save_LIBS=$LIBS
17693 cat >conftest.$ac_ext <<_ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h. */
17700 /* Override any gcc2 internal prototype to avoid an error. */
17704 /* We use char because int might match the return type of a gcc2
17705 builtin and then its argument prototype would still apply. */
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17717 (eval $ac_link) 2>conftest.er1
17719 grep -v '^ *+' conftest.er1 >conftest.err
17721 cat conftest.err >&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); } &&
17724 { ac_try='test -z "$ac_cxx_werror_flag"
17725 || test ! -s conftest.err'
17726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727 (eval $ac_try) 2>&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; } &&
17731 { ac_try='test -s conftest$ac_exeext'
17732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733 (eval $ac_try) 2>&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); }; }; then
17737 ac_cv_lib_dl_dlopen=yes
17739 echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17742 ac_cv_lib_dl_dlopen=no
17744 rm -f conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
17746 LIBS=$ac_check_lib_save_LIBS
17748 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17749 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17750 if test $ac_cv_lib_dl_dlopen = yes; then
17751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17753 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17754 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17755 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 ac_check_lib_save_LIBS=$LIBS
17759 LIBS="-lsvld $LIBS"
17760 cat >conftest.$ac_ext <<_ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17767 /* Override any gcc2 internal prototype to avoid an error. */
17771 /* We use char because int might match the return type of a gcc2
17772 builtin and then its argument prototype would still apply. */
17782 rm -f conftest.$ac_objext conftest$ac_exeext
17783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17784 (eval $ac_link) 2>conftest.er1
17786 grep -v '^ *+' conftest.er1 >conftest.err
17788 cat conftest.err >&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); } &&
17791 { ac_try='test -z "$ac_cxx_werror_flag"
17792 || test ! -s conftest.err'
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; } &&
17798 { ac_try='test -s conftest$ac_exeext'
17799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; }; then
17804 ac_cv_lib_svld_dlopen=yes
17806 echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17809 ac_cv_lib_svld_dlopen=no
17811 rm -f conftest.err conftest.$ac_objext \
17812 conftest$ac_exeext conftest.$ac_ext
17813 LIBS=$ac_check_lib_save_LIBS
17815 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17816 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17817 if test $ac_cv_lib_svld_dlopen = yes; then
17818 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17820 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17821 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17822 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17823 echo $ECHO_N "(cached) $ECHO_C" >&6
17825 ac_check_lib_save_LIBS=$LIBS
17827 cat >conftest.$ac_ext <<_ACEOF
17830 cat confdefs.h >>conftest.$ac_ext
17831 cat >>conftest.$ac_ext <<_ACEOF
17832 /* end confdefs.h. */
17834 /* Override any gcc2 internal prototype to avoid an error. */
17838 /* We use char because int might match the return type of a gcc2
17839 builtin and then its argument prototype would still apply. */
17849 rm -f conftest.$ac_objext conftest$ac_exeext
17850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17851 (eval $ac_link) 2>conftest.er1
17853 grep -v '^ *+' conftest.er1 >conftest.err
17855 cat conftest.err >&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); } &&
17858 { ac_try='test -z "$ac_cxx_werror_flag"
17859 || test ! -s conftest.err'
17860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861 (eval $ac_try) 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; } &&
17865 { ac_try='test -s conftest$ac_exeext'
17866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867 (eval $ac_try) 2>&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; }; then
17871 ac_cv_lib_dld_dld_link=yes
17873 echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17876 ac_cv_lib_dld_dld_link=no
17878 rm -f conftest.err conftest.$ac_objext \
17879 conftest$ac_exeext conftest.$ac_ext
17880 LIBS=$ac_check_lib_save_LIBS
17882 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17883 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17884 if test $ac_cv_lib_dld_dld_link = yes; then
17885 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17906 if test "x$lt_cv_dlopen" != xno; then
17912 case $lt_cv_dlopen in
17914 save_CPPFLAGS="$CPPFLAGS"
17915 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17917 save_LDFLAGS="$LDFLAGS"
17918 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17921 LIBS="$lt_cv_dlopen_libs $LIBS"
17923 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17924 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17925 if test "${lt_cv_dlopen_self+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17928 if test "$cross_compiling" = yes; then :
17929 lt_cv_dlopen_self=cross
17931 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17932 lt_status=$lt_dlunknown
17933 cat > conftest.$ac_ext <<EOF
17934 #line 17934 "configure"
17935 #include "confdefs.h"
17944 # define LT_DLGLOBAL RTLD_GLOBAL
17947 # define LT_DLGLOBAL DL_GLOBAL
17949 # define LT_DLGLOBAL 0
17953 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17954 find out it does not work in some platform. */
17955 #ifndef LT_DLLAZY_OR_NOW
17957 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17960 # define LT_DLLAZY_OR_NOW DL_LAZY
17963 # define LT_DLLAZY_OR_NOW RTLD_NOW
17966 # define LT_DLLAZY_OR_NOW DL_NOW
17968 # define LT_DLLAZY_OR_NOW 0
17976 extern "C" void exit (int);
17979 void fnord() { int i=42;}
17982 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17983 int status = $lt_dlunknown;
17987 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17988 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17989 /* dlclose (self); */
17995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996 (eval $ac_link) 2>&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18000 (./conftest; exit; ) 2>/dev/null
18002 case x$lt_status in
18003 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18004 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18005 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18008 # compilation failed
18009 lt_cv_dlopen_self=no
18016 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18017 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18019 if test "x$lt_cv_dlopen_self" = xyes; then
18020 LDFLAGS="$LDFLAGS $link_static_flag"
18021 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18022 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18023 if test "${lt_cv_dlopen_self_static+set}" = set; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18026 if test "$cross_compiling" = yes; then :
18027 lt_cv_dlopen_self_static=cross
18029 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18030 lt_status=$lt_dlunknown
18031 cat > conftest.$ac_ext <<EOF
18032 #line 18032 "configure"
18033 #include "confdefs.h"
18042 # define LT_DLGLOBAL RTLD_GLOBAL
18045 # define LT_DLGLOBAL DL_GLOBAL
18047 # define LT_DLGLOBAL 0
18051 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18052 find out it does not work in some platform. */
18053 #ifndef LT_DLLAZY_OR_NOW
18055 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18058 # define LT_DLLAZY_OR_NOW DL_LAZY
18061 # define LT_DLLAZY_OR_NOW RTLD_NOW
18064 # define LT_DLLAZY_OR_NOW DL_NOW
18066 # define LT_DLLAZY_OR_NOW 0
18074 extern "C" void exit (int);
18077 void fnord() { int i=42;}
18080 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18081 int status = $lt_dlunknown;
18085 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18086 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18087 /* dlclose (self); */
18093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18094 (eval $ac_link) 2>&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18098 (./conftest; exit; ) 2>/dev/null
18100 case x$lt_status in
18101 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18102 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18103 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18106 # compilation failed
18107 lt_cv_dlopen_self_static=no
18114 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18115 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18118 CPPFLAGS="$save_CPPFLAGS"
18119 LDFLAGS="$save_LDFLAGS"
18124 case $lt_cv_dlopen_self in
18125 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18126 *) enable_dlopen_self=unknown ;;
18129 case $lt_cv_dlopen_self_static in
18130 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18131 *) enable_dlopen_self_static=unknown ;;
18136 # The else clause should only fire when bootstrapping the
18137 # libtool distribution, otherwise you forgot to ship ltmain.sh
18138 # with your package, and you will get complaints that there are
18139 # no rules to generate ltmain.sh.
18140 if test -f "$ltmain"; then
18141 # See if we are running on zsh, and set the options which allow our commands through
18142 # without removal of \ escapes.
18143 if test -n "${ZSH_VERSION+set}" ; then
18144 setopt NO_GLOB_SUBST
18146 # Now quote all the things that may contain metacharacters while being
18147 # careful not to overquote the AC_SUBSTed values. We take copies of the
18148 # variables and quote the copies for generation of the libtool script.
18149 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18151 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18152 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18153 deplibs_check_method reload_flag reload_cmds need_locks \
18154 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18155 lt_cv_sys_global_symbol_to_c_name_address \
18156 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18157 old_postinstall_cmds old_postuninstall_cmds \
18161 lt_prog_compiler_wl_CXX \
18162 lt_prog_compiler_pic_CXX \
18163 lt_prog_compiler_static_CXX \
18164 lt_prog_compiler_no_builtin_flag_CXX \
18165 export_dynamic_flag_spec_CXX \
18166 thread_safe_flag_spec_CXX \
18167 whole_archive_flag_spec_CXX \
18168 enable_shared_with_static_runtimes_CXX \
18169 old_archive_cmds_CXX \
18170 old_archive_from_new_cmds_CXX \
18171 predep_objects_CXX \
18172 postdep_objects_CXX \
18175 compiler_lib_search_path_CXX \
18177 archive_expsym_cmds_CXX \
18178 postinstall_cmds_CXX \
18179 postuninstall_cmds_CXX \
18180 old_archive_from_expsyms_cmds_CXX \
18181 allow_undefined_flag_CXX \
18182 no_undefined_flag_CXX \
18183 export_symbols_cmds_CXX \
18184 hardcode_libdir_flag_spec_CXX \
18185 hardcode_libdir_flag_spec_ld_CXX \
18186 hardcode_libdir_separator_CXX \
18187 hardcode_automatic_CXX \
18189 module_expsym_cmds_CXX \
18190 lt_cv_prog_compiler_c_o_CXX \
18191 exclude_expsyms_CXX \
18192 include_expsyms_CXX; do
18195 old_archive_cmds_CXX | \
18196 old_archive_from_new_cmds_CXX | \
18197 archive_cmds_CXX | \
18198 archive_expsym_cmds_CXX | \
18199 module_cmds_CXX | \
18200 module_expsym_cmds_CXX | \
18201 old_archive_from_expsyms_cmds_CXX | \
18202 export_symbols_cmds_CXX | \
18203 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18204 postinstall_cmds | postuninstall_cmds | \
18205 old_postinstall_cmds | old_postuninstall_cmds | \
18206 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18207 # Double-quote double-evaled strings.
18208 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18211 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18217 *'\$0 --fallback-echo"')
18218 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18224 cat <<__EOF__ >> "$cfgfile"
18225 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18227 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18229 # Shell to use when invoking shell scripts.
18232 # Whether or not to build shared libraries.
18233 build_libtool_libs=$enable_shared
18235 # Whether or not to build static libraries.
18236 build_old_libs=$enable_static
18238 # Whether or not to add -lc for building shared libraries.
18239 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18241 # Whether or not to disallow shared libs when runtime libs are static
18242 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18244 # Whether or not to optimize for fast installation.
18245 fast_install=$enable_fast_install
18248 host_alias=$host_alias
18251 # An echo program that does not interpret backslashes.
18256 AR_FLAGS=$lt_AR_FLAGS
18261 # A language-specific compiler.
18262 CC=$lt_compiler_CXX
18264 # Is the compiler the GNU C compiler?
18270 # The linker used to build libraries.
18273 # Whether we need hard or soft links.
18276 # A BSD-compatible nm program.
18279 # A symbol stripping program
18282 # Used to examine libraries when file_magic_cmd begins "file"
18283 MAGIC_CMD=$MAGIC_CMD
18285 # Used on cygwin: DLL creation program.
18288 # Used on cygwin: object dumper.
18291 # Used on cygwin: assembler.
18294 # The name of the directory that contains temporary libtool files.
18297 # How to create reloadable object files.
18298 reload_flag=$lt_reload_flag
18299 reload_cmds=$lt_reload_cmds
18301 # How to pass a linker flag through the compiler.
18302 wl=$lt_lt_prog_compiler_wl_CXX
18304 # Object file suffix (normally "o").
18305 objext="$ac_objext"
18307 # Old archive suffix (normally "a").
18310 # Shared library suffix (normally ".so").
18311 shrext_cmds='$shrext_cmds'
18313 # Executable file suffix (normally "").
18316 # Additional compiler flags for building library objects.
18317 pic_flag=$lt_lt_prog_compiler_pic_CXX
18320 # What is the maximum length of a command?
18321 max_cmd_len=$lt_cv_sys_max_cmd_len
18323 # Does compiler simultaneously support -c and -o options?
18324 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18326 # Must we lock files when doing compilation ?
18327 need_locks=$lt_need_locks
18329 # Do we need the lib prefix for modules?
18330 need_lib_prefix=$need_lib_prefix
18332 # Do we need a version for libraries?
18333 need_version=$need_version
18335 # Whether dlopen is supported.
18336 dlopen_support=$enable_dlopen
18338 # Whether dlopen of programs is supported.
18339 dlopen_self=$enable_dlopen_self
18341 # Whether dlopen of statically linked programs is supported.
18342 dlopen_self_static=$enable_dlopen_self_static
18344 # Compiler flag to prevent dynamic linking.
18345 link_static_flag=$lt_lt_prog_compiler_static_CXX
18347 # Compiler flag to turn off builtin functions.
18348 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18350 # Compiler flag to allow reflexive dlopens.
18351 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18353 # Compiler flag to generate shared objects directly from archives.
18354 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18356 # Compiler flag to generate thread-safe objects.
18357 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18359 # Library versioning type.
18360 version_type=$version_type
18362 # Format of library name prefix.
18363 libname_spec=$lt_libname_spec
18365 # List of archive names. First name is the real one, the rest are links.
18366 # The last name is the one that the linker finds with -lNAME.
18367 library_names_spec=$lt_library_names_spec
18369 # The coded name of the library, if different from the real name.
18370 soname_spec=$lt_soname_spec
18372 # Commands used to build and install an old-style archive.
18374 old_archive_cmds=$lt_old_archive_cmds_CXX
18375 old_postinstall_cmds=$lt_old_postinstall_cmds
18376 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18378 # Create an old-style archive from a shared archive.
18379 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18381 # Create a temporary old-style archive to link instead of a shared archive.
18382 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18384 # Commands used to build and install a shared archive.
18385 archive_cmds=$lt_archive_cmds_CXX
18386 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18387 postinstall_cmds=$lt_postinstall_cmds
18388 postuninstall_cmds=$lt_postuninstall_cmds
18390 # Commands used to build a loadable module (assumed same as above if empty)
18391 module_cmds=$lt_module_cmds_CXX
18392 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18394 # Commands to strip libraries.
18395 old_striplib=$lt_old_striplib
18396 striplib=$lt_striplib
18398 # Dependencies to place before the objects being linked to create a
18400 predep_objects=$lt_predep_objects_CXX
18402 # Dependencies to place after the objects being linked to create a
18404 postdep_objects=$lt_postdep_objects_CXX
18406 # Dependencies to place before the objects being linked to create a
18408 predeps=$lt_predeps_CXX
18410 # Dependencies to place after the objects being linked to create a
18412 postdeps=$lt_postdeps_CXX
18414 # The library search path used internally by the compiler when linking
18415 # a shared library.
18416 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18418 # Method to check whether dependent libraries are shared objects.
18419 deplibs_check_method=$lt_deplibs_check_method
18421 # Command to use when deplibs_check_method == file_magic.
18422 file_magic_cmd=$lt_file_magic_cmd
18424 # Flag that allows shared libraries with undefined symbols to be built.
18425 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18427 # Flag that forces no undefined symbols.
18428 no_undefined_flag=$lt_no_undefined_flag_CXX
18430 # Commands used to finish a libtool library installation in a directory.
18431 finish_cmds=$lt_finish_cmds
18433 # Same as above, but a single script fragment to be evaled but not shown.
18434 finish_eval=$lt_finish_eval
18436 # Take the output of nm and produce a listing of raw symbols and C names.
18437 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18439 # Transform the output of nm in a proper C declaration
18440 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18442 # Transform the output of nm in a C name address pair
18443 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18445 # This is the shared library runtime path variable.
18446 runpath_var=$runpath_var
18448 # This is the shared library path variable.
18449 shlibpath_var=$shlibpath_var
18451 # Is shlibpath searched before the hard-coded library search path?
18452 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18454 # How to hardcode a shared library path into an executable.
18455 hardcode_action=$hardcode_action_CXX
18457 # Whether we should hardcode library paths into libraries.
18458 hardcode_into_libs=$hardcode_into_libs
18460 # Flag to hardcode \$libdir into a binary during linking.
18461 # This must work even if \$libdir does not exist.
18462 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18464 # If ld is used when linking, flag to hardcode \$libdir into
18465 # a binary during linking. This must work even if \$libdir does
18467 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18469 # Whether we need a single -rpath flag with a separated argument.
18470 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18472 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18473 # resulting binary.
18474 hardcode_direct=$hardcode_direct_CXX
18476 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18477 # resulting binary.
18478 hardcode_minus_L=$hardcode_minus_L_CXX
18480 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18481 # the resulting binary.
18482 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18484 # Set to yes if building a shared library automatically hardcodes DIR into the library
18485 # and all subsequent libraries and executables linked against it.
18486 hardcode_automatic=$hardcode_automatic_CXX
18488 # Variables whose values should be saved in libtool wrapper scripts and
18489 # restored at relink time.
18490 variables_saved_for_relink="$variables_saved_for_relink"
18492 # Whether libtool must link a program against all its dependency libraries.
18493 link_all_deplibs=$link_all_deplibs_CXX
18495 # Compile-time system search path for libraries
18496 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18498 # Run-time system search path for libraries
18499 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18501 # Fix the shell variable \$srcfile for the compiler.
18502 fix_srcfile_path="$fix_srcfile_path_CXX"
18504 # Set to yes if exported symbols are required.
18505 always_export_symbols=$always_export_symbols_CXX
18507 # The commands to list exported symbols.
18508 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18510 # The commands to extract the exported symbol list from a shared archive.
18511 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18513 # Symbols that should not be listed in the preloaded symbols.
18514 exclude_expsyms=$lt_exclude_expsyms_CXX
18516 # Symbols that must always be exported.
18517 include_expsyms=$lt_include_expsyms_CXX
18519 # ### END LIBTOOL TAG CONFIG: $tagname
18525 # If there is no Makefile yet, we rely on a make rule to execute
18526 # `config.status --recheck' to rerun these tests and create the
18527 # libtool script then.
18528 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18529 if test -f "$ltmain_in"; then
18530 test -f Makefile && make "$ltmain"
18536 ac_cpp='$CPP $CPPFLAGS'
18537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18545 with_gnu_ldcxx=$with_gnu_ld
18546 with_gnu_ld=$lt_save_with_gnu_ld
18547 lt_cv_path_LDCXX=$lt_cv_path_LD
18548 lt_cv_path_LD=$lt_save_path_LD
18549 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18550 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18558 if test -n "$F77" && test "X$F77" != "Xno"; then
18561 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18562 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18563 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18566 archive_cmds_need_lc_F77=no
18567 allow_undefined_flag_F77=
18568 always_export_symbols_F77=no
18569 archive_expsym_cmds_F77=
18570 export_dynamic_flag_spec_F77=
18571 hardcode_direct_F77=no
18572 hardcode_libdir_flag_spec_F77=
18573 hardcode_libdir_flag_spec_ld_F77=
18574 hardcode_libdir_separator_F77=
18575 hardcode_minus_L_F77=no
18576 hardcode_automatic_F77=no
18578 module_expsym_cmds_F77=
18579 link_all_deplibs_F77=unknown
18580 old_archive_cmds_F77=$old_archive_cmds
18581 no_undefined_flag_F77=
18582 whole_archive_flag_spec_F77=
18583 enable_shared_with_static_runtimes_F77=no
18585 # Source file extension for f77 test sources.
18588 # Object file extension for compiled f77 test sources.
18592 # Code to be used in simple compile tests
18593 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18595 # Code to be used in simple link tests
18596 lt_simple_link_test_code=" program t\n end\n"
18598 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18600 # If no C compiler was specified, use CC.
18603 # Allow CC to be a program name with arguments.
18607 # Allow CC to be a program name with arguments.
18612 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18614 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18615 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18616 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18617 echo "${ECHO_T}$can_build_shared" >&6
18619 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18620 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18621 test "$can_build_shared" = "no" && enable_shared=no
18623 # On AIX, shared libraries and static libraries use the same namespace, and
18624 # are all built from PIC.
18627 test "$enable_shared" = yes && enable_static=no
18628 if test -n "$RANLIB"; then
18629 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18630 postinstall_cmds='$RANLIB $lib'
18634 test "$enable_shared" = yes && enable_static=no
18637 echo "$as_me:$LINENO: result: $enable_shared" >&5
18638 echo "${ECHO_T}$enable_shared" >&6
18640 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18641 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18642 # Make sure either enable_shared or enable_static is yes.
18643 test "$enable_shared" = yes || enable_static=yes
18644 echo "$as_me:$LINENO: result: $enable_static" >&5
18645 echo "${ECHO_T}$enable_static" >&6
18647 test "$ld_shlibs_F77" = no && can_build_shared=no
18652 lt_prog_compiler_wl_F77=
18653 lt_prog_compiler_pic_F77=
18654 lt_prog_compiler_static_F77=
18656 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18657 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18659 if test "$GCC" = yes; then
18660 lt_prog_compiler_wl_F77='-Wl,'
18661 lt_prog_compiler_static_F77='-static'
18665 # All AIX code is PIC.
18666 if test "$host_cpu" = ia64; then
18667 # AIX 5 now supports IA64 processor
18668 lt_prog_compiler_static_F77='-Bstatic'
18673 # FIXME: we need at least 68020 code to build shared libraries, but
18674 # adding the `-m68020' flag to GCC prevents building anything better,
18676 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18679 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18680 # PIC is the default for these OSes.
18683 mingw* | pw32* | os2*)
18684 # This hack is so that the source file can tell whether it is being
18685 # built for inclusion in a dll (and should export symbols for example).
18686 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18689 darwin* | rhapsody*)
18690 # PIC is the default on this platform
18691 # Common symbols not allowed in MH_DYLIB files
18692 lt_prog_compiler_pic_F77='-fno-common'
18696 # Just because we use GCC doesn't mean we suddenly get shared libraries
18697 # on systems that don't support them.
18698 lt_prog_compiler_can_build_shared_F77=no
18703 if test -d /usr/nec; then
18704 lt_prog_compiler_pic_F77=-Kconform_pic
18709 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18710 # not for PA HP-UX.
18711 case "$host_cpu" in
18716 lt_prog_compiler_pic_F77='-fPIC'
18722 lt_prog_compiler_pic_F77='-fPIC'
18726 # PORTME Check for flag to pass linker flags through the system compiler.
18729 lt_prog_compiler_wl_F77='-Wl,'
18730 if test "$host_cpu" = ia64; then
18731 # AIX 5 now supports IA64 processor
18732 lt_prog_compiler_static_F77='-Bstatic'
18734 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18738 # PIC is the default on this platform
18739 # Common symbols not allowed in MH_DYLIB files
18740 case "$cc_basename" in
18742 lt_prog_compiler_pic_F77='-qnocommon'
18743 lt_prog_compiler_wl_F77='-Wl,'
18748 mingw* | pw32* | os2*)
18749 # This hack is so that the source file can tell whether it is being
18750 # built for inclusion in a dll (and should export symbols for example).
18751 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18754 hpux9* | hpux10* | hpux11*)
18755 lt_prog_compiler_wl_F77='-Wl,'
18756 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18757 # not for PA HP-UX.
18758 case "$host_cpu" in
18763 lt_prog_compiler_pic_F77='+Z'
18766 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18767 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18770 irix5* | irix6* | nonstopux*)
18771 lt_prog_compiler_wl_F77='-Wl,'
18772 # PIC (with -KPIC) is the default.
18773 lt_prog_compiler_static_F77='-non_shared'
18777 lt_prog_compiler_pic_F77='-KPIC'
18778 lt_prog_compiler_static_F77='-Bstatic'
18784 lt_prog_compiler_wl_F77='-Wl,'
18785 lt_prog_compiler_pic_F77='-KPIC'
18786 lt_prog_compiler_static_F77='-static'
18789 lt_prog_compiler_wl_F77='-Wl,'
18790 # All Alpha code is PIC.
18791 lt_prog_compiler_static_F77='-non_shared'
18796 osf3* | osf4* | osf5*)
18797 lt_prog_compiler_wl_F77='-Wl,'
18798 # All OSF/1 code is PIC.
18799 lt_prog_compiler_static_F77='-non_shared'
18803 lt_prog_compiler_pic_F77='-Kpic'
18804 lt_prog_compiler_static_F77='-dn'
18808 lt_prog_compiler_wl_F77='-Wl,'
18809 lt_prog_compiler_pic_F77='-KPIC'
18810 lt_prog_compiler_static_F77='-Bstatic'
18814 lt_prog_compiler_wl_F77='-Qoption ld '
18815 lt_prog_compiler_pic_F77='-PIC'
18816 lt_prog_compiler_static_F77='-Bstatic'
18819 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18820 lt_prog_compiler_wl_F77='-Wl,'
18821 lt_prog_compiler_pic_F77='-KPIC'
18822 lt_prog_compiler_static_F77='-Bstatic'
18826 if test -d /usr/nec ;then
18827 lt_prog_compiler_pic_F77='-Kconform_pic'
18828 lt_prog_compiler_static_F77='-Bstatic'
18833 lt_prog_compiler_pic_F77='-pic'
18834 lt_prog_compiler_static_F77='-Bstatic'
18838 lt_prog_compiler_can_build_shared_F77=no
18843 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18844 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18847 # Check to make sure the PIC flag actually works.
18849 if test -n "$lt_prog_compiler_pic_F77"; then
18851 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18852 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18853 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18854 echo $ECHO_N "(cached) $ECHO_C" >&6
18856 lt_prog_compiler_pic_works_F77=no
18857 ac_outfile=conftest.$ac_objext
18858 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18859 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18860 # Insert the option either (1) after the last *FLAGS variable, or
18861 # (2) before a word containing "conftest.", or (3) at the end.
18862 # Note that $ac_compile itself does not contain backslashes and begins
18863 # with a dollar sign (not a hyphen), so the echo should work correctly.
18864 # The option is referenced via a variable to avoid confusing sed.
18865 lt_compile=`echo "$ac_compile" | $SED \
18866 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18868 -e 's:$: $lt_compiler_flag:'`
18869 (eval echo "\"\$as_me:18869: $lt_compile\"" >&5)
18870 (eval "$lt_compile" 2>conftest.err)
18872 cat conftest.err >&5
18873 echo "$as_me:18873: \$? = $ac_status" >&5
18874 if (exit $ac_status) && test -s "$ac_outfile"; then
18875 # The compiler can only warn and ignore the option if not recognized
18876 # So say no if there are warnings
18877 if test ! -s conftest.err; then
18878 lt_prog_compiler_pic_works_F77=yes
18884 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18885 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18887 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18888 case $lt_prog_compiler_pic_F77 in
18890 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18893 lt_prog_compiler_pic_F77=
18894 lt_prog_compiler_can_build_shared_F77=no
18899 # For platforms which do not support PIC, -DPIC is meaningless:
18901 lt_prog_compiler_pic_F77=
18904 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18908 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18909 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18910 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18911 echo $ECHO_N "(cached) $ECHO_C" >&6
18913 lt_cv_prog_compiler_c_o_F77=no
18914 $rm -r conftest 2>/dev/null
18918 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18920 lt_compiler_flag="-o out/conftest2.$ac_objext"
18921 # Insert the option either (1) after the last *FLAGS variable, or
18922 # (2) before a word containing "conftest.", or (3) at the end.
18923 # Note that $ac_compile itself does not contain backslashes and begins
18924 # with a dollar sign (not a hyphen), so the echo should work correctly.
18925 lt_compile=`echo "$ac_compile" | $SED \
18926 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18928 -e 's:$: $lt_compiler_flag:'`
18929 (eval echo "\"\$as_me:18929: $lt_compile\"" >&5)
18930 (eval "$lt_compile" 2>out/conftest.err)
18932 cat out/conftest.err >&5
18933 echo "$as_me:18933: \$? = $ac_status" >&5
18934 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18936 # The compiler can only warn and ignore the option if not recognized
18937 # So say no if there are warnings
18938 if test ! -s out/conftest.err; then
18939 lt_cv_prog_compiler_c_o_F77=yes
18944 # SGI C++ compiler will create directory out/ii_files/ for
18945 # template instantiation
18946 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18947 $rm out/* && rmdir out
18953 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18954 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18957 hard_links="nottested"
18958 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18959 # do not overwrite the value of need_locks provided by the user
18960 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18961 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18964 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18966 ln conftest.a conftest.b 2>&5 || hard_links=no
18967 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18968 echo "$as_me:$LINENO: result: $hard_links" >&5
18969 echo "${ECHO_T}$hard_links" >&6
18970 if test "$hard_links" = no; then
18971 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18972 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18979 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18980 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18983 allow_undefined_flag_F77=
18984 enable_shared_with_static_runtimes_F77=no
18986 archive_expsym_cmds_F77=
18987 old_archive_From_new_cmds_F77=
18988 old_archive_from_expsyms_cmds_F77=
18989 export_dynamic_flag_spec_F77=
18990 whole_archive_flag_spec_F77=
18991 thread_safe_flag_spec_F77=
18992 hardcode_libdir_flag_spec_F77=
18993 hardcode_libdir_flag_spec_ld_F77=
18994 hardcode_libdir_separator_F77=
18995 hardcode_direct_F77=no
18996 hardcode_minus_L_F77=no
18997 hardcode_shlibpath_var_F77=unsupported
18998 link_all_deplibs_F77=unknown
18999 hardcode_automatic_F77=no
19001 module_expsym_cmds_F77=
19002 always_export_symbols_F77=no
19003 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19004 # include_expsyms should be a list of space-separated symbols to be *always*
19005 # included in the symbol list
19006 include_expsyms_F77=
19007 # exclude_expsyms can be an extended regexp of symbols to exclude
19008 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19009 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19010 # as well as any symbol that contains `d'.
19011 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19012 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19013 # platforms (ab)use it in PIC code, but their linkers get confused if
19014 # the symbol is explicitly referenced. Since portable code cannot
19015 # rely on this symbol name, it's probably fine to never include it in
19016 # preloaded symbol tables.
19017 extract_expsyms_cmds=
19020 cygwin* | mingw* | pw32*)
19021 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19022 # When not using gcc, we currently assume that we are using
19023 # Microsoft Visual C++.
19024 if test "$GCC" != yes; then
19034 if test "$with_gnu_ld" = yes; then
19035 # If archive_cmds runs LD, not CC, wlarc should be empty
19038 # See if GNU ld supports shared libraries.
19040 aix3* | aix4* | aix5*)
19041 # On AIX/PPC, the GNU linker is very broken
19042 if test "$host_cpu" != ia64; then
19046 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19047 *** to be unable to reliably create shared libraries on AIX.
19048 *** Therefore, libtool is disabling shared libraries support. If you
19049 *** really care for shared libraries, you may want to modify your PATH
19050 *** so that a non-GNU linker is found, and then restart.
19057 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)'
19058 hardcode_libdir_flag_spec_F77='-L$libdir'
19059 hardcode_minus_L_F77=yes
19061 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19062 # that the semantics of dynamic libraries on AmigaOS, at least up
19063 # to version 4, is to share data among multiple programs linked
19064 # with the same dynamic library. Since this doesn't match the
19065 # behavior of shared libraries on other platforms, we can't use
19071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19072 allow_undefined_flag_F77=unsupported
19073 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19074 # support --undefined. This deserves some investigation. FIXME
19075 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19081 cygwin* | mingw* | pw32*)
19082 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19083 # as there is no search path for DLLs.
19084 hardcode_libdir_flag_spec_F77='-L$libdir'
19085 allow_undefined_flag_F77=unsupported
19086 always_export_symbols_F77=no
19087 enable_shared_with_static_runtimes_F77=yes
19088 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19090 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19091 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19092 # If the export-symbols file already is a .def file (1st line
19093 # is EXPORTS), use it as is; otherwise, prepend...
19094 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19095 cp $export_symbols $output_objdir/$soname.def;
19097 echo EXPORTS > $output_objdir/$soname.def;
19098 cat $export_symbols >> $output_objdir/$soname.def;
19100 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19107 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19108 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19111 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19112 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19117 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19121 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19122 *** create shared libraries on Solaris systems. Therefore, libtool
19123 *** is disabling shared libraries support. We urge you to upgrade GNU
19124 *** binutils to release 2.9.1 or newer. Another option is to modify
19125 *** your PATH or compiler configuration so that the native linker is
19126 *** used, and then restart.
19129 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19130 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19131 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19138 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19140 hardcode_direct_F77=yes
19141 hardcode_shlibpath_var_F77=no
19145 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19146 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19147 archive_cmds_F77="$tmp_archive_cmds"
19148 supports_anon_versioning=no
19149 case `$LD -v 2>/dev/null` in
19150 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19151 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19152 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19153 *\ 2.11.*) ;; # other 2.11 versions
19154 *) supports_anon_versioning=yes ;;
19156 if test $supports_anon_versioning = yes; then
19157 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19158 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19159 $echo "local: *; };" >> $output_objdir/$libname.ver~
19160 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19162 archive_expsym_cmds_F77="$tmp_archive_cmds"
19170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19171 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19172 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19179 if test "$ld_shlibs_F77" = yes; then
19180 runpath_var=LD_RUN_PATH
19181 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19182 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19183 # ancient GNU ld didn't support --whole-archive et. al.
19184 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19185 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19187 whole_archive_flag_spec_F77=
19191 # PORTME fill in a description of your system's linker (not GNU ld)
19194 allow_undefined_flag_F77=unsupported
19195 always_export_symbols_F77=yes
19196 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'
19197 # Note: this linker hardcodes the directories in LIBPATH if there
19198 # are no directories specified by -L.
19199 hardcode_minus_L_F77=yes
19200 if test "$GCC" = yes && test -z "$link_static_flag"; then
19201 # Neither direct hardcoding nor static linking is supported with a
19203 hardcode_direct_F77=unsupported
19208 if test "$host_cpu" = ia64; then
19209 # On IA64, the linker does run time linking by default, so we don't
19210 # have to do anything special.
19211 aix_use_runtimelinking=no
19212 exp_sym_flag='-Bexport'
19215 # If we're using GNU nm, then we don't want the "-C" option.
19216 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19217 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19218 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'
19220 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'
19222 aix_use_runtimelinking=no
19224 # Test if we are trying to use run time linking or normal
19225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19226 # need to do runtime linking.
19227 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19228 for ld_flag in $LDFLAGS; do
19229 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19230 aix_use_runtimelinking=yes
19236 exp_sym_flag='-bexport'
19237 no_entry_flag='-bnoentry'
19240 # When large executables or shared objects are built, AIX ld can
19241 # have problems creating the table of contents. If linking a library
19242 # or program results in "error TOC overflow" add -mminimal-toc to
19243 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19244 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19246 archive_cmds_F77=''
19247 hardcode_direct_F77=yes
19248 hardcode_libdir_separator_F77=':'
19249 link_all_deplibs_F77=yes
19251 if test "$GCC" = yes; then
19252 case $host_os in aix4.012|aix4.012.*)
19253 # We only want to do this on AIX 4.2 and lower, the check
19254 # below for broken collect2 doesn't work under 4.3+
19255 collect2name=`${CC} -print-prog-name=collect2`
19256 if test -f "$collect2name" && \
19257 strings "$collect2name" | grep resolve_lib_name >/dev/null
19259 # We have reworked collect2
19260 hardcode_direct_F77=yes
19262 # We have old collect2
19263 hardcode_direct_F77=unsupported
19264 # It fails to find uninstalled libraries when the uninstalled
19265 # path is not listed in the libpath. Setting hardcode_minus_L
19266 # to unsupported forces relinking
19267 hardcode_minus_L_F77=yes
19268 hardcode_libdir_flag_spec_F77='-L$libdir'
19269 hardcode_libdir_separator_F77=
19272 shared_flag='-shared'
19275 if test "$host_cpu" = ia64; then
19276 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19277 # chokes on -Wl,-G. The following line is correct:
19280 if test "$aix_use_runtimelinking" = yes; then
19281 shared_flag='${wl}-G'
19283 shared_flag='${wl}-bM:SRE'
19288 # It seems that -bexpall does not export symbols beginning with
19289 # underscore (_), so it is better to generate a list of symbols to export.
19290 always_export_symbols_F77=yes
19291 if test "$aix_use_runtimelinking" = yes; then
19292 # Warning - without using the other runtime loading flags (-brtl),
19293 # -berok will link without error, but may produce a broken library.
19294 allow_undefined_flag_F77='-berok'
19295 # Determine the default libpath from the value encoded in an empty executable.
19296 cat >conftest.$ac_ext <<_ACEOF
19301 rm -f conftest.$ac_objext conftest$ac_exeext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19303 (eval $ac_link) 2>conftest.er1
19305 grep -v '^ *+' conftest.er1 >conftest.err
19307 cat conftest.err >&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } &&
19310 { ac_try='test -z "$ac_f77_werror_flag"
19311 || test ! -s conftest.err'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; } &&
19317 { ac_try='test -s conftest$ac_exeext'
19318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; }; then
19324 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19326 # Check for a 64-bit object if we didn't find anything.
19327 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; }
19330 echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.$ac_ext >&5
19334 rm -f conftest.err conftest.$ac_objext \
19335 conftest$ac_exeext conftest.$ac_ext
19336 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19338 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19339 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"
19341 if test "$host_cpu" = ia64; then
19342 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19343 allow_undefined_flag_F77="-z nodefs"
19344 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"
19346 # Determine the default libpath from the value encoded in an empty executable.
19347 cat >conftest.$ac_ext <<_ACEOF
19352 rm -f conftest.$ac_objext conftest$ac_exeext
19353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19354 (eval $ac_link) 2>conftest.er1
19356 grep -v '^ *+' conftest.er1 >conftest.err
19358 cat conftest.err >&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
19361 { ac_try='test -z "$ac_f77_werror_flag"
19362 || test ! -s conftest.err'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; } &&
19368 { ac_try='test -s conftest$ac_exeext'
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19375 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19377 # Check for a 64-bit object if we didn't find anything.
19378 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; }
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19385 rm -f conftest.err conftest.$ac_objext \
19386 conftest$ac_exeext conftest.$ac_ext
19387 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19389 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19390 # Warning - without using the other run time loading flags,
19391 # -berok will link without error, but may produce a broken library.
19392 no_undefined_flag_F77=' ${wl}-bernotok'
19393 allow_undefined_flag_F77=' ${wl}-berok'
19394 # -bexpall does not export symbols beginning with underscore (_)
19395 always_export_symbols_F77=yes
19396 # Exported symbols can be pulled into shared objects from archives
19397 whole_archive_flag_spec_F77=' '
19398 archive_cmds_need_lc_F77=yes
19399 # This is similar to how AIX traditionally builds it's shared libraries.
19400 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'
19406 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)'
19407 hardcode_libdir_flag_spec_F77='-L$libdir'
19408 hardcode_minus_L_F77=yes
19409 # see comment about different semantics on the GNU ld section
19414 export_dynamic_flag_spec_F77=-rdynamic
19417 cygwin* | mingw* | pw32*)
19418 # When not using gcc, we currently assume that we are using
19419 # Microsoft Visual C++.
19420 # hardcode_libdir_flag_spec is actually meaningless, as there is
19421 # no search path for DLLs.
19422 hardcode_libdir_flag_spec_F77=' '
19423 allow_undefined_flag_F77=unsupported
19424 # Tell ltmain to make .lib files, not .a files.
19426 # Tell ltmain to make .dll files, not .so files.
19428 # FIXME: Setting linknames here is a bad hack.
19429 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19430 # The linker will automatically build a .lib file if we build a DLL.
19431 old_archive_From_new_cmds_F77='true'
19432 # FIXME: Should let the user specify the lib program.
19433 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19434 fix_srcfile_path='`cygpath -w "$srcfile"`'
19435 enable_shared_with_static_runtimes_F77=yes
19438 darwin* | rhapsody*)
19440 rhapsody* | darwin1.[012])
19441 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19444 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19445 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19447 case ${MACOSX_DEPLOYMENT_TARGET} in
19449 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19452 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19458 archive_cmds_need_lc_F77=no
19459 hardcode_direct_F77=no
19460 hardcode_automatic_F77=yes
19461 hardcode_shlibpath_var_F77=unsupported
19462 whole_archive_flag_spec_F77=''
19463 link_all_deplibs_F77=yes
19464 if test "$GCC" = yes ; then
19465 output_verbose_link_cmd='echo'
19466 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19467 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19468 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19469 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}'
19470 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}'
19472 case "$cc_basename" in
19474 output_verbose_link_cmd='echo'
19475 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19476 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19477 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19478 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}'
19479 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}'
19489 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19490 hardcode_libdir_flag_spec_F77='-L$libdir'
19491 hardcode_shlibpath_var_F77=no
19498 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19499 # support. Future versions do this automatically, but an explicit c++rt0.o
19500 # does not break anything, and helps significantly (at the cost of a little
19503 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19504 hardcode_libdir_flag_spec_F77='-R$libdir'
19505 hardcode_direct_F77=yes
19506 hardcode_shlibpath_var_F77=no
19509 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19511 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19512 hardcode_direct_F77=yes
19513 hardcode_minus_L_F77=yes
19514 hardcode_shlibpath_var_F77=no
19517 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19518 freebsd* | kfreebsd*-gnu)
19519 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19520 hardcode_libdir_flag_spec_F77='-R$libdir'
19521 hardcode_direct_F77=yes
19522 hardcode_shlibpath_var_F77=no
19526 if test "$GCC" = yes; then
19527 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'
19529 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'
19531 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19532 hardcode_libdir_separator_F77=:
19533 hardcode_direct_F77=yes
19535 # hardcode_minus_L: Not really in the search PATH,
19536 # but as the default location of the library.
19537 hardcode_minus_L_F77=yes
19538 export_dynamic_flag_spec_F77='${wl}-E'
19542 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19543 case "$host_cpu" in
19545 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19548 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19552 case "$host_cpu" in
19554 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19557 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19561 if test "$with_gnu_ld" = no; then
19562 case "$host_cpu" in
19564 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19565 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19566 hardcode_libdir_separator_F77=:
19567 hardcode_direct_F77=no
19568 hardcode_shlibpath_var_F77=no
19571 hardcode_libdir_flag_spec_F77='-L$libdir'
19572 hardcode_direct_F77=no
19573 hardcode_shlibpath_var_F77=no
19575 # hardcode_minus_L: Not really in the search PATH,
19576 # but as the default location of the library.
19577 hardcode_minus_L_F77=yes
19580 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19581 hardcode_libdir_separator_F77=:
19582 hardcode_direct_F77=yes
19583 export_dynamic_flag_spec_F77='${wl}-E'
19585 # hardcode_minus_L: Not really in the search PATH,
19586 # but as the default location of the library.
19587 hardcode_minus_L_F77=yes
19593 irix5* | irix6* | nonstopux*)
19594 if test "$GCC" = yes; then
19595 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'
19597 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'
19598 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19600 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19601 hardcode_libdir_separator_F77=:
19602 link_all_deplibs_F77=yes
19606 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19607 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19609 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19611 hardcode_libdir_flag_spec_F77='-R$libdir'
19612 hardcode_direct_F77=yes
19613 hardcode_shlibpath_var_F77=no
19617 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19618 hardcode_direct_F77=yes
19619 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19620 hardcode_libdir_separator_F77=:
19621 hardcode_shlibpath_var_F77=no
19625 hardcode_direct_F77=yes
19626 hardcode_shlibpath_var_F77=no
19627 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19628 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19629 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19630 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19631 export_dynamic_flag_spec_F77='${wl}-E'
19634 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19635 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19636 hardcode_libdir_flag_spec_F77='-R$libdir'
19639 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19640 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19647 hardcode_libdir_flag_spec_F77='-L$libdir'
19648 hardcode_minus_L_F77=yes
19649 allow_undefined_flag_F77=unsupported
19650 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'
19651 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19655 if test "$GCC" = yes; then
19656 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19657 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19659 allow_undefined_flag_F77=' -expect_unresolved \*'
19660 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'
19662 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19663 hardcode_libdir_separator_F77=:
19666 osf4* | osf5*) # as osf3* with the addition of -msym flag
19667 if test "$GCC" = yes; then
19668 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19669 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'
19670 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19672 allow_undefined_flag_F77=' -expect_unresolved \*'
19673 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'
19674 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~
19675 $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'
19677 # Both c and cxx compiler support -rpath directly
19678 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19680 hardcode_libdir_separator_F77=:
19684 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19685 hardcode_shlibpath_var_F77=no
19686 export_dynamic_flag_spec_F77='${wl}-Bexport'
19687 runpath_var=LD_RUN_PATH
19688 hardcode_runpath_var=yes
19692 no_undefined_flag_F77=' -z text'
19693 if test "$GCC" = yes; then
19694 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19695 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19696 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19698 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19699 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19700 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19702 hardcode_libdir_flag_spec_F77='-R$libdir'
19703 hardcode_shlibpath_var_F77=no
19705 solaris2.[0-5] | solaris2.[0-5].*) ;;
19706 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19707 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19709 link_all_deplibs_F77=yes
19713 if test "x$host_vendor" = xsequent; then
19714 # Use $CC to link under sequent, because it throws in some extra .o
19715 # files that make .init and .fini sections work.
19716 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19718 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19720 hardcode_libdir_flag_spec_F77='-L$libdir'
19721 hardcode_direct_F77=yes
19722 hardcode_minus_L_F77=yes
19723 hardcode_shlibpath_var_F77=no
19727 case $host_vendor in
19729 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19730 hardcode_direct_F77=yes # is this really true???
19733 ## LD is ld it makes a PLAMLIB
19734 ## CC just makes a GrossModule.
19735 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19736 reload_cmds_F77='$CC -r -o $output$reload_objs'
19737 hardcode_direct_F77=no
19740 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19741 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19744 runpath_var='LD_RUN_PATH'
19745 hardcode_shlibpath_var_F77=no
19749 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19750 hardcode_shlibpath_var_F77=no
19751 export_dynamic_flag_spec_F77='-Bexport'
19755 if test -d /usr/nec; then
19756 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19757 hardcode_shlibpath_var_F77=no
19758 runpath_var=LD_RUN_PATH
19759 hardcode_runpath_var=yes
19765 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19766 hardcode_direct_F77=yes
19767 hardcode_minus_L_F77=no
19768 hardcode_shlibpath_var_F77=no
19769 hardcode_runpath_var=yes
19770 runpath_var=LD_RUN_PATH
19773 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19774 no_undefined_flag_F77='${wl}-z ${wl}text'
19775 if test "$GCC" = yes; then
19776 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19778 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19780 runpath_var='LD_RUN_PATH'
19781 hardcode_shlibpath_var_F77=no
19785 no_undefined_flag_F77=' -z text'
19786 # $CC -shared without GNU ld will not create a library from C++
19787 # object files and a static libstdc++, better avoid it by now
19788 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19789 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19790 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19791 hardcode_libdir_flag_spec_F77=
19792 hardcode_shlibpath_var_F77=no
19793 runpath_var='LD_RUN_PATH'
19797 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19798 hardcode_libdir_flag_spec_F77='-L$libdir'
19799 hardcode_shlibpath_var_F77=no
19808 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19809 echo "${ECHO_T}$ld_shlibs_F77" >&6
19810 test "$ld_shlibs_F77" = no && can_build_shared=no
19812 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19813 if test "$GCC" = yes; then
19814 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19818 # Do we need to explicitly link libc?
19820 case "x$archive_cmds_need_lc_F77" in
19822 # Assume -lc should be added
19823 archive_cmds_need_lc_F77=yes
19825 if test "$enable_shared" = yes && test "$GCC" = yes; then
19826 case $archive_cmds_F77 in
19828 # FIXME: we may have to deal with multi-command sequences.
19831 # Test whether the compiler implicitly links with -lc since on some
19832 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19833 # to ld, don't add -lc before -lgcc.
19834 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19835 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19837 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19840 (eval $ac_compile) 2>&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } 2>conftest.err; then
19846 libobjs=conftest.$ac_objext
19848 wl=$lt_prog_compiler_wl_F77
19854 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19855 allow_undefined_flag_F77=
19856 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19857 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }
19862 archive_cmds_need_lc_F77=no
19864 archive_cmds_need_lc_F77=yes
19866 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19868 cat conftest.err 1>&5
19871 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19872 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19879 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19880 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19881 library_names_spec=
19882 libname_spec='lib$name'
19886 postuninstall_cmds=
19890 shlibpath_overrides_runpath=unknown
19892 dynamic_linker="$host_os ld.so"
19893 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19894 if test "$GCC" = yes; then
19895 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19896 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19897 # if the path contains ";" then we assume it to be the separator
19898 # otherwise default to the standard path separator (i.e. ":") - it is
19899 # assumed that no part of a normal pathname contains ";" but that should
19900 # okay in the real world where ";" in dirpaths is itself problematic.
19901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19903 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19906 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19908 need_lib_prefix=unknown
19909 hardcode_into_libs=no
19911 # when you set need_version to no, make sure it does not cause -set_version
19912 # flags to be left without arguments
19913 need_version=unknown
19918 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19919 shlibpath_var=LIBPATH
19921 # AIX 3 has no versioning support, so we append a major version to the name.
19922 soname_spec='${libname}${release}${shared_ext}$major'
19929 hardcode_into_libs=yes
19930 if test "$host_cpu" = ia64; then
19931 # AIX 5 supports IA64
19932 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19933 shlibpath_var=LD_LIBRARY_PATH
19935 # With GCC up to 2.95.x, collect2 would create an import file
19936 # for dependence libraries. The import file would start with
19937 # the line `#! .'. This would cause the generated library to
19938 # depend on `.', always an invalid library. This was fixed in
19939 # development snapshots of GCC prior to 3.0.
19941 aix4 | aix4.[01] | aix4.[01].*)
19942 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19944 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19947 can_build_shared=no
19951 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19952 # soname into executable. Probably we can add versioning support to
19953 # collect2, so additional links can be useful in future.
19954 if test "$aix_use_runtimelinking" = yes; then
19955 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19956 # instead of lib<name>.a to let people know that these are not
19957 # typical AIX shared libraries.
19958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19960 # We preserve .a as extension for shared libraries through AIX4.2
19961 # and later when we are not doing run time linking.
19962 library_names_spec='${libname}${release}.a $libname.a'
19963 soname_spec='${libname}${release}${shared_ext}$major'
19965 shlibpath_var=LIBPATH
19970 library_names_spec='$libname.ixlibrary $libname.a'
19971 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19972 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'
19976 library_names_spec='${libname}${shared_ext}'
19977 dynamic_linker="$host_os ld.so"
19978 shlibpath_var=LIBRARY_PATH
19984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19985 soname_spec='${libname}${release}${shared_ext}$major'
19986 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19987 shlibpath_var=LD_LIBRARY_PATH
19988 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19989 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19990 # the default ld.so.conf also contains /usr/contrib/lib and
19991 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19992 # libtool to hard-code these into programs
19995 cygwin* | mingw* | pw32*)
19996 version_type=windows
20001 case $GCC,$host_os in
20002 yes,cygwin* | yes,mingw* | yes,pw32*)
20003 library_names_spec='$libname.dll.a'
20004 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20005 postinstall_cmds='base_file=`basename \${file}`~
20006 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20007 dldir=$destdir/`dirname \$dlpath`~
20008 test -d \$dldir || mkdir -p \$dldir~
20009 $install_prog $dir/$dlname \$dldir/$dlname'
20010 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20011 dlpath=$dir/\$dldll~
20013 shlibpath_overrides_runpath=yes
20017 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20018 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20019 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20022 # MinGW DLLs use traditional 'lib' prefix
20023 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20024 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20025 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20026 # It is most probably a Windows format PATH printed by
20027 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20028 # path with ; separators, and with drive letters. We can handle the
20029 # drive letters (cygwin fileutils understands them), so leave them,
20030 # especially as we might pass files found there to a mingw objdump,
20031 # which wouldn't understand a cygwinified path. Ahh.
20032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20038 # pw32 DLLs use 'pw' prefix rather than 'lib'
20039 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20045 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20048 dynamic_linker='Win32 ld.exe'
20049 # FIXME: first we should search . and the directory the executable is in
20053 darwin* | rhapsody*)
20054 dynamic_linker="$host_os dyld"
20055 version_type=darwin
20058 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20059 soname_spec='${libname}${release}${major}$shared_ext'
20060 shlibpath_overrides_runpath=yes
20061 shlibpath_var=DYLD_LIBRARY_PATH
20062 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20063 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20064 if test "$GCC" = yes; then
20065 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"`
20067 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20069 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20077 soname_spec='${libname}${release}${shared_ext}$major'
20078 shlibpath_var=LD_LIBRARY_PATH
20089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20090 soname_spec='${libname}${release}${shared_ext}$major'
20091 shlibpath_var=LD_LIBRARY_PATH
20092 shlibpath_overrides_runpath=no
20093 hardcode_into_libs=yes
20094 dynamic_linker='GNU ld.so'
20098 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20099 version_type=freebsd-$objformat
20100 case $version_type in
20102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20111 shlibpath_var=LD_LIBRARY_PATH
20114 shlibpath_overrides_runpath=yes
20116 freebsd3.01* | freebsdelf3.01*)
20117 shlibpath_overrides_runpath=yes
20118 hardcode_into_libs=yes
20121 shlibpath_overrides_runpath=no
20122 hardcode_into_libs=yes
20131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20132 soname_spec='${libname}${release}${shared_ext}$major'
20133 shlibpath_var=LD_LIBRARY_PATH
20134 hardcode_into_libs=yes
20137 hpux9* | hpux10* | hpux11*)
20138 # Give a soname corresponding to the major version so that dld.sl refuses to
20139 # link against other versions.
20143 case "$host_cpu" in
20146 hardcode_into_libs=yes
20147 dynamic_linker="$host_os dld.so"
20148 shlibpath_var=LD_LIBRARY_PATH
20149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20151 soname_spec='${libname}${release}${shared_ext}$major'
20152 if test "X$HPUX_IA64_MODE" = X32; then
20153 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20155 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20157 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20161 hardcode_into_libs=yes
20162 dynamic_linker="$host_os dld.sl"
20163 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20164 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20166 soname_spec='${libname}${release}${shared_ext}$major'
20167 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20172 dynamic_linker="$host_os dld.sl"
20173 shlibpath_var=SHLIB_PATH
20174 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
20179 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20180 postinstall_cmds='chmod 555 $lib'
20183 irix5* | irix6* | nonstopux*)
20185 nonstopux*) version_type=nonstopux ;;
20187 if test "$lt_cv_prog_gnu_ld" = yes; then
20195 soname_spec='${libname}${release}${shared_ext}$major'
20196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20198 irix5* | nonstopux*)
20199 libsuff= shlibsuff=
20202 case $LD in # libtool.m4 will add one of these switches to LD
20203 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20204 libsuff= shlibsuff= libmagic=32-bit;;
20205 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20206 libsuff=32 shlibsuff=N32 libmagic=N32;;
20207 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20208 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20209 *) libsuff= shlibsuff= libmagic=never-match;;
20213 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20214 shlibpath_overrides_runpath=no
20215 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20216 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20217 hardcode_into_libs=yes
20220 # No shared lib support for Linux oldld, aout, or coff.
20221 linux*oldld* | linux*aout* | linux*coff*)
20225 # This must be Linux ELF.
20230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20231 soname_spec='${libname}${release}${shared_ext}$major'
20232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20233 shlibpath_var=LD_LIBRARY_PATH
20234 shlibpath_overrides_runpath=no
20235 # This implies no fast_install, which is unacceptable.
20236 # Some rework will be needed to allow for fast_install
20237 # before this can be enabled.
20238 hardcode_into_libs=yes
20240 # Append ld.so.conf contents to the search path
20241 if test -f /etc/ld.so.conf; then
20242 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20243 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20246 # We used to test for /lib/ld.so.1 and disable shared libraries on
20247 # powerpc, because MkLinux only supported shared libraries with the
20248 # GNU dynamic linker. Since this was broken with cross compilers,
20249 # most powerpc-linux boxes support dynamic linking these days and
20250 # people can always --disable-shared, the test was removed, and we
20251 # assume the GNU/Linux dynamic linker is in use.
20252 dynamic_linker='GNU/Linux ld.so'
20259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20260 soname_spec='${libname}${release}${shared_ext}$major'
20261 shlibpath_var=LD_LIBRARY_PATH
20262 shlibpath_overrides_runpath=no
20263 hardcode_into_libs=yes
20264 dynamic_linker='GNU ld.so'
20271 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20274 dynamic_linker='NetBSD (a.out) ld.so'
20276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20277 soname_spec='${libname}${release}${shared_ext}$major'
20278 dynamic_linker='NetBSD ld.elf_so'
20280 shlibpath_var=LD_LIBRARY_PATH
20281 shlibpath_overrides_runpath=yes
20282 hardcode_into_libs=yes
20287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20288 shlibpath_var=LD_LIBRARY_PATH
20289 shlibpath_overrides_runpath=yes
20296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20297 soname_spec='${libname}${release}${shared_ext}$major'
20298 shlibpath_var=LD_LIBRARY_PATH
20299 shlibpath_overrides_runpath=yes
20306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20308 shlibpath_var=LD_LIBRARY_PATH
20309 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20311 openbsd2.[89] | openbsd2.[89].*)
20312 shlibpath_overrides_runpath=no
20315 shlibpath_overrides_runpath=yes
20319 shlibpath_overrides_runpath=yes
20324 libname_spec='$name'
20327 library_names_spec='$libname${shared_ext} $libname.a'
20328 dynamic_linker='OS/2 ld.exe'
20329 shlibpath_var=LIBPATH
20332 osf3* | osf4* | osf5*)
20336 soname_spec='${libname}${release}${shared_ext}$major'
20337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20338 shlibpath_var=LD_LIBRARY_PATH
20339 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20340 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20345 soname_spec='${libname}${release}${shared_ext}$major'
20346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347 shlibpath_var=LD_LIBRARY_PATH
20354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20355 soname_spec='${libname}${release}${shared_ext}$major'
20356 shlibpath_var=LD_LIBRARY_PATH
20357 shlibpath_overrides_runpath=yes
20358 hardcode_into_libs=yes
20359 # ldd complains unless libraries are executable
20360 postinstall_cmds='chmod +x $lib'
20365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20366 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20367 shlibpath_var=LD_LIBRARY_PATH
20368 shlibpath_overrides_runpath=yes
20369 if test "$with_gnu_ld" = yes; then
20375 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20378 soname_spec='${libname}${release}${shared_ext}$major'
20379 shlibpath_var=LD_LIBRARY_PATH
20380 case $host_vendor in
20382 shlibpath_overrides_runpath=no
20384 export_dynamic_flag_spec='${wl}-Blargedynsym'
20385 runpath_var=LD_RUN_PATH
20393 shlibpath_overrides_runpath=no
20394 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20400 if test -d /usr/nec ;then
20402 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20403 soname_spec='$libname${shared_ext}.$major'
20404 shlibpath_var=LD_LIBRARY_PATH
20410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20411 soname_spec='${libname}${release}${shared_ext}$major'
20412 shlibpath_var=LD_LIBRARY_PATH
20419 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20420 echo "${ECHO_T}$dynamic_linker" >&6
20421 test "$dynamic_linker" = no && can_build_shared=no
20423 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20424 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20425 hardcode_action_F77=
20426 if test -n "$hardcode_libdir_flag_spec_F77" || \
20427 test -n "$runpath_var_F77" || \
20428 test "X$hardcode_automatic_F77" = "Xyes" ; then
20430 # We can hardcode non-existant directories.
20431 if test "$hardcode_direct_F77" != no &&
20432 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20433 # have to relink, otherwise we might link with an installed library
20434 # when we should be linking with a yet-to-be-installed one
20435 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20436 test "$hardcode_minus_L_F77" != no; then
20437 # Linking always hardcodes the temporary library directory.
20438 hardcode_action_F77=relink
20440 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20441 hardcode_action_F77=immediate
20444 # We cannot hardcode anything, or else we can only hardcode existing
20446 hardcode_action_F77=unsupported
20448 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20449 echo "${ECHO_T}$hardcode_action_F77" >&6
20451 if test "$hardcode_action_F77" = relink; then
20452 # Fast installation is not supported
20453 enable_fast_install=no
20454 elif test "$shlibpath_overrides_runpath" = yes ||
20455 test "$enable_shared" = no; then
20456 # Fast installation is not necessary
20457 enable_fast_install=needless
20462 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20463 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20464 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20465 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20466 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20467 echo "$as_me:$LINENO: result: yes" >&5
20468 echo "${ECHO_T}yes" >&6
20470 # FIXME - insert some real tests, host_os isn't really good enough
20473 if test -n "$STRIP" ; then
20474 striplib="$STRIP -x"
20475 echo "$as_me:$LINENO: result: yes" >&5
20476 echo "${ECHO_T}yes" >&6
20478 echo "$as_me:$LINENO: result: no" >&5
20479 echo "${ECHO_T}no" >&6
20483 echo "$as_me:$LINENO: result: no" >&5
20484 echo "${ECHO_T}no" >&6
20491 # The else clause should only fire when bootstrapping the
20492 # libtool distribution, otherwise you forgot to ship ltmain.sh
20493 # with your package, and you will get complaints that there are
20494 # no rules to generate ltmain.sh.
20495 if test -f "$ltmain"; then
20496 # See if we are running on zsh, and set the options which allow our commands through
20497 # without removal of \ escapes.
20498 if test -n "${ZSH_VERSION+set}" ; then
20499 setopt NO_GLOB_SUBST
20501 # Now quote all the things that may contain metacharacters while being
20502 # careful not to overquote the AC_SUBSTed values. We take copies of the
20503 # variables and quote the copies for generation of the libtool script.
20504 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20506 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20507 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20508 deplibs_check_method reload_flag reload_cmds need_locks \
20509 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20510 lt_cv_sys_global_symbol_to_c_name_address \
20511 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20512 old_postinstall_cmds old_postuninstall_cmds \
20516 lt_prog_compiler_wl_F77 \
20517 lt_prog_compiler_pic_F77 \
20518 lt_prog_compiler_static_F77 \
20519 lt_prog_compiler_no_builtin_flag_F77 \
20520 export_dynamic_flag_spec_F77 \
20521 thread_safe_flag_spec_F77 \
20522 whole_archive_flag_spec_F77 \
20523 enable_shared_with_static_runtimes_F77 \
20524 old_archive_cmds_F77 \
20525 old_archive_from_new_cmds_F77 \
20526 predep_objects_F77 \
20527 postdep_objects_F77 \
20530 compiler_lib_search_path_F77 \
20532 archive_expsym_cmds_F77 \
20533 postinstall_cmds_F77 \
20534 postuninstall_cmds_F77 \
20535 old_archive_from_expsyms_cmds_F77 \
20536 allow_undefined_flag_F77 \
20537 no_undefined_flag_F77 \
20538 export_symbols_cmds_F77 \
20539 hardcode_libdir_flag_spec_F77 \
20540 hardcode_libdir_flag_spec_ld_F77 \
20541 hardcode_libdir_separator_F77 \
20542 hardcode_automatic_F77 \
20544 module_expsym_cmds_F77 \
20545 lt_cv_prog_compiler_c_o_F77 \
20546 exclude_expsyms_F77 \
20547 include_expsyms_F77; do
20550 old_archive_cmds_F77 | \
20551 old_archive_from_new_cmds_F77 | \
20552 archive_cmds_F77 | \
20553 archive_expsym_cmds_F77 | \
20554 module_cmds_F77 | \
20555 module_expsym_cmds_F77 | \
20556 old_archive_from_expsyms_cmds_F77 | \
20557 export_symbols_cmds_F77 | \
20558 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20559 postinstall_cmds | postuninstall_cmds | \
20560 old_postinstall_cmds | old_postuninstall_cmds | \
20561 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20562 # Double-quote double-evaled strings.
20563 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20566 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20572 *'\$0 --fallback-echo"')
20573 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20579 cat <<__EOF__ >> "$cfgfile"
20580 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20582 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20584 # Shell to use when invoking shell scripts.
20587 # Whether or not to build shared libraries.
20588 build_libtool_libs=$enable_shared
20590 # Whether or not to build static libraries.
20591 build_old_libs=$enable_static
20593 # Whether or not to add -lc for building shared libraries.
20594 build_libtool_need_lc=$archive_cmds_need_lc_F77
20596 # Whether or not to disallow shared libs when runtime libs are static
20597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20599 # Whether or not to optimize for fast installation.
20600 fast_install=$enable_fast_install
20603 host_alias=$host_alias
20606 # An echo program that does not interpret backslashes.
20611 AR_FLAGS=$lt_AR_FLAGS
20616 # A language-specific compiler.
20617 CC=$lt_compiler_F77
20619 # Is the compiler the GNU C compiler?
20625 # The linker used to build libraries.
20628 # Whether we need hard or soft links.
20631 # A BSD-compatible nm program.
20634 # A symbol stripping program
20637 # Used to examine libraries when file_magic_cmd begins "file"
20638 MAGIC_CMD=$MAGIC_CMD
20640 # Used on cygwin: DLL creation program.
20643 # Used on cygwin: object dumper.
20646 # Used on cygwin: assembler.
20649 # The name of the directory that contains temporary libtool files.
20652 # How to create reloadable object files.
20653 reload_flag=$lt_reload_flag
20654 reload_cmds=$lt_reload_cmds
20656 # How to pass a linker flag through the compiler.
20657 wl=$lt_lt_prog_compiler_wl_F77
20659 # Object file suffix (normally "o").
20660 objext="$ac_objext"
20662 # Old archive suffix (normally "a").
20665 # Shared library suffix (normally ".so").
20666 shrext_cmds='$shrext_cmds'
20668 # Executable file suffix (normally "").
20671 # Additional compiler flags for building library objects.
20672 pic_flag=$lt_lt_prog_compiler_pic_F77
20675 # What is the maximum length of a command?
20676 max_cmd_len=$lt_cv_sys_max_cmd_len
20678 # Does compiler simultaneously support -c and -o options?
20679 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20681 # Must we lock files when doing compilation ?
20682 need_locks=$lt_need_locks
20684 # Do we need the lib prefix for modules?
20685 need_lib_prefix=$need_lib_prefix
20687 # Do we need a version for libraries?
20688 need_version=$need_version
20690 # Whether dlopen is supported.
20691 dlopen_support=$enable_dlopen
20693 # Whether dlopen of programs is supported.
20694 dlopen_self=$enable_dlopen_self
20696 # Whether dlopen of statically linked programs is supported.
20697 dlopen_self_static=$enable_dlopen_self_static
20699 # Compiler flag to prevent dynamic linking.
20700 link_static_flag=$lt_lt_prog_compiler_static_F77
20702 # Compiler flag to turn off builtin functions.
20703 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20705 # Compiler flag to allow reflexive dlopens.
20706 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20708 # Compiler flag to generate shared objects directly from archives.
20709 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20711 # Compiler flag to generate thread-safe objects.
20712 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20714 # Library versioning type.
20715 version_type=$version_type
20717 # Format of library name prefix.
20718 libname_spec=$lt_libname_spec
20720 # List of archive names. First name is the real one, the rest are links.
20721 # The last name is the one that the linker finds with -lNAME.
20722 library_names_spec=$lt_library_names_spec
20724 # The coded name of the library, if different from the real name.
20725 soname_spec=$lt_soname_spec
20727 # Commands used to build and install an old-style archive.
20729 old_archive_cmds=$lt_old_archive_cmds_F77
20730 old_postinstall_cmds=$lt_old_postinstall_cmds
20731 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20733 # Create an old-style archive from a shared archive.
20734 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20736 # Create a temporary old-style archive to link instead of a shared archive.
20737 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20739 # Commands used to build and install a shared archive.
20740 archive_cmds=$lt_archive_cmds_F77
20741 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20742 postinstall_cmds=$lt_postinstall_cmds
20743 postuninstall_cmds=$lt_postuninstall_cmds
20745 # Commands used to build a loadable module (assumed same as above if empty)
20746 module_cmds=$lt_module_cmds_F77
20747 module_expsym_cmds=$lt_module_expsym_cmds_F77
20749 # Commands to strip libraries.
20750 old_striplib=$lt_old_striplib
20751 striplib=$lt_striplib
20753 # Dependencies to place before the objects being linked to create a
20755 predep_objects=$lt_predep_objects_F77
20757 # Dependencies to place after the objects being linked to create a
20759 postdep_objects=$lt_postdep_objects_F77
20761 # Dependencies to place before the objects being linked to create a
20763 predeps=$lt_predeps_F77
20765 # Dependencies to place after the objects being linked to create a
20767 postdeps=$lt_postdeps_F77
20769 # The library search path used internally by the compiler when linking
20770 # a shared library.
20771 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20773 # Method to check whether dependent libraries are shared objects.
20774 deplibs_check_method=$lt_deplibs_check_method
20776 # Command to use when deplibs_check_method == file_magic.
20777 file_magic_cmd=$lt_file_magic_cmd
20779 # Flag that allows shared libraries with undefined symbols to be built.
20780 allow_undefined_flag=$lt_allow_undefined_flag_F77
20782 # Flag that forces no undefined symbols.
20783 no_undefined_flag=$lt_no_undefined_flag_F77
20785 # Commands used to finish a libtool library installation in a directory.
20786 finish_cmds=$lt_finish_cmds
20788 # Same as above, but a single script fragment to be evaled but not shown.
20789 finish_eval=$lt_finish_eval
20791 # Take the output of nm and produce a listing of raw symbols and C names.
20792 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20794 # Transform the output of nm in a proper C declaration
20795 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20797 # Transform the output of nm in a C name address pair
20798 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20800 # This is the shared library runtime path variable.
20801 runpath_var=$runpath_var
20803 # This is the shared library path variable.
20804 shlibpath_var=$shlibpath_var
20806 # Is shlibpath searched before the hard-coded library search path?
20807 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20809 # How to hardcode a shared library path into an executable.
20810 hardcode_action=$hardcode_action_F77
20812 # Whether we should hardcode library paths into libraries.
20813 hardcode_into_libs=$hardcode_into_libs
20815 # Flag to hardcode \$libdir into a binary during linking.
20816 # This must work even if \$libdir does not exist.
20817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20819 # If ld is used when linking, flag to hardcode \$libdir into
20820 # a binary during linking. This must work even if \$libdir does
20822 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20824 # Whether we need a single -rpath flag with a separated argument.
20825 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20827 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20828 # resulting binary.
20829 hardcode_direct=$hardcode_direct_F77
20831 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20832 # resulting binary.
20833 hardcode_minus_L=$hardcode_minus_L_F77
20835 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20836 # the resulting binary.
20837 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20839 # Set to yes if building a shared library automatically hardcodes DIR into the library
20840 # and all subsequent libraries and executables linked against it.
20841 hardcode_automatic=$hardcode_automatic_F77
20843 # Variables whose values should be saved in libtool wrapper scripts and
20844 # restored at relink time.
20845 variables_saved_for_relink="$variables_saved_for_relink"
20847 # Whether libtool must link a program against all its dependency libraries.
20848 link_all_deplibs=$link_all_deplibs_F77
20850 # Compile-time system search path for libraries
20851 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20853 # Run-time system search path for libraries
20854 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20856 # Fix the shell variable \$srcfile for the compiler.
20857 fix_srcfile_path="$fix_srcfile_path_F77"
20859 # Set to yes if exported symbols are required.
20860 always_export_symbols=$always_export_symbols_F77
20862 # The commands to list exported symbols.
20863 export_symbols_cmds=$lt_export_symbols_cmds_F77
20865 # The commands to extract the exported symbol list from a shared archive.
20866 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20868 # Symbols that should not be listed in the preloaded symbols.
20869 exclude_expsyms=$lt_exclude_expsyms_F77
20871 # Symbols that must always be exported.
20872 include_expsyms=$lt_include_expsyms_F77
20874 # ### END LIBTOOL TAG CONFIG: $tagname
20880 # If there is no Makefile yet, we rely on a make rule to execute
20881 # `config.status --recheck' to rerun these tests and create the
20882 # libtool script then.
20883 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20884 if test -f "$ltmain_in"; then
20885 test -f Makefile && make "$ltmain"
20891 ac_cpp='$CPP $CPPFLAGS'
20892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20904 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20906 ac_cpp='$CPP $CPPFLAGS'
20907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20912 # Source file extension for Java test sources.
20915 # Object file extension for compiled Java test sources.
20919 # Code to be used in simple compile tests
20920 lt_simple_compile_test_code="class foo {}\n"
20922 # Code to be used in simple link tests
20923 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20925 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20927 # If no C compiler was specified, use CC.
20930 # Allow CC to be a program name with arguments.
20934 # Allow CC to be a program name with arguments.
20940 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20941 archive_cmds_need_lc_GCJ=no
20944 lt_prog_compiler_no_builtin_flag_GCJ=
20946 if test "$GCC" = yes; then
20947 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20950 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20951 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20952 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20953 echo $ECHO_N "(cached) $ECHO_C" >&6
20955 lt_cv_prog_compiler_rtti_exceptions=no
20956 ac_outfile=conftest.$ac_objext
20957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20958 lt_compiler_flag="-fno-rtti -fno-exceptions"
20959 # Insert the option either (1) after the last *FLAGS variable, or
20960 # (2) before a word containing "conftest.", or (3) at the end.
20961 # Note that $ac_compile itself does not contain backslashes and begins
20962 # with a dollar sign (not a hyphen), so the echo should work correctly.
20963 # The option is referenced via a variable to avoid confusing sed.
20964 lt_compile=`echo "$ac_compile" | $SED \
20965 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20967 -e 's:$: $lt_compiler_flag:'`
20968 (eval echo "\"\$as_me:20968: $lt_compile\"" >&5)
20969 (eval "$lt_compile" 2>conftest.err)
20971 cat conftest.err >&5
20972 echo "$as_me:20972: \$? = $ac_status" >&5
20973 if (exit $ac_status) && test -s "$ac_outfile"; then
20974 # The compiler can only warn and ignore the option if not recognized
20975 # So say no if there are warnings
20976 if test ! -s conftest.err; then
20977 lt_cv_prog_compiler_rtti_exceptions=yes
20983 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20984 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20986 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20987 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20994 lt_prog_compiler_wl_GCJ=
20995 lt_prog_compiler_pic_GCJ=
20996 lt_prog_compiler_static_GCJ=
20998 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20999 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21001 if test "$GCC" = yes; then
21002 lt_prog_compiler_wl_GCJ='-Wl,'
21003 lt_prog_compiler_static_GCJ='-static'
21007 # All AIX code is PIC.
21008 if test "$host_cpu" = ia64; then
21009 # AIX 5 now supports IA64 processor
21010 lt_prog_compiler_static_GCJ='-Bstatic'
21015 # FIXME: we need at least 68020 code to build shared libraries, but
21016 # adding the `-m68020' flag to GCC prevents building anything better,
21018 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21021 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21022 # PIC is the default for these OSes.
21025 mingw* | pw32* | os2*)
21026 # This hack is so that the source file can tell whether it is being
21027 # built for inclusion in a dll (and should export symbols for example).
21028 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21031 darwin* | rhapsody*)
21032 # PIC is the default on this platform
21033 # Common symbols not allowed in MH_DYLIB files
21034 lt_prog_compiler_pic_GCJ='-fno-common'
21038 # Just because we use GCC doesn't mean we suddenly get shared libraries
21039 # on systems that don't support them.
21040 lt_prog_compiler_can_build_shared_GCJ=no
21045 if test -d /usr/nec; then
21046 lt_prog_compiler_pic_GCJ=-Kconform_pic
21051 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21052 # not for PA HP-UX.
21053 case "$host_cpu" in
21058 lt_prog_compiler_pic_GCJ='-fPIC'
21064 lt_prog_compiler_pic_GCJ='-fPIC'
21068 # PORTME Check for flag to pass linker flags through the system compiler.
21071 lt_prog_compiler_wl_GCJ='-Wl,'
21072 if test "$host_cpu" = ia64; then
21073 # AIX 5 now supports IA64 processor
21074 lt_prog_compiler_static_GCJ='-Bstatic'
21076 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21080 # PIC is the default on this platform
21081 # Common symbols not allowed in MH_DYLIB files
21082 case "$cc_basename" in
21084 lt_prog_compiler_pic_GCJ='-qnocommon'
21085 lt_prog_compiler_wl_GCJ='-Wl,'
21090 mingw* | pw32* | os2*)
21091 # This hack is so that the source file can tell whether it is being
21092 # built for inclusion in a dll (and should export symbols for example).
21093 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21096 hpux9* | hpux10* | hpux11*)
21097 lt_prog_compiler_wl_GCJ='-Wl,'
21098 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21099 # not for PA HP-UX.
21100 case "$host_cpu" in
21105 lt_prog_compiler_pic_GCJ='+Z'
21108 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21109 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21112 irix5* | irix6* | nonstopux*)
21113 lt_prog_compiler_wl_GCJ='-Wl,'
21114 # PIC (with -KPIC) is the default.
21115 lt_prog_compiler_static_GCJ='-non_shared'
21119 lt_prog_compiler_pic_GCJ='-KPIC'
21120 lt_prog_compiler_static_GCJ='-Bstatic'
21126 lt_prog_compiler_wl_GCJ='-Wl,'
21127 lt_prog_compiler_pic_GCJ='-KPIC'
21128 lt_prog_compiler_static_GCJ='-static'
21131 lt_prog_compiler_wl_GCJ='-Wl,'
21132 # All Alpha code is PIC.
21133 lt_prog_compiler_static_GCJ='-non_shared'
21138 osf3* | osf4* | osf5*)
21139 lt_prog_compiler_wl_GCJ='-Wl,'
21140 # All OSF/1 code is PIC.
21141 lt_prog_compiler_static_GCJ='-non_shared'
21145 lt_prog_compiler_pic_GCJ='-Kpic'
21146 lt_prog_compiler_static_GCJ='-dn'
21150 lt_prog_compiler_wl_GCJ='-Wl,'
21151 lt_prog_compiler_pic_GCJ='-KPIC'
21152 lt_prog_compiler_static_GCJ='-Bstatic'
21156 lt_prog_compiler_wl_GCJ='-Qoption ld '
21157 lt_prog_compiler_pic_GCJ='-PIC'
21158 lt_prog_compiler_static_GCJ='-Bstatic'
21161 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21162 lt_prog_compiler_wl_GCJ='-Wl,'
21163 lt_prog_compiler_pic_GCJ='-KPIC'
21164 lt_prog_compiler_static_GCJ='-Bstatic'
21168 if test -d /usr/nec ;then
21169 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21170 lt_prog_compiler_static_GCJ='-Bstatic'
21175 lt_prog_compiler_pic_GCJ='-pic'
21176 lt_prog_compiler_static_GCJ='-Bstatic'
21180 lt_prog_compiler_can_build_shared_GCJ=no
21185 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21186 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21189 # Check to make sure the PIC flag actually works.
21191 if test -n "$lt_prog_compiler_pic_GCJ"; then
21193 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21194 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21195 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21196 echo $ECHO_N "(cached) $ECHO_C" >&6
21198 lt_prog_compiler_pic_works_GCJ=no
21199 ac_outfile=conftest.$ac_objext
21200 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21201 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21202 # Insert the option either (1) after the last *FLAGS variable, or
21203 # (2) before a word containing "conftest.", or (3) at the end.
21204 # Note that $ac_compile itself does not contain backslashes and begins
21205 # with a dollar sign (not a hyphen), so the echo should work correctly.
21206 # The option is referenced via a variable to avoid confusing sed.
21207 lt_compile=`echo "$ac_compile" | $SED \
21208 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21210 -e 's:$: $lt_compiler_flag:'`
21211 (eval echo "\"\$as_me:21211: $lt_compile\"" >&5)
21212 (eval "$lt_compile" 2>conftest.err)
21214 cat conftest.err >&5
21215 echo "$as_me:21215: \$? = $ac_status" >&5
21216 if (exit $ac_status) && test -s "$ac_outfile"; then
21217 # The compiler can only warn and ignore the option if not recognized
21218 # So say no if there are warnings
21219 if test ! -s conftest.err; then
21220 lt_prog_compiler_pic_works_GCJ=yes
21226 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21227 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21229 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21230 case $lt_prog_compiler_pic_GCJ in
21232 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21235 lt_prog_compiler_pic_GCJ=
21236 lt_prog_compiler_can_build_shared_GCJ=no
21241 # For platforms which do not support PIC, -DPIC is meaningless:
21243 lt_prog_compiler_pic_GCJ=
21246 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21250 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21251 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21252 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21253 echo $ECHO_N "(cached) $ECHO_C" >&6
21255 lt_cv_prog_compiler_c_o_GCJ=no
21256 $rm -r conftest 2>/dev/null
21260 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21262 lt_compiler_flag="-o out/conftest2.$ac_objext"
21263 # Insert the option either (1) after the last *FLAGS variable, or
21264 # (2) before a word containing "conftest.", or (3) at the end.
21265 # Note that $ac_compile itself does not contain backslashes and begins
21266 # with a dollar sign (not a hyphen), so the echo should work correctly.
21267 lt_compile=`echo "$ac_compile" | $SED \
21268 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21270 -e 's:$: $lt_compiler_flag:'`
21271 (eval echo "\"\$as_me:21271: $lt_compile\"" >&5)
21272 (eval "$lt_compile" 2>out/conftest.err)
21274 cat out/conftest.err >&5
21275 echo "$as_me:21275: \$? = $ac_status" >&5
21276 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21278 # The compiler can only warn and ignore the option if not recognized
21279 # So say no if there are warnings
21280 if test ! -s out/conftest.err; then
21281 lt_cv_prog_compiler_c_o_GCJ=yes
21286 # SGI C++ compiler will create directory out/ii_files/ for
21287 # template instantiation
21288 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21289 $rm out/* && rmdir out
21295 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21296 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21299 hard_links="nottested"
21300 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21301 # do not overwrite the value of need_locks provided by the user
21302 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21303 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21306 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21308 ln conftest.a conftest.b 2>&5 || hard_links=no
21309 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21310 echo "$as_me:$LINENO: result: $hard_links" >&5
21311 echo "${ECHO_T}$hard_links" >&6
21312 if test "$hard_links" = no; then
21313 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21314 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21321 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21322 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21325 allow_undefined_flag_GCJ=
21326 enable_shared_with_static_runtimes_GCJ=no
21328 archive_expsym_cmds_GCJ=
21329 old_archive_From_new_cmds_GCJ=
21330 old_archive_from_expsyms_cmds_GCJ=
21331 export_dynamic_flag_spec_GCJ=
21332 whole_archive_flag_spec_GCJ=
21333 thread_safe_flag_spec_GCJ=
21334 hardcode_libdir_flag_spec_GCJ=
21335 hardcode_libdir_flag_spec_ld_GCJ=
21336 hardcode_libdir_separator_GCJ=
21337 hardcode_direct_GCJ=no
21338 hardcode_minus_L_GCJ=no
21339 hardcode_shlibpath_var_GCJ=unsupported
21340 link_all_deplibs_GCJ=unknown
21341 hardcode_automatic_GCJ=no
21343 module_expsym_cmds_GCJ=
21344 always_export_symbols_GCJ=no
21345 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21346 # include_expsyms should be a list of space-separated symbols to be *always*
21347 # included in the symbol list
21348 include_expsyms_GCJ=
21349 # exclude_expsyms can be an extended regexp of symbols to exclude
21350 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21351 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21352 # as well as any symbol that contains `d'.
21353 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21354 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21355 # platforms (ab)use it in PIC code, but their linkers get confused if
21356 # the symbol is explicitly referenced. Since portable code cannot
21357 # rely on this symbol name, it's probably fine to never include it in
21358 # preloaded symbol tables.
21359 extract_expsyms_cmds=
21362 cygwin* | mingw* | pw32*)
21363 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21364 # When not using gcc, we currently assume that we are using
21365 # Microsoft Visual C++.
21366 if test "$GCC" != yes; then
21376 if test "$with_gnu_ld" = yes; then
21377 # If archive_cmds runs LD, not CC, wlarc should be empty
21380 # See if GNU ld supports shared libraries.
21382 aix3* | aix4* | aix5*)
21383 # On AIX/PPC, the GNU linker is very broken
21384 if test "$host_cpu" != ia64; then
21388 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21389 *** to be unable to reliably create shared libraries on AIX.
21390 *** Therefore, libtool is disabling shared libraries support. If you
21391 *** really care for shared libraries, you may want to modify your PATH
21392 *** so that a non-GNU linker is found, and then restart.
21399 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)'
21400 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21401 hardcode_minus_L_GCJ=yes
21403 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21404 # that the semantics of dynamic libraries on AmigaOS, at least up
21405 # to version 4, is to share data among multiple programs linked
21406 # with the same dynamic library. Since this doesn't match the
21407 # behavior of shared libraries on other platforms, we can't use
21413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21414 allow_undefined_flag_GCJ=unsupported
21415 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21416 # support --undefined. This deserves some investigation. FIXME
21417 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21423 cygwin* | mingw* | pw32*)
21424 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21425 # as there is no search path for DLLs.
21426 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21427 allow_undefined_flag_GCJ=unsupported
21428 always_export_symbols_GCJ=no
21429 enable_shared_with_static_runtimes_GCJ=yes
21430 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21432 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21433 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21434 # If the export-symbols file already is a .def file (1st line
21435 # is EXPORTS), use it as is; otherwise, prepend...
21436 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21437 cp $export_symbols $output_objdir/$soname.def;
21439 echo EXPORTS > $output_objdir/$soname.def;
21440 cat $export_symbols >> $output_objdir/$soname.def;
21442 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21450 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21453 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21454 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21459 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21463 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21464 *** create shared libraries on Solaris systems. Therefore, libtool
21465 *** is disabling shared libraries support. We urge you to upgrade GNU
21466 *** binutils to release 2.9.1 or newer. Another option is to modify
21467 *** your PATH or compiler configuration so that the native linker is
21468 *** used, and then restart.
21471 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21472 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21473 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21480 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21482 hardcode_direct_GCJ=yes
21483 hardcode_shlibpath_var_GCJ=no
21487 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21488 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21489 archive_cmds_GCJ="$tmp_archive_cmds"
21490 supports_anon_versioning=no
21491 case `$LD -v 2>/dev/null` in
21492 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21493 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21494 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21495 *\ 2.11.*) ;; # other 2.11 versions
21496 *) supports_anon_versioning=yes ;;
21498 if test $supports_anon_versioning = yes; then
21499 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21500 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21501 $echo "local: *; };" >> $output_objdir/$libname.ver~
21502 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21504 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21512 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21513 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21514 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21521 if test "$ld_shlibs_GCJ" = yes; then
21522 runpath_var=LD_RUN_PATH
21523 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21524 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21525 # ancient GNU ld didn't support --whole-archive et. al.
21526 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21527 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21529 whole_archive_flag_spec_GCJ=
21533 # PORTME fill in a description of your system's linker (not GNU ld)
21536 allow_undefined_flag_GCJ=unsupported
21537 always_export_symbols_GCJ=yes
21538 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'
21539 # Note: this linker hardcodes the directories in LIBPATH if there
21540 # are no directories specified by -L.
21541 hardcode_minus_L_GCJ=yes
21542 if test "$GCC" = yes && test -z "$link_static_flag"; then
21543 # Neither direct hardcoding nor static linking is supported with a
21545 hardcode_direct_GCJ=unsupported
21550 if test "$host_cpu" = ia64; then
21551 # On IA64, the linker does run time linking by default, so we don't
21552 # have to do anything special.
21553 aix_use_runtimelinking=no
21554 exp_sym_flag='-Bexport'
21557 # If we're using GNU nm, then we don't want the "-C" option.
21558 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21559 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21560 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'
21562 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'
21564 aix_use_runtimelinking=no
21566 # Test if we are trying to use run time linking or normal
21567 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21568 # need to do runtime linking.
21569 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21570 for ld_flag in $LDFLAGS; do
21571 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21572 aix_use_runtimelinking=yes
21578 exp_sym_flag='-bexport'
21579 no_entry_flag='-bnoentry'
21582 # When large executables or shared objects are built, AIX ld can
21583 # have problems creating the table of contents. If linking a library
21584 # or program results in "error TOC overflow" add -mminimal-toc to
21585 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21586 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21588 archive_cmds_GCJ=''
21589 hardcode_direct_GCJ=yes
21590 hardcode_libdir_separator_GCJ=':'
21591 link_all_deplibs_GCJ=yes
21593 if test "$GCC" = yes; then
21594 case $host_os in aix4.012|aix4.012.*)
21595 # We only want to do this on AIX 4.2 and lower, the check
21596 # below for broken collect2 doesn't work under 4.3+
21597 collect2name=`${CC} -print-prog-name=collect2`
21598 if test -f "$collect2name" && \
21599 strings "$collect2name" | grep resolve_lib_name >/dev/null
21601 # We have reworked collect2
21602 hardcode_direct_GCJ=yes
21604 # We have old collect2
21605 hardcode_direct_GCJ=unsupported
21606 # It fails to find uninstalled libraries when the uninstalled
21607 # path is not listed in the libpath. Setting hardcode_minus_L
21608 # to unsupported forces relinking
21609 hardcode_minus_L_GCJ=yes
21610 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21611 hardcode_libdir_separator_GCJ=
21614 shared_flag='-shared'
21617 if test "$host_cpu" = ia64; then
21618 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21619 # chokes on -Wl,-G. The following line is correct:
21622 if test "$aix_use_runtimelinking" = yes; then
21623 shared_flag='${wl}-G'
21625 shared_flag='${wl}-bM:SRE'
21630 # It seems that -bexpall does not export symbols beginning with
21631 # underscore (_), so it is better to generate a list of symbols to export.
21632 always_export_symbols_GCJ=yes
21633 if test "$aix_use_runtimelinking" = yes; then
21634 # Warning - without using the other runtime loading flags (-brtl),
21635 # -berok will link without error, but may produce a broken library.
21636 allow_undefined_flag_GCJ='-berok'
21637 # Determine the default libpath from the value encoded in an empty executable.
21638 cat >conftest.$ac_ext <<_ACEOF
21641 cat confdefs.h >>conftest.$ac_ext
21642 cat >>conftest.$ac_ext <<_ACEOF
21643 /* end confdefs.h. */
21653 rm -f conftest.$ac_objext conftest$ac_exeext
21654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21655 (eval $ac_link) 2>conftest.er1
21657 grep -v '^ *+' conftest.er1 >conftest.err
21659 cat conftest.err >&5
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); } &&
21662 { ac_try='test -z "$ac_c_werror_flag"
21663 || test ! -s conftest.err'
21664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665 (eval $ac_try) 2>&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); }; } &&
21669 { ac_try='test -s conftest$ac_exeext'
21670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21671 (eval $ac_try) 2>&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); }; }; then
21676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21678 # Check for a 64-bit object if we didn't find anything.
21679 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; }
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21686 rm -f conftest.err conftest.$ac_objext \
21687 conftest$ac_exeext conftest.$ac_ext
21688 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21690 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21691 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"
21693 if test "$host_cpu" = ia64; then
21694 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21695 allow_undefined_flag_GCJ="-z nodefs"
21696 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"
21698 # Determine the default libpath from the value encoded in an empty executable.
21699 cat >conftest.$ac_ext <<_ACEOF
21702 cat confdefs.h >>conftest.$ac_ext
21703 cat >>conftest.$ac_ext <<_ACEOF
21704 /* end confdefs.h. */
21714 rm -f conftest.$ac_objext conftest$ac_exeext
21715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21716 (eval $ac_link) 2>conftest.er1
21718 grep -v '^ *+' conftest.er1 >conftest.err
21720 cat conftest.err >&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } &&
21723 { ac_try='test -z "$ac_c_werror_flag"
21724 || test ! -s conftest.err'
21725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726 (eval $ac_try) 2>&5
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; } &&
21730 { ac_try='test -s conftest$ac_exeext'
21731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21732 (eval $ac_try) 2>&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); }; }; then
21737 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21739 # Check for a 64-bit object if we didn't find anything.
21740 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; }
21743 echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21747 rm -f conftest.err conftest.$ac_objext \
21748 conftest$ac_exeext conftest.$ac_ext
21749 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21751 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21752 # Warning - without using the other run time loading flags,
21753 # -berok will link without error, but may produce a broken library.
21754 no_undefined_flag_GCJ=' ${wl}-bernotok'
21755 allow_undefined_flag_GCJ=' ${wl}-berok'
21756 # -bexpall does not export symbols beginning with underscore (_)
21757 always_export_symbols_GCJ=yes
21758 # Exported symbols can be pulled into shared objects from archives
21759 whole_archive_flag_spec_GCJ=' '
21760 archive_cmds_need_lc_GCJ=yes
21761 # This is similar to how AIX traditionally builds it's shared libraries.
21762 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'
21768 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)'
21769 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21770 hardcode_minus_L_GCJ=yes
21771 # see comment about different semantics on the GNU ld section
21776 export_dynamic_flag_spec_GCJ=-rdynamic
21779 cygwin* | mingw* | pw32*)
21780 # When not using gcc, we currently assume that we are using
21781 # Microsoft Visual C++.
21782 # hardcode_libdir_flag_spec is actually meaningless, as there is
21783 # no search path for DLLs.
21784 hardcode_libdir_flag_spec_GCJ=' '
21785 allow_undefined_flag_GCJ=unsupported
21786 # Tell ltmain to make .lib files, not .a files.
21788 # Tell ltmain to make .dll files, not .so files.
21790 # FIXME: Setting linknames here is a bad hack.
21791 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21792 # The linker will automatically build a .lib file if we build a DLL.
21793 old_archive_From_new_cmds_GCJ='true'
21794 # FIXME: Should let the user specify the lib program.
21795 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21796 fix_srcfile_path='`cygpath -w "$srcfile"`'
21797 enable_shared_with_static_runtimes_GCJ=yes
21800 darwin* | rhapsody*)
21802 rhapsody* | darwin1.[012])
21803 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21806 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21807 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21809 case ${MACOSX_DEPLOYMENT_TARGET} in
21811 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21814 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21820 archive_cmds_need_lc_GCJ=no
21821 hardcode_direct_GCJ=no
21822 hardcode_automatic_GCJ=yes
21823 hardcode_shlibpath_var_GCJ=unsupported
21824 whole_archive_flag_spec_GCJ=''
21825 link_all_deplibs_GCJ=yes
21826 if test "$GCC" = yes ; then
21827 output_verbose_link_cmd='echo'
21828 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21829 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21830 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21831 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}'
21832 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}'
21834 case "$cc_basename" in
21836 output_verbose_link_cmd='echo'
21837 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21838 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21839 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21840 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}'
21841 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}'
21851 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21852 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21853 hardcode_shlibpath_var_GCJ=no
21860 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21861 # support. Future versions do this automatically, but an explicit c++rt0.o
21862 # does not break anything, and helps significantly (at the cost of a little
21865 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21866 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21867 hardcode_direct_GCJ=yes
21868 hardcode_shlibpath_var_GCJ=no
21871 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21873 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21874 hardcode_direct_GCJ=yes
21875 hardcode_minus_L_GCJ=yes
21876 hardcode_shlibpath_var_GCJ=no
21879 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21880 freebsd* | kfreebsd*-gnu)
21881 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21882 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21883 hardcode_direct_GCJ=yes
21884 hardcode_shlibpath_var_GCJ=no
21888 if test "$GCC" = yes; then
21889 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'
21891 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'
21893 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21894 hardcode_libdir_separator_GCJ=:
21895 hardcode_direct_GCJ=yes
21897 # hardcode_minus_L: Not really in the search PATH,
21898 # but as the default location of the library.
21899 hardcode_minus_L_GCJ=yes
21900 export_dynamic_flag_spec_GCJ='${wl}-E'
21904 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21905 case "$host_cpu" in
21907 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21910 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21914 case "$host_cpu" in
21916 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21919 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21923 if test "$with_gnu_ld" = no; then
21924 case "$host_cpu" in
21926 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21927 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21928 hardcode_libdir_separator_GCJ=:
21929 hardcode_direct_GCJ=no
21930 hardcode_shlibpath_var_GCJ=no
21933 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21934 hardcode_direct_GCJ=no
21935 hardcode_shlibpath_var_GCJ=no
21937 # hardcode_minus_L: Not really in the search PATH,
21938 # but as the default location of the library.
21939 hardcode_minus_L_GCJ=yes
21942 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21943 hardcode_libdir_separator_GCJ=:
21944 hardcode_direct_GCJ=yes
21945 export_dynamic_flag_spec_GCJ='${wl}-E'
21947 # hardcode_minus_L: Not really in the search PATH,
21948 # but as the default location of the library.
21949 hardcode_minus_L_GCJ=yes
21955 irix5* | irix6* | nonstopux*)
21956 if test "$GCC" = yes; then
21957 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'
21959 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'
21960 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21962 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21963 hardcode_libdir_separator_GCJ=:
21964 link_all_deplibs_GCJ=yes
21968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21969 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21971 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21973 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21974 hardcode_direct_GCJ=yes
21975 hardcode_shlibpath_var_GCJ=no
21979 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21980 hardcode_direct_GCJ=yes
21981 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21982 hardcode_libdir_separator_GCJ=:
21983 hardcode_shlibpath_var_GCJ=no
21987 hardcode_direct_GCJ=yes
21988 hardcode_shlibpath_var_GCJ=no
21989 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21990 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21991 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21992 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21993 export_dynamic_flag_spec_GCJ='${wl}-E'
21996 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21997 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21998 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22001 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22002 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22009 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22010 hardcode_minus_L_GCJ=yes
22011 allow_undefined_flag_GCJ=unsupported
22012 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'
22013 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22017 if test "$GCC" = yes; then
22018 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22019 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22021 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22022 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'
22024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22025 hardcode_libdir_separator_GCJ=:
22028 osf4* | osf5*) # as osf3* with the addition of -msym flag
22029 if test "$GCC" = yes; then
22030 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22031 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'
22032 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22034 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22035 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'
22036 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~
22037 $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'
22039 # Both c and cxx compiler support -rpath directly
22040 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22042 hardcode_libdir_separator_GCJ=:
22046 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22047 hardcode_shlibpath_var_GCJ=no
22048 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22049 runpath_var=LD_RUN_PATH
22050 hardcode_runpath_var=yes
22054 no_undefined_flag_GCJ=' -z text'
22055 if test "$GCC" = yes; then
22056 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22057 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22058 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22060 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22061 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22062 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22064 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22065 hardcode_shlibpath_var_GCJ=no
22067 solaris2.[0-5] | solaris2.[0-5].*) ;;
22068 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22069 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22071 link_all_deplibs_GCJ=yes
22075 if test "x$host_vendor" = xsequent; then
22076 # Use $CC to link under sequent, because it throws in some extra .o
22077 # files that make .init and .fini sections work.
22078 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22080 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22082 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22083 hardcode_direct_GCJ=yes
22084 hardcode_minus_L_GCJ=yes
22085 hardcode_shlibpath_var_GCJ=no
22089 case $host_vendor in
22091 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22092 hardcode_direct_GCJ=yes # is this really true???
22095 ## LD is ld it makes a PLAMLIB
22096 ## CC just makes a GrossModule.
22097 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22098 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22099 hardcode_direct_GCJ=no
22102 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22103 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22106 runpath_var='LD_RUN_PATH'
22107 hardcode_shlibpath_var_GCJ=no
22111 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22112 hardcode_shlibpath_var_GCJ=no
22113 export_dynamic_flag_spec_GCJ='-Bexport'
22117 if test -d /usr/nec; then
22118 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22119 hardcode_shlibpath_var_GCJ=no
22120 runpath_var=LD_RUN_PATH
22121 hardcode_runpath_var=yes
22127 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22128 hardcode_direct_GCJ=yes
22129 hardcode_minus_L_GCJ=no
22130 hardcode_shlibpath_var_GCJ=no
22131 hardcode_runpath_var=yes
22132 runpath_var=LD_RUN_PATH
22135 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22136 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22137 if test "$GCC" = yes; then
22138 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22140 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22142 runpath_var='LD_RUN_PATH'
22143 hardcode_shlibpath_var_GCJ=no
22147 no_undefined_flag_GCJ=' -z text'
22148 # $CC -shared without GNU ld will not create a library from C++
22149 # object files and a static libstdc++, better avoid it by now
22150 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22151 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22152 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22153 hardcode_libdir_flag_spec_GCJ=
22154 hardcode_shlibpath_var_GCJ=no
22155 runpath_var='LD_RUN_PATH'
22159 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22160 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22161 hardcode_shlibpath_var_GCJ=no
22170 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22171 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22172 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22174 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22175 if test "$GCC" = yes; then
22176 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22180 # Do we need to explicitly link libc?
22182 case "x$archive_cmds_need_lc_GCJ" in
22184 # Assume -lc should be added
22185 archive_cmds_need_lc_GCJ=yes
22187 if test "$enable_shared" = yes && test "$GCC" = yes; then
22188 case $archive_cmds_GCJ in
22190 # FIXME: we may have to deal with multi-command sequences.
22193 # Test whether the compiler implicitly links with -lc since on some
22194 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22195 # to ld, don't add -lc before -lgcc.
22196 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22197 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22199 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22202 (eval $ac_compile) 2>&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } 2>conftest.err; then
22208 libobjs=conftest.$ac_objext
22210 wl=$lt_prog_compiler_wl_GCJ
22216 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22217 allow_undefined_flag_GCJ=
22218 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22219 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); }
22224 archive_cmds_need_lc_GCJ=no
22226 archive_cmds_need_lc_GCJ=yes
22228 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22230 cat conftest.err 1>&5
22233 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22234 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22241 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22242 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22243 library_names_spec=
22244 libname_spec='lib$name'
22248 postuninstall_cmds=
22252 shlibpath_overrides_runpath=unknown
22254 dynamic_linker="$host_os ld.so"
22255 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22256 if test "$GCC" = yes; then
22257 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22258 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22259 # if the path contains ";" then we assume it to be the separator
22260 # otherwise default to the standard path separator (i.e. ":") - it is
22261 # assumed that no part of a normal pathname contains ";" but that should
22262 # okay in the real world where ";" in dirpaths is itself problematic.
22263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22265 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22268 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22270 need_lib_prefix=unknown
22271 hardcode_into_libs=no
22273 # when you set need_version to no, make sure it does not cause -set_version
22274 # flags to be left without arguments
22275 need_version=unknown
22280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22281 shlibpath_var=LIBPATH
22283 # AIX 3 has no versioning support, so we append a major version to the name.
22284 soname_spec='${libname}${release}${shared_ext}$major'
22291 hardcode_into_libs=yes
22292 if test "$host_cpu" = ia64; then
22293 # AIX 5 supports IA64
22294 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22295 shlibpath_var=LD_LIBRARY_PATH
22297 # With GCC up to 2.95.x, collect2 would create an import file
22298 # for dependence libraries. The import file would start with
22299 # the line `#! .'. This would cause the generated library to
22300 # depend on `.', always an invalid library. This was fixed in
22301 # development snapshots of GCC prior to 3.0.
22303 aix4 | aix4.[01] | aix4.[01].*)
22304 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22306 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22309 can_build_shared=no
22313 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22314 # soname into executable. Probably we can add versioning support to
22315 # collect2, so additional links can be useful in future.
22316 if test "$aix_use_runtimelinking" = yes; then
22317 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22318 # instead of lib<name>.a to let people know that these are not
22319 # typical AIX shared libraries.
22320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22322 # We preserve .a as extension for shared libraries through AIX4.2
22323 # and later when we are not doing run time linking.
22324 library_names_spec='${libname}${release}.a $libname.a'
22325 soname_spec='${libname}${release}${shared_ext}$major'
22327 shlibpath_var=LIBPATH
22332 library_names_spec='$libname.ixlibrary $libname.a'
22333 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22334 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'
22338 library_names_spec='${libname}${shared_ext}'
22339 dynamic_linker="$host_os ld.so"
22340 shlibpath_var=LIBRARY_PATH
22346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22347 soname_spec='${libname}${release}${shared_ext}$major'
22348 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22349 shlibpath_var=LD_LIBRARY_PATH
22350 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22351 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22352 # the default ld.so.conf also contains /usr/contrib/lib and
22353 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22354 # libtool to hard-code these into programs
22357 cygwin* | mingw* | pw32*)
22358 version_type=windows
22363 case $GCC,$host_os in
22364 yes,cygwin* | yes,mingw* | yes,pw32*)
22365 library_names_spec='$libname.dll.a'
22366 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22367 postinstall_cmds='base_file=`basename \${file}`~
22368 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22369 dldir=$destdir/`dirname \$dlpath`~
22370 test -d \$dldir || mkdir -p \$dldir~
22371 $install_prog $dir/$dlname \$dldir/$dlname'
22372 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22373 dlpath=$dir/\$dldll~
22375 shlibpath_overrides_runpath=yes
22379 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22380 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22381 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22384 # MinGW DLLs use traditional 'lib' prefix
22385 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22386 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22387 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22388 # It is most probably a Windows format PATH printed by
22389 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22390 # path with ; separators, and with drive letters. We can handle the
22391 # drive letters (cygwin fileutils understands them), so leave them,
22392 # especially as we might pass files found there to a mingw objdump,
22393 # which wouldn't understand a cygwinified path. Ahh.
22394 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22400 # pw32 DLLs use 'pw' prefix rather than 'lib'
22401 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22407 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22410 dynamic_linker='Win32 ld.exe'
22411 # FIXME: first we should search . and the directory the executable is in
22415 darwin* | rhapsody*)
22416 dynamic_linker="$host_os dyld"
22417 version_type=darwin
22420 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22421 soname_spec='${libname}${release}${major}$shared_ext'
22422 shlibpath_overrides_runpath=yes
22423 shlibpath_var=DYLD_LIBRARY_PATH
22424 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22425 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22426 if test "$GCC" = yes; then
22427 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"`
22429 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22431 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22439 soname_spec='${libname}${release}${shared_ext}$major'
22440 shlibpath_var=LD_LIBRARY_PATH
22451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22452 soname_spec='${libname}${release}${shared_ext}$major'
22453 shlibpath_var=LD_LIBRARY_PATH
22454 shlibpath_overrides_runpath=no
22455 hardcode_into_libs=yes
22456 dynamic_linker='GNU ld.so'
22460 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22461 version_type=freebsd-$objformat
22462 case $version_type in
22464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22473 shlibpath_var=LD_LIBRARY_PATH
22476 shlibpath_overrides_runpath=yes
22478 freebsd3.01* | freebsdelf3.01*)
22479 shlibpath_overrides_runpath=yes
22480 hardcode_into_libs=yes
22483 shlibpath_overrides_runpath=no
22484 hardcode_into_libs=yes
22493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22494 soname_spec='${libname}${release}${shared_ext}$major'
22495 shlibpath_var=LD_LIBRARY_PATH
22496 hardcode_into_libs=yes
22499 hpux9* | hpux10* | hpux11*)
22500 # Give a soname corresponding to the major version so that dld.sl refuses to
22501 # link against other versions.
22505 case "$host_cpu" in
22508 hardcode_into_libs=yes
22509 dynamic_linker="$host_os dld.so"
22510 shlibpath_var=LD_LIBRARY_PATH
22511 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22513 soname_spec='${libname}${release}${shared_ext}$major'
22514 if test "X$HPUX_IA64_MODE" = X32; then
22515 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22517 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22519 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22523 hardcode_into_libs=yes
22524 dynamic_linker="$host_os dld.sl"
22525 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22526 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22528 soname_spec='${libname}${release}${shared_ext}$major'
22529 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22530 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22534 dynamic_linker="$host_os dld.sl"
22535 shlibpath_var=SHLIB_PATH
22536 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
22541 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22542 postinstall_cmds='chmod 555 $lib'
22545 irix5* | irix6* | nonstopux*)
22547 nonstopux*) version_type=nonstopux ;;
22549 if test "$lt_cv_prog_gnu_ld" = yes; then
22557 soname_spec='${libname}${release}${shared_ext}$major'
22558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22560 irix5* | nonstopux*)
22561 libsuff= shlibsuff=
22564 case $LD in # libtool.m4 will add one of these switches to LD
22565 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22566 libsuff= shlibsuff= libmagic=32-bit;;
22567 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22568 libsuff=32 shlibsuff=N32 libmagic=N32;;
22569 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22570 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22571 *) libsuff= shlibsuff= libmagic=never-match;;
22575 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22576 shlibpath_overrides_runpath=no
22577 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22578 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22579 hardcode_into_libs=yes
22582 # No shared lib support for Linux oldld, aout, or coff.
22583 linux*oldld* | linux*aout* | linux*coff*)
22587 # This must be Linux ELF.
22592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22593 soname_spec='${libname}${release}${shared_ext}$major'
22594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22595 shlibpath_var=LD_LIBRARY_PATH
22596 shlibpath_overrides_runpath=no
22597 # This implies no fast_install, which is unacceptable.
22598 # Some rework will be needed to allow for fast_install
22599 # before this can be enabled.
22600 hardcode_into_libs=yes
22602 # Append ld.so.conf contents to the search path
22603 if test -f /etc/ld.so.conf; then
22604 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22605 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22608 # We used to test for /lib/ld.so.1 and disable shared libraries on
22609 # powerpc, because MkLinux only supported shared libraries with the
22610 # GNU dynamic linker. Since this was broken with cross compilers,
22611 # most powerpc-linux boxes support dynamic linking these days and
22612 # people can always --disable-shared, the test was removed, and we
22613 # assume the GNU/Linux dynamic linker is in use.
22614 dynamic_linker='GNU/Linux ld.so'
22621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22622 soname_spec='${libname}${release}${shared_ext}$major'
22623 shlibpath_var=LD_LIBRARY_PATH
22624 shlibpath_overrides_runpath=no
22625 hardcode_into_libs=yes
22626 dynamic_linker='GNU ld.so'
22633 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22636 dynamic_linker='NetBSD (a.out) ld.so'
22638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22639 soname_spec='${libname}${release}${shared_ext}$major'
22640 dynamic_linker='NetBSD ld.elf_so'
22642 shlibpath_var=LD_LIBRARY_PATH
22643 shlibpath_overrides_runpath=yes
22644 hardcode_into_libs=yes
22649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22650 shlibpath_var=LD_LIBRARY_PATH
22651 shlibpath_overrides_runpath=yes
22658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22659 soname_spec='${libname}${release}${shared_ext}$major'
22660 shlibpath_var=LD_LIBRARY_PATH
22661 shlibpath_overrides_runpath=yes
22668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22670 shlibpath_var=LD_LIBRARY_PATH
22671 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22673 openbsd2.[89] | openbsd2.[89].*)
22674 shlibpath_overrides_runpath=no
22677 shlibpath_overrides_runpath=yes
22681 shlibpath_overrides_runpath=yes
22686 libname_spec='$name'
22689 library_names_spec='$libname${shared_ext} $libname.a'
22690 dynamic_linker='OS/2 ld.exe'
22691 shlibpath_var=LIBPATH
22694 osf3* | osf4* | osf5*)
22698 soname_spec='${libname}${release}${shared_ext}$major'
22699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22700 shlibpath_var=LD_LIBRARY_PATH
22701 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22702 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22707 soname_spec='${libname}${release}${shared_ext}$major'
22708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22709 shlibpath_var=LD_LIBRARY_PATH
22716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22717 soname_spec='${libname}${release}${shared_ext}$major'
22718 shlibpath_var=LD_LIBRARY_PATH
22719 shlibpath_overrides_runpath=yes
22720 hardcode_into_libs=yes
22721 # ldd complains unless libraries are executable
22722 postinstall_cmds='chmod +x $lib'
22727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22728 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22729 shlibpath_var=LD_LIBRARY_PATH
22730 shlibpath_overrides_runpath=yes
22731 if test "$with_gnu_ld" = yes; then
22737 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22740 soname_spec='${libname}${release}${shared_ext}$major'
22741 shlibpath_var=LD_LIBRARY_PATH
22742 case $host_vendor in
22744 shlibpath_overrides_runpath=no
22746 export_dynamic_flag_spec='${wl}-Blargedynsym'
22747 runpath_var=LD_RUN_PATH
22755 shlibpath_overrides_runpath=no
22756 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22762 if test -d /usr/nec ;then
22764 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22765 soname_spec='$libname${shared_ext}.$major'
22766 shlibpath_var=LD_LIBRARY_PATH
22772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22773 soname_spec='${libname}${release}${shared_ext}$major'
22774 shlibpath_var=LD_LIBRARY_PATH
22781 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22782 echo "${ECHO_T}$dynamic_linker" >&6
22783 test "$dynamic_linker" = no && can_build_shared=no
22785 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22786 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22787 hardcode_action_GCJ=
22788 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22789 test -n "$runpath_var_GCJ" || \
22790 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22792 # We can hardcode non-existant directories.
22793 if test "$hardcode_direct_GCJ" != no &&
22794 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22795 # have to relink, otherwise we might link with an installed library
22796 # when we should be linking with a yet-to-be-installed one
22797 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22798 test "$hardcode_minus_L_GCJ" != no; then
22799 # Linking always hardcodes the temporary library directory.
22800 hardcode_action_GCJ=relink
22802 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22803 hardcode_action_GCJ=immediate
22806 # We cannot hardcode anything, or else we can only hardcode existing
22808 hardcode_action_GCJ=unsupported
22810 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22811 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22813 if test "$hardcode_action_GCJ" = relink; then
22814 # Fast installation is not supported
22815 enable_fast_install=no
22816 elif test "$shlibpath_overrides_runpath" = yes ||
22817 test "$enable_shared" = no; then
22818 # Fast installation is not necessary
22819 enable_fast_install=needless
22824 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22825 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22826 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22827 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22828 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22829 echo "$as_me:$LINENO: result: yes" >&5
22830 echo "${ECHO_T}yes" >&6
22832 # FIXME - insert some real tests, host_os isn't really good enough
22835 if test -n "$STRIP" ; then
22836 striplib="$STRIP -x"
22837 echo "$as_me:$LINENO: result: yes" >&5
22838 echo "${ECHO_T}yes" >&6
22840 echo "$as_me:$LINENO: result: no" >&5
22841 echo "${ECHO_T}no" >&6
22845 echo "$as_me:$LINENO: result: no" >&5
22846 echo "${ECHO_T}no" >&6
22851 if test "x$enable_dlopen" != xyes; then
22852 enable_dlopen=unknown
22853 enable_dlopen_self=unknown
22854 enable_dlopen_self_static=unknown
22861 lt_cv_dlopen="load_add_on"
22863 lt_cv_dlopen_self=yes
22867 lt_cv_dlopen="LoadLibrary"
22872 lt_cv_dlopen="dlopen"
22877 # if libdl is installed we need to link against it
22878 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22879 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22880 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22881 echo $ECHO_N "(cached) $ECHO_C" >&6
22883 ac_check_lib_save_LIBS=$LIBS
22885 cat >conftest.$ac_ext <<_ACEOF
22888 cat confdefs.h >>conftest.$ac_ext
22889 cat >>conftest.$ac_ext <<_ACEOF
22890 /* end confdefs.h. */
22892 /* Override any gcc2 internal prototype to avoid an error. */
22896 /* We use char because int might match the return type of a gcc2
22897 builtin and then its argument prototype would still apply. */
22907 rm -f conftest.$ac_objext conftest$ac_exeext
22908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22909 (eval $ac_link) 2>conftest.er1
22911 grep -v '^ *+' conftest.er1 >conftest.err
22913 cat conftest.err >&5
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); } &&
22916 { ac_try='test -z "$ac_c_werror_flag"
22917 || test ! -s conftest.err'
22918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919 (eval $ac_try) 2>&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); }; } &&
22923 { ac_try='test -s conftest$ac_exeext'
22924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; }; then
22929 ac_cv_lib_dl_dlopen=yes
22931 echo "$as_me: failed program was:" >&5
22932 sed 's/^/| /' conftest.$ac_ext >&5
22934 ac_cv_lib_dl_dlopen=no
22936 rm -f conftest.err conftest.$ac_objext \
22937 conftest$ac_exeext conftest.$ac_ext
22938 LIBS=$ac_check_lib_save_LIBS
22940 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22941 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22942 if test $ac_cv_lib_dl_dlopen = yes; then
22943 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22946 lt_cv_dlopen="dyld"
22948 lt_cv_dlopen_self=yes
22955 echo "$as_me:$LINENO: checking for shl_load" >&5
22956 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22957 if test "${ac_cv_func_shl_load+set}" = set; then
22958 echo $ECHO_N "(cached) $ECHO_C" >&6
22960 cat >conftest.$ac_ext <<_ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h. */
22966 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22968 #define shl_load innocuous_shl_load
22970 /* System header to define __stub macros and hopefully few prototypes,
22971 which can conflict with char shl_load (); below.
22972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22973 <limits.h> exists even on freestanding compilers. */
22976 # include <limits.h>
22978 # include <assert.h>
22983 /* Override any gcc2 internal prototype to avoid an error. */
22988 /* We use char because int might match the return type of a gcc2
22989 builtin and then its argument prototype would still apply. */
22991 /* The GNU C library defines this for functions which it implements
22992 to always fail with ENOSYS. Some functions are actually named
22993 something starting with __ and the normal name is an alias. */
22994 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22997 char (*f) () = shl_load;
23006 return f != shl_load;
23011 rm -f conftest.$ac_objext conftest$ac_exeext
23012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23013 (eval $ac_link) 2>conftest.er1
23015 grep -v '^ *+' conftest.er1 >conftest.err
23017 cat conftest.err >&5
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); } &&
23020 { ac_try='test -z "$ac_c_werror_flag"
23021 || test ! -s conftest.err'
23022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23023 (eval $ac_try) 2>&5
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); }; } &&
23027 { ac_try='test -s conftest$ac_exeext'
23028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23029 (eval $ac_try) 2>&5
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); }; }; then
23033 ac_cv_func_shl_load=yes
23035 echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23038 ac_cv_func_shl_load=no
23040 rm -f conftest.err conftest.$ac_objext \
23041 conftest$ac_exeext conftest.$ac_ext
23043 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23044 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23045 if test $ac_cv_func_shl_load = yes; then
23046 lt_cv_dlopen="shl_load"
23048 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23049 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23050 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23051 echo $ECHO_N "(cached) $ECHO_C" >&6
23053 ac_check_lib_save_LIBS=$LIBS
23055 cat >conftest.$ac_ext <<_ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h. */
23062 /* Override any gcc2 internal prototype to avoid an error. */
23066 /* We use char because int might match the return type of a gcc2
23067 builtin and then its argument prototype would still apply. */
23077 rm -f conftest.$ac_objext conftest$ac_exeext
23078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23079 (eval $ac_link) 2>conftest.er1
23081 grep -v '^ *+' conftest.er1 >conftest.err
23083 cat conftest.err >&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } &&
23086 { ac_try='test -z "$ac_c_werror_flag"
23087 || test ! -s conftest.err'
23088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089 (eval $ac_try) 2>&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); }; } &&
23093 { ac_try='test -s conftest$ac_exeext'
23094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095 (eval $ac_try) 2>&5
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); }; }; then
23099 ac_cv_lib_dld_shl_load=yes
23101 echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23104 ac_cv_lib_dld_shl_load=no
23106 rm -f conftest.err conftest.$ac_objext \
23107 conftest$ac_exeext conftest.$ac_ext
23108 LIBS=$ac_check_lib_save_LIBS
23110 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23111 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23112 if test $ac_cv_lib_dld_shl_load = yes; then
23113 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23115 echo "$as_me:$LINENO: checking for dlopen" >&5
23116 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23117 if test "${ac_cv_func_dlopen+set}" = set; then
23118 echo $ECHO_N "(cached) $ECHO_C" >&6
23120 cat >conftest.$ac_ext <<_ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h. */
23126 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23128 #define dlopen innocuous_dlopen
23130 /* System header to define __stub macros and hopefully few prototypes,
23131 which can conflict with char dlopen (); below.
23132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23133 <limits.h> exists even on freestanding compilers. */
23136 # include <limits.h>
23138 # include <assert.h>
23143 /* Override any gcc2 internal prototype to avoid an error. */
23148 /* We use char because int might match the return type of a gcc2
23149 builtin and then its argument prototype would still apply. */
23151 /* The GNU C library defines this for functions which it implements
23152 to always fail with ENOSYS. Some functions are actually named
23153 something starting with __ and the normal name is an alias. */
23154 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23157 char (*f) () = dlopen;
23166 return f != dlopen;
23171 rm -f conftest.$ac_objext conftest$ac_exeext
23172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23173 (eval $ac_link) 2>conftest.er1
23175 grep -v '^ *+' conftest.er1 >conftest.err
23177 cat conftest.err >&5
23178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179 (exit $ac_status); } &&
23180 { ac_try='test -z "$ac_c_werror_flag"
23181 || test ! -s conftest.err'
23182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23183 (eval $ac_try) 2>&5
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); }; } &&
23187 { ac_try='test -s conftest$ac_exeext'
23188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189 (eval $ac_try) 2>&5
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); }; }; then
23193 ac_cv_func_dlopen=yes
23195 echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.$ac_ext >&5
23198 ac_cv_func_dlopen=no
23200 rm -f conftest.err conftest.$ac_objext \
23201 conftest$ac_exeext conftest.$ac_ext
23203 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23204 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23205 if test $ac_cv_func_dlopen = yes; then
23206 lt_cv_dlopen="dlopen"
23208 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23209 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23210 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23211 echo $ECHO_N "(cached) $ECHO_C" >&6
23213 ac_check_lib_save_LIBS=$LIBS
23215 cat >conftest.$ac_ext <<_ACEOF
23218 cat confdefs.h >>conftest.$ac_ext
23219 cat >>conftest.$ac_ext <<_ACEOF
23220 /* end confdefs.h. */
23222 /* Override any gcc2 internal prototype to avoid an error. */
23226 /* We use char because int might match the return type of a gcc2
23227 builtin and then its argument prototype would still apply. */
23237 rm -f conftest.$ac_objext conftest$ac_exeext
23238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23239 (eval $ac_link) 2>conftest.er1
23241 grep -v '^ *+' conftest.er1 >conftest.err
23243 cat conftest.err >&5
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); } &&
23246 { ac_try='test -z "$ac_c_werror_flag"
23247 || test ! -s conftest.err'
23248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23249 (eval $ac_try) 2>&5
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); }; } &&
23253 { ac_try='test -s conftest$ac_exeext'
23254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255 (eval $ac_try) 2>&5
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); }; }; then
23259 ac_cv_lib_dl_dlopen=yes
23261 echo "$as_me: failed program was:" >&5
23262 sed 's/^/| /' conftest.$ac_ext >&5
23264 ac_cv_lib_dl_dlopen=no
23266 rm -f conftest.err conftest.$ac_objext \
23267 conftest$ac_exeext conftest.$ac_ext
23268 LIBS=$ac_check_lib_save_LIBS
23270 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23271 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23272 if test $ac_cv_lib_dl_dlopen = yes; then
23273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23275 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23276 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23277 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23278 echo $ECHO_N "(cached) $ECHO_C" >&6
23280 ac_check_lib_save_LIBS=$LIBS
23281 LIBS="-lsvld $LIBS"
23282 cat >conftest.$ac_ext <<_ACEOF
23285 cat confdefs.h >>conftest.$ac_ext
23286 cat >>conftest.$ac_ext <<_ACEOF
23287 /* end confdefs.h. */
23289 /* Override any gcc2 internal prototype to avoid an error. */
23293 /* We use char because int might match the return type of a gcc2
23294 builtin and then its argument prototype would still apply. */
23304 rm -f conftest.$ac_objext conftest$ac_exeext
23305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23306 (eval $ac_link) 2>conftest.er1
23308 grep -v '^ *+' conftest.er1 >conftest.err
23310 cat conftest.err >&5
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); } &&
23313 { ac_try='test -z "$ac_c_werror_flag"
23314 || test ! -s conftest.err'
23315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23316 (eval $ac_try) 2>&5
23318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319 (exit $ac_status); }; } &&
23320 { ac_try='test -s conftest$ac_exeext'
23321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23322 (eval $ac_try) 2>&5
23324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325 (exit $ac_status); }; }; then
23326 ac_cv_lib_svld_dlopen=yes
23328 echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23331 ac_cv_lib_svld_dlopen=no
23333 rm -f conftest.err conftest.$ac_objext \
23334 conftest$ac_exeext conftest.$ac_ext
23335 LIBS=$ac_check_lib_save_LIBS
23337 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23338 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23339 if test $ac_cv_lib_svld_dlopen = yes; then
23340 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23342 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23343 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23344 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23347 ac_check_lib_save_LIBS=$LIBS
23349 cat >conftest.$ac_ext <<_ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h. */
23356 /* Override any gcc2 internal prototype to avoid an error. */
23360 /* We use char because int might match the return type of a gcc2
23361 builtin and then its argument prototype would still apply. */
23371 rm -f conftest.$ac_objext conftest$ac_exeext
23372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23373 (eval $ac_link) 2>conftest.er1
23375 grep -v '^ *+' conftest.er1 >conftest.err
23377 cat conftest.err >&5
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); } &&
23380 { ac_try='test -z "$ac_c_werror_flag"
23381 || test ! -s conftest.err'
23382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23383 (eval $ac_try) 2>&5
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); }; } &&
23387 { ac_try='test -s conftest$ac_exeext'
23388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23389 (eval $ac_try) 2>&5
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); }; }; then
23393 ac_cv_lib_dld_dld_link=yes
23395 echo "$as_me: failed program was:" >&5
23396 sed 's/^/| /' conftest.$ac_ext >&5
23398 ac_cv_lib_dld_dld_link=no
23400 rm -f conftest.err conftest.$ac_objext \
23401 conftest$ac_exeext conftest.$ac_ext
23402 LIBS=$ac_check_lib_save_LIBS
23404 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23405 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23406 if test $ac_cv_lib_dld_dld_link = yes; then
23407 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23428 if test "x$lt_cv_dlopen" != xno; then
23434 case $lt_cv_dlopen in
23436 save_CPPFLAGS="$CPPFLAGS"
23437 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23439 save_LDFLAGS="$LDFLAGS"
23440 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23443 LIBS="$lt_cv_dlopen_libs $LIBS"
23445 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23446 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23447 if test "${lt_cv_dlopen_self+set}" = set; then
23448 echo $ECHO_N "(cached) $ECHO_C" >&6
23450 if test "$cross_compiling" = yes; then :
23451 lt_cv_dlopen_self=cross
23453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23454 lt_status=$lt_dlunknown
23455 cat > conftest.$ac_ext <<EOF
23456 #line 23456 "configure"
23457 #include "confdefs.h"
23466 # define LT_DLGLOBAL RTLD_GLOBAL
23469 # define LT_DLGLOBAL DL_GLOBAL
23471 # define LT_DLGLOBAL 0
23475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23476 find out it does not work in some platform. */
23477 #ifndef LT_DLLAZY_OR_NOW
23479 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23482 # define LT_DLLAZY_OR_NOW DL_LAZY
23485 # define LT_DLLAZY_OR_NOW RTLD_NOW
23488 # define LT_DLLAZY_OR_NOW DL_NOW
23490 # define LT_DLLAZY_OR_NOW 0
23498 extern "C" void exit (int);
23501 void fnord() { int i=42;}
23504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23505 int status = $lt_dlunknown;
23509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23510 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23511 /* dlclose (self); */
23517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23518 (eval $ac_link) 2>&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23522 (./conftest; exit; ) 2>/dev/null
23524 case x$lt_status in
23525 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23526 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23527 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23530 # compilation failed
23531 lt_cv_dlopen_self=no
23538 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23539 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23541 if test "x$lt_cv_dlopen_self" = xyes; then
23542 LDFLAGS="$LDFLAGS $link_static_flag"
23543 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23544 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23545 if test "${lt_cv_dlopen_self_static+set}" = set; then
23546 echo $ECHO_N "(cached) $ECHO_C" >&6
23548 if test "$cross_compiling" = yes; then :
23549 lt_cv_dlopen_self_static=cross
23551 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23552 lt_status=$lt_dlunknown
23553 cat > conftest.$ac_ext <<EOF
23554 #line 23554 "configure"
23555 #include "confdefs.h"
23564 # define LT_DLGLOBAL RTLD_GLOBAL
23567 # define LT_DLGLOBAL DL_GLOBAL
23569 # define LT_DLGLOBAL 0
23573 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23574 find out it does not work in some platform. */
23575 #ifndef LT_DLLAZY_OR_NOW
23577 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23580 # define LT_DLLAZY_OR_NOW DL_LAZY
23583 # define LT_DLLAZY_OR_NOW RTLD_NOW
23586 # define LT_DLLAZY_OR_NOW DL_NOW
23588 # define LT_DLLAZY_OR_NOW 0
23596 extern "C" void exit (int);
23599 void fnord() { int i=42;}
23602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23603 int status = $lt_dlunknown;
23607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23608 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23609 /* dlclose (self); */
23615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23616 (eval $ac_link) 2>&5
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23620 (./conftest; exit; ) 2>/dev/null
23622 case x$lt_status in
23623 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23624 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23625 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23628 # compilation failed
23629 lt_cv_dlopen_self_static=no
23636 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23637 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23640 CPPFLAGS="$save_CPPFLAGS"
23641 LDFLAGS="$save_LDFLAGS"
23646 case $lt_cv_dlopen_self in
23647 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23648 *) enable_dlopen_self=unknown ;;
23651 case $lt_cv_dlopen_self_static in
23652 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23653 *) enable_dlopen_self_static=unknown ;;
23658 # The else clause should only fire when bootstrapping the
23659 # libtool distribution, otherwise you forgot to ship ltmain.sh
23660 # with your package, and you will get complaints that there are
23661 # no rules to generate ltmain.sh.
23662 if test -f "$ltmain"; then
23663 # See if we are running on zsh, and set the options which allow our commands through
23664 # without removal of \ escapes.
23665 if test -n "${ZSH_VERSION+set}" ; then
23666 setopt NO_GLOB_SUBST
23668 # Now quote all the things that may contain metacharacters while being
23669 # careful not to overquote the AC_SUBSTed values. We take copies of the
23670 # variables and quote the copies for generation of the libtool script.
23671 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23673 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23674 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23675 deplibs_check_method reload_flag reload_cmds need_locks \
23676 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23677 lt_cv_sys_global_symbol_to_c_name_address \
23678 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23679 old_postinstall_cmds old_postuninstall_cmds \
23683 lt_prog_compiler_wl_GCJ \
23684 lt_prog_compiler_pic_GCJ \
23685 lt_prog_compiler_static_GCJ \
23686 lt_prog_compiler_no_builtin_flag_GCJ \
23687 export_dynamic_flag_spec_GCJ \
23688 thread_safe_flag_spec_GCJ \
23689 whole_archive_flag_spec_GCJ \
23690 enable_shared_with_static_runtimes_GCJ \
23691 old_archive_cmds_GCJ \
23692 old_archive_from_new_cmds_GCJ \
23693 predep_objects_GCJ \
23694 postdep_objects_GCJ \
23697 compiler_lib_search_path_GCJ \
23699 archive_expsym_cmds_GCJ \
23700 postinstall_cmds_GCJ \
23701 postuninstall_cmds_GCJ \
23702 old_archive_from_expsyms_cmds_GCJ \
23703 allow_undefined_flag_GCJ \
23704 no_undefined_flag_GCJ \
23705 export_symbols_cmds_GCJ \
23706 hardcode_libdir_flag_spec_GCJ \
23707 hardcode_libdir_flag_spec_ld_GCJ \
23708 hardcode_libdir_separator_GCJ \
23709 hardcode_automatic_GCJ \
23711 module_expsym_cmds_GCJ \
23712 lt_cv_prog_compiler_c_o_GCJ \
23713 exclude_expsyms_GCJ \
23714 include_expsyms_GCJ; do
23717 old_archive_cmds_GCJ | \
23718 old_archive_from_new_cmds_GCJ | \
23719 archive_cmds_GCJ | \
23720 archive_expsym_cmds_GCJ | \
23721 module_cmds_GCJ | \
23722 module_expsym_cmds_GCJ | \
23723 old_archive_from_expsyms_cmds_GCJ | \
23724 export_symbols_cmds_GCJ | \
23725 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23726 postinstall_cmds | postuninstall_cmds | \
23727 old_postinstall_cmds | old_postuninstall_cmds | \
23728 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23729 # Double-quote double-evaled strings.
23730 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23733 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23739 *'\$0 --fallback-echo"')
23740 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23746 cat <<__EOF__ >> "$cfgfile"
23747 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23749 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23751 # Shell to use when invoking shell scripts.
23754 # Whether or not to build shared libraries.
23755 build_libtool_libs=$enable_shared
23757 # Whether or not to build static libraries.
23758 build_old_libs=$enable_static
23760 # Whether or not to add -lc for building shared libraries.
23761 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23763 # Whether or not to disallow shared libs when runtime libs are static
23764 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23766 # Whether or not to optimize for fast installation.
23767 fast_install=$enable_fast_install
23770 host_alias=$host_alias
23773 # An echo program that does not interpret backslashes.
23778 AR_FLAGS=$lt_AR_FLAGS
23783 # A language-specific compiler.
23784 CC=$lt_compiler_GCJ
23786 # Is the compiler the GNU C compiler?
23792 # The linker used to build libraries.
23795 # Whether we need hard or soft links.
23798 # A BSD-compatible nm program.
23801 # A symbol stripping program
23804 # Used to examine libraries when file_magic_cmd begins "file"
23805 MAGIC_CMD=$MAGIC_CMD
23807 # Used on cygwin: DLL creation program.
23810 # Used on cygwin: object dumper.
23813 # Used on cygwin: assembler.
23816 # The name of the directory that contains temporary libtool files.
23819 # How to create reloadable object files.
23820 reload_flag=$lt_reload_flag
23821 reload_cmds=$lt_reload_cmds
23823 # How to pass a linker flag through the compiler.
23824 wl=$lt_lt_prog_compiler_wl_GCJ
23826 # Object file suffix (normally "o").
23827 objext="$ac_objext"
23829 # Old archive suffix (normally "a").
23832 # Shared library suffix (normally ".so").
23833 shrext_cmds='$shrext_cmds'
23835 # Executable file suffix (normally "").
23838 # Additional compiler flags for building library objects.
23839 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23842 # What is the maximum length of a command?
23843 max_cmd_len=$lt_cv_sys_max_cmd_len
23845 # Does compiler simultaneously support -c and -o options?
23846 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23848 # Must we lock files when doing compilation ?
23849 need_locks=$lt_need_locks
23851 # Do we need the lib prefix for modules?
23852 need_lib_prefix=$need_lib_prefix
23854 # Do we need a version for libraries?
23855 need_version=$need_version
23857 # Whether dlopen is supported.
23858 dlopen_support=$enable_dlopen
23860 # Whether dlopen of programs is supported.
23861 dlopen_self=$enable_dlopen_self
23863 # Whether dlopen of statically linked programs is supported.
23864 dlopen_self_static=$enable_dlopen_self_static
23866 # Compiler flag to prevent dynamic linking.
23867 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23869 # Compiler flag to turn off builtin functions.
23870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23872 # Compiler flag to allow reflexive dlopens.
23873 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23875 # Compiler flag to generate shared objects directly from archives.
23876 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23878 # Compiler flag to generate thread-safe objects.
23879 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23881 # Library versioning type.
23882 version_type=$version_type
23884 # Format of library name prefix.
23885 libname_spec=$lt_libname_spec
23887 # List of archive names. First name is the real one, the rest are links.
23888 # The last name is the one that the linker finds with -lNAME.
23889 library_names_spec=$lt_library_names_spec
23891 # The coded name of the library, if different from the real name.
23892 soname_spec=$lt_soname_spec
23894 # Commands used to build and install an old-style archive.
23896 old_archive_cmds=$lt_old_archive_cmds_GCJ
23897 old_postinstall_cmds=$lt_old_postinstall_cmds
23898 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23900 # Create an old-style archive from a shared archive.
23901 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23903 # Create a temporary old-style archive to link instead of a shared archive.
23904 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23906 # Commands used to build and install a shared archive.
23907 archive_cmds=$lt_archive_cmds_GCJ
23908 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23909 postinstall_cmds=$lt_postinstall_cmds
23910 postuninstall_cmds=$lt_postuninstall_cmds
23912 # Commands used to build a loadable module (assumed same as above if empty)
23913 module_cmds=$lt_module_cmds_GCJ
23914 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23916 # Commands to strip libraries.
23917 old_striplib=$lt_old_striplib
23918 striplib=$lt_striplib
23920 # Dependencies to place before the objects being linked to create a
23922 predep_objects=$lt_predep_objects_GCJ
23924 # Dependencies to place after the objects being linked to create a
23926 postdep_objects=$lt_postdep_objects_GCJ
23928 # Dependencies to place before the objects being linked to create a
23930 predeps=$lt_predeps_GCJ
23932 # Dependencies to place after the objects being linked to create a
23934 postdeps=$lt_postdeps_GCJ
23936 # The library search path used internally by the compiler when linking
23937 # a shared library.
23938 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23940 # Method to check whether dependent libraries are shared objects.
23941 deplibs_check_method=$lt_deplibs_check_method
23943 # Command to use when deplibs_check_method == file_magic.
23944 file_magic_cmd=$lt_file_magic_cmd
23946 # Flag that allows shared libraries with undefined symbols to be built.
23947 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23949 # Flag that forces no undefined symbols.
23950 no_undefined_flag=$lt_no_undefined_flag_GCJ
23952 # Commands used to finish a libtool library installation in a directory.
23953 finish_cmds=$lt_finish_cmds
23955 # Same as above, but a single script fragment to be evaled but not shown.
23956 finish_eval=$lt_finish_eval
23958 # Take the output of nm and produce a listing of raw symbols and C names.
23959 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23961 # Transform the output of nm in a proper C declaration
23962 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23964 # Transform the output of nm in a C name address pair
23965 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23967 # This is the shared library runtime path variable.
23968 runpath_var=$runpath_var
23970 # This is the shared library path variable.
23971 shlibpath_var=$shlibpath_var
23973 # Is shlibpath searched before the hard-coded library search path?
23974 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23976 # How to hardcode a shared library path into an executable.
23977 hardcode_action=$hardcode_action_GCJ
23979 # Whether we should hardcode library paths into libraries.
23980 hardcode_into_libs=$hardcode_into_libs
23982 # Flag to hardcode \$libdir into a binary during linking.
23983 # This must work even if \$libdir does not exist.
23984 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23986 # If ld is used when linking, flag to hardcode \$libdir into
23987 # a binary during linking. This must work even if \$libdir does
23989 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23991 # Whether we need a single -rpath flag with a separated argument.
23992 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23994 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23995 # resulting binary.
23996 hardcode_direct=$hardcode_direct_GCJ
23998 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23999 # resulting binary.
24000 hardcode_minus_L=$hardcode_minus_L_GCJ
24002 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24003 # the resulting binary.
24004 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24006 # Set to yes if building a shared library automatically hardcodes DIR into the library
24007 # and all subsequent libraries and executables linked against it.
24008 hardcode_automatic=$hardcode_automatic_GCJ
24010 # Variables whose values should be saved in libtool wrapper scripts and
24011 # restored at relink time.
24012 variables_saved_for_relink="$variables_saved_for_relink"
24014 # Whether libtool must link a program against all its dependency libraries.
24015 link_all_deplibs=$link_all_deplibs_GCJ
24017 # Compile-time system search path for libraries
24018 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24020 # Run-time system search path for libraries
24021 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24023 # Fix the shell variable \$srcfile for the compiler.
24024 fix_srcfile_path="$fix_srcfile_path_GCJ"
24026 # Set to yes if exported symbols are required.
24027 always_export_symbols=$always_export_symbols_GCJ
24029 # The commands to list exported symbols.
24030 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24032 # The commands to extract the exported symbol list from a shared archive.
24033 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24035 # Symbols that should not be listed in the preloaded symbols.
24036 exclude_expsyms=$lt_exclude_expsyms_GCJ
24038 # Symbols that must always be exported.
24039 include_expsyms=$lt_include_expsyms_GCJ
24041 # ### END LIBTOOL TAG CONFIG: $tagname
24047 # If there is no Makefile yet, we rely on a make rule to execute
24048 # `config.status --recheck' to rerun these tests and create the
24049 # libtool script then.
24050 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24051 if test -f "$ltmain_in"; then
24052 test -f Makefile && make "$ltmain"
24058 ac_cpp='$CPP $CPPFLAGS'
24059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24072 ac_cpp='$CPP $CPPFLAGS'
24073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24078 # Source file extension for RC test sources.
24081 # Object file extension for compiled RC test sources.
24085 # Code to be used in simple compile tests
24086 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24088 # Code to be used in simple link tests
24089 lt_simple_link_test_code="$lt_simple_compile_test_code"
24091 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24093 # If no C compiler was specified, use CC.
24096 # Allow CC to be a program name with arguments.
24100 # Allow CC to be a program name with arguments.
24105 lt_cv_prog_compiler_c_o_RC=yes
24107 # The else clause should only fire when bootstrapping the
24108 # libtool distribution, otherwise you forgot to ship ltmain.sh
24109 # with your package, and you will get complaints that there are
24110 # no rules to generate ltmain.sh.
24111 if test -f "$ltmain"; then
24112 # See if we are running on zsh, and set the options which allow our commands through
24113 # without removal of \ escapes.
24114 if test -n "${ZSH_VERSION+set}" ; then
24115 setopt NO_GLOB_SUBST
24117 # Now quote all the things that may contain metacharacters while being
24118 # careful not to overquote the AC_SUBSTed values. We take copies of the
24119 # variables and quote the copies for generation of the libtool script.
24120 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24122 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24123 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24124 deplibs_check_method reload_flag reload_cmds need_locks \
24125 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24126 lt_cv_sys_global_symbol_to_c_name_address \
24127 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24128 old_postinstall_cmds old_postuninstall_cmds \
24132 lt_prog_compiler_wl_RC \
24133 lt_prog_compiler_pic_RC \
24134 lt_prog_compiler_static_RC \
24135 lt_prog_compiler_no_builtin_flag_RC \
24136 export_dynamic_flag_spec_RC \
24137 thread_safe_flag_spec_RC \
24138 whole_archive_flag_spec_RC \
24139 enable_shared_with_static_runtimes_RC \
24140 old_archive_cmds_RC \
24141 old_archive_from_new_cmds_RC \
24142 predep_objects_RC \
24143 postdep_objects_RC \
24146 compiler_lib_search_path_RC \
24148 archive_expsym_cmds_RC \
24149 postinstall_cmds_RC \
24150 postuninstall_cmds_RC \
24151 old_archive_from_expsyms_cmds_RC \
24152 allow_undefined_flag_RC \
24153 no_undefined_flag_RC \
24154 export_symbols_cmds_RC \
24155 hardcode_libdir_flag_spec_RC \
24156 hardcode_libdir_flag_spec_ld_RC \
24157 hardcode_libdir_separator_RC \
24158 hardcode_automatic_RC \
24160 module_expsym_cmds_RC \
24161 lt_cv_prog_compiler_c_o_RC \
24162 exclude_expsyms_RC \
24163 include_expsyms_RC; do
24166 old_archive_cmds_RC | \
24167 old_archive_from_new_cmds_RC | \
24168 archive_cmds_RC | \
24169 archive_expsym_cmds_RC | \
24171 module_expsym_cmds_RC | \
24172 old_archive_from_expsyms_cmds_RC | \
24173 export_symbols_cmds_RC | \
24174 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24175 postinstall_cmds | postuninstall_cmds | \
24176 old_postinstall_cmds | old_postuninstall_cmds | \
24177 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24178 # Double-quote double-evaled strings.
24179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24182 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24188 *'\$0 --fallback-echo"')
24189 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24195 cat <<__EOF__ >> "$cfgfile"
24196 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24198 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24200 # Shell to use when invoking shell scripts.
24203 # Whether or not to build shared libraries.
24204 build_libtool_libs=$enable_shared
24206 # Whether or not to build static libraries.
24207 build_old_libs=$enable_static
24209 # Whether or not to add -lc for building shared libraries.
24210 build_libtool_need_lc=$archive_cmds_need_lc_RC
24212 # Whether or not to disallow shared libs when runtime libs are static
24213 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24215 # Whether or not to optimize for fast installation.
24216 fast_install=$enable_fast_install
24219 host_alias=$host_alias
24222 # An echo program that does not interpret backslashes.
24227 AR_FLAGS=$lt_AR_FLAGS
24232 # A language-specific compiler.
24235 # Is the compiler the GNU C compiler?
24241 # The linker used to build libraries.
24244 # Whether we need hard or soft links.
24247 # A BSD-compatible nm program.
24250 # A symbol stripping program
24253 # Used to examine libraries when file_magic_cmd begins "file"
24254 MAGIC_CMD=$MAGIC_CMD
24256 # Used on cygwin: DLL creation program.
24259 # Used on cygwin: object dumper.
24262 # Used on cygwin: assembler.
24265 # The name of the directory that contains temporary libtool files.
24268 # How to create reloadable object files.
24269 reload_flag=$lt_reload_flag
24270 reload_cmds=$lt_reload_cmds
24272 # How to pass a linker flag through the compiler.
24273 wl=$lt_lt_prog_compiler_wl_RC
24275 # Object file suffix (normally "o").
24276 objext="$ac_objext"
24278 # Old archive suffix (normally "a").
24281 # Shared library suffix (normally ".so").
24282 shrext_cmds='$shrext_cmds'
24284 # Executable file suffix (normally "").
24287 # Additional compiler flags for building library objects.
24288 pic_flag=$lt_lt_prog_compiler_pic_RC
24291 # What is the maximum length of a command?
24292 max_cmd_len=$lt_cv_sys_max_cmd_len
24294 # Does compiler simultaneously support -c and -o options?
24295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24297 # Must we lock files when doing compilation ?
24298 need_locks=$lt_need_locks
24300 # Do we need the lib prefix for modules?
24301 need_lib_prefix=$need_lib_prefix
24303 # Do we need a version for libraries?
24304 need_version=$need_version
24306 # Whether dlopen is supported.
24307 dlopen_support=$enable_dlopen
24309 # Whether dlopen of programs is supported.
24310 dlopen_self=$enable_dlopen_self
24312 # Whether dlopen of statically linked programs is supported.
24313 dlopen_self_static=$enable_dlopen_self_static
24315 # Compiler flag to prevent dynamic linking.
24316 link_static_flag=$lt_lt_prog_compiler_static_RC
24318 # Compiler flag to turn off builtin functions.
24319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24321 # Compiler flag to allow reflexive dlopens.
24322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24324 # Compiler flag to generate shared objects directly from archives.
24325 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24327 # Compiler flag to generate thread-safe objects.
24328 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24330 # Library versioning type.
24331 version_type=$version_type
24333 # Format of library name prefix.
24334 libname_spec=$lt_libname_spec
24336 # List of archive names. First name is the real one, the rest are links.
24337 # The last name is the one that the linker finds with -lNAME.
24338 library_names_spec=$lt_library_names_spec
24340 # The coded name of the library, if different from the real name.
24341 soname_spec=$lt_soname_spec
24343 # Commands used to build and install an old-style archive.
24345 old_archive_cmds=$lt_old_archive_cmds_RC
24346 old_postinstall_cmds=$lt_old_postinstall_cmds
24347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24349 # Create an old-style archive from a shared archive.
24350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24352 # Create a temporary old-style archive to link instead of a shared archive.
24353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24355 # Commands used to build and install a shared archive.
24356 archive_cmds=$lt_archive_cmds_RC
24357 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24358 postinstall_cmds=$lt_postinstall_cmds
24359 postuninstall_cmds=$lt_postuninstall_cmds
24361 # Commands used to build a loadable module (assumed same as above if empty)
24362 module_cmds=$lt_module_cmds_RC
24363 module_expsym_cmds=$lt_module_expsym_cmds_RC
24365 # Commands to strip libraries.
24366 old_striplib=$lt_old_striplib
24367 striplib=$lt_striplib
24369 # Dependencies to place before the objects being linked to create a
24371 predep_objects=$lt_predep_objects_RC
24373 # Dependencies to place after the objects being linked to create a
24375 postdep_objects=$lt_postdep_objects_RC
24377 # Dependencies to place before the objects being linked to create a
24379 predeps=$lt_predeps_RC
24381 # Dependencies to place after the objects being linked to create a
24383 postdeps=$lt_postdeps_RC
24385 # The library search path used internally by the compiler when linking
24386 # a shared library.
24387 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24389 # Method to check whether dependent libraries are shared objects.
24390 deplibs_check_method=$lt_deplibs_check_method
24392 # Command to use when deplibs_check_method == file_magic.
24393 file_magic_cmd=$lt_file_magic_cmd
24395 # Flag that allows shared libraries with undefined symbols to be built.
24396 allow_undefined_flag=$lt_allow_undefined_flag_RC
24398 # Flag that forces no undefined symbols.
24399 no_undefined_flag=$lt_no_undefined_flag_RC
24401 # Commands used to finish a libtool library installation in a directory.
24402 finish_cmds=$lt_finish_cmds
24404 # Same as above, but a single script fragment to be evaled but not shown.
24405 finish_eval=$lt_finish_eval
24407 # Take the output of nm and produce a listing of raw symbols and C names.
24408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24410 # Transform the output of nm in a proper C declaration
24411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24413 # Transform the output of nm in a C name address pair
24414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24416 # This is the shared library runtime path variable.
24417 runpath_var=$runpath_var
24419 # This is the shared library path variable.
24420 shlibpath_var=$shlibpath_var
24422 # Is shlibpath searched before the hard-coded library search path?
24423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24425 # How to hardcode a shared library path into an executable.
24426 hardcode_action=$hardcode_action_RC
24428 # Whether we should hardcode library paths into libraries.
24429 hardcode_into_libs=$hardcode_into_libs
24431 # Flag to hardcode \$libdir into a binary during linking.
24432 # This must work even if \$libdir does not exist.
24433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24435 # If ld is used when linking, flag to hardcode \$libdir into
24436 # a binary during linking. This must work even if \$libdir does
24438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24440 # Whether we need a single -rpath flag with a separated argument.
24441 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24444 # resulting binary.
24445 hardcode_direct=$hardcode_direct_RC
24447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24448 # resulting binary.
24449 hardcode_minus_L=$hardcode_minus_L_RC
24451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24452 # the resulting binary.
24453 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24455 # Set to yes if building a shared library automatically hardcodes DIR into the library
24456 # and all subsequent libraries and executables linked against it.
24457 hardcode_automatic=$hardcode_automatic_RC
24459 # Variables whose values should be saved in libtool wrapper scripts and
24460 # restored at relink time.
24461 variables_saved_for_relink="$variables_saved_for_relink"
24463 # Whether libtool must link a program against all its dependency libraries.
24464 link_all_deplibs=$link_all_deplibs_RC
24466 # Compile-time system search path for libraries
24467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24469 # Run-time system search path for libraries
24470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24472 # Fix the shell variable \$srcfile for the compiler.
24473 fix_srcfile_path="$fix_srcfile_path_RC"
24475 # Set to yes if exported symbols are required.
24476 always_export_symbols=$always_export_symbols_RC
24478 # The commands to list exported symbols.
24479 export_symbols_cmds=$lt_export_symbols_cmds_RC
24481 # The commands to extract the exported symbol list from a shared archive.
24482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24484 # Symbols that should not be listed in the preloaded symbols.
24485 exclude_expsyms=$lt_exclude_expsyms_RC
24487 # Symbols that must always be exported.
24488 include_expsyms=$lt_include_expsyms_RC
24490 # ### END LIBTOOL TAG CONFIG: $tagname
24496 # If there is no Makefile yet, we rely on a make rule to execute
24497 # `config.status --recheck' to rerun these tests and create the
24498 # libtool script then.
24499 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24500 if test -f "$ltmain_in"; then
24501 test -f Makefile && make "$ltmain"
24507 ac_cpp='$CPP $CPPFLAGS'
24508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24517 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24518 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24519 { (exit 1); exit 1; }; }
24523 # Append the new tag name to the list of available tags.
24524 if test -n "$tagname" ; then
24525 available_tags="$available_tags $tagname"
24531 # Now substitute the updated list of available tags.
24532 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24533 mv "${ofile}T" "$ofile"
24537 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24538 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24539 { (exit 1); exit 1; }; }
24545 # This can be used to rebuild libtool when needed
24546 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24548 # Always use our own libtool.
24549 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24551 # Prevent multiple expansion
24573 etags_version=`$ETAGS --version 2>&1`
24574 case "$etags_version" in
24575 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24576 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24577 *) ETAGSFLAGS="" ;;
24579 ETAGSFLAGS=$ETAGSFLAGS
24582 echo "$as_me:$LINENO: checking tool compatibility" >&5
24583 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24585 if test "$GCC" != "yes"
24587 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
24588 echo "$as_me: error: gcc required but not found" >&2;}
24589 { (exit 1); exit 1; }; }
24591 if test "$GXX" != "yes"
24593 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
24594 echo "$as_me: error: g++ required but not found" >&2;}
24595 { (exit 1); exit 1; }; }
24598 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24599 if test "$gccmajor" -lt "3"
24601 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24602 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24603 { (exit 1); exit 1; }; }
24606 if test -z "$llvm_cv_gnu_make_command"
24608 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24609 echo "$as_me: error: GNU Make required but not found" >&2;}
24610 { (exit 1); exit 1; }; }
24613 echo "$as_me:$LINENO: result: ok" >&5
24614 echo "${ECHO_T}ok" >&6
24616 if test "$PYTHON" = "false" ; then
24617 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
24618 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
24620 if test "$QMTEST" = "false" ; then
24621 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
24622 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
24624 if test "$RUNTEST" = "false" ; then
24625 { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5
24626 echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;}
24628 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
24629 pymajor=`echo $pyversion | cut -d. -f1`
24630 pyminor=`echo $pyversion | cut -d. -f2`
24631 if test "$pymajor" -ge "2" ; then
24632 if test "$pymajor" -eq "2" ; then
24633 if test "$pyminor" -lt "2" ; then
24634 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
24635 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
24639 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
24640 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
24643 echo "$as_me:$LINENO: result: " >&5
24644 echo "${ECHO_T}" >&6
24648 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24649 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24650 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24651 echo $ECHO_N "(cached) $ECHO_C" >&6
24653 ac_check_lib_save_LIBS=$LIBS
24655 cat >conftest.$ac_ext <<_ACEOF
24658 cat confdefs.h >>conftest.$ac_ext
24659 cat >>conftest.$ac_ext <<_ACEOF
24660 /* end confdefs.h. */
24662 /* Override any gcc2 internal prototype to avoid an error. */
24666 /* We use char because int might match the return type of a gcc2
24667 builtin and then its argument prototype would still apply. */
24677 rm -f conftest.$ac_objext conftest$ac_exeext
24678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24679 (eval $ac_link) 2>conftest.er1
24681 grep -v '^ *+' conftest.er1 >conftest.err
24683 cat conftest.err >&5
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); } &&
24686 { ac_try='test -z "$ac_c_werror_flag"
24687 || test ! -s conftest.err'
24688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24689 (eval $ac_try) 2>&5
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); }; } &&
24693 { ac_try='test -s conftest$ac_exeext'
24694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24695 (eval $ac_try) 2>&5
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); }; }; then
24699 ac_cv_lib_elf_elf_begin=yes
24701 echo "$as_me: failed program was:" >&5
24702 sed 's/^/| /' conftest.$ac_ext >&5
24704 ac_cv_lib_elf_elf_begin=no
24706 rm -f conftest.err conftest.$ac_objext \
24707 conftest$ac_exeext conftest.$ac_ext
24708 LIBS=$ac_check_lib_save_LIBS
24710 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24711 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24712 if test $ac_cv_lib_elf_elf_begin = yes; then
24713 cat >>confdefs.h <<_ACEOF
24714 #define HAVE_LIBELF 1
24722 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24723 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24724 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24725 echo $ECHO_N "(cached) $ECHO_C" >&6
24727 ac_func_search_save_LIBS=$LIBS
24728 ac_cv_search_lt_dlopen=no
24729 cat >conftest.$ac_ext <<_ACEOF
24732 cat confdefs.h >>conftest.$ac_ext
24733 cat >>conftest.$ac_ext <<_ACEOF
24734 /* end confdefs.h. */
24736 /* Override any gcc2 internal prototype to avoid an error. */
24740 /* We use char because int might match the return type of a gcc2
24741 builtin and then its argument prototype would still apply. */
24751 rm -f conftest.$ac_objext conftest$ac_exeext
24752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24753 (eval $ac_link) 2>conftest.er1
24755 grep -v '^ *+' conftest.er1 >conftest.err
24757 cat conftest.err >&5
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); } &&
24760 { ac_try='test -z "$ac_c_werror_flag"
24761 || test ! -s conftest.err'
24762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24763 (eval $ac_try) 2>&5
24765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766 (exit $ac_status); }; } &&
24767 { ac_try='test -s conftest$ac_exeext'
24768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24769 (eval $ac_try) 2>&5
24771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); }; }; then
24773 ac_cv_search_lt_dlopen="none required"
24775 echo "$as_me: failed program was:" >&5
24776 sed 's/^/| /' conftest.$ac_ext >&5
24779 rm -f conftest.err conftest.$ac_objext \
24780 conftest$ac_exeext conftest.$ac_ext
24781 if test "$ac_cv_search_lt_dlopen" = no; then
24782 for ac_lib in ltdl; do
24783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24784 cat >conftest.$ac_ext <<_ACEOF
24787 cat confdefs.h >>conftest.$ac_ext
24788 cat >>conftest.$ac_ext <<_ACEOF
24789 /* end confdefs.h. */
24791 /* Override any gcc2 internal prototype to avoid an error. */
24795 /* We use char because int might match the return type of a gcc2
24796 builtin and then its argument prototype would still apply. */
24806 rm -f conftest.$ac_objext conftest$ac_exeext
24807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24808 (eval $ac_link) 2>conftest.er1
24810 grep -v '^ *+' conftest.er1 >conftest.err
24812 cat conftest.err >&5
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); } &&
24815 { ac_try='test -z "$ac_c_werror_flag"
24816 || test ! -s conftest.err'
24817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818 (eval $ac_try) 2>&5
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); }; } &&
24822 { ac_try='test -s conftest$ac_exeext'
24823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24824 (eval $ac_try) 2>&5
24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827 (exit $ac_status); }; }; then
24828 ac_cv_search_lt_dlopen="-l$ac_lib"
24831 echo "$as_me: failed program was:" >&5
24832 sed 's/^/| /' conftest.$ac_ext >&5
24835 rm -f conftest.err conftest.$ac_objext \
24836 conftest$ac_exeext conftest.$ac_ext
24839 LIBS=$ac_func_search_save_LIBS
24841 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24842 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24843 if test "$ac_cv_search_lt_dlopen" != no; then
24844 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24846 cat >>confdefs.h <<\_ACEOF
24847 #define HAVE_LT_DLOPEN 1
24851 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24852 not be available" >&5
24853 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24854 not be available" >&2;}
24858 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24859 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24860 if test "${ac_cv_search_dlopen+set}" = set; then
24861 echo $ECHO_N "(cached) $ECHO_C" >&6
24863 ac_func_search_save_LIBS=$LIBS
24864 ac_cv_search_dlopen=no
24865 cat >conftest.$ac_ext <<_ACEOF
24868 cat confdefs.h >>conftest.$ac_ext
24869 cat >>conftest.$ac_ext <<_ACEOF
24870 /* end confdefs.h. */
24872 /* Override any gcc2 internal prototype to avoid an error. */
24876 /* We use char because int might match the return type of a gcc2
24877 builtin and then its argument prototype would still apply. */
24887 rm -f conftest.$ac_objext conftest$ac_exeext
24888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24889 (eval $ac_link) 2>conftest.er1
24891 grep -v '^ *+' conftest.er1 >conftest.err
24893 cat conftest.err >&5
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); } &&
24896 { ac_try='test -z "$ac_c_werror_flag"
24897 || test ! -s conftest.err'
24898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24899 (eval $ac_try) 2>&5
24901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902 (exit $ac_status); }; } &&
24903 { ac_try='test -s conftest$ac_exeext'
24904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24905 (eval $ac_try) 2>&5
24907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); }; }; then
24909 ac_cv_search_dlopen="none required"
24911 echo "$as_me: failed program was:" >&5
24912 sed 's/^/| /' conftest.$ac_ext >&5
24915 rm -f conftest.err conftest.$ac_objext \
24916 conftest$ac_exeext conftest.$ac_ext
24917 if test "$ac_cv_search_dlopen" = no; then
24918 for ac_lib in dl; do
24919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24920 cat >conftest.$ac_ext <<_ACEOF
24923 cat confdefs.h >>conftest.$ac_ext
24924 cat >>conftest.$ac_ext <<_ACEOF
24925 /* end confdefs.h. */
24927 /* Override any gcc2 internal prototype to avoid an error. */
24931 /* We use char because int might match the return type of a gcc2
24932 builtin and then its argument prototype would still apply. */
24942 rm -f conftest.$ac_objext conftest$ac_exeext
24943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24944 (eval $ac_link) 2>conftest.er1
24946 grep -v '^ *+' conftest.er1 >conftest.err
24948 cat conftest.err >&5
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); } &&
24951 { ac_try='test -z "$ac_c_werror_flag"
24952 || test ! -s conftest.err'
24953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24954 (eval $ac_try) 2>&5
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); }; } &&
24958 { ac_try='test -s conftest$ac_exeext'
24959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24960 (eval $ac_try) 2>&5
24962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963 (exit $ac_status); }; }; then
24964 ac_cv_search_dlopen="-l$ac_lib"
24967 echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.$ac_ext >&5
24971 rm -f conftest.err conftest.$ac_objext \
24972 conftest$ac_exeext conftest.$ac_ext
24975 LIBS=$ac_func_search_save_LIBS
24977 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
24978 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
24979 if test "$ac_cv_search_dlopen" != no; then
24980 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
24982 cat >>confdefs.h <<\_ACEOF
24983 #define HAVE_DLOPEN 1
24987 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
24988 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
24992 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
24993 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
24994 if test "${ac_cv_search_mallinfo+set}" = set; then
24995 echo $ECHO_N "(cached) $ECHO_C" >&6
24997 ac_func_search_save_LIBS=$LIBS
24998 ac_cv_search_mallinfo=no
24999 cat >conftest.$ac_ext <<_ACEOF
25002 cat confdefs.h >>conftest.$ac_ext
25003 cat >>conftest.$ac_ext <<_ACEOF
25004 /* end confdefs.h. */
25006 /* Override any gcc2 internal prototype to avoid an error. */
25010 /* We use char because int might match the return type of a gcc2
25011 builtin and then its argument prototype would still apply. */
25021 rm -f conftest.$ac_objext conftest$ac_exeext
25022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25023 (eval $ac_link) 2>conftest.er1
25025 grep -v '^ *+' conftest.er1 >conftest.err
25027 cat conftest.err >&5
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); } &&
25030 { ac_try='test -z "$ac_c_werror_flag"
25031 || test ! -s conftest.err'
25032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25033 (eval $ac_try) 2>&5
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); }; } &&
25037 { ac_try='test -s conftest$ac_exeext'
25038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25039 (eval $ac_try) 2>&5
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); }; }; then
25043 ac_cv_search_mallinfo="none required"
25045 echo "$as_me: failed program was:" >&5
25046 sed 's/^/| /' conftest.$ac_ext >&5
25049 rm -f conftest.err conftest.$ac_objext \
25050 conftest$ac_exeext conftest.$ac_ext
25051 if test "$ac_cv_search_mallinfo" = no; then
25052 for ac_lib in malloc; do
25053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25054 cat >conftest.$ac_ext <<_ACEOF
25057 cat confdefs.h >>conftest.$ac_ext
25058 cat >>conftest.$ac_ext <<_ACEOF
25059 /* end confdefs.h. */
25061 /* Override any gcc2 internal prototype to avoid an error. */
25065 /* We use char because int might match the return type of a gcc2
25066 builtin and then its argument prototype would still apply. */
25076 rm -f conftest.$ac_objext conftest$ac_exeext
25077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25078 (eval $ac_link) 2>conftest.er1
25080 grep -v '^ *+' conftest.er1 >conftest.err
25082 cat conftest.err >&5
25083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084 (exit $ac_status); } &&
25085 { ac_try='test -z "$ac_c_werror_flag"
25086 || test ! -s conftest.err'
25087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25088 (eval $ac_try) 2>&5
25090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 (exit $ac_status); }; } &&
25092 { ac_try='test -s conftest$ac_exeext'
25093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25094 (eval $ac_try) 2>&5
25096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097 (exit $ac_status); }; }; then
25098 ac_cv_search_mallinfo="-l$ac_lib"
25101 echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.$ac_ext >&5
25105 rm -f conftest.err conftest.$ac_objext \
25106 conftest$ac_exeext conftest.$ac_ext
25109 LIBS=$ac_func_search_save_LIBS
25111 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25112 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25113 if test "$ac_cv_search_mallinfo" != no; then
25114 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25116 cat >>confdefs.h <<\_ACEOF
25117 #define HAVE_MALLINFO 1
25123 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25124 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25125 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25126 echo $ECHO_N "(cached) $ECHO_C" >&6
25128 ac_func_search_save_LIBS=$LIBS
25129 ac_cv_search_pthread_mutex_lock=no
25130 cat >conftest.$ac_ext <<_ACEOF
25133 cat confdefs.h >>conftest.$ac_ext
25134 cat >>conftest.$ac_ext <<_ACEOF
25135 /* end confdefs.h. */
25137 /* Override any gcc2 internal prototype to avoid an error. */
25141 /* We use char because int might match the return type of a gcc2
25142 builtin and then its argument prototype would still apply. */
25143 char pthread_mutex_lock ();
25147 pthread_mutex_lock ();
25152 rm -f conftest.$ac_objext conftest$ac_exeext
25153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25154 (eval $ac_link) 2>conftest.er1
25156 grep -v '^ *+' conftest.er1 >conftest.err
25158 cat conftest.err >&5
25159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160 (exit $ac_status); } &&
25161 { ac_try='test -z "$ac_c_werror_flag"
25162 || test ! -s conftest.err'
25163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25164 (eval $ac_try) 2>&5
25166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167 (exit $ac_status); }; } &&
25168 { ac_try='test -s conftest$ac_exeext'
25169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25170 (eval $ac_try) 2>&5
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); }; }; then
25174 ac_cv_search_pthread_mutex_lock="none required"
25176 echo "$as_me: failed program was:" >&5
25177 sed 's/^/| /' conftest.$ac_ext >&5
25180 rm -f conftest.err conftest.$ac_objext \
25181 conftest$ac_exeext conftest.$ac_ext
25182 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25183 for ac_lib in pthread; do
25184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25185 cat >conftest.$ac_ext <<_ACEOF
25188 cat confdefs.h >>conftest.$ac_ext
25189 cat >>conftest.$ac_ext <<_ACEOF
25190 /* end confdefs.h. */
25192 /* Override any gcc2 internal prototype to avoid an error. */
25196 /* We use char because int might match the return type of a gcc2
25197 builtin and then its argument prototype would still apply. */
25198 char pthread_mutex_lock ();
25202 pthread_mutex_lock ();
25207 rm -f conftest.$ac_objext conftest$ac_exeext
25208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25209 (eval $ac_link) 2>conftest.er1
25211 grep -v '^ *+' conftest.er1 >conftest.err
25213 cat conftest.err >&5
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); } &&
25216 { ac_try='test -z "$ac_c_werror_flag"
25217 || test ! -s conftest.err'
25218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25219 (eval $ac_try) 2>&5
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; } &&
25223 { ac_try='test -s conftest$ac_exeext'
25224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25225 (eval $ac_try) 2>&5
25227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228 (exit $ac_status); }; }; then
25229 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25232 echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25236 rm -f conftest.err conftest.$ac_objext \
25237 conftest$ac_exeext conftest.$ac_ext
25240 LIBS=$ac_func_search_save_LIBS
25242 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25243 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25244 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25245 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25247 cat >>confdefs.h <<\_ACEOF
25248 #define HAVE_PTHREAD_MUTEX_LOCK 1
25255 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25256 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25257 if test "${ac_cv_header_stdc+set}" = set; then
25258 echo $ECHO_N "(cached) $ECHO_C" >&6
25260 cat >conftest.$ac_ext <<_ACEOF
25263 cat confdefs.h >>conftest.$ac_ext
25264 cat >>conftest.$ac_ext <<_ACEOF
25265 /* end confdefs.h. */
25266 #include <stdlib.h>
25267 #include <stdarg.h>
25268 #include <string.h>
25279 rm -f conftest.$ac_objext
25280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25281 (eval $ac_compile) 2>conftest.er1
25283 grep -v '^ *+' conftest.er1 >conftest.err
25285 cat conftest.err >&5
25286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287 (exit $ac_status); } &&
25288 { ac_try='test -z "$ac_c_werror_flag"
25289 || test ! -s conftest.err'
25290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25291 (eval $ac_try) 2>&5
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); }; } &&
25295 { ac_try='test -s conftest.$ac_objext'
25296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25297 (eval $ac_try) 2>&5
25299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300 (exit $ac_status); }; }; then
25301 ac_cv_header_stdc=yes
25303 echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25306 ac_cv_header_stdc=no
25308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25310 if test $ac_cv_header_stdc = yes; then
25311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25312 cat >conftest.$ac_ext <<_ACEOF
25315 cat confdefs.h >>conftest.$ac_ext
25316 cat >>conftest.$ac_ext <<_ACEOF
25317 /* end confdefs.h. */
25318 #include <string.h>
25321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25322 $EGREP "memchr" >/dev/null 2>&1; then
25325 ac_cv_header_stdc=no
25331 if test $ac_cv_header_stdc = yes; then
25332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25333 cat >conftest.$ac_ext <<_ACEOF
25336 cat confdefs.h >>conftest.$ac_ext
25337 cat >>conftest.$ac_ext <<_ACEOF
25338 /* end confdefs.h. */
25339 #include <stdlib.h>
25342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25343 $EGREP "free" >/dev/null 2>&1; then
25346 ac_cv_header_stdc=no
25352 if test $ac_cv_header_stdc = yes; then
25353 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25354 if test "$cross_compiling" = yes; then
25357 cat >conftest.$ac_ext <<_ACEOF
25360 cat confdefs.h >>conftest.$ac_ext
25361 cat >>conftest.$ac_ext <<_ACEOF
25362 /* end confdefs.h. */
25364 #if ((' ' & 0x0FF) == 0x020)
25365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25368 # define ISLOWER(c) \
25369 (('a' <= (c) && (c) <= 'i') \
25370 || ('j' <= (c) && (c) <= 'r') \
25371 || ('s' <= (c) && (c) <= 'z'))
25372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25380 for (i = 0; i < 256; i++)
25381 if (XOR (islower (i), ISLOWER (i))
25382 || toupper (i) != TOUPPER (i))
25387 rm -f conftest$ac_exeext
25388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25389 (eval $ac_link) 2>&5
25391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25394 (eval $ac_try) 2>&5
25396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397 (exit $ac_status); }; }; then
25400 echo "$as_me: program exited with status $ac_status" >&5
25401 echo "$as_me: failed program was:" >&5
25402 sed 's/^/| /' conftest.$ac_ext >&5
25404 ( exit $ac_status )
25405 ac_cv_header_stdc=no
25407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25411 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25412 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25413 if test $ac_cv_header_stdc = yes; then
25415 cat >>confdefs.h <<\_ACEOF
25416 #define STDC_HEADERS 1
25422 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25423 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25424 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25425 echo $ECHO_N "(cached) $ECHO_C" >&6
25427 cat >conftest.$ac_ext <<_ACEOF
25430 cat confdefs.h >>conftest.$ac_ext
25431 cat >>conftest.$ac_ext <<_ACEOF
25432 /* end confdefs.h. */
25433 #include <sys/types.h>
25434 #include <sys/wait.h>
25435 #ifndef WEXITSTATUS
25436 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25439 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25447 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25452 rm -f conftest.$ac_objext
25453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25454 (eval $ac_compile) 2>conftest.er1
25456 grep -v '^ *+' conftest.er1 >conftest.err
25458 cat conftest.err >&5
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); } &&
25461 { ac_try='test -z "$ac_c_werror_flag"
25462 || test ! -s conftest.err'
25463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25464 (eval $ac_try) 2>&5
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); }; } &&
25468 { ac_try='test -s conftest.$ac_objext'
25469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25470 (eval $ac_try) 2>&5
25472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473 (exit $ac_status); }; }; then
25474 ac_cv_header_sys_wait_h=yes
25476 echo "$as_me: failed program was:" >&5
25477 sed 's/^/| /' conftest.$ac_ext >&5
25479 ac_cv_header_sys_wait_h=no
25481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25483 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25484 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25485 if test $ac_cv_header_sys_wait_h = yes; then
25487 cat >>confdefs.h <<\_ACEOF
25488 #define HAVE_SYS_WAIT_H 1
25498 for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
25500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25502 echo "$as_me:$LINENO: checking for $ac_header" >&5
25503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25505 echo $ECHO_N "(cached) $ECHO_C" >&6
25507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25510 # Is the header compilable?
25511 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25513 cat >conftest.$ac_ext <<_ACEOF
25516 cat confdefs.h >>conftest.$ac_ext
25517 cat >>conftest.$ac_ext <<_ACEOF
25518 /* end confdefs.h. */
25519 $ac_includes_default
25520 #include <$ac_header>
25522 rm -f conftest.$ac_objext
25523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25524 (eval $ac_compile) 2>conftest.er1
25526 grep -v '^ *+' conftest.er1 >conftest.err
25528 cat conftest.err >&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); } &&
25531 { ac_try='test -z "$ac_c_werror_flag"
25532 || test ! -s conftest.err'
25533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534 (eval $ac_try) 2>&5
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); }; } &&
25538 { ac_try='test -s conftest.$ac_objext'
25539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540 (eval $ac_try) 2>&5
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); }; }; then
25544 ac_header_compiler=yes
25546 echo "$as_me: failed program was:" >&5
25547 sed 's/^/| /' conftest.$ac_ext >&5
25549 ac_header_compiler=no
25551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25553 echo "${ECHO_T}$ac_header_compiler" >&6
25555 # Is the header present?
25556 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25558 cat >conftest.$ac_ext <<_ACEOF
25561 cat confdefs.h >>conftest.$ac_ext
25562 cat >>conftest.$ac_ext <<_ACEOF
25563 /* end confdefs.h. */
25564 #include <$ac_header>
25566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25569 grep -v '^ *+' conftest.er1 >conftest.err
25571 cat conftest.err >&5
25572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); } >/dev/null; then
25574 if test -s conftest.err; then
25575 ac_cpp_err=$ac_c_preproc_warn_flag
25576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25583 if test -z "$ac_cpp_err"; then
25584 ac_header_preproc=yes
25586 echo "$as_me: failed program was:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25589 ac_header_preproc=no
25591 rm -f conftest.err conftest.$ac_ext
25592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25593 echo "${ECHO_T}$ac_header_preproc" >&6
25595 # So? What about this header?
25596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25602 ac_header_preproc=yes
25605 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25607 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25608 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25609 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25611 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25612 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25615 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25619 ## ----------------------------------- ##
25620 ## Report this to llvmbugs@cs.uiuc.edu ##
25621 ## ----------------------------------- ##
25624 sed "s/^/$as_me: WARNING: /" >&2
25627 echo "$as_me:$LINENO: checking for $ac_header" >&5
25628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25630 echo $ECHO_N "(cached) $ECHO_C" >&6
25632 eval "$as_ac_Header=\$ac_header_preproc"
25634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25639 cat >>confdefs.h <<_ACEOF
25640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25652 for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
25654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25664 # Is the header compilable?
25665 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25667 cat >conftest.$ac_ext <<_ACEOF
25670 cat confdefs.h >>conftest.$ac_ext
25671 cat >>conftest.$ac_ext <<_ACEOF
25672 /* end confdefs.h. */
25673 $ac_includes_default
25674 #include <$ac_header>
25676 rm -f conftest.$ac_objext
25677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25678 (eval $ac_compile) 2>conftest.er1
25680 grep -v '^ *+' conftest.er1 >conftest.err
25682 cat conftest.err >&5
25683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); } &&
25685 { ac_try='test -z "$ac_c_werror_flag"
25686 || test ! -s conftest.err'
25687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25688 (eval $ac_try) 2>&5
25690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691 (exit $ac_status); }; } &&
25692 { ac_try='test -s conftest.$ac_objext'
25693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25694 (eval $ac_try) 2>&5
25696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697 (exit $ac_status); }; }; then
25698 ac_header_compiler=yes
25700 echo "$as_me: failed program was:" >&5
25701 sed 's/^/| /' conftest.$ac_ext >&5
25703 ac_header_compiler=no
25705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25707 echo "${ECHO_T}$ac_header_compiler" >&6
25709 # Is the header present?
25710 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25712 cat >conftest.$ac_ext <<_ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h. */
25718 #include <$ac_header>
25720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25723 grep -v '^ *+' conftest.er1 >conftest.err
25725 cat conftest.err >&5
25726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); } >/dev/null; then
25728 if test -s conftest.err; then
25729 ac_cpp_err=$ac_c_preproc_warn_flag
25730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25737 if test -z "$ac_cpp_err"; then
25738 ac_header_preproc=yes
25740 echo "$as_me: failed program was:" >&5
25741 sed 's/^/| /' conftest.$ac_ext >&5
25743 ac_header_preproc=no
25745 rm -f conftest.err conftest.$ac_ext
25746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25747 echo "${ECHO_T}$ac_header_preproc" >&6
25749 # So? What about this header?
25750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25756 ac_header_preproc=yes
25759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25766 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25773 ## ----------------------------------- ##
25774 ## Report this to llvmbugs@cs.uiuc.edu ##
25775 ## ----------------------------------- ##
25778 sed "s/^/$as_me: WARNING: /" >&2
25781 echo "$as_me:$LINENO: checking for $ac_header" >&5
25782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25784 echo $ECHO_N "(cached) $ECHO_C" >&6
25786 eval "$as_ac_Header=\$ac_header_preproc"
25788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25793 cat >>confdefs.h <<_ACEOF
25794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25804 for ac_header in malloc.h unistd.h windows.h
25806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25808 echo "$as_me:$LINENO: checking for $ac_header" >&5
25809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25811 echo $ECHO_N "(cached) $ECHO_C" >&6
25813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25816 # Is the header compilable?
25817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25819 cat >conftest.$ac_ext <<_ACEOF
25822 cat confdefs.h >>conftest.$ac_ext
25823 cat >>conftest.$ac_ext <<_ACEOF
25824 /* end confdefs.h. */
25825 $ac_includes_default
25826 #include <$ac_header>
25828 rm -f conftest.$ac_objext
25829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25830 (eval $ac_compile) 2>conftest.er1
25832 grep -v '^ *+' conftest.er1 >conftest.err
25834 cat conftest.err >&5
25835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836 (exit $ac_status); } &&
25837 { ac_try='test -z "$ac_c_werror_flag"
25838 || test ! -s conftest.err'
25839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840 (eval $ac_try) 2>&5
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); }; } &&
25844 { ac_try='test -s conftest.$ac_objext'
25845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846 (eval $ac_try) 2>&5
25848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); }; }; then
25850 ac_header_compiler=yes
25852 echo "$as_me: failed program was:" >&5
25853 sed 's/^/| /' conftest.$ac_ext >&5
25855 ac_header_compiler=no
25857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25859 echo "${ECHO_T}$ac_header_compiler" >&6
25861 # Is the header present?
25862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25864 cat >conftest.$ac_ext <<_ACEOF
25867 cat confdefs.h >>conftest.$ac_ext
25868 cat >>conftest.$ac_ext <<_ACEOF
25869 /* end confdefs.h. */
25870 #include <$ac_header>
25872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25875 grep -v '^ *+' conftest.er1 >conftest.err
25877 cat conftest.err >&5
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); } >/dev/null; then
25880 if test -s conftest.err; then
25881 ac_cpp_err=$ac_c_preproc_warn_flag
25882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25889 if test -z "$ac_cpp_err"; then
25890 ac_header_preproc=yes
25892 echo "$as_me: failed program was:" >&5
25893 sed 's/^/| /' conftest.$ac_ext >&5
25895 ac_header_preproc=no
25897 rm -f conftest.err conftest.$ac_ext
25898 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25899 echo "${ECHO_T}$ac_header_preproc" >&6
25901 # So? What about this header?
25902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25908 ac_header_preproc=yes
25911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25925 ## ----------------------------------- ##
25926 ## Report this to llvmbugs@cs.uiuc.edu ##
25927 ## ----------------------------------- ##
25930 sed "s/^/$as_me: WARNING: /" >&2
25933 echo "$as_me:$LINENO: checking for $ac_header" >&5
25934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25936 echo $ECHO_N "(cached) $ECHO_C" >&6
25938 eval "$as_ac_Header=\$ac_header_preproc"
25940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25945 cat >>confdefs.h <<_ACEOF
25946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25953 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25954 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25955 if test "${ac_cv_header_time+set}" = set; then
25956 echo $ECHO_N "(cached) $ECHO_C" >&6
25958 cat >conftest.$ac_ext <<_ACEOF
25961 cat confdefs.h >>conftest.$ac_ext
25962 cat >>conftest.$ac_ext <<_ACEOF
25963 /* end confdefs.h. */
25964 #include <sys/types.h>
25965 #include <sys/time.h>
25971 if ((struct tm *) 0)
25977 rm -f conftest.$ac_objext
25978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25979 (eval $ac_compile) 2>conftest.er1
25981 grep -v '^ *+' conftest.er1 >conftest.err
25983 cat conftest.err >&5
25984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985 (exit $ac_status); } &&
25986 { ac_try='test -z "$ac_c_werror_flag"
25987 || test ! -s conftest.err'
25988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25989 (eval $ac_try) 2>&5
25991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); }; } &&
25993 { ac_try='test -s conftest.$ac_objext'
25994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25995 (eval $ac_try) 2>&5
25997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998 (exit $ac_status); }; }; then
25999 ac_cv_header_time=yes
26001 echo "$as_me: failed program was:" >&5
26002 sed 's/^/| /' conftest.$ac_ext >&5
26004 ac_cv_header_time=no
26006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26008 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26009 echo "${ECHO_T}$ac_cv_header_time" >&6
26010 if test $ac_cv_header_time = yes; then
26012 cat >>confdefs.h <<\_ACEOF
26013 #define TIME_WITH_SYS_TIME 1
26018 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26019 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26020 if test "${ac_cv_header_mmap_anon+set}" = set; then
26021 echo $ECHO_N "(cached) $ECHO_C" >&6
26024 ac_cpp='$CPP $CPPFLAGS'
26025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26029 cat >conftest.$ac_ext <<_ACEOF
26032 cat confdefs.h >>conftest.$ac_ext
26033 cat >>conftest.$ac_ext <<_ACEOF
26034 /* end confdefs.h. */
26035 #include <sys/mman.h>
26036 #include <unistd.h>
26041 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26046 rm -f conftest.$ac_objext
26047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26048 (eval $ac_compile) 2>conftest.er1
26050 grep -v '^ *+' conftest.er1 >conftest.err
26052 cat conftest.err >&5
26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 (exit $ac_status); } &&
26055 { ac_try='test -z "$ac_c_werror_flag"
26056 || test ! -s conftest.err'
26057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26058 (eval $ac_try) 2>&5
26060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061 (exit $ac_status); }; } &&
26062 { ac_try='test -s conftest.$ac_objext'
26063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26064 (eval $ac_try) 2>&5
26066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067 (exit $ac_status); }; }; then
26068 ac_cv_header_mmap_anon=yes
26070 echo "$as_me: failed program was:" >&5
26071 sed 's/^/| /' conftest.$ac_ext >&5
26073 ac_cv_header_mmap_anon=no
26075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26077 ac_cpp='$CPP $CPPFLAGS'
26078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26084 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26085 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26086 if test "$ac_cv_header_mmap_anon" = yes; then
26088 cat >>confdefs.h <<\_ACEOF
26089 #define HAVE_MMAP_ANONYMOUS
26097 for ac_header in inttypes.h stdint.h
26099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26101 echo "$as_me:$LINENO: checking for $ac_header" >&5
26102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26104 echo $ECHO_N "(cached) $ECHO_C" >&6
26106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26109 # Is the header compilable?
26110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26112 cat >conftest.$ac_ext <<_ACEOF
26115 cat confdefs.h >>conftest.$ac_ext
26116 cat >>conftest.$ac_ext <<_ACEOF
26117 /* end confdefs.h. */
26118 $ac_includes_default
26119 #include <$ac_header>
26121 rm -f conftest.$ac_objext
26122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26123 (eval $ac_compile) 2>conftest.er1
26125 grep -v '^ *+' conftest.er1 >conftest.err
26127 cat conftest.err >&5
26128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129 (exit $ac_status); } &&
26130 { ac_try='test -z "$ac_c_werror_flag"
26131 || test ! -s conftest.err'
26132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133 (eval $ac_try) 2>&5
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); }; } &&
26137 { ac_try='test -s conftest.$ac_objext'
26138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26139 (eval $ac_try) 2>&5
26141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142 (exit $ac_status); }; }; then
26143 ac_header_compiler=yes
26145 echo "$as_me: failed program was:" >&5
26146 sed 's/^/| /' conftest.$ac_ext >&5
26148 ac_header_compiler=no
26150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26152 echo "${ECHO_T}$ac_header_compiler" >&6
26154 # Is the header present?
26155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26157 cat >conftest.$ac_ext <<_ACEOF
26160 cat confdefs.h >>conftest.$ac_ext
26161 cat >>conftest.$ac_ext <<_ACEOF
26162 /* end confdefs.h. */
26163 #include <$ac_header>
26165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26168 grep -v '^ *+' conftest.er1 >conftest.err
26170 cat conftest.err >&5
26171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172 (exit $ac_status); } >/dev/null; then
26173 if test -s conftest.err; then
26174 ac_cpp_err=$ac_c_preproc_warn_flag
26175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26182 if test -z "$ac_cpp_err"; then
26183 ac_header_preproc=yes
26185 echo "$as_me: failed program was:" >&5
26186 sed 's/^/| /' conftest.$ac_ext >&5
26188 ac_header_preproc=no
26190 rm -f conftest.err conftest.$ac_ext
26191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26192 echo "${ECHO_T}$ac_header_preproc" >&6
26194 # So? What about this header?
26195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26201 ac_header_preproc=yes
26204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26211 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26218 ## ----------------------------------- ##
26219 ## Report this to llvmbugs@cs.uiuc.edu ##
26220 ## ----------------------------------- ##
26223 sed "s/^/$as_me: WARNING: /" >&2
26226 echo "$as_me:$LINENO: checking for $ac_header" >&5
26227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26229 echo $ECHO_N "(cached) $ECHO_C" >&6
26231 eval "$as_ac_Header=\$ac_header_preproc"
26233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26238 cat >>confdefs.h <<_ACEOF
26239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26248 echo "$as_me:$LINENO: checking for pid_t" >&5
26249 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26250 if test "${ac_cv_type_pid_t+set}" = set; then
26251 echo $ECHO_N "(cached) $ECHO_C" >&6
26253 cat >conftest.$ac_ext <<_ACEOF
26256 cat confdefs.h >>conftest.$ac_ext
26257 cat >>conftest.$ac_ext <<_ACEOF
26258 /* end confdefs.h. */
26259 $ac_includes_default
26265 if (sizeof (pid_t))
26271 rm -f conftest.$ac_objext
26272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26273 (eval $ac_compile) 2>conftest.er1
26275 grep -v '^ *+' conftest.er1 >conftest.err
26277 cat conftest.err >&5
26278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279 (exit $ac_status); } &&
26280 { ac_try='test -z "$ac_c_werror_flag"
26281 || test ! -s conftest.err'
26282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26283 (eval $ac_try) 2>&5
26285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286 (exit $ac_status); }; } &&
26287 { ac_try='test -s conftest.$ac_objext'
26288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26289 (eval $ac_try) 2>&5
26291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292 (exit $ac_status); }; }; then
26293 ac_cv_type_pid_t=yes
26295 echo "$as_me: failed program was:" >&5
26296 sed 's/^/| /' conftest.$ac_ext >&5
26298 ac_cv_type_pid_t=no
26300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26302 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26303 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26304 if test $ac_cv_type_pid_t = yes; then
26308 cat >>confdefs.h <<_ACEOF
26314 echo "$as_me:$LINENO: checking for size_t" >&5
26315 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26316 if test "${ac_cv_type_size_t+set}" = set; then
26317 echo $ECHO_N "(cached) $ECHO_C" >&6
26319 cat >conftest.$ac_ext <<_ACEOF
26322 cat confdefs.h >>conftest.$ac_ext
26323 cat >>conftest.$ac_ext <<_ACEOF
26324 /* end confdefs.h. */
26325 $ac_includes_default
26331 if (sizeof (size_t))
26337 rm -f conftest.$ac_objext
26338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26339 (eval $ac_compile) 2>conftest.er1
26341 grep -v '^ *+' conftest.er1 >conftest.err
26343 cat conftest.err >&5
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); } &&
26346 { ac_try='test -z "$ac_c_werror_flag"
26347 || test ! -s conftest.err'
26348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26349 (eval $ac_try) 2>&5
26351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); }; } &&
26353 { ac_try='test -s conftest.$ac_objext'
26354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26355 (eval $ac_try) 2>&5
26357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358 (exit $ac_status); }; }; then
26359 ac_cv_type_size_t=yes
26361 echo "$as_me: failed program was:" >&5
26362 sed 's/^/| /' conftest.$ac_ext >&5
26364 ac_cv_type_size_t=no
26366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26368 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26369 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26370 if test $ac_cv_type_size_t = yes; then
26374 cat >>confdefs.h <<_ACEOF
26375 #define size_t unsigned
26380 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26381 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26382 if test "${ac_cv_type_signal+set}" = set; then
26383 echo $ECHO_N "(cached) $ECHO_C" >&6
26385 cat >conftest.$ac_ext <<_ACEOF
26388 cat confdefs.h >>conftest.$ac_ext
26389 cat >>conftest.$ac_ext <<_ACEOF
26390 /* end confdefs.h. */
26391 #include <sys/types.h>
26392 #include <signal.h>
26397 extern "C" void (*signal (int, void (*)(int)))(int);
26399 void (*signal ()) ();
26410 rm -f conftest.$ac_objext
26411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26412 (eval $ac_compile) 2>conftest.er1
26414 grep -v '^ *+' conftest.er1 >conftest.err
26416 cat conftest.err >&5
26417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 (exit $ac_status); } &&
26419 { ac_try='test -z "$ac_c_werror_flag"
26420 || test ! -s conftest.err'
26421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26422 (eval $ac_try) 2>&5
26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425 (exit $ac_status); }; } &&
26426 { ac_try='test -s conftest.$ac_objext'
26427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26428 (eval $ac_try) 2>&5
26430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431 (exit $ac_status); }; }; then
26432 ac_cv_type_signal=void
26434 echo "$as_me: failed program was:" >&5
26435 sed 's/^/| /' conftest.$ac_ext >&5
26437 ac_cv_type_signal=int
26439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26441 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26442 echo "${ECHO_T}$ac_cv_type_signal" >&6
26444 cat >>confdefs.h <<_ACEOF
26445 #define RETSIGTYPE $ac_cv_type_signal
26449 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26450 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26451 if test "${ac_cv_struct_tm+set}" = set; then
26452 echo $ECHO_N "(cached) $ECHO_C" >&6
26454 cat >conftest.$ac_ext <<_ACEOF
26457 cat confdefs.h >>conftest.$ac_ext
26458 cat >>conftest.$ac_ext <<_ACEOF
26459 /* end confdefs.h. */
26460 #include <sys/types.h>
26466 struct tm *tp; tp->tm_sec;
26471 rm -f conftest.$ac_objext
26472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26473 (eval $ac_compile) 2>conftest.er1
26475 grep -v '^ *+' conftest.er1 >conftest.err
26477 cat conftest.err >&5
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); } &&
26480 { ac_try='test -z "$ac_c_werror_flag"
26481 || test ! -s conftest.err'
26482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483 (eval $ac_try) 2>&5
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); }; } &&
26487 { ac_try='test -s conftest.$ac_objext'
26488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; }; then
26493 ac_cv_struct_tm=time.h
26495 echo "$as_me: failed program was:" >&5
26496 sed 's/^/| /' conftest.$ac_ext >&5
26498 ac_cv_struct_tm=sys/time.h
26500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26502 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26503 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26504 if test $ac_cv_struct_tm = sys/time.h; then
26506 cat >>confdefs.h <<\_ACEOF
26507 #define TM_IN_SYS_TIME 1
26512 echo "$as_me:$LINENO: checking for int64_t" >&5
26513 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26514 if test "${ac_cv_type_int64_t+set}" = set; then
26515 echo $ECHO_N "(cached) $ECHO_C" >&6
26517 cat >conftest.$ac_ext <<_ACEOF
26520 cat confdefs.h >>conftest.$ac_ext
26521 cat >>conftest.$ac_ext <<_ACEOF
26522 /* end confdefs.h. */
26523 $ac_includes_default
26529 if (sizeof (int64_t))
26535 rm -f conftest.$ac_objext
26536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26537 (eval $ac_compile) 2>conftest.er1
26539 grep -v '^ *+' conftest.er1 >conftest.err
26541 cat conftest.err >&5
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); } &&
26544 { ac_try='test -z "$ac_c_werror_flag"
26545 || test ! -s conftest.err'
26546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547 (eval $ac_try) 2>&5
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); }; } &&
26551 { ac_try='test -s conftest.$ac_objext'
26552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26553 (eval $ac_try) 2>&5
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); }; }; then
26557 ac_cv_type_int64_t=yes
26559 echo "$as_me: failed program was:" >&5
26560 sed 's/^/| /' conftest.$ac_ext >&5
26562 ac_cv_type_int64_t=no
26564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26566 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26567 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26568 if test $ac_cv_type_int64_t = yes; then
26570 cat >>confdefs.h <<_ACEOF
26571 #define HAVE_INT64_T 1
26576 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26577 echo "$as_me: error: Type int64_t required but not found" >&2;}
26578 { (exit 1); exit 1; }; }
26581 echo "$as_me:$LINENO: checking for uint64_t" >&5
26582 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26583 if test "${ac_cv_type_uint64_t+set}" = set; then
26584 echo $ECHO_N "(cached) $ECHO_C" >&6
26586 cat >conftest.$ac_ext <<_ACEOF
26589 cat confdefs.h >>conftest.$ac_ext
26590 cat >>conftest.$ac_ext <<_ACEOF
26591 /* end confdefs.h. */
26592 $ac_includes_default
26596 if ((uint64_t *) 0)
26598 if (sizeof (uint64_t))
26604 rm -f conftest.$ac_objext
26605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26606 (eval $ac_compile) 2>conftest.er1
26608 grep -v '^ *+' conftest.er1 >conftest.err
26610 cat conftest.err >&5
26611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612 (exit $ac_status); } &&
26613 { ac_try='test -z "$ac_c_werror_flag"
26614 || test ! -s conftest.err'
26615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616 (eval $ac_try) 2>&5
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); }; } &&
26620 { ac_try='test -s conftest.$ac_objext'
26621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26622 (eval $ac_try) 2>&5
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); }; }; then
26626 ac_cv_type_uint64_t=yes
26628 echo "$as_me: failed program was:" >&5
26629 sed 's/^/| /' conftest.$ac_ext >&5
26631 ac_cv_type_uint64_t=no
26633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26635 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26636 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26637 if test $ac_cv_type_uint64_t = yes; then
26639 cat >>confdefs.h <<_ACEOF
26640 #define HAVE_UINT64_T 1
26645 echo "$as_me:$LINENO: checking for u_int64_t" >&5
26646 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26647 if test "${ac_cv_type_u_int64_t+set}" = set; then
26648 echo $ECHO_N "(cached) $ECHO_C" >&6
26650 cat >conftest.$ac_ext <<_ACEOF
26653 cat confdefs.h >>conftest.$ac_ext
26654 cat >>conftest.$ac_ext <<_ACEOF
26655 /* end confdefs.h. */
26656 $ac_includes_default
26660 if ((u_int64_t *) 0)
26662 if (sizeof (u_int64_t))
26668 rm -f conftest.$ac_objext
26669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26670 (eval $ac_compile) 2>conftest.er1
26672 grep -v '^ *+' conftest.er1 >conftest.err
26674 cat conftest.err >&5
26675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); } &&
26677 { ac_try='test -z "$ac_c_werror_flag"
26678 || test ! -s conftest.err'
26679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680 (eval $ac_try) 2>&5
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); }; } &&
26684 { ac_try='test -s conftest.$ac_objext'
26685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686 (eval $ac_try) 2>&5
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); }; }; then
26690 ac_cv_type_u_int64_t=yes
26692 echo "$as_me: failed program was:" >&5
26693 sed 's/^/| /' conftest.$ac_ext >&5
26695 ac_cv_type_u_int64_t=no
26697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26699 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26700 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26701 if test $ac_cv_type_u_int64_t = yes; then
26703 cat >>confdefs.h <<_ACEOF
26704 #define HAVE_U_INT64_T 1
26709 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26710 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26711 { (exit 1); exit 1; }; }
26724 for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp
26726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26727 echo "$as_me:$LINENO: checking for $ac_func" >&5
26728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26729 if eval "test \"\${$as_ac_var+set}\" = set"; then
26730 echo $ECHO_N "(cached) $ECHO_C" >&6
26732 cat >conftest.$ac_ext <<_ACEOF
26735 cat confdefs.h >>conftest.$ac_ext
26736 cat >>conftest.$ac_ext <<_ACEOF
26737 /* end confdefs.h. */
26738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26740 #define $ac_func innocuous_$ac_func
26742 /* System header to define __stub macros and hopefully few prototypes,
26743 which can conflict with char $ac_func (); below.
26744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26745 <limits.h> exists even on freestanding compilers. */
26748 # include <limits.h>
26750 # include <assert.h>
26755 /* Override any gcc2 internal prototype to avoid an error. */
26760 /* We use char because int might match the return type of a gcc2
26761 builtin and then its argument prototype would still apply. */
26763 /* The GNU C library defines this for functions which it implements
26764 to always fail with ENOSYS. Some functions are actually named
26765 something starting with __ and the normal name is an alias. */
26766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26769 char (*f) () = $ac_func;
26778 return f != $ac_func;
26783 rm -f conftest.$ac_objext conftest$ac_exeext
26784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26785 (eval $ac_link) 2>conftest.er1
26787 grep -v '^ *+' conftest.er1 >conftest.err
26789 cat conftest.err >&5
26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); } &&
26792 { ac_try='test -z "$ac_c_werror_flag"
26793 || test ! -s conftest.err'
26794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26795 (eval $ac_try) 2>&5
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); }; } &&
26799 { ac_try='test -s conftest$ac_exeext'
26800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26801 (eval $ac_try) 2>&5
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); }; }; then
26805 eval "$as_ac_var=yes"
26807 echo "$as_me: failed program was:" >&5
26808 sed 's/^/| /' conftest.$ac_ext >&5
26810 eval "$as_ac_var=no"
26812 rm -f conftest.err conftest.$ac_objext \
26813 conftest$ac_exeext conftest.$ac_ext
26815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26817 if test `eval echo '${'$as_ac_var'}'` = yes; then
26818 cat >>confdefs.h <<_ACEOF
26819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26828 for ac_func in strdup strtoq strtoll
26830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26831 echo "$as_me:$LINENO: checking for $ac_func" >&5
26832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26833 if eval "test \"\${$as_ac_var+set}\" = set"; then
26834 echo $ECHO_N "(cached) $ECHO_C" >&6
26836 cat >conftest.$ac_ext <<_ACEOF
26839 cat confdefs.h >>conftest.$ac_ext
26840 cat >>conftest.$ac_ext <<_ACEOF
26841 /* end confdefs.h. */
26842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26844 #define $ac_func innocuous_$ac_func
26846 /* System header to define __stub macros and hopefully few prototypes,
26847 which can conflict with char $ac_func (); below.
26848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26849 <limits.h> exists even on freestanding compilers. */
26852 # include <limits.h>
26854 # include <assert.h>
26859 /* Override any gcc2 internal prototype to avoid an error. */
26864 /* We use char because int might match the return type of a gcc2
26865 builtin and then its argument prototype would still apply. */
26867 /* The GNU C library defines this for functions which it implements
26868 to always fail with ENOSYS. Some functions are actually named
26869 something starting with __ and the normal name is an alias. */
26870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26873 char (*f) () = $ac_func;
26882 return f != $ac_func;
26887 rm -f conftest.$ac_objext conftest$ac_exeext
26888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26889 (eval $ac_link) 2>conftest.er1
26891 grep -v '^ *+' conftest.er1 >conftest.err
26893 cat conftest.err >&5
26894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895 (exit $ac_status); } &&
26896 { ac_try='test -z "$ac_c_werror_flag"
26897 || test ! -s conftest.err'
26898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26899 (eval $ac_try) 2>&5
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); }; } &&
26903 { ac_try='test -s conftest$ac_exeext'
26904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26905 (eval $ac_try) 2>&5
26907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908 (exit $ac_status); }; }; then
26909 eval "$as_ac_var=yes"
26911 echo "$as_me: failed program was:" >&5
26912 sed 's/^/| /' conftest.$ac_ext >&5
26914 eval "$as_ac_var=no"
26916 rm -f conftest.err conftest.$ac_objext \
26917 conftest$ac_exeext conftest.$ac_ext
26919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26921 if test `eval echo '${'$as_ac_var'}'` = yes; then
26922 cat >>confdefs.h <<_ACEOF
26923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26929 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
26930 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
26931 if test "${llvm_cv_c_printf_a+set}" = set; then
26932 echo $ECHO_N "(cached) $ECHO_C" >&6
26935 ac_cpp='$CPP $CPPFLAGS'
26936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26940 if test "$cross_compiling" = yes; then
26941 llvmac_cv_c_printf_a=no
26943 cat >conftest.$ac_ext <<_ACEOF
26947 cat confdefs.h >>conftest.$ac_ext
26948 cat >>conftest.$ac_ext <<_ACEOF
26949 /* end confdefs.h. */
26952 #include <stdlib.h>
26958 volatile double A, B;
26962 sprintf(Buffer, "%a", A);
26966 if (A != 0x1.999999999999ap-4)
26973 rm -f conftest$ac_exeext
26974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26975 (eval $ac_link) 2>&5
26977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26980 (eval $ac_try) 2>&5
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); }; }; then
26984 llvm_cv_c_printf_a=yes
26986 echo "$as_me: program exited with status $ac_status" >&5
26987 echo "$as_me: failed program was:" >&5
26988 sed 's/^/| /' conftest.$ac_ext >&5
26990 ( exit $ac_status )
26991 llvmac_cv_c_printf_a=no
26993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26996 ac_cpp='$CPP $CPPFLAGS'
26997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27002 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27003 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27004 if test "$llvm_cv_c_printf_a" = "yes"; then
27006 cat >>confdefs.h <<\_ACEOF
27007 #define HAVE_PRINTF_A 1
27012 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27013 # for constant arguments. Useless!
27014 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27015 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27016 if test "${ac_cv_working_alloca_h+set}" = set; then
27017 echo $ECHO_N "(cached) $ECHO_C" >&6
27019 cat >conftest.$ac_ext <<_ACEOF
27022 cat confdefs.h >>conftest.$ac_ext
27023 cat >>conftest.$ac_ext <<_ACEOF
27024 /* end confdefs.h. */
27025 #include <alloca.h>
27029 char *p = (char *) alloca (2 * sizeof (int));
27034 rm -f conftest.$ac_objext conftest$ac_exeext
27035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27036 (eval $ac_link) 2>conftest.er1
27038 grep -v '^ *+' conftest.er1 >conftest.err
27040 cat conftest.err >&5
27041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); } &&
27043 { ac_try='test -z "$ac_c_werror_flag"
27044 || test ! -s conftest.err'
27045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27046 (eval $ac_try) 2>&5
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); }; } &&
27050 { ac_try='test -s conftest$ac_exeext'
27051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27052 (eval $ac_try) 2>&5
27054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055 (exit $ac_status); }; }; then
27056 ac_cv_working_alloca_h=yes
27058 echo "$as_me: failed program was:" >&5
27059 sed 's/^/| /' conftest.$ac_ext >&5
27061 ac_cv_working_alloca_h=no
27063 rm -f conftest.err conftest.$ac_objext \
27064 conftest$ac_exeext conftest.$ac_ext
27066 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27067 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27068 if test $ac_cv_working_alloca_h = yes; then
27070 cat >>confdefs.h <<\_ACEOF
27071 #define HAVE_ALLOCA_H 1
27076 echo "$as_me:$LINENO: checking for alloca" >&5
27077 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27078 if test "${ac_cv_func_alloca_works+set}" = set; then
27079 echo $ECHO_N "(cached) $ECHO_C" >&6
27081 cat >conftest.$ac_ext <<_ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h. */
27088 # define alloca __builtin_alloca
27091 # include <malloc.h>
27092 # define alloca _alloca
27095 # include <alloca.h>
27100 # ifndef alloca /* predefined by HP cc +Olibcalls */
27111 char *p = (char *) alloca (1);
27116 rm -f conftest.$ac_objext conftest$ac_exeext
27117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27118 (eval $ac_link) 2>conftest.er1
27120 grep -v '^ *+' conftest.er1 >conftest.err
27122 cat conftest.err >&5
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); } &&
27125 { ac_try='test -z "$ac_c_werror_flag"
27126 || test ! -s conftest.err'
27127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27128 (eval $ac_try) 2>&5
27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); }; } &&
27132 { ac_try='test -s conftest$ac_exeext'
27133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27134 (eval $ac_try) 2>&5
27136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137 (exit $ac_status); }; }; then
27138 ac_cv_func_alloca_works=yes
27140 echo "$as_me: failed program was:" >&5
27141 sed 's/^/| /' conftest.$ac_ext >&5
27143 ac_cv_func_alloca_works=no
27145 rm -f conftest.err conftest.$ac_objext \
27146 conftest$ac_exeext conftest.$ac_ext
27148 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27149 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27151 if test $ac_cv_func_alloca_works = yes; then
27153 cat >>confdefs.h <<\_ACEOF
27154 #define HAVE_ALLOCA 1
27158 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27159 # that cause trouble. Some versions do not even contain alloca or
27160 # contain a buggy version. If you still want to use their alloca,
27161 # use ar to extract alloca.o from them instead of compiling alloca.c.
27163 ALLOCA=alloca.$ac_objext
27165 cat >>confdefs.h <<\_ACEOF
27170 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27171 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27172 if test "${ac_cv_os_cray+set}" = set; then
27173 echo $ECHO_N "(cached) $ECHO_C" >&6
27175 cat >conftest.$ac_ext <<_ACEOF
27178 cat confdefs.h >>conftest.$ac_ext
27179 cat >>conftest.$ac_ext <<_ACEOF
27180 /* end confdefs.h. */
27181 #if defined(CRAY) && ! defined(CRAY2)
27188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27189 $EGREP "webecray" >/dev/null 2>&1; then
27197 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27198 echo "${ECHO_T}$ac_cv_os_cray" >&6
27199 if test $ac_cv_os_cray = yes; then
27200 for ac_func in _getb67 GETB67 getb67; do
27201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27202 echo "$as_me:$LINENO: checking for $ac_func" >&5
27203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27204 if eval "test \"\${$as_ac_var+set}\" = set"; then
27205 echo $ECHO_N "(cached) $ECHO_C" >&6
27207 cat >conftest.$ac_ext <<_ACEOF
27210 cat confdefs.h >>conftest.$ac_ext
27211 cat >>conftest.$ac_ext <<_ACEOF
27212 /* end confdefs.h. */
27213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27215 #define $ac_func innocuous_$ac_func
27217 /* System header to define __stub macros and hopefully few prototypes,
27218 which can conflict with char $ac_func (); below.
27219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27220 <limits.h> exists even on freestanding compilers. */
27223 # include <limits.h>
27225 # include <assert.h>
27230 /* Override any gcc2 internal prototype to avoid an error. */
27235 /* We use char because int might match the return type of a gcc2
27236 builtin and then its argument prototype would still apply. */
27238 /* The GNU C library defines this for functions which it implements
27239 to always fail with ENOSYS. Some functions are actually named
27240 something starting with __ and the normal name is an alias. */
27241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27244 char (*f) () = $ac_func;
27253 return f != $ac_func;
27258 rm -f conftest.$ac_objext conftest$ac_exeext
27259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27260 (eval $ac_link) 2>conftest.er1
27262 grep -v '^ *+' conftest.er1 >conftest.err
27264 cat conftest.err >&5
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); } &&
27267 { ac_try='test -z "$ac_c_werror_flag"
27268 || test ! -s conftest.err'
27269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27270 (eval $ac_try) 2>&5
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); }; } &&
27274 { ac_try='test -s conftest$ac_exeext'
27275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27276 (eval $ac_try) 2>&5
27278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279 (exit $ac_status); }; }; then
27280 eval "$as_ac_var=yes"
27282 echo "$as_me: failed program was:" >&5
27283 sed 's/^/| /' conftest.$ac_ext >&5
27285 eval "$as_ac_var=no"
27287 rm -f conftest.err conftest.$ac_objext \
27288 conftest$ac_exeext conftest.$ac_ext
27290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27292 if test `eval echo '${'$as_ac_var'}'` = yes; then
27294 cat >>confdefs.h <<_ACEOF
27295 #define CRAY_STACKSEG_END $ac_func
27304 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27305 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27306 if test "${ac_cv_c_stack_direction+set}" = set; then
27307 echo $ECHO_N "(cached) $ECHO_C" >&6
27309 if test "$cross_compiling" = yes; then
27310 ac_cv_c_stack_direction=0
27312 cat >conftest.$ac_ext <<_ACEOF
27315 cat confdefs.h >>conftest.$ac_ext
27316 cat >>conftest.$ac_ext <<_ACEOF
27317 /* end confdefs.h. */
27319 find_stack_direction ()
27321 static char *addr = 0;
27326 return find_stack_direction ();
27329 return (&dummy > addr) ? 1 : -1;
27335 exit (find_stack_direction () < 0);
27338 rm -f conftest$ac_exeext
27339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27340 (eval $ac_link) 2>&5
27342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27345 (eval $ac_try) 2>&5
27347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348 (exit $ac_status); }; }; then
27349 ac_cv_c_stack_direction=1
27351 echo "$as_me: program exited with status $ac_status" >&5
27352 echo "$as_me: failed program was:" >&5
27353 sed 's/^/| /' conftest.$ac_ext >&5
27355 ( exit $ac_status )
27356 ac_cv_c_stack_direction=-1
27358 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27361 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27362 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27364 cat >>confdefs.h <<_ACEOF
27365 #define STACK_DIRECTION $ac_cv_c_stack_direction
27372 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27373 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27374 if test "${ac_cv_func_rand48+set}" = set; then
27375 echo $ECHO_N "(cached) $ECHO_C" >&6
27378 ac_cpp='$CXXCPP $CPPFLAGS'
27379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27383 cat >conftest.$ac_ext <<_ACEOF
27386 cat confdefs.h >>conftest.$ac_ext
27387 cat >>conftest.$ac_ext <<_ACEOF
27388 /* end confdefs.h. */
27389 #include <stdlib.h>
27393 srand48(0);lrand48();drand48();
27398 rm -f conftest.$ac_objext
27399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27400 (eval $ac_compile) 2>conftest.er1
27402 grep -v '^ *+' conftest.er1 >conftest.err
27404 cat conftest.err >&5
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); } &&
27407 { ac_try='test -z "$ac_cxx_werror_flag"
27408 || test ! -s conftest.err'
27409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27410 (eval $ac_try) 2>&5
27412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); }; } &&
27414 { ac_try='test -s conftest.$ac_objext'
27415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27416 (eval $ac_try) 2>&5
27418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419 (exit $ac_status); }; }; then
27420 ac_cv_func_rand48=yes
27422 echo "$as_me: failed program was:" >&5
27423 sed 's/^/| /' conftest.$ac_ext >&5
27425 ac_cv_func_rand48=no
27427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27429 ac_cpp='$CPP $CPPFLAGS'
27430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27435 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27436 echo "${ECHO_T}$ac_cv_func_rand48" >&6
27438 if test "$ac_cv_func_rand48" = "yes" ; then
27440 cat >>confdefs.h <<\_ACEOF
27441 #define HAVE_RAND48 1
27447 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27448 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27449 if test "${ac_cv_cxx_namespaces+set}" = set; then
27450 echo $ECHO_N "(cached) $ECHO_C" >&6
27453 ac_cpp='$CXXCPP $CPPFLAGS'
27454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27458 cat >conftest.$ac_ext <<_ACEOF
27461 cat confdefs.h >>conftest.$ac_ext
27462 cat >>conftest.$ac_ext <<_ACEOF
27463 /* end confdefs.h. */
27464 namespace Outer { namespace Inner { int i = 0; }}
27468 using namespace Outer::Inner; return i;
27473 rm -f conftest.$ac_objext
27474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27475 (eval $ac_compile) 2>conftest.er1
27477 grep -v '^ *+' conftest.er1 >conftest.err
27479 cat conftest.err >&5
27480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481 (exit $ac_status); } &&
27482 { ac_try='test -z "$ac_cxx_werror_flag"
27483 || test ! -s conftest.err'
27484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27485 (eval $ac_try) 2>&5
27487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488 (exit $ac_status); }; } &&
27489 { ac_try='test -s conftest.$ac_objext'
27490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27491 (eval $ac_try) 2>&5
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); }; }; then
27495 ac_cv_cxx_namespaces=yes
27497 echo "$as_me: failed program was:" >&5
27498 sed 's/^/| /' conftest.$ac_ext >&5
27500 ac_cv_cxx_namespaces=no
27502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27504 ac_cpp='$CPP $CPPFLAGS'
27505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27511 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27512 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27513 if test "$ac_cv_cxx_namespaces" = yes; then
27515 cat >>confdefs.h <<\_ACEOF
27516 #define HAVE_NAMESPACES
27521 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27522 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27523 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
27524 echo $ECHO_N "(cached) $ECHO_C" >&6
27528 ac_cpp='$CXXCPP $CPPFLAGS'
27529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27533 cat >conftest.$ac_ext <<_ACEOF
27536 cat confdefs.h >>conftest.$ac_ext
27537 cat >>conftest.$ac_ext <<_ACEOF
27538 /* end confdefs.h. */
27539 #include <ext/hash_map>
27540 #ifdef HAVE_NAMESPACES
27541 using namespace std;
27546 hash_map<int, int> t;
27551 rm -f conftest.$ac_objext
27552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27553 (eval $ac_compile) 2>conftest.er1
27555 grep -v '^ *+' conftest.er1 >conftest.err
27557 cat conftest.err >&5
27558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); } &&
27560 { ac_try='test -z "$ac_cxx_werror_flag"
27561 || test ! -s conftest.err'
27562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27563 (eval $ac_try) 2>&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); }; } &&
27567 { ac_try='test -s conftest.$ac_objext'
27568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27569 (eval $ac_try) 2>&5
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); }; }; then
27573 ac_cv_cxx_have_std_ext_hash_map=yes
27575 echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27578 ac_cv_cxx_have_std_ext_hash_map=no
27580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27582 ac_cpp='$CPP $CPPFLAGS'
27583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27588 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27589 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
27590 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27593 cat >>confdefs.h <<\_ACEOF
27594 #define HAVE_STD_EXT_HASH_MAP 1
27599 cat >>confdefs.h <<\_ACEOF
27600 #define HAVE_STD_EXT_HASH_MAP 0
27605 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27606 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27607 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27608 echo $ECHO_N "(cached) $ECHO_C" >&6
27612 ac_cpp='$CXXCPP $CPPFLAGS'
27613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27617 cat >conftest.$ac_ext <<_ACEOF
27620 cat confdefs.h >>conftest.$ac_ext
27621 cat >>conftest.$ac_ext <<_ACEOF
27622 /* end confdefs.h. */
27623 #include <ext/hash_map>
27624 #ifdef HAVE_NAMESPACES
27625 using namespace __gnu_cxx;
27630 hash_map<int,int> t;
27635 rm -f conftest.$ac_objext
27636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27637 (eval $ac_compile) 2>conftest.er1
27639 grep -v '^ *+' conftest.er1 >conftest.err
27641 cat conftest.err >&5
27642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643 (exit $ac_status); } &&
27644 { ac_try='test -z "$ac_cxx_werror_flag"
27645 || test ! -s conftest.err'
27646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27647 (eval $ac_try) 2>&5
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); }; } &&
27651 { ac_try='test -s conftest.$ac_objext'
27652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27653 (eval $ac_try) 2>&5
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); }; }; then
27657 ac_cv_cxx_have_gnu_ext_hash_map=yes
27659 echo "$as_me: failed program was:" >&5
27660 sed 's/^/| /' conftest.$ac_ext >&5
27662 ac_cv_cxx_have_gnu_ext_hash_map=no
27664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27666 ac_cpp='$CPP $CPPFLAGS'
27667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27672 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27673 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
27674 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27677 cat >>confdefs.h <<\_ACEOF
27678 #define HAVE_GNU_EXT_HASH_MAP 1
27683 cat >>confdefs.h <<\_ACEOF
27684 #define HAVE_GNU_EXT_HASH_MAP 0
27689 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27690 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27691 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27692 echo $ECHO_N "(cached) $ECHO_C" >&6
27696 ac_cpp='$CXXCPP $CPPFLAGS'
27697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27701 cat >conftest.$ac_ext <<_ACEOF
27704 cat confdefs.h >>conftest.$ac_ext
27705 cat >>conftest.$ac_ext <<_ACEOF
27706 /* end confdefs.h. */
27707 #include <hash_map>
27711 hash_map<int,int> t;
27716 rm -f conftest.$ac_objext
27717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27718 (eval $ac_compile) 2>conftest.er1
27720 grep -v '^ *+' conftest.er1 >conftest.err
27722 cat conftest.err >&5
27723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724 (exit $ac_status); } &&
27725 { ac_try='test -z "$ac_cxx_werror_flag"
27726 || test ! -s conftest.err'
27727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728 (eval $ac_try) 2>&5
27730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731 (exit $ac_status); }; } &&
27732 { ac_try='test -s conftest.$ac_objext'
27733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27734 (eval $ac_try) 2>&5
27736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); }; }; then
27738 ac_cv_cxx_have_global_hash_map=yes
27740 echo "$as_me: failed program was:" >&5
27741 sed 's/^/| /' conftest.$ac_ext >&5
27743 ac_cv_cxx_have_global_hash_map=no
27745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27747 ac_cpp='$CPP $CPPFLAGS'
27748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27753 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27754 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
27755 if test "$ac_cv_cxx_have_global_hash_map" = yes
27758 cat >>confdefs.h <<\_ACEOF
27759 #define HAVE_GLOBAL_HASH_MAP 1
27764 cat >>confdefs.h <<\_ACEOF
27765 #define HAVE_GLOBAL_HASH_MAP 0
27770 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27771 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27772 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
27773 echo $ECHO_N "(cached) $ECHO_C" >&6
27777 ac_cpp='$CXXCPP $CPPFLAGS'
27778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27782 cat >conftest.$ac_ext <<_ACEOF
27785 cat confdefs.h >>conftest.$ac_ext
27786 cat >>conftest.$ac_ext <<_ACEOF
27787 /* end confdefs.h. */
27788 #include <ext/hash_set>
27789 #ifdef HAVE_NAMESPACES
27790 using namespace std;
27800 rm -f conftest.$ac_objext
27801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27802 (eval $ac_compile) 2>conftest.er1
27804 grep -v '^ *+' conftest.er1 >conftest.err
27806 cat conftest.err >&5
27807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 (exit $ac_status); } &&
27809 { ac_try='test -z "$ac_cxx_werror_flag"
27810 || test ! -s conftest.err'
27811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27812 (eval $ac_try) 2>&5
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); }; } &&
27816 { ac_try='test -s conftest.$ac_objext'
27817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27818 (eval $ac_try) 2>&5
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); }; }; then
27822 ac_cv_cxx_have_std_ext_hash_set=yes
27824 echo "$as_me: failed program was:" >&5
27825 sed 's/^/| /' conftest.$ac_ext >&5
27827 ac_cv_cxx_have_std_ext_hash_set=no
27829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27831 ac_cpp='$CPP $CPPFLAGS'
27832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27837 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27838 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
27839 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27842 cat >>confdefs.h <<\_ACEOF
27843 #define HAVE_STD_EXT_HASH_SET 1
27848 cat >>confdefs.h <<\_ACEOF
27849 #define HAVE_STD_EXT_HASH_SET 0
27854 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27855 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27856 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27857 echo $ECHO_N "(cached) $ECHO_C" >&6
27861 ac_cpp='$CXXCPP $CPPFLAGS'
27862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27866 cat >conftest.$ac_ext <<_ACEOF
27869 cat confdefs.h >>conftest.$ac_ext
27870 cat >>conftest.$ac_ext <<_ACEOF
27871 /* end confdefs.h. */
27872 #include <ext/hash_set>
27873 #ifdef HAVE_NAMESPACES
27874 using namespace __gnu_cxx;
27884 rm -f conftest.$ac_objext
27885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27886 (eval $ac_compile) 2>conftest.er1
27888 grep -v '^ *+' conftest.er1 >conftest.err
27890 cat conftest.err >&5
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); } &&
27893 { ac_try='test -z "$ac_cxx_werror_flag"
27894 || test ! -s conftest.err'
27895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27896 (eval $ac_try) 2>&5
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); }; } &&
27900 { ac_try='test -s conftest.$ac_objext'
27901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27902 (eval $ac_try) 2>&5
27904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905 (exit $ac_status); }; }; then
27906 ac_cv_cxx_have_gnu_ext_hash_set=yes
27908 echo "$as_me: failed program was:" >&5
27909 sed 's/^/| /' conftest.$ac_ext >&5
27911 ac_cv_cxx_have_gnu_ext_hash_set=no
27913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27915 ac_cpp='$CPP $CPPFLAGS'
27916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27921 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
27922 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
27923 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
27926 cat >>confdefs.h <<\_ACEOF
27927 #define HAVE_GNU_EXT_HASH_SET 1
27932 cat >>confdefs.h <<\_ACEOF
27933 #define HAVE_GNU_EXT_HASH_SET 0
27938 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
27939 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
27940 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
27941 echo $ECHO_N "(cached) $ECHO_C" >&6
27945 ac_cpp='$CXXCPP $CPPFLAGS'
27946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27950 cat >conftest.$ac_ext <<_ACEOF
27953 cat confdefs.h >>conftest.$ac_ext
27954 cat >>conftest.$ac_ext <<_ACEOF
27955 /* end confdefs.h. */
27956 #include <hash_set>
27960 hash_set<int> t; return 0;
27965 rm -f conftest.$ac_objext
27966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27967 (eval $ac_compile) 2>conftest.er1
27969 grep -v '^ *+' conftest.er1 >conftest.err
27971 cat conftest.err >&5
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); } &&
27974 { ac_try='test -z "$ac_cxx_werror_flag"
27975 || test ! -s conftest.err'
27976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27977 (eval $ac_try) 2>&5
27979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980 (exit $ac_status); }; } &&
27981 { ac_try='test -s conftest.$ac_objext'
27982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27983 (eval $ac_try) 2>&5
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); }; }; then
27987 ac_cv_cxx_have_global_hash_set=yes
27989 echo "$as_me: failed program was:" >&5
27990 sed 's/^/| /' conftest.$ac_ext >&5
27992 ac_cv_cxx_have_global_hash_set=no
27994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27996 ac_cpp='$CPP $CPPFLAGS'
27997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28002 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28003 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28004 if test "$ac_cv_cxx_have_global_hash_set" = yes
28007 cat >>confdefs.h <<\_ACEOF
28008 #define HAVE_GLOBAL_HASH_SET 1
28013 cat >>confdefs.h <<\_ACEOF
28014 #define HAVE_GLOBAL_HASH_SET 0
28019 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28020 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28021 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28022 echo $ECHO_N "(cached) $ECHO_C" >&6
28026 ac_cpp='$CXXCPP $CPPFLAGS'
28027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28031 cat >conftest.$ac_ext <<_ACEOF
28034 cat confdefs.h >>conftest.$ac_ext
28035 cat >>conftest.$ac_ext <<_ACEOF
28036 /* end confdefs.h. */
28037 #include <iterator>
28038 #ifdef HAVE_NAMESPACES
28039 using namespace std;
28044 iterator<int,int,int> t; return 0;
28049 rm -f conftest.$ac_objext
28050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28051 (eval $ac_compile) 2>conftest.er1
28053 grep -v '^ *+' conftest.er1 >conftest.err
28055 cat conftest.err >&5
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); } &&
28058 { ac_try='test -z "$ac_cxx_werror_flag"
28059 || test ! -s conftest.err'
28060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28061 (eval $ac_try) 2>&5
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); }; } &&
28065 { ac_try='test -s conftest.$ac_objext'
28066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28067 (eval $ac_try) 2>&5
28069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070 (exit $ac_status); }; }; then
28071 ac_cv_cxx_have_std_iterator=yes
28073 echo "$as_me: failed program was:" >&5
28074 sed 's/^/| /' conftest.$ac_ext >&5
28076 ac_cv_cxx_have_std_iterator=no
28078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28080 ac_cpp='$CPP $CPPFLAGS'
28081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28087 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28088 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28089 if test "$ac_cv_cxx_have_std_iterator" = yes
28092 cat >>confdefs.h <<\_ACEOF
28093 #define HAVE_STD_ITERATOR 1
28098 cat >>confdefs.h <<\_ACEOF
28099 #define HAVE_STD_ITERATOR 0
28104 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28105 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28106 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28107 echo $ECHO_N "(cached) $ECHO_C" >&6
28111 ac_cpp='$CXXCPP $CPPFLAGS'
28112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28116 cat >conftest.$ac_ext <<_ACEOF
28119 cat confdefs.h >>conftest.$ac_ext
28120 cat >>conftest.$ac_ext <<_ACEOF
28121 /* end confdefs.h. */
28122 #include <iterator>
28123 #ifdef HAVE_NAMESPACES
28124 using namespace std;
28129 bidirectional_iterator<int,int> t; return 0;
28134 rm -f conftest.$ac_objext
28135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28136 (eval $ac_compile) 2>conftest.er1
28138 grep -v '^ *+' conftest.er1 >conftest.err
28140 cat conftest.err >&5
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); } &&
28143 { ac_try='test -z "$ac_cxx_werror_flag"
28144 || test ! -s conftest.err'
28145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28146 (eval $ac_try) 2>&5
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); }; } &&
28150 { ac_try='test -s conftest.$ac_objext'
28151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28152 (eval $ac_try) 2>&5
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); }; }; then
28156 ac_cv_cxx_have_bi_iterator=yes
28158 echo "$as_me: failed program was:" >&5
28159 sed 's/^/| /' conftest.$ac_ext >&5
28161 ac_cv_cxx_have_bi_iterator=no
28163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28165 ac_cpp='$CPP $CPPFLAGS'
28166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28172 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28173 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28174 if test "$ac_cv_cxx_have_bi_iterator" = yes
28177 cat >>confdefs.h <<\_ACEOF
28178 #define HAVE_BI_ITERATOR 1
28183 cat >>confdefs.h <<\_ACEOF
28184 #define HAVE_BI_ITERATOR 0
28189 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28190 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28191 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28192 echo $ECHO_N "(cached) $ECHO_C" >&6
28196 ac_cpp='$CXXCPP $CPPFLAGS'
28197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28201 cat >conftest.$ac_ext <<_ACEOF
28204 cat confdefs.h >>conftest.$ac_ext
28205 cat >>conftest.$ac_ext <<_ACEOF
28206 /* end confdefs.h. */
28207 #include <iterator>
28208 #ifdef HAVE_NAMESPACES
28209 using namespace std;
28214 forward_iterator<int,int> t; return 0;
28219 rm -f conftest.$ac_objext
28220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28221 (eval $ac_compile) 2>conftest.er1
28223 grep -v '^ *+' conftest.er1 >conftest.err
28225 cat conftest.err >&5
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); } &&
28228 { ac_try='test -z "$ac_cxx_werror_flag"
28229 || test ! -s conftest.err'
28230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28231 (eval $ac_try) 2>&5
28233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234 (exit $ac_status); }; } &&
28235 { ac_try='test -s conftest.$ac_objext'
28236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28237 (eval $ac_try) 2>&5
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); }; }; then
28241 ac_cv_cxx_have_fwd_iterator=yes
28243 echo "$as_me: failed program was:" >&5
28244 sed 's/^/| /' conftest.$ac_ext >&5
28246 ac_cv_cxx_have_fwd_iterator=no
28248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28250 ac_cpp='$CPP $CPPFLAGS'
28251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28257 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28258 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28259 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28262 cat >>confdefs.h <<\_ACEOF
28263 #define HAVE_FWD_ITERATOR 1
28268 cat >>confdefs.h <<\_ACEOF
28269 #define HAVE_FWD_ITERATOR 0
28275 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28276 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28277 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28278 echo $ECHO_N "(cached) $ECHO_C" >&6
28281 ac_cpp='$CXXCPP $CPPFLAGS'
28282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28286 cat >conftest.$ac_ext <<_ACEOF
28289 cat confdefs.h >>conftest.$ac_ext
28290 cat >>conftest.$ac_ext <<_ACEOF
28291 /* end confdefs.h. */
28301 rm -f conftest.$ac_objext
28302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28303 (eval $ac_compile) 2>conftest.er1
28305 grep -v '^ *+' conftest.er1 >conftest.err
28307 cat conftest.err >&5
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); } &&
28310 { ac_try='test -z "$ac_cxx_werror_flag"
28311 || test ! -s conftest.err'
28312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28313 (eval $ac_try) 2>&5
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); }; } &&
28317 { ac_try='test -s conftest.$ac_objext'
28318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28319 (eval $ac_try) 2>&5
28321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322 (exit $ac_status); }; }; then
28323 ac_cv_func_isnan_in_math_h=yes
28325 echo "$as_me: failed program was:" >&5
28326 sed 's/^/| /' conftest.$ac_ext >&5
28328 ac_cv_func_isnan_in_math_h=no
28330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28332 ac_cpp='$CPP $CPPFLAGS'
28333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28338 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28339 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28342 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28344 cat >>confdefs.h <<\_ACEOF
28345 #define HAVE_ISNAN_IN_MATH_H 1
28350 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28351 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28352 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28353 echo $ECHO_N "(cached) $ECHO_C" >&6
28356 ac_cpp='$CXXCPP $CPPFLAGS'
28357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28361 cat >conftest.$ac_ext <<_ACEOF
28364 cat confdefs.h >>conftest.$ac_ext
28365 cat >>conftest.$ac_ext <<_ACEOF
28366 /* end confdefs.h. */
28376 rm -f conftest.$ac_objext
28377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28378 (eval $ac_compile) 2>conftest.er1
28380 grep -v '^ *+' conftest.er1 >conftest.err
28382 cat conftest.err >&5
28383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384 (exit $ac_status); } &&
28385 { ac_try='test -z "$ac_cxx_werror_flag"
28386 || test ! -s conftest.err'
28387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28388 (eval $ac_try) 2>&5
28390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391 (exit $ac_status); }; } &&
28392 { ac_try='test -s conftest.$ac_objext'
28393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28394 (eval $ac_try) 2>&5
28396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397 (exit $ac_status); }; }; then
28398 ac_cv_func_isnan_in_cmath=yes
28400 echo "$as_me: failed program was:" >&5
28401 sed 's/^/| /' conftest.$ac_ext >&5
28403 ac_cv_func_isnan_in_cmath=no
28405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28407 ac_cpp='$CPP $CPPFLAGS'
28408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28413 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28414 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28416 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28418 cat >>confdefs.h <<\_ACEOF
28419 #define HAVE_ISNAN_IN_CMATH 1
28424 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28425 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28426 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28427 echo $ECHO_N "(cached) $ECHO_C" >&6
28430 ac_cpp='$CXXCPP $CPPFLAGS'
28431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28435 cat >conftest.$ac_ext <<_ACEOF
28438 cat confdefs.h >>conftest.$ac_ext
28439 cat >>conftest.$ac_ext <<_ACEOF
28440 /* end confdefs.h. */
28445 float f; std::isnan(f);
28450 rm -f conftest.$ac_objext
28451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28452 (eval $ac_compile) 2>conftest.er1
28454 grep -v '^ *+' conftest.er1 >conftest.err
28456 cat conftest.err >&5
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); } &&
28459 { ac_try='test -z "$ac_cxx_werror_flag"
28460 || test ! -s conftest.err'
28461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28462 (eval $ac_try) 2>&5
28464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465 (exit $ac_status); }; } &&
28466 { ac_try='test -s conftest.$ac_objext'
28467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28468 (eval $ac_try) 2>&5
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); }; }; then
28472 ac_cv_func_std_isnan_in_cmath=yes
28474 echo "$as_me: failed program was:" >&5
28475 sed 's/^/| /' conftest.$ac_ext >&5
28477 ac_cv_func_std_isnan_in_cmath=no
28479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28481 ac_cpp='$CPP $CPPFLAGS'
28482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28487 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28488 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
28490 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
28492 cat >>confdefs.h <<\_ACEOF
28493 #define HAVE_STD_ISNAN_IN_CMATH 1
28499 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28500 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28501 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28502 echo $ECHO_N "(cached) $ECHO_C" >&6
28505 ac_cpp='$CXXCPP $CPPFLAGS'
28506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28510 cat >conftest.$ac_ext <<_ACEOF
28513 cat confdefs.h >>conftest.$ac_ext
28514 cat >>conftest.$ac_ext <<_ACEOF
28515 /* end confdefs.h. */
28525 rm -f conftest.$ac_objext
28526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28527 (eval $ac_compile) 2>conftest.er1
28529 grep -v '^ *+' conftest.er1 >conftest.err
28531 cat conftest.err >&5
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); } &&
28534 { ac_try='test -z "$ac_cxx_werror_flag"
28535 || test ! -s conftest.err'
28536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28537 (eval $ac_try) 2>&5
28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540 (exit $ac_status); }; } &&
28541 { ac_try='test -s conftest.$ac_objext'
28542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28543 (eval $ac_try) 2>&5
28545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546 (exit $ac_status); }; }; then
28547 ac_cv_func_isinf_in_math_h=yes
28549 echo "$as_me: failed program was:" >&5
28550 sed 's/^/| /' conftest.$ac_ext >&5
28552 ac_cv_func_isinf_in_math_h=no
28554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28556 ac_cpp='$CPP $CPPFLAGS'
28557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28562 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28563 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
28565 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
28567 cat >>confdefs.h <<\_ACEOF
28568 #define HAVE_ISINF_IN_MATH_H 1
28573 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28574 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28575 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28576 echo $ECHO_N "(cached) $ECHO_C" >&6
28579 ac_cpp='$CXXCPP $CPPFLAGS'
28580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28584 cat >conftest.$ac_ext <<_ACEOF
28587 cat confdefs.h >>conftest.$ac_ext
28588 cat >>conftest.$ac_ext <<_ACEOF
28589 /* end confdefs.h. */
28599 rm -f conftest.$ac_objext
28600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28601 (eval $ac_compile) 2>conftest.er1
28603 grep -v '^ *+' conftest.er1 >conftest.err
28605 cat conftest.err >&5
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); } &&
28608 { ac_try='test -z "$ac_cxx_werror_flag"
28609 || test ! -s conftest.err'
28610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28611 (eval $ac_try) 2>&5
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); }; } &&
28615 { ac_try='test -s conftest.$ac_objext'
28616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28617 (eval $ac_try) 2>&5
28619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620 (exit $ac_status); }; }; then
28621 ac_cv_func_isinf_in_cmath=yes
28623 echo "$as_me: failed program was:" >&5
28624 sed 's/^/| /' conftest.$ac_ext >&5
28626 ac_cv_func_isinf_in_cmath=no
28628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28630 ac_cpp='$CPP $CPPFLAGS'
28631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28636 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28637 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
28639 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
28641 cat >>confdefs.h <<\_ACEOF
28642 #define HAVE_ISINF_IN_CMATH 1
28647 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28648 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28649 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28650 echo $ECHO_N "(cached) $ECHO_C" >&6
28653 ac_cpp='$CXXCPP $CPPFLAGS'
28654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28658 cat >conftest.$ac_ext <<_ACEOF
28661 cat confdefs.h >>conftest.$ac_ext
28662 cat >>conftest.$ac_ext <<_ACEOF
28663 /* end confdefs.h. */
28668 float f; std::isinf(f)}
28673 rm -f conftest.$ac_objext
28674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28675 (eval $ac_compile) 2>conftest.er1
28677 grep -v '^ *+' conftest.er1 >conftest.err
28679 cat conftest.err >&5
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); } &&
28682 { ac_try='test -z "$ac_cxx_werror_flag"
28683 || test ! -s conftest.err'
28684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28685 (eval $ac_try) 2>&5
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); }; } &&
28689 { ac_try='test -s conftest.$ac_objext'
28690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28691 (eval $ac_try) 2>&5
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); }; }; then
28695 ac_cv_func_std_isinf_in_cmath=yes
28697 echo "$as_me: failed program was:" >&5
28698 sed 's/^/| /' conftest.$ac_ext >&5
28700 ac_cv_func_std_isinf_in_cmath=no
28702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28704 ac_cpp='$CPP $CPPFLAGS'
28705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28710 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28711 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
28713 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
28715 cat >>confdefs.h <<\_ACEOF
28716 #define HAVE_STD_ISINF_IN_CMATH 1
28721 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28722 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28723 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28724 echo $ECHO_N "(cached) $ECHO_C" >&6
28727 ac_cpp='$CXXCPP $CPPFLAGS'
28728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28732 cat >conftest.$ac_ext <<_ACEOF
28735 cat confdefs.h >>conftest.$ac_ext
28736 cat >>conftest.$ac_ext <<_ACEOF
28737 /* end confdefs.h. */
28738 #include <ieeefp.h>
28742 float f; finite(f);
28747 rm -f conftest.$ac_objext
28748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28749 (eval $ac_compile) 2>conftest.er1
28751 grep -v '^ *+' conftest.er1 >conftest.err
28753 cat conftest.err >&5
28754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755 (exit $ac_status); } &&
28756 { ac_try='test -z "$ac_cxx_werror_flag"
28757 || test ! -s conftest.err'
28758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28759 (eval $ac_try) 2>&5
28761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762 (exit $ac_status); }; } &&
28763 { ac_try='test -s conftest.$ac_objext'
28764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28765 (eval $ac_try) 2>&5
28767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28768 (exit $ac_status); }; }; then
28769 ac_cv_func_finite_in_ieeefp_h=yes
28771 echo "$as_me: failed program was:" >&5
28772 sed 's/^/| /' conftest.$ac_ext >&5
28774 ac_cv_func_finite_in_ieeefp_h=no
28776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28778 ac_cpp='$CPP $CPPFLAGS'
28779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28784 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28785 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
28787 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
28789 cat >>confdefs.h <<\_ACEOF
28790 #define HAVE_FINITE_IN_IEEEFP_H 1
28799 for ac_header in stdlib.h unistd.h
28801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28803 echo "$as_me:$LINENO: checking for $ac_header" >&5
28804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28806 echo $ECHO_N "(cached) $ECHO_C" >&6
28808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28811 # Is the header compilable?
28812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28814 cat >conftest.$ac_ext <<_ACEOF
28817 cat confdefs.h >>conftest.$ac_ext
28818 cat >>conftest.$ac_ext <<_ACEOF
28819 /* end confdefs.h. */
28820 $ac_includes_default
28821 #include <$ac_header>
28823 rm -f conftest.$ac_objext
28824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28825 (eval $ac_compile) 2>conftest.er1
28827 grep -v '^ *+' conftest.er1 >conftest.err
28829 cat conftest.err >&5
28830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831 (exit $ac_status); } &&
28832 { ac_try='test -z "$ac_c_werror_flag"
28833 || test ! -s conftest.err'
28834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28835 (eval $ac_try) 2>&5
28837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); }; } &&
28839 { ac_try='test -s conftest.$ac_objext'
28840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28841 (eval $ac_try) 2>&5
28843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844 (exit $ac_status); }; }; then
28845 ac_header_compiler=yes
28847 echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28850 ac_header_compiler=no
28852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28854 echo "${ECHO_T}$ac_header_compiler" >&6
28856 # Is the header present?
28857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28859 cat >conftest.$ac_ext <<_ACEOF
28862 cat confdefs.h >>conftest.$ac_ext
28863 cat >>conftest.$ac_ext <<_ACEOF
28864 /* end confdefs.h. */
28865 #include <$ac_header>
28867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28870 grep -v '^ *+' conftest.er1 >conftest.err
28872 cat conftest.err >&5
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); } >/dev/null; then
28875 if test -s conftest.err; then
28876 ac_cpp_err=$ac_c_preproc_warn_flag
28877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28884 if test -z "$ac_cpp_err"; then
28885 ac_header_preproc=yes
28887 echo "$as_me: failed program was:" >&5
28888 sed 's/^/| /' conftest.$ac_ext >&5
28890 ac_header_preproc=no
28892 rm -f conftest.err conftest.$ac_ext
28893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28894 echo "${ECHO_T}$ac_header_preproc" >&6
28896 # So? What about this header?
28897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28903 ac_header_preproc=yes
28906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28920 ## ----------------------------------- ##
28921 ## Report this to llvmbugs@cs.uiuc.edu ##
28922 ## ----------------------------------- ##
28925 sed "s/^/$as_me: WARNING: /" >&2
28928 echo "$as_me:$LINENO: checking for $ac_header" >&5
28929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28931 echo $ECHO_N "(cached) $ECHO_C" >&6
28933 eval "$as_ac_Header=\$ac_header_preproc"
28935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28940 cat >>confdefs.h <<_ACEOF
28941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28949 for ac_func in getpagesize
28951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28952 echo "$as_me:$LINENO: checking for $ac_func" >&5
28953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28954 if eval "test \"\${$as_ac_var+set}\" = set"; then
28955 echo $ECHO_N "(cached) $ECHO_C" >&6
28957 cat >conftest.$ac_ext <<_ACEOF
28960 cat confdefs.h >>conftest.$ac_ext
28961 cat >>conftest.$ac_ext <<_ACEOF
28962 /* end confdefs.h. */
28963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28965 #define $ac_func innocuous_$ac_func
28967 /* System header to define __stub macros and hopefully few prototypes,
28968 which can conflict with char $ac_func (); below.
28969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28970 <limits.h> exists even on freestanding compilers. */
28973 # include <limits.h>
28975 # include <assert.h>
28980 /* Override any gcc2 internal prototype to avoid an error. */
28985 /* We use char because int might match the return type of a gcc2
28986 builtin and then its argument prototype would still apply. */
28988 /* The GNU C library defines this for functions which it implements
28989 to always fail with ENOSYS. Some functions are actually named
28990 something starting with __ and the normal name is an alias. */
28991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28994 char (*f) () = $ac_func;
29003 return f != $ac_func;
29008 rm -f conftest.$ac_objext conftest$ac_exeext
29009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29010 (eval $ac_link) 2>conftest.er1
29012 grep -v '^ *+' conftest.er1 >conftest.err
29014 cat conftest.err >&5
29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); } &&
29017 { ac_try='test -z "$ac_c_werror_flag"
29018 || test ! -s conftest.err'
29019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29020 (eval $ac_try) 2>&5
29022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023 (exit $ac_status); }; } &&
29024 { ac_try='test -s conftest$ac_exeext'
29025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29026 (eval $ac_try) 2>&5
29028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029 (exit $ac_status); }; }; then
29030 eval "$as_ac_var=yes"
29032 echo "$as_me: failed program was:" >&5
29033 sed 's/^/| /' conftest.$ac_ext >&5
29035 eval "$as_ac_var=no"
29037 rm -f conftest.err conftest.$ac_objext \
29038 conftest$ac_exeext conftest.$ac_ext
29040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29042 if test `eval echo '${'$as_ac_var'}'` = yes; then
29043 cat >>confdefs.h <<_ACEOF
29044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29050 echo "$as_me:$LINENO: checking for working mmap" >&5
29051 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29052 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29053 echo $ECHO_N "(cached) $ECHO_C" >&6
29055 if test "$cross_compiling" = yes; then
29056 ac_cv_func_mmap_fixed_mapped=no
29058 cat >conftest.$ac_ext <<_ACEOF
29061 cat confdefs.h >>conftest.$ac_ext
29062 cat >>conftest.$ac_ext <<_ACEOF
29063 /* end confdefs.h. */
29064 $ac_includes_default
29065 /* malloc might have been renamed as rpl_malloc. */
29068 /* Thanks to Mike Haertel and Jim Avera for this test.
29069 Here is a matrix of mmap possibilities:
29070 mmap private not fixed
29071 mmap private fixed at somewhere currently unmapped
29072 mmap private fixed at somewhere already mapped
29073 mmap shared not fixed
29074 mmap shared fixed at somewhere currently unmapped
29075 mmap shared fixed at somewhere already mapped
29076 For private mappings, we should verify that changes cannot be read()
29077 back from the file, nor mmap's back from the file at a different
29078 address. (There have been systems where private was not correctly
29079 implemented like the infamous i386 svr4.0, and systems where the
29080 VM page cache was not coherent with the file system buffer cache
29081 like early versions of FreeBSD and possibly contemporary NetBSD.)
29082 For shared mappings, we should conversely verify that changes get
29083 propagated back to all the places they're supposed to be.
29085 Grep wants private fixed already mapped.
29086 The main things grep needs to know about mmap are:
29087 * does it exist and is it safe to write into the mmap'd area
29088 * how to use it (BSD variants) */
29091 #include <sys/mman.h>
29093 #if !STDC_HEADERS && !HAVE_STDLIB_H
29097 /* This mess was copied from the GNU getpagesize.h. */
29098 #if !HAVE_GETPAGESIZE
29099 /* Assume that all systems that can run configure have sys/param.h. */
29100 # if !HAVE_SYS_PARAM_H
29101 # define HAVE_SYS_PARAM_H 1
29104 # ifdef _SC_PAGESIZE
29105 # define getpagesize() sysconf(_SC_PAGESIZE)
29106 # else /* no _SC_PAGESIZE */
29107 # if HAVE_SYS_PARAM_H
29108 # include <sys/param.h>
29109 # ifdef EXEC_PAGESIZE
29110 # define getpagesize() EXEC_PAGESIZE
29111 # else /* no EXEC_PAGESIZE */
29113 # define getpagesize() NBPG * CLSIZE
29116 # endif /* no CLSIZE */
29117 # else /* no NBPG */
29119 # define getpagesize() NBPC
29120 # else /* no NBPC */
29122 # define getpagesize() PAGESIZE
29123 # endif /* PAGESIZE */
29124 # endif /* no NBPC */
29125 # endif /* no NBPG */
29126 # endif /* no EXEC_PAGESIZE */
29127 # else /* no HAVE_SYS_PARAM_H */
29128 # define getpagesize() 8192 /* punt totally */
29129 # endif /* no HAVE_SYS_PARAM_H */
29130 # endif /* no _SC_PAGESIZE */
29132 #endif /* no HAVE_GETPAGESIZE */
29137 char *data, *data2, *data3;
29141 pagesize = getpagesize ();
29143 /* First, make a file with some known garbage in it. */
29144 data = (char *) malloc (pagesize);
29147 for (i = 0; i < pagesize; ++i)
29148 *(data + i) = rand ();
29150 fd = creat ("conftest.mmap", 0600);
29153 if (write (fd, data, pagesize) != pagesize)
29157 /* Next, try to mmap the file at a fixed address which already has
29158 something else allocated at it. If we can, also make sure that
29159 we see the same garbage. */
29160 fd = open ("conftest.mmap", O_RDWR);
29163 data2 = (char *) malloc (2 * pagesize);
29166 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29167 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29168 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29170 for (i = 0; i < pagesize; ++i)
29171 if (*(data + i) != *(data2 + i))
29174 /* Finally, make sure that changes to the mapped area do not
29175 percolate back to the file as seen by read(). (This is a bug on
29176 some variants of i386 svr4.0.) */
29177 for (i = 0; i < pagesize; ++i)
29178 *(data2 + i) = *(data2 + i) + 1;
29179 data3 = (char *) malloc (pagesize);
29182 if (read (fd, data3, pagesize) != pagesize)
29184 for (i = 0; i < pagesize; ++i)
29185 if (*(data + i) != *(data3 + i))
29191 rm -f conftest$ac_exeext
29192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29193 (eval $ac_link) 2>&5
29195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29198 (eval $ac_try) 2>&5
29200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201 (exit $ac_status); }; }; then
29202 ac_cv_func_mmap_fixed_mapped=yes
29204 echo "$as_me: program exited with status $ac_status" >&5
29205 echo "$as_me: failed program was:" >&5
29206 sed 's/^/| /' conftest.$ac_ext >&5
29208 ( exit $ac_status )
29209 ac_cv_func_mmap_fixed_mapped=no
29211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29214 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29215 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29216 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29218 cat >>confdefs.h <<\_ACEOF
29219 #define HAVE_MMAP 1
29223 rm -f conftest.mmap
29225 echo "$as_me:$LINENO: checking for mmap of files" >&5
29226 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29227 if test "${ac_cv_func_mmap_file+set}" = set; then
29228 echo $ECHO_N "(cached) $ECHO_C" >&6
29231 ac_cpp='$CPP $CPPFLAGS'
29232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29236 if test "$cross_compiling" = yes; then
29237 ac_cv_func_mmap_file=no
29239 cat >conftest.$ac_ext <<_ACEOF
29243 cat confdefs.h >>conftest.$ac_ext
29244 cat >>conftest.$ac_ext <<_ACEOF
29245 /* end confdefs.h. */
29247 #include <sys/types.h>
29248 #include <sys/mman.h>
29256 fd = creat ("foo",0777);
29257 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29259 return (fd != (int) MAP_FAILED);
29264 rm -f conftest$ac_exeext
29265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29266 (eval $ac_link) 2>&5
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271 (eval $ac_try) 2>&5
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; }; then
29275 ac_cv_func_mmap_file=yes
29277 echo "$as_me: program exited with status $ac_status" >&5
29278 echo "$as_me: failed program was:" >&5
29279 sed 's/^/| /' conftest.$ac_ext >&5
29281 ( exit $ac_status )
29282 ac_cv_func_mmap_file=no
29284 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29287 ac_cpp='$CPP $CPPFLAGS'
29288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29294 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29295 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29296 if test "$ac_cv_func_mmap_file" = yes; then
29298 cat >>confdefs.h <<\_ACEOF
29299 #define HAVE_MMAP_FILE
29306 echo "$as_me:$LINENO: checking for mprotect" >&5
29307 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29308 if test "${ac_cv_func_mprotect+set}" = set; then
29309 echo $ECHO_N "(cached) $ECHO_C" >&6
29311 cat >conftest.$ac_ext <<_ACEOF
29314 cat confdefs.h >>conftest.$ac_ext
29315 cat >>conftest.$ac_ext <<_ACEOF
29316 /* end confdefs.h. */
29317 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29319 #define mprotect innocuous_mprotect
29321 /* System header to define __stub macros and hopefully few prototypes,
29322 which can conflict with char mprotect (); below.
29323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29324 <limits.h> exists even on freestanding compilers. */
29327 # include <limits.h>
29329 # include <assert.h>
29334 /* Override any gcc2 internal prototype to avoid an error. */
29339 /* We use char because int might match the return type of a gcc2
29340 builtin and then its argument prototype would still apply. */
29342 /* The GNU C library defines this for functions which it implements
29343 to always fail with ENOSYS. Some functions are actually named
29344 something starting with __ and the normal name is an alias. */
29345 #if defined (__stub_mprotect) || defined (__stub___mprotect)
29348 char (*f) () = mprotect;
29357 return f != mprotect;
29362 rm -f conftest.$ac_objext conftest$ac_exeext
29363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29364 (eval $ac_link) 2>conftest.er1
29366 grep -v '^ *+' conftest.er1 >conftest.err
29368 cat conftest.err >&5
29369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370 (exit $ac_status); } &&
29371 { ac_try='test -z "$ac_c_werror_flag"
29372 || test ! -s conftest.err'
29373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29374 (eval $ac_try) 2>&5
29376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377 (exit $ac_status); }; } &&
29378 { ac_try='test -s conftest$ac_exeext'
29379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29380 (eval $ac_try) 2>&5
29382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383 (exit $ac_status); }; }; then
29384 ac_cv_func_mprotect=yes
29386 echo "$as_me: failed program was:" >&5
29387 sed 's/^/| /' conftest.$ac_ext >&5
29389 ac_cv_func_mprotect=no
29391 rm -f conftest.err conftest.$ac_objext \
29392 conftest$ac_exeext conftest.$ac_ext
29394 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29395 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29396 if test $ac_cv_func_mprotect = yes; then
29399 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29400 echo "$as_me: error: Function mprotect() required but not found" >&2;}
29401 { (exit 1); exit 1; }; }
29405 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29407 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29408 echo "$as_me: WARNING: mmap() required but not found" >&2;}
29410 if test "$ac_cv_func_mmap_file" = "no"
29412 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29413 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29417 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
29418 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
29419 if test "${llvm_cv_llvmgcc+set}" = set; then
29420 echo $ECHO_N "(cached) $ECHO_C" >&6
29422 llvm_cv_llvmgcc='llvmgcc_not_found'
29423 if test -d "$LLVMGCCDIR" ; then
29424 if test -x "$LLVMGCCDIR/bin/gcc" ; then
29425 llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
29429 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
29430 echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
29432 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29433 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29434 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29435 echo $ECHO_N "(cached) $ECHO_C" >&6
29437 llvm_cv_llvmgcc_sanity="no"
29438 if test -x "$llvm_cv_llvmgcc" ; then
29439 cp /dev/null conftest.c
29440 "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29441 if test $? -eq 0 ; then
29442 llvm_cv_llvmgcc_sanity="yes"
29447 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29448 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29450 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29451 LLVMGCC="$llvm_cv_llvmgcc"
29453 llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
29454 LLVMCC1=$llvmcc1path
29456 llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
29457 LLVMCC1PLUS=$llvmcc1pluspath
29461 SHLIBEXT=$libltdl_cv_shlibext
29464 # Translate the various configuration directories and other basic
29465 # information into substitutions that will end up in Makefile.config.in
29466 # that these configured values can be used by the makefiles
29467 eval LLVM_PREFIX="${prefix}";
29468 eval LLVM_BINDIR="${prefix}/bin";
29469 eval LLVM_LIBDIR="${prefix}/lib";
29470 eval LLVM_DATADIR="${prefix}/share/llvm";
29471 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29472 eval LLVM_ETCDIR="${prefix}/etc/llvm";
29473 eval LLVM_INCLUDEDIR="${prefix}/include";
29474 eval LLVM_INFODIR="${prefix}/info";
29475 eval LLVM_MANDIR="${prefix}/man";
29476 LLVM_CONFIGTIME=`date`
29488 # Place the various directores into the config.h file as #defines so that we
29489 # can know about the installation paths within LLVM.
29491 cat >>confdefs.h <<_ACEOF
29492 #define LLVM_PREFIX "$LLVM_PREFIX"
29496 cat >>confdefs.h <<_ACEOF
29497 #define LLVM_BINDIR "$LLVM_BINDIR"
29501 cat >>confdefs.h <<_ACEOF
29502 #define LLVM_LIBDIR "$LLVM_LIBDIR"
29506 cat >>confdefs.h <<_ACEOF
29507 #define LLVM_DATADIR "$LLVM_DATADIR"
29511 cat >>confdefs.h <<_ACEOF
29512 #define LLVM_DATADIR "$LLVM_DOCSDIR"
29516 cat >>confdefs.h <<_ACEOF
29517 #define LLVM_ETCDIR "$LLVM_ETCDIR"
29521 cat >>confdefs.h <<_ACEOF
29522 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29526 cat >>confdefs.h <<_ACEOF
29527 #define LLVM_INFODIR "$LLVM_INFODIR"
29531 cat >>confdefs.h <<_ACEOF
29532 #define LLVM_MANDIR "$LLVM_MANDIR"
29536 cat >>confdefs.h <<_ACEOF
29537 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29542 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29545 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29547 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29549 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29551 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29553 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29556 ac_config_files="$ac_config_files Makefile.config"
29559 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29562 ac_config_files="$ac_config_files docs/doxygen.cfg"
29565 ac_config_commands="$ac_config_commands Makefile"
29568 ac_config_commands="$ac_config_commands Makefile.common"
29571 ac_config_commands="$ac_config_commands examples/Makefile"
29574 ac_config_commands="$ac_config_commands lib/Makefile"
29577 ac_config_commands="$ac_config_commands runtime/Makefile"
29580 ac_config_commands="$ac_config_commands test/Makefile"
29583 ac_config_commands="$ac_config_commands test/Makefile.tests"
29586 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
29589 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
29592 ac_config_commands="$ac_config_commands tools/Makefile"
29595 ac_config_commands="$ac_config_commands utils/Makefile"
29598 ac_config_commands="$ac_config_commands projects/Makefile"
29602 cat >confcache <<\_ACEOF
29603 # This file is a shell script that caches the results of configure
29604 # tests run on this system so they can be shared between configure
29605 # scripts and configure runs, see configure's option --config-cache.
29606 # It is not useful on other systems. If it contains results you don't
29607 # want to keep, you may remove or edit it.
29609 # config.status only pays attention to the cache file if you give it
29610 # the --recheck option to rerun configure.
29612 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29613 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29614 # following values.
29618 # The following way of writing the cache mishandles newlines in values,
29619 # but we know of no workaround that is simple, portable, and efficient.
29620 # So, don't put newlines in cache variables' values.
29621 # Ultrix sh set writes to stderr and can't be redirected directly,
29622 # and sets the high bit in the cache file unless we assign to the vars.
29625 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29627 # `set' does not quote correctly, so add quotes (double-quote
29628 # substitution turns \\\\ into \\, and sed turns \\ into \).
29631 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29634 # `set' quotes correctly as required by POSIX, so do not add quotes.
29636 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29643 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29645 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29647 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29648 if test -w $cache_file; then
29649 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29650 cat confcache >$cache_file
29652 echo "not updating unwritable cache $cache_file"
29657 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29658 # Let make expand exec_prefix.
29659 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29661 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29662 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29663 # trailing colons and then remove the whole line if VPATH becomes empty
29664 # (actually we leave an empty line to preserve line numbers).
29665 if test "x$srcdir" = x.; then
29666 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29667 s/:*\$(srcdir):*/:/;
29668 s/:*\${srcdir}:*/:/;
29670 s/^\([^=]*=[ ]*\):*/\1/;
29676 DEFS=-DHAVE_CONFIG_H
29680 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29681 # 1. Remove the extension, and $U if already installed.
29682 ac_i=`echo "$ac_i" |
29683 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29685 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29686 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29688 LIBOBJS=$ac_libobjs
29690 LTLIBOBJS=$ac_ltlibobjs
29693 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29694 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29695 Usually this means the macro was only invoked conditionally." >&5
29696 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29697 Usually this means the macro was only invoked conditionally." >&2;}
29698 { (exit 1); exit 1; }; }
29700 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29701 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29702 Usually this means the macro was only invoked conditionally." >&5
29703 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29704 Usually this means the macro was only invoked conditionally." >&2;}
29705 { (exit 1); exit 1; }; }
29708 : ${CONFIG_STATUS=./config.status}
29709 ac_clean_files_save=$ac_clean_files
29710 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29711 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29712 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29713 cat >$CONFIG_STATUS <<_ACEOF
29715 # Generated by $as_me.
29716 # Run this file to recreate the current configuration.
29717 # Compiler output produced by configure, useful for debugging
29718 # configure, is in config.log if it exists.
29721 ac_cs_recheck=false
29723 SHELL=\${CONFIG_SHELL-$SHELL}
29726 cat >>$CONFIG_STATUS <<\_ACEOF
29727 ## --------------------- ##
29728 ## M4sh Initialization. ##
29729 ## --------------------- ##
29731 # Be Bourne compatible
29732 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29735 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29736 # is contrary to our usage. Disable this feature.
29737 alias -g '${1+"$@"}'='"$@"'
29738 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29741 DUALCASE=1; export DUALCASE # for MKS sh
29743 # Support unset when possible.
29744 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29751 # Work around bugs in pre-3.0 UWIN ksh.
29752 $as_unset ENV MAIL MAILPATH
29759 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29760 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29761 LC_TELEPHONE LC_TIME
29763 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29764 eval $as_var=C; export $as_var
29770 # Required to use basename.
29771 if expr a : '\(a\)' >/dev/null 2>&1; then
29777 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29778 as_basename=basename
29784 # Name of the executable.
29785 as_me=`$as_basename "$0" ||
29786 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29787 X"$0" : 'X\(//\)$' \| \
29788 X"$0" : 'X\(/\)$' \| \
29789 . : '\(.\)' 2>/dev/null ||
29791 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29792 /^X\/\(\/\/\)$/{ s//\1/; q; }
29793 /^X\/\(\/\).*/{ s//\1/; q; }
29797 # PATH needs CR, and LINENO needs CR and PATH.
29798 # Avoid depending upon Character Ranges.
29799 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29800 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29801 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29802 as_cr_digits='0123456789'
29803 as_cr_alnum=$as_cr_Letters$as_cr_digits
29805 # The user is always right.
29806 if test "${PATH_SEPARATOR+set}" != set; then
29807 echo "#! /bin/sh" >conf$$.sh
29808 echo "exit 0" >>conf$$.sh
29810 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29819 as_lineno_1=$LINENO
29820 as_lineno_2=$LINENO
29821 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29822 test "x$as_lineno_1" != "x$as_lineno_2" &&
29823 test "x$as_lineno_3" = "x$as_lineno_2" || {
29824 # Find who we are. Look in the path if we contain no path at all
29827 *[\\/]* ) as_myself=$0 ;;
29828 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29829 for as_dir in $PATH
29832 test -z "$as_dir" && as_dir=.
29833 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29838 # We did not find ourselves, most probably we were run as `sh COMMAND'
29839 # in which case we are not to be found in the path.
29840 if test "x$as_myself" = x; then
29843 if test ! -f "$as_myself"; then
29844 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29845 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29846 { (exit 1); exit 1; }; }
29848 case $CONFIG_SHELL in
29850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29851 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29854 test -z "$as_dir" && as_dir=.
29855 for as_base in sh bash ksh sh5; do
29858 if ("$as_dir/$as_base" -c '
29859 as_lineno_1=$LINENO
29860 as_lineno_2=$LINENO
29861 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29862 test "x$as_lineno_1" != "x$as_lineno_2" &&
29863 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29864 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29865 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29866 CONFIG_SHELL=$as_dir/$as_base
29867 export CONFIG_SHELL
29868 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29876 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29877 # uniformly replaced by the line number. The first 'sed' inserts a
29878 # line-number line before each line; the second 'sed' does the real
29879 # work. The second script uses 'N' to pair each line-number line
29880 # with the numbered line, and appends trailing '-' during
29881 # substitution so that $LINENO is not a special case at line end.
29882 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29883 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29884 sed '=' <$as_myself |
29889 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29892 s,^['$as_cr_digits']*\n,,
29893 ' >$as_me.lineno &&
29894 chmod +x $as_me.lineno ||
29895 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29896 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29897 { (exit 1); exit 1; }; }
29899 # Don't try to exec as it changes $[0], causing all sort of problems
29900 # (the dirname of $[0] is not the place where we might find the
29901 # original and so on. Autoconf is especially sensible to this).
29903 # Exit status is that of the last command.
29908 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29909 *c*,-n*) ECHO_N= ECHO_C='
29911 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29912 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29915 if expr a : '\(a\)' >/dev/null 2>&1; then
29921 rm -f conf$$ conf$$.exe conf$$.file
29923 if ln -s conf$$.file conf$$ 2>/dev/null; then
29924 # We could just check for DJGPP; but this test a) works b) is more generic
29925 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29926 if test -f conf$$.exe; then
29927 # Don't use ln at all; we don't have any links
29932 elif ln conf$$.file conf$$ 2>/dev/null; then
29937 rm -f conf$$ conf$$.exe conf$$.file
29939 if mkdir -p . 2>/dev/null; then
29942 test -d ./-p && rmdir ./-p
29946 as_executable_p="test -f"
29948 # Sed expression to map a string onto a valid CPP name.
29949 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29951 # Sed expression to map a string onto a valid variable name.
29952 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29956 # We need space, tab and new line, in precisely that order.
29966 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29967 # report actual input values of CONFIG_FILES etc. instead of their
29968 # values after options handling. Logging --version etc. is OK.
29972 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29973 ## Running $as_me. ##
29978 This file was extended by llvm $as_me 1.4, which was
29979 generated by GNU Autoconf 2.59. Invocation command line was
29981 CONFIG_FILES = $CONFIG_FILES
29982 CONFIG_HEADERS = $CONFIG_HEADERS
29983 CONFIG_LINKS = $CONFIG_LINKS
29984 CONFIG_COMMANDS = $CONFIG_COMMANDS
29988 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29992 # Files that config.status was made for.
29993 if test -n "$ac_config_files"; then
29994 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29997 if test -n "$ac_config_headers"; then
29998 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30001 if test -n "$ac_config_links"; then
30002 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30005 if test -n "$ac_config_commands"; then
30006 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30009 cat >>$CONFIG_STATUS <<\_ACEOF
30012 \`$as_me' instantiates files from templates according to the
30013 current configuration.
30015 Usage: $0 [OPTIONS] [FILE]...
30017 -h, --help print this help, then exit
30018 -V, --version print version number, then exit
30019 -q, --quiet do not print progress messages
30020 -d, --debug don't remove temporary files
30021 --recheck update $as_me by reconfiguring in the same conditions
30022 --file=FILE[:TEMPLATE]
30023 instantiate the configuration file FILE
30024 --header=FILE[:TEMPLATE]
30025 instantiate the configuration header FILE
30027 Configuration files:
30030 Configuration headers:
30033 Configuration links:
30036 Configuration commands:
30039 Report bugs to <bug-autoconf@gnu.org>."
30042 cat >>$CONFIG_STATUS <<_ACEOF
30044 llvm config.status 1.4
30045 configured by $0, generated by GNU Autoconf 2.59,
30046 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30048 Copyright (C) 2003 Free Software Foundation, Inc.
30049 This config.status script is free software; the Free Software Foundation
30050 gives unlimited permission to copy, distribute and modify it."
30055 cat >>$CONFIG_STATUS <<\_ACEOF
30056 # If no file are specified by the user, then we need to provide default
30057 # value. By we need to know if files were specified by the user.
30063 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30064 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30072 *) # This is not an option, so the user has probably given explicit
30075 ac_need_defaults=false;;
30079 # Handling of the options.
30081 cat >>$CONFIG_STATUS <<\_ACEOF
30082 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30084 --version | --vers* | -V )
30085 echo "$ac_cs_version"; exit 0 ;;
30087 # Conflict between --help and --header
30088 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30089 Try \`$0 --help' for more information." >&5
30090 echo "$as_me: error: ambiguous option: $1
30091 Try \`$0 --help' for more information." >&2;}
30092 { (exit 1); exit 1; }; };;
30093 --help | --hel | -h )
30094 echo "$ac_cs_usage"; exit 0 ;;
30095 --debug | --d* | -d )
30097 --file | --fil | --fi | --f )
30099 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30100 ac_need_defaults=false;;
30101 --header | --heade | --head | --hea )
30103 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30104 ac_need_defaults=false;;
30105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30106 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30109 # This is an error.
30110 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30111 Try \`$0 --help' for more information." >&5
30112 echo "$as_me: error: unrecognized option: $1
30113 Try \`$0 --help' for more information." >&2;}
30114 { (exit 1); exit 1; }; } ;;
30116 *) ac_config_targets="$ac_config_targets $1" ;;
30122 ac_configure_extra_args=
30124 if $ac_cs_silent; then
30126 ac_configure_extra_args="$ac_configure_extra_args --silent"
30130 cat >>$CONFIG_STATUS <<_ACEOF
30131 if \$ac_cs_recheck; then
30132 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30133 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30138 cat >>$CONFIG_STATUS <<_ACEOF
30140 # INIT-COMMANDS section.
30143 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30144 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30145 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30146 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30147 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30148 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30149 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30150 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
30151 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
30152 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30153 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30154 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30160 cat >>$CONFIG_STATUS <<\_ACEOF
30161 for ac_config_target in $ac_config_targets
30163 case "$ac_config_target" in
30164 # Handling of arguments.
30165 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30166 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30167 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30168 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30169 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30170 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30171 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
30172 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30173 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30174 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30175 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30176 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30177 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30178 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30179 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
30180 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
30181 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30182 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30183 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30184 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30185 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30186 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30187 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30188 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30189 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30190 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30191 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30192 { (exit 1); exit 1; }; };;
30196 # If the user did not use the arguments to specify the items to instantiate,
30197 # then the envvar interface is used. Set only those that are not.
30198 # We use the long form for the default assignment because of an extremely
30199 # bizarre bug on SunOS 4.1.3.
30200 if $ac_need_defaults; then
30201 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30202 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30203 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30204 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30207 # Have a temporary directory for convenience. Make it in the build tree
30208 # simply because there is no reason to put it here, and in addition,
30209 # creating and moving files from /tmp can sometimes cause problems.
30210 # Create a temporary directory, and hook for its removal unless debugging.
30213 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30214 trap '{ (exit 1); exit 1; }' 1 2 13 15
30217 # Create a (secure) tmp directory for tmp files.
30220 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30221 test -n "$tmp" && test -d "$tmp"
30224 tmp=./confstat$$-$RANDOM
30225 (umask 077 && mkdir $tmp)
30228 echo "$me: cannot create a temporary directory in ." >&2
30229 { (exit 1); exit 1; }
30234 cat >>$CONFIG_STATUS <<_ACEOF
30237 # CONFIG_FILES section.
30240 # No need to generate the scripts if there are no CONFIG_FILES.
30241 # This happens for instance when ./config.status config.h
30242 if test -n "\$CONFIG_FILES"; then
30243 # Protect against being on the right side of a sed subst in config.status.
30244 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30245 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30246 s,@SHELL@,$SHELL,;t t
30247 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30248 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30249 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30250 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30251 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30252 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30253 s,@exec_prefix@,$exec_prefix,;t t
30254 s,@prefix@,$prefix,;t t
30255 s,@program_transform_name@,$program_transform_name,;t t
30256 s,@bindir@,$bindir,;t t
30257 s,@sbindir@,$sbindir,;t t
30258 s,@libexecdir@,$libexecdir,;t t
30259 s,@datadir@,$datadir,;t t
30260 s,@sysconfdir@,$sysconfdir,;t t
30261 s,@sharedstatedir@,$sharedstatedir,;t t
30262 s,@localstatedir@,$localstatedir,;t t
30263 s,@libdir@,$libdir,;t t
30264 s,@includedir@,$includedir,;t t
30265 s,@oldincludedir@,$oldincludedir,;t t
30266 s,@infodir@,$infodir,;t t
30267 s,@mandir@,$mandir,;t t
30268 s,@build_alias@,$build_alias,;t t
30269 s,@host_alias@,$host_alias,;t t
30270 s,@target_alias@,$target_alias,;t t
30271 s,@DEFS@,$DEFS,;t t
30272 s,@ECHO_C@,$ECHO_C,;t t
30273 s,@ECHO_N@,$ECHO_N,;t t
30274 s,@ECHO_T@,$ECHO_T,;t t
30275 s,@LIBS@,$LIBS,;t t
30276 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30277 s,@subdirs@,$subdirs,;t t
30278 s,@build@,$build,;t t
30279 s,@build_cpu@,$build_cpu,;t t
30280 s,@build_vendor@,$build_vendor,;t t
30281 s,@build_os@,$build_os,;t t
30282 s,@host@,$host,;t t
30283 s,@host_cpu@,$host_cpu,;t t
30284 s,@host_vendor@,$host_vendor,;t t
30285 s,@host_os@,$host_os,;t t
30286 s,@target@,$target,;t t
30287 s,@target_cpu@,$target_cpu,;t t
30288 s,@target_vendor@,$target_vendor,;t t
30289 s,@target_os@,$target_os,;t t
30291 s,@ARCH@,$ARCH,;t t
30292 s,@ENDIAN@,$ENDIAN,;t t
30294 s,@CFLAGS@,$CFLAGS,;t t
30295 s,@LDFLAGS@,$LDFLAGS,;t t
30296 s,@CPPFLAGS@,$CPPFLAGS,;t t
30297 s,@ac_ct_CC@,$ac_ct_CC,;t t
30298 s,@EXEEXT@,$EXEEXT,;t t
30299 s,@OBJEXT@,$OBJEXT,;t t
30300 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30302 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30303 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30306 s,@CXXFLAGS@,$CXXFLAGS,;t t
30307 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30309 s,@LEXLIB@,$LEXLIB,;t t
30310 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30311 s,@FLEX@,$FLEX,;t t
30312 s,@YACC@,$YACC,;t t
30313 s,@BISON@,$BISON,;t t
30314 s,@ifGNUmake@,$ifGNUmake,;t t
30315 s,@LN_S@,$LN_S,;t t
30316 s,@DATE@,$DATE,;t t
30317 s,@FIND@,$FIND,;t t
30318 s,@GREP@,$GREP,;t t
30319 s,@MKDIR@,$MKDIR,;t t
30322 s,@RANLIB@,$RANLIB,;t t
30323 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30327 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30328 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30329 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30330 s,@BZIP2@,$BZIP2,;t t
30332 s,@DOXYGEN@,$DOXYGEN,;t t
30333 s,@ETAGS@,$ETAGS,;t t
30334 s,@GROFF@,$GROFF,;t t
30335 s,@GZIP@,$GZIP,;t t
30336 s,@POD2HTML@,$POD2HTML,;t t
30337 s,@POD2MAN@,$POD2MAN,;t t
30338 s,@PYTHON@,$PYTHON,;t t
30339 s,@QMTEST@,$QMTEST,;t t
30340 s,@RUNTEST@,$RUNTEST,;t t
30341 s,@tclsh@,$tclsh,;t t
30342 s,@TCLSH@,$TCLSH,;t t
30344 s,@EGREP@,$EGREP,;t t
30345 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30346 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30347 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30348 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30349 s,@LIBADD_DL@,$LIBADD_DL,;t t
30350 s,@ECHO@,$ECHO,;t t
30352 s,@ac_ct_AR@,$ac_ct_AR,;t t
30353 s,@STRIP@,$STRIP,;t t
30354 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30355 s,@CXXCPP@,$CXXCPP,;t t
30357 s,@FFLAGS@,$FFLAGS,;t t
30358 s,@ac_ct_F77@,$ac_ct_F77,;t t
30359 s,@LIBTOOL@,$LIBTOOL,;t t
30360 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30361 s,@ALLOCA@,$ALLOCA,;t t
30362 s,@MMAP_FILE@,$MMAP_FILE,;t t
30363 s,@LLVMGCC@,$LLVMGCC,;t t
30364 s,@LLVMCC1@,$LLVMCC1,;t t
30365 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30366 s,@SHLIBEXT@,$SHLIBEXT,;t t
30367 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30368 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30369 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30370 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30371 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30372 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30373 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30374 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30375 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30376 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30377 s,@LIBOBJS@,$LIBOBJS,;t t
30378 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30383 cat >>$CONFIG_STATUS <<\_ACEOF
30384 # Split the substitutions into bite-sized pieces for seds with
30385 # small command number limits, like on Digital OSF/1 and HP-UX.
30386 ac_max_sed_lines=48
30387 ac_sed_frag=1 # Number of current file.
30388 ac_beg=1 # First line for current file.
30389 ac_end=$ac_max_sed_lines # Line after last line for current file.
30392 while $ac_more_lines; do
30393 if test $ac_beg -gt 1; then
30394 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30396 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30398 if test ! -s $tmp/subs.frag; then
30399 ac_more_lines=false
30401 # The purpose of the label and of the branching condition is to
30402 # speed up the sed processing (if there are no `@' at all, there
30403 # is no need to browse any of the substitutions).
30404 # These are the two extra sed commands mentioned above.
30406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30407 if test -z "$ac_sed_cmds"; then
30408 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30410 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30412 ac_sed_frag=`expr $ac_sed_frag + 1`
30414 ac_end=`expr $ac_end + $ac_max_sed_lines`
30417 if test -z "$ac_sed_cmds"; then
30420 fi # test -n "$CONFIG_FILES"
30423 cat >>$CONFIG_STATUS <<\_ACEOF
30424 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30425 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30427 - | *:- | *:-:* ) # input from stdin
30429 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30430 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30431 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30432 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30433 * ) ac_file_in=$ac_file.in ;;
30436 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30437 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30439 X"$ac_file" : 'X\(//\)[^/]' \| \
30440 X"$ac_file" : 'X\(//\)$' \| \
30441 X"$ac_file" : 'X\(/\)' \| \
30442 . : '\(.\)' 2>/dev/null ||
30444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30445 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30446 /^X\(\/\/\)$/{ s//\1/; q; }
30447 /^X\(\/\).*/{ s//\1/; q; }
30449 { if $as_mkdir_p; then
30454 while test ! -d "$as_dir"; do
30455 as_dirs="$as_dir $as_dirs"
30456 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30458 X"$as_dir" : 'X\(//\)[^/]' \| \
30459 X"$as_dir" : 'X\(//\)$' \| \
30460 X"$as_dir" : 'X\(/\)' \| \
30461 . : '\(.\)' 2>/dev/null ||
30463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30464 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30465 /^X\(\/\/\)$/{ s//\1/; q; }
30466 /^X\(\/\).*/{ s//\1/; q; }
30469 test ! -n "$as_dirs" || mkdir $as_dirs
30470 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30471 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30472 { (exit 1); exit 1; }; }; }
30476 if test "$ac_dir" != .; then
30477 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30478 # A "../" for each directory in $ac_dir_suffix.
30479 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30481 ac_dir_suffix= ac_top_builddir=
30485 .) # No --srcdir option. We are building in place.
30487 if test -z "$ac_top_builddir"; then
30490 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30492 [\\/]* | ?:[\\/]* ) # Absolute path.
30493 ac_srcdir=$srcdir$ac_dir_suffix;
30494 ac_top_srcdir=$srcdir ;;
30495 *) # Relative path.
30496 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30497 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30500 # Do not use `cd foo && pwd` to compute absolute paths, because
30501 # the directories may not exist.
30503 .) ac_abs_builddir="$ac_dir";;
30506 .) ac_abs_builddir=`pwd`;;
30507 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30508 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30511 case $ac_abs_builddir in
30512 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30514 case ${ac_top_builddir}. in
30515 .) ac_abs_top_builddir=$ac_abs_builddir;;
30516 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30517 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30520 case $ac_abs_builddir in
30521 .) ac_abs_srcdir=$ac_srcdir;;
30524 .) ac_abs_srcdir=$ac_abs_builddir;;
30525 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30526 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30529 case $ac_abs_builddir in
30530 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30532 case $ac_top_srcdir in
30533 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30534 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30535 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30541 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30542 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30545 if test x"$ac_file" != x-; then
30546 { echo "$as_me:$LINENO: creating $ac_file" >&5
30547 echo "$as_me: creating $ac_file" >&6;}
30550 # Let's still pretend it is `configure' which instantiates (i.e., don't
30551 # use $as_me), people would be surprised to read:
30552 # /* config.h. Generated by config.status. */
30553 if test x"$ac_file" = x-; then
30556 configure_input="$ac_file. "
30558 configure_input=$configure_input"Generated from `echo $ac_file_in |
30559 sed 's,.*/,,'` by configure."
30561 # First look for the input files in the build tree, otherwise in the
30563 ac_file_inputs=`IFS=:
30564 for f in $ac_file_in; do
30566 -) echo $tmp/stdin ;;
30568 # Absolute (can't be DOS-style, as IFS=:)
30569 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30570 echo "$as_me: error: cannot find input file: $f" >&2;}
30571 { (exit 1); exit 1; }; }
30574 if test -f "$f"; then
30577 elif test -f "$srcdir/$f"; then
30582 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30583 echo "$as_me: error: cannot find input file: $f" >&2;}
30584 { (exit 1); exit 1; }; }
30587 done` || { (exit 1); exit 1; }
30589 cat >>$CONFIG_STATUS <<_ACEOF
30593 cat >>$CONFIG_STATUS <<\_ACEOF
30595 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30596 s,@configure_input@,$configure_input,;t t
30597 s,@srcdir@,$ac_srcdir,;t t
30598 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30599 s,@top_srcdir@,$ac_top_srcdir,;t t
30600 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30601 s,@builddir@,$ac_builddir,;t t
30602 s,@abs_builddir@,$ac_abs_builddir,;t t
30603 s,@top_builddir@,$ac_top_builddir,;t t
30604 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30605 s,@INSTALL@,$ac_INSTALL,;t t
30606 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30608 if test x"$ac_file" != x-; then
30609 mv $tmp/out $ac_file
30617 cat >>$CONFIG_STATUS <<\_ACEOF
30620 # CONFIG_HEADER section.
30623 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30624 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30626 # ac_d sets the value in "#define NAME VALUE" lines.
30627 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30628 ac_dB='[ ].*$,\1#\2'
30631 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30632 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30633 ac_uB='$,\1#\2define\3'
30637 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30638 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30640 - | *:- | *:-:* ) # input from stdin
30642 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30643 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30644 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30645 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30646 * ) ac_file_in=$ac_file.in ;;
30649 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30650 echo "$as_me: creating $ac_file" >&6;}
30652 # First look for the input files in the build tree, otherwise in the
30654 ac_file_inputs=`IFS=:
30655 for f in $ac_file_in; do
30657 -) echo $tmp/stdin ;;
30659 # Absolute (can't be DOS-style, as IFS=:)
30660 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30661 echo "$as_me: error: cannot find input file: $f" >&2;}
30662 { (exit 1); exit 1; }; }
30663 # Do quote $f, to prevent DOS paths from being IFS'd.
30666 if test -f "$f"; then
30669 elif test -f "$srcdir/$f"; then
30674 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30675 echo "$as_me: error: cannot find input file: $f" >&2;}
30676 { (exit 1); exit 1; }; }
30679 done` || { (exit 1); exit 1; }
30680 # Remove the trailing spaces.
30681 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30685 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30686 # `conftest.undefs', that substitutes the proper values into
30687 # config.h.in to produce config.h. The first handles `#define'
30688 # templates, and the second `#undef' templates.
30689 # And first: Protect against being on the right side of a sed subst in
30690 # config.status. Protect against being in an unquoted here document
30691 # in config.status.
30692 rm -f conftest.defines conftest.undefs
30693 # Using a here document instead of a string reduces the quoting nightmare.
30694 # Putting comments in sed scripts is not portable.
30696 # `end' is used to avoid that the second main sed command (meant for
30697 # 0-ary CPP macros) applies to n-ary macro definitions.
30698 # See the Autoconf documentation for `clear'.
30699 cat >confdef2sed.sed <<\_ACEOF
30704 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30706 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30709 # If some macros were called several times there might be several times
30710 # the same #defines, which is useless. Nevertheless, we may not want to
30711 # sort them, since we want the *last* AC-DEFINE to be honored.
30712 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30713 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30714 rm -f confdef2sed.sed
30716 # This sed command replaces #undef with comments. This is necessary, for
30717 # example, in the case of _POSIX_SOURCE, which is predefined and required
30718 # on some systems where configure will not decide to define it.
30719 cat >>conftest.undefs <<\_ACEOF
30720 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30723 # Break up conftest.defines because some shells have a limit on the size
30724 # of here documents, and old seds have small limits too (100 cmds).
30725 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30726 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30727 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30728 echo ' :' >>$CONFIG_STATUS
30729 rm -f conftest.tail
30730 while grep . conftest.defines >/dev/null
30732 # Write a limited-size here document to $tmp/defines.sed.
30733 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30734 # Speed up: don't consider the non `#define' lines.
30735 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30736 # Work around the forget-to-reset-the-flag bug.
30737 echo 't clr' >>$CONFIG_STATUS
30738 echo ': clr' >>$CONFIG_STATUS
30739 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30741 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30743 mv $tmp/out $tmp/in
30745 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30746 rm -f conftest.defines
30747 mv conftest.tail conftest.defines
30749 rm -f conftest.defines
30750 echo ' fi # grep' >>$CONFIG_STATUS
30751 echo >>$CONFIG_STATUS
30753 # Break up conftest.undefs because some shells have a limit on the size
30754 # of here documents, and old seds have small limits too (100 cmds).
30755 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30756 rm -f conftest.tail
30757 while grep . conftest.undefs >/dev/null
30759 # Write a limited-size here document to $tmp/undefs.sed.
30760 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30761 # Speed up: don't consider the non `#undef'
30762 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30763 # Work around the forget-to-reset-the-flag bug.
30764 echo 't clr' >>$CONFIG_STATUS
30765 echo ': clr' >>$CONFIG_STATUS
30766 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30768 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30770 mv $tmp/out $tmp/in
30772 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30773 rm -f conftest.undefs
30774 mv conftest.tail conftest.undefs
30776 rm -f conftest.undefs
30778 cat >>$CONFIG_STATUS <<\_ACEOF
30779 # Let's still pretend it is `configure' which instantiates (i.e., don't
30780 # use $as_me), people would be surprised to read:
30781 # /* config.h. Generated by config.status. */
30782 if test x"$ac_file" = x-; then
30783 echo "/* Generated by configure. */" >$tmp/config.h
30785 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30787 cat $tmp/in >>$tmp/config.h
30789 if test x"$ac_file" != x-; then
30790 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30791 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30792 echo "$as_me: $ac_file is unchanged" >&6;}
30794 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30796 X"$ac_file" : 'X\(//\)[^/]' \| \
30797 X"$ac_file" : 'X\(//\)$' \| \
30798 X"$ac_file" : 'X\(/\)' \| \
30799 . : '\(.\)' 2>/dev/null ||
30801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30803 /^X\(\/\/\)$/{ s//\1/; q; }
30804 /^X\(\/\).*/{ s//\1/; q; }
30806 { if $as_mkdir_p; then
30811 while test ! -d "$as_dir"; do
30812 as_dirs="$as_dir $as_dirs"
30813 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30815 X"$as_dir" : 'X\(//\)[^/]' \| \
30816 X"$as_dir" : 'X\(//\)$' \| \
30817 X"$as_dir" : 'X\(/\)' \| \
30818 . : '\(.\)' 2>/dev/null ||
30820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30822 /^X\(\/\/\)$/{ s//\1/; q; }
30823 /^X\(\/\).*/{ s//\1/; q; }
30826 test ! -n "$as_dirs" || mkdir $as_dirs
30827 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30828 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30829 { (exit 1); exit 1; }; }; }
30832 mv $tmp/config.h $ac_file
30836 rm -f $tmp/config.h
30840 cat >>$CONFIG_STATUS <<\_ACEOF
30843 # CONFIG_LINKS section.
30846 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30847 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30848 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30850 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30851 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30853 if test ! -r $srcdir/$ac_source; then
30854 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30855 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30856 { (exit 1); exit 1; }; }
30860 # Make relative symlinks.
30861 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30862 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30863 X"$ac_dest" : 'X\(//\)[^/]' \| \
30864 X"$ac_dest" : 'X\(//\)$' \| \
30865 X"$ac_dest" : 'X\(/\)' \| \
30866 . : '\(.\)' 2>/dev/null ||
30868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30870 /^X\(\/\/\)$/{ s//\1/; q; }
30871 /^X\(\/\).*/{ s//\1/; q; }
30873 { if $as_mkdir_p; then
30874 mkdir -p "$ac_dest_dir"
30876 as_dir="$ac_dest_dir"
30878 while test ! -d "$as_dir"; do
30879 as_dirs="$as_dir $as_dirs"
30880 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30882 X"$as_dir" : 'X\(//\)[^/]' \| \
30883 X"$as_dir" : 'X\(//\)$' \| \
30884 X"$as_dir" : 'X\(/\)' \| \
30885 . : '\(.\)' 2>/dev/null ||
30887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30889 /^X\(\/\/\)$/{ s//\1/; q; }
30890 /^X\(\/\).*/{ s//\1/; q; }
30893 test ! -n "$as_dirs" || mkdir $as_dirs
30894 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30895 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30896 { (exit 1); exit 1; }; }; }
30900 if test "$ac_dest_dir" != .; then
30901 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30902 # A "../" for each directory in $ac_dir_suffix.
30903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30905 ac_dir_suffix= ac_top_builddir=
30909 .) # No --srcdir option. We are building in place.
30911 if test -z "$ac_top_builddir"; then
30914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30916 [\\/]* | ?:[\\/]* ) # Absolute path.
30917 ac_srcdir=$srcdir$ac_dir_suffix;
30918 ac_top_srcdir=$srcdir ;;
30919 *) # Relative path.
30920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30924 # Do not use `cd foo && pwd` to compute absolute paths, because
30925 # the directories may not exist.
30927 .) ac_abs_builddir="$ac_dest_dir";;
30929 case "$ac_dest_dir" in
30930 .) ac_abs_builddir=`pwd`;;
30931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30932 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30935 case $ac_abs_builddir in
30936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30938 case ${ac_top_builddir}. in
30939 .) ac_abs_top_builddir=$ac_abs_builddir;;
30940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30944 case $ac_abs_builddir in
30945 .) ac_abs_srcdir=$ac_srcdir;;
30948 .) ac_abs_srcdir=$ac_abs_builddir;;
30949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30953 case $ac_abs_builddir in
30954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30956 case $ac_top_srcdir in
30957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30965 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30966 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30969 # Try a symlink, then a hard link, then a copy.
30970 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30971 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30972 cp -p $srcdir/$ac_source $ac_dest ||
30973 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30974 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30975 { (exit 1); exit 1; }; }
30978 cat >>$CONFIG_STATUS <<\_ACEOF
30981 # CONFIG_COMMANDS section.
30983 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30984 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30985 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30986 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30987 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30988 X"$ac_dest" : 'X\(//\)[^/]' \| \
30989 X"$ac_dest" : 'X\(//\)$' \| \
30990 X"$ac_dest" : 'X\(/\)' \| \
30991 . : '\(.\)' 2>/dev/null ||
30993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30995 /^X\(\/\/\)$/{ s//\1/; q; }
30996 /^X\(\/\).*/{ s//\1/; q; }
30998 { if $as_mkdir_p; then
31003 while test ! -d "$as_dir"; do
31004 as_dirs="$as_dir $as_dirs"
31005 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31007 X"$as_dir" : 'X\(//\)[^/]' \| \
31008 X"$as_dir" : 'X\(//\)$' \| \
31009 X"$as_dir" : 'X\(/\)' \| \
31010 . : '\(.\)' 2>/dev/null ||
31012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31014 /^X\(\/\/\)$/{ s//\1/; q; }
31015 /^X\(\/\).*/{ s//\1/; q; }
31018 test ! -n "$as_dirs" || mkdir $as_dirs
31019 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31020 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31021 { (exit 1); exit 1; }; }; }
31025 if test "$ac_dir" != .; then
31026 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31027 # A "../" for each directory in $ac_dir_suffix.
31028 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31030 ac_dir_suffix= ac_top_builddir=
31034 .) # No --srcdir option. We are building in place.
31036 if test -z "$ac_top_builddir"; then
31039 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31041 [\\/]* | ?:[\\/]* ) # Absolute path.
31042 ac_srcdir=$srcdir$ac_dir_suffix;
31043 ac_top_srcdir=$srcdir ;;
31044 *) # Relative path.
31045 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31046 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31049 # Do not use `cd foo && pwd` to compute absolute paths, because
31050 # the directories may not exist.
31052 .) ac_abs_builddir="$ac_dir";;
31055 .) ac_abs_builddir=`pwd`;;
31056 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31057 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31060 case $ac_abs_builddir in
31061 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31063 case ${ac_top_builddir}. in
31064 .) ac_abs_top_builddir=$ac_abs_builddir;;
31065 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31066 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31069 case $ac_abs_builddir in
31070 .) ac_abs_srcdir=$ac_srcdir;;
31073 .) ac_abs_srcdir=$ac_abs_builddir;;
31074 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31075 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31078 case $ac_abs_builddir in
31079 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31081 case $ac_top_srcdir in
31082 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31083 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31084 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31089 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31090 echo "$as_me: executing $ac_dest commands" >&6;}
31092 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31093 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31094 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31095 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31096 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31097 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31098 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31099 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
31100 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
31101 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31102 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31103 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31108 cat >>$CONFIG_STATUS <<\_ACEOF
31110 { (exit 0); exit 0; }
31112 chmod +x $CONFIG_STATUS
31113 ac_clean_files=$ac_clean_files_save
31116 # configure is writing to config.log, and then calls config.status.
31117 # config.status does its own redirection, appending to config.log.
31118 # Unfortunately, on DOS this fails, as config.log is still kept open
31119 # by configure, so config.status won't be able to write to it; its
31120 # output is simply discarded. So we exec the FD to /dev/null,
31121 # effectively closing config.log, so it can be properly (re)opened and
31122 # appended to by config.status. When coming back to configure, we
31123 # need to make the FD available again.
31124 if test "$no_create" != yes; then
31126 ac_config_status_args=
31127 test "$silent" = yes &&
31128 ac_config_status_args="$ac_config_status_args --quiet"
31130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31133 # would make configure fail if this is the last instruction.
31134 $ac_cs_success || { (exit 1); exit 1; }
31138 # CONFIG_SUBDIRS section.
31140 if test "$no_recursion" != yes; then
31142 # Remove --cache-file and --srcdir arguments so they do not pile up.
31143 ac_sub_configure_args=
31145 for ac_arg in $ac_configure_args; do
31146 if test -n "$ac_prev"; then
31151 -cache-file | --cache-file | --cache-fil | --cache-fi \
31152 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31153 ac_prev=cache_file ;;
31154 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31155 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31158 --config-cache | -C)
31160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31164 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31166 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31168 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31172 # Always prepend --prefix to ensure using the same prefix
31173 # in subdir configurations.
31174 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31177 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31179 # Do not complain, so a configure script can configure whichever
31180 # parts of a large source tree are present.
31181 test -d $srcdir/$ac_dir || continue
31183 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31184 echo "$as_me: configuring in $ac_dir" >&6;}
31185 { if $as_mkdir_p; then
31190 while test ! -d "$as_dir"; do
31191 as_dirs="$as_dir $as_dirs"
31192 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31194 X"$as_dir" : 'X\(//\)[^/]' \| \
31195 X"$as_dir" : 'X\(//\)$' \| \
31196 X"$as_dir" : 'X\(/\)' \| \
31197 . : '\(.\)' 2>/dev/null ||
31199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31201 /^X\(\/\/\)$/{ s//\1/; q; }
31202 /^X\(\/\).*/{ s//\1/; q; }
31205 test ! -n "$as_dirs" || mkdir $as_dirs
31206 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31207 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31208 { (exit 1); exit 1; }; }; }
31212 if test "$ac_dir" != .; then
31213 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31214 # A "../" for each directory in $ac_dir_suffix.
31215 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31217 ac_dir_suffix= ac_top_builddir=
31221 .) # No --srcdir option. We are building in place.
31223 if test -z "$ac_top_builddir"; then
31226 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31228 [\\/]* | ?:[\\/]* ) # Absolute path.
31229 ac_srcdir=$srcdir$ac_dir_suffix;
31230 ac_top_srcdir=$srcdir ;;
31231 *) # Relative path.
31232 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31233 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31236 # Do not use `cd foo && pwd` to compute absolute paths, because
31237 # the directories may not exist.
31239 .) ac_abs_builddir="$ac_dir";;
31242 .) ac_abs_builddir=`pwd`;;
31243 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31244 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31247 case $ac_abs_builddir in
31248 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31250 case ${ac_top_builddir}. in
31251 .) ac_abs_top_builddir=$ac_abs_builddir;;
31252 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31253 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31256 case $ac_abs_builddir in
31257 .) ac_abs_srcdir=$ac_srcdir;;
31260 .) ac_abs_srcdir=$ac_abs_builddir;;
31261 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31262 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31265 case $ac_abs_builddir in
31266 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31268 case $ac_top_srcdir in
31269 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31270 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31271 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31278 # Check for guested configure; otherwise get Cygnus style configure.
31279 if test -f $ac_srcdir/configure.gnu; then
31280 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31281 elif test -f $ac_srcdir/configure; then
31282 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31283 elif test -f $ac_srcdir/configure.in; then
31284 ac_sub_configure=$ac_configure
31286 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31287 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31291 # The recursion is here.
31292 if test -n "$ac_sub_configure"; then
31293 # Make the cache file name correct relative to the subdirectory.
31294 case $cache_file in
31295 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31296 *) # Relative path.
31297 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31300 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31301 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31302 # The eval makes quoting arguments work.
31303 eval $ac_sub_configure $ac_sub_configure_args \
31304 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31305 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31306 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31307 { (exit 1); exit 1; }; }
31315 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31316 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
31317 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
31318 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
31319 echo "$as_me: WARNING: ***** appear to be working." >&2;}
31320 { echo "$as_me:$LINENO: WARNING: ***** " >&5
31321 echo "$as_me: WARNING: ***** " >&2;}
31322 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
31323 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
31324 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
31325 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
31326 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
31327 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}