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 CMP CP DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS 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/
3010 ac_cpp='$CPP $CPPFLAGS'
3011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3014 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3015 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3016 # On Suns, sometimes $CPP names a directory.
3017 if test -n "$CPP" && test -d "$CPP"; then
3020 if test -z "$CPP"; then
3021 if test "${ac_cv_prog_CPP+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 # Double quotes because CPP needs to be expanded
3025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3028 for ac_c_preproc_warn_flag in '' yes
3030 # Use a header file that comes with gcc, so configuring glibc
3031 # with a fresh cross-compiler works.
3032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3033 # <limits.h> exists even on freestanding compilers.
3034 # On the NeXT, cc -E runs the code through the compiler's parser,
3035 # not just through cpp. "Syntax error" is here to catch this case.
3036 cat >conftest.$ac_ext <<_ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3043 # include <limits.h>
3045 # include <assert.h>
3049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3052 grep -v '^ *+' conftest.er1 >conftest.err
3054 cat conftest.err >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } >/dev/null; then
3057 if test -s conftest.err; then
3058 ac_cpp_err=$ac_c_preproc_warn_flag
3059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3066 if test -z "$ac_cpp_err"; then
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3072 # Broken: fails on valid input.
3075 rm -f conftest.err conftest.$ac_ext
3077 # OK, works on sane cases. Now check whether non-existent headers
3078 # can be detected and how.
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085 #include <ac_nonexistent.h>
3087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3090 grep -v '^ *+' conftest.er1 >conftest.err
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } >/dev/null; then
3095 if test -s conftest.err; then
3096 ac_cpp_err=$ac_c_preproc_warn_flag
3097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3104 if test -z "$ac_cpp_err"; then
3105 # Broken: success on invalid input.
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3111 # Passes both tests.
3115 rm -f conftest.err conftest.$ac_ext
3118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3119 rm -f conftest.err conftest.$ac_ext
3120 if $ac_preproc_ok; then
3132 echo "$as_me:$LINENO: result: $CPP" >&5
3133 echo "${ECHO_T}$CPP" >&6
3135 for ac_c_preproc_warn_flag in '' yes
3137 # Use a header file that comes with gcc, so configuring glibc
3138 # with a fresh cross-compiler works.
3139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3140 # <limits.h> exists even on freestanding compilers.
3141 # On the NeXT, cc -E runs the code through the compiler's parser,
3142 # not just through cpp. "Syntax error" is here to catch this case.
3143 cat >conftest.$ac_ext <<_ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3150 # include <limits.h>
3152 # include <assert.h>
3156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3159 grep -v '^ *+' conftest.er1 >conftest.err
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } >/dev/null; then
3164 if test -s conftest.err; then
3165 ac_cpp_err=$ac_c_preproc_warn_flag
3166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3173 if test -z "$ac_cpp_err"; then
3176 echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3179 # Broken: fails on valid input.
3182 rm -f conftest.err conftest.$ac_ext
3184 # OK, works on sane cases. Now check whether non-existent headers
3185 # can be detected and how.
3186 cat >conftest.$ac_ext <<_ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3192 #include <ac_nonexistent.h>
3194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3197 grep -v '^ *+' conftest.er1 >conftest.err
3199 cat conftest.err >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } >/dev/null; then
3202 if test -s conftest.err; then
3203 ac_cpp_err=$ac_c_preproc_warn_flag
3204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3211 if test -z "$ac_cpp_err"; then
3212 # Broken: success on invalid input.
3215 echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3218 # Passes both tests.
3222 rm -f conftest.err conftest.$ac_ext
3225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3226 rm -f conftest.err conftest.$ac_ext
3227 if $ac_preproc_ok; then
3230 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3231 See \`config.log' for more details." >&5
3232 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3233 See \`config.log' for more details." >&2;}
3234 { (exit 1); exit 1; }; }
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248 if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3253 echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255 if test "${ac_cv_prog_CC+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 if test -n "$CC"; then
3259 ac_cv_prog_CC="$CC" # Let the user override the test.
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 if test -n "$CC"; then
3279 echo "$as_me:$LINENO: result: $CC" >&5
3280 echo "${ECHO_T}$CC" >&6
3282 echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3286 test -n "$CC" && break
3289 if test -z "$CC"; then
3293 # Extract the first word of "$ac_prog", so it can be a program name with args.
3294 set dummy $ac_prog; ac_word=$2
3295 echo "$as_me:$LINENO: checking for $ac_word" >&5
3296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3297 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 if test -n "$ac_ct_CC"; then
3301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310 ac_cv_prog_ac_ct_CC="$ac_prog"
3311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3320 if test -n "$ac_ct_CC"; then
3321 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3322 echo "${ECHO_T}$ac_ct_CC" >&6
3324 echo "$as_me:$LINENO: result: no" >&5
3325 echo "${ECHO_T}no" >&6
3328 test -n "$ac_ct_CC" && break
3335 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3336 See \`config.log' for more details." >&5
3337 echo "$as_me: error: no acceptable C compiler found in \$PATH
3338 See \`config.log' for more details." >&2;}
3339 { (exit 1); exit 1; }; }
3341 # Provide some information about the compiler.
3342 echo "$as_me:$LINENO:" \
3343 "checking for C compiler version" >&5
3344 ac_compiler=`set X $ac_compile; echo $2`
3345 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3346 (eval $ac_compiler --version </dev/null >&5) 2>&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }
3350 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3351 (eval $ac_compiler -v </dev/null >&5) 2>&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }
3355 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3356 (eval $ac_compiler -V </dev/null >&5) 2>&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }
3361 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3362 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3363 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 cat >conftest.$ac_ext <<_ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3384 rm -f conftest.$ac_objext
3385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3386 (eval $ac_compile) 2>conftest.er1
3388 grep -v '^ *+' conftest.er1 >conftest.err
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } &&
3393 { ac_try='test -z "$ac_c_werror_flag"
3394 || test ! -s conftest.err'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; } &&
3400 { ac_try='test -s conftest.$ac_objext'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3417 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3418 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3419 GCC=`test $ac_compiler_gnu = yes && echo yes`
3420 ac_test_CFLAGS=${CFLAGS+set}
3421 ac_save_CFLAGS=$CFLAGS
3423 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3424 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3425 if test "${ac_cv_prog_cc_g+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_c_werror_flag"
3453 || test ! -s conftest.err'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest.$ac_objext'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3474 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3475 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3476 if test "$ac_test_CFLAGS" = set; then
3477 CFLAGS=$ac_save_CFLAGS
3478 elif test $ac_cv_prog_cc_g = yes; then
3479 if test "$GCC" = yes; then
3485 if test "$GCC" = yes; then
3491 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3492 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3493 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 ac_cv_prog_cc_stdc=no
3498 cat >conftest.$ac_ext <<_ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3506 #include <sys/types.h>
3507 #include <sys/stat.h>
3508 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3509 struct buf { int x; };
3510 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3511 static char *e (p, i)
3517 static char *f (char * (*g) (char **, int), char **p, ...)
3522 s = g (p, va_arg (v,int));
3527 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3528 function prototypes and stuff, but not '\xHH' hex character constants.
3529 These don't provoke an error unfortunately, instead are silently treated
3530 as 'x'. The following induces an error, until -std1 is added to get
3531 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3532 array size at least. It's necessary to write '\x00'==0 to get something
3533 that's true only with -std1. */
3534 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3536 int test (int i, double x);
3537 struct s1 {int (*f) (int a);};
3538 struct s2 {int (*f) (double a);};
3539 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3545 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3550 # Don't try gcc -ansi; that turns off useful extensions and
3551 # breaks some systems' header files.
3552 # AIX -qlanglvl=ansi
3553 # Ultrix and OSF/1 -std1
3554 # HP-UX 10.20 and later -Ae
3555 # HP-UX older versions -Aa -D_HPUX_SOURCE
3556 # SVR4 -Xc -D__EXTENSIONS__
3557 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3559 CC="$ac_save_CC $ac_arg"
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
3569 { ac_try='test -z "$ac_c_werror_flag"
3570 || test ! -s conftest.err'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; } &&
3576 { ac_try='test -s conftest.$ac_objext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 ac_cv_prog_cc_stdc=$ac_arg
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3589 rm -f conftest.err conftest.$ac_objext
3591 rm -f conftest.$ac_ext conftest.$ac_objext
3596 case "x$ac_cv_prog_cc_stdc" in
3598 echo "$as_me:$LINENO: result: none needed" >&5
3599 echo "${ECHO_T}none needed" >&6 ;;
3601 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3602 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3603 CC="$CC $ac_cv_prog_cc_stdc" ;;
3606 # Some people use a C++ compiler to compile C. Since we use `exit',
3607 # in C++ we need to declare it. In case someone uses the same compiler
3608 # for both compiling C and C++ we need to have the C++ compiler decide
3609 # the declaration of exit, since it's the most demanding environment.
3610 cat >conftest.$ac_ext <<_ACEOF
3615 rm -f conftest.$ac_objext
3616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617 (eval $ac_compile) 2>conftest.er1
3619 grep -v '^ *+' conftest.er1 >conftest.err
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
3624 { ac_try='test -z "$ac_c_werror_flag"
3625 || test ! -s conftest.err'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest.$ac_objext'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 for ac_declaration in \
3639 'extern "C" void std::exit (int) throw (); using std::exit;' \
3640 'extern "C" void std::exit (int); using std::exit;' \
3641 'extern "C" void exit (int) throw ();' \
3642 'extern "C" void exit (int);' \
3645 cat >conftest.$ac_ext <<_ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3661 rm -f conftest.$ac_objext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3663 (eval $ac_compile) 2>conftest.er1
3665 grep -v '^ *+' conftest.er1 >conftest.err
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try='test -z "$ac_c_werror_flag"
3671 || test ! -s conftest.err'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; } &&
3677 { ac_try='test -s conftest.$ac_objext'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3691 cat >conftest.$ac_ext <<_ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3706 rm -f conftest.$ac_objext
3707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708 (eval $ac_compile) 2>conftest.er1
3710 grep -v '^ *+' conftest.er1 >conftest.err
3712 cat conftest.err >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } &&
3715 { ac_try='test -z "$ac_c_werror_flag"
3716 || test ! -s conftest.err'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; } &&
3722 { ac_try='test -s conftest.$ac_objext'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3737 if test -n "$ac_declaration"; then
3738 echo '#ifdef __cplusplus' >>confdefs.h
3739 echo $ac_declaration >>confdefs.h
3740 echo '#endif' >>confdefs.h
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756 ac_cpp='$CXXCPP $CPPFLAGS'
3757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3760 if test -n "$ac_tool_prefix"; then
3761 for ac_prog in $CCC g++
3763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3765 echo "$as_me:$LINENO: checking for $ac_word" >&5
3766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3767 if test "${ac_cv_prog_CXX+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 if test -n "$CXX"; then
3771 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 test -z "$as_dir" && as_dir=.
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 if test -n "$CXX"; then
3791 echo "$as_me:$LINENO: result: $CXX" >&5
3792 echo "${ECHO_T}$CXX" >&6
3794 echo "$as_me:$LINENO: result: no" >&5
3795 echo "${ECHO_T}no" >&6
3798 test -n "$CXX" && break
3801 if test -z "$CXX"; then
3803 for ac_prog in $CCC g++
3805 # Extract the first word of "$ac_prog", so it can be a program name with args.
3806 set dummy $ac_prog; ac_word=$2
3807 echo "$as_me:$LINENO: checking for $ac_word" >&5
3808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3809 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 if test -n "$ac_ct_CXX"; then
3813 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 test -z "$as_dir" && as_dir=.
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822 ac_cv_prog_ac_ct_CXX="$ac_prog"
3823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3832 if test -n "$ac_ct_CXX"; then
3833 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3834 echo "${ECHO_T}$ac_ct_CXX" >&6
3836 echo "$as_me:$LINENO: result: no" >&5
3837 echo "${ECHO_T}no" >&6
3840 test -n "$ac_ct_CXX" && break
3842 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3848 # Provide some information about the compiler.
3849 echo "$as_me:$LINENO:" \
3850 "checking for C++ compiler version" >&5
3851 ac_compiler=`set X $ac_compile; echo $2`
3852 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3853 (eval $ac_compiler --version </dev/null >&5) 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }
3857 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3858 (eval $ac_compiler -v </dev/null >&5) 2>&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }
3862 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3863 (eval $ac_compiler -V </dev/null >&5) 2>&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }
3868 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3869 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3870 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 cat >conftest.$ac_ext <<_ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3891 rm -f conftest.$ac_objext
3892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3893 (eval $ac_compile) 2>conftest.er1
3895 grep -v '^ *+' conftest.er1 >conftest.err
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } &&
3900 { ac_try='test -z "$ac_cxx_werror_flag"
3901 || test ! -s conftest.err'
3902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; } &&
3907 { ac_try='test -s conftest.$ac_objext'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3921 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3924 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3925 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3926 GXX=`test $ac_compiler_gnu = yes && echo yes`
3927 ac_test_CXXFLAGS=${CXXFLAGS+set}
3928 ac_save_CXXFLAGS=$CXXFLAGS
3930 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3931 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3932 if test "${ac_cv_prog_cxx_g+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 cat >conftest.$ac_ext <<_ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3950 rm -f conftest.$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>conftest.er1
3954 grep -v '^ *+' conftest.er1 >conftest.err
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } &&
3959 { ac_try='test -z "$ac_cxx_werror_flag"
3960 || test ! -s conftest.err'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; } &&
3966 { ac_try='test -s conftest.$ac_objext'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; }; then
3972 ac_cv_prog_cxx_g=yes
3974 echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3981 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3982 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3983 if test "$ac_test_CXXFLAGS" = set; then
3984 CXXFLAGS=$ac_save_CXXFLAGS
3985 elif test $ac_cv_prog_cxx_g = yes; then
3986 if test "$GXX" = yes; then
3992 if test "$GXX" = yes; then
3998 for ac_declaration in \
4000 'extern "C" void std::exit (int) throw (); using std::exit;' \
4001 'extern "C" void std::exit (int); using std::exit;' \
4002 'extern "C" void exit (int) throw ();' \
4003 'extern "C" void exit (int);' \
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4022 rm -f conftest.$ac_objext
4023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4024 (eval $ac_compile) 2>conftest.er1
4026 grep -v '^ *+' conftest.er1 >conftest.err
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } &&
4031 { ac_try='test -z "$ac_cxx_werror_flag"
4032 || test ! -s conftest.err'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; } &&
4038 { ac_try='test -s conftest.$ac_objext'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4052 cat >conftest.$ac_ext <<_ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4067 rm -f conftest.$ac_objext
4068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4069 (eval $ac_compile) 2>conftest.er1
4071 grep -v '^ *+' conftest.er1 >conftest.err
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -z "$ac_cxx_werror_flag"
4077 || test ! -s conftest.err'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest.$ac_objext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4098 if test -n "$ac_declaration"; then
4099 echo '#ifdef __cplusplus' >>confdefs.h
4100 echo $ac_declaration >>confdefs.h
4101 echo '#endif' >>confdefs.h
4105 ac_cpp='$CPP $CPPFLAGS'
4106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110 echo "$as_me:$LINENO: checking " >&5
4111 echo $ECHO_N "checking ... $ECHO_C" >&6
4112 if test "${ac_cv_has_flex+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 for ac_prog in flex lex
4117 # Extract the first word of "$ac_prog", so it can be a program name with args.
4118 set dummy $ac_prog; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_prog_LEX+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 if test -n "$LEX"; then
4125 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_LEX="$ac_prog"
4135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 if test -n "$LEX"; then
4145 echo "$as_me:$LINENO: result: $LEX" >&5
4146 echo "${ECHO_T}$LEX" >&6
4148 echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6
4152 test -n "$LEX" && break
4154 test -n "$LEX" || LEX=":"
4156 if test -z "$LEXLIB"
4158 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4159 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4160 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 ac_check_lib_save_LIBS=$LIBS
4165 cat >conftest.$ac_ext <<_ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4172 /* Override any gcc2 internal prototype to avoid an error. */
4176 /* We use char because int might match the return type of a gcc2
4177 builtin and then its argument prototype would still apply. */
4187 rm -f conftest.$ac_objext conftest$ac_exeext
4188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4189 (eval $ac_link) 2>conftest.er1
4191 grep -v '^ *+' conftest.er1 >conftest.err
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
4196 { ac_try='test -z "$ac_c_werror_flag"
4197 || test ! -s conftest.err'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; } &&
4203 { ac_try='test -s conftest$ac_exeext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 ac_cv_lib_fl_yywrap=yes
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 ac_cv_lib_fl_yywrap=no
4216 rm -f conftest.err conftest.$ac_objext \
4217 conftest$ac_exeext conftest.$ac_ext
4218 LIBS=$ac_check_lib_save_LIBS
4220 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4221 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4222 if test $ac_cv_lib_fl_yywrap = yes; then
4225 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4226 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4227 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 ac_check_lib_save_LIBS=$LIBS
4232 cat >conftest.$ac_ext <<_ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4239 /* Override any gcc2 internal prototype to avoid an error. */
4243 /* We use char because int might match the return type of a gcc2
4244 builtin and then its argument prototype would still apply. */
4254 rm -f conftest.$ac_objext conftest$ac_exeext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4256 (eval $ac_link) 2>conftest.er1
4258 grep -v '^ *+' conftest.er1 >conftest.err
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag"
4264 || test ! -s conftest.err'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; } &&
4270 { ac_try='test -s conftest$ac_exeext'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 ac_cv_lib_l_yywrap=yes
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4281 ac_cv_lib_l_yywrap=no
4283 rm -f conftest.err conftest.$ac_objext \
4284 conftest$ac_exeext conftest.$ac_ext
4285 LIBS=$ac_check_lib_save_LIBS
4287 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4288 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4289 if test $ac_cv_lib_l_yywrap = yes; then
4297 if test "x$LEX" != "x:"; then
4298 echo "$as_me:$LINENO: checking lex output file root" >&5
4299 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4300 if test "${ac_cv_prog_lex_root+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 # The minimal lex program is just a single line: %%. But some broken lexes
4304 # (Solaris, I think it was) want two %% lines, so accommodate them.
4305 cat >conftest.l <<_ACEOF
4309 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4310 (eval $LEX conftest.l) 2>&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }
4314 if test -f lex.yy.c; then
4315 ac_cv_prog_lex_root=lex.yy
4316 elif test -f lexyy.c; then
4317 ac_cv_prog_lex_root=lexyy
4319 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4320 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4321 { (exit 1); exit 1; }; }
4324 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4325 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4327 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4329 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4330 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4331 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 # POSIX says lex can declare yytext either as a pointer or an array; the
4335 # default is implementation-dependent. Figure out which it is, since
4336 # not all implementations provide the %pointer and %array declarations.
4337 ac_cv_prog_lex_yytext_pointer=no
4338 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4340 LIBS="$LIBS $LEXLIB"
4341 cat >conftest.$ac_ext <<_ACEOF
4342 `cat $LEX_OUTPUT_ROOT.c`
4344 rm -f conftest.$ac_objext conftest$ac_exeext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4346 (eval $ac_link) 2>conftest.er1
4348 grep -v '^ *+' conftest.er1 >conftest.err
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag"
4354 || test ! -s conftest.err'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; } &&
4360 { ac_try='test -s conftest$ac_exeext'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 ac_cv_prog_lex_yytext_pointer=yes
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4372 rm -f conftest.err conftest.$ac_objext \
4373 conftest$ac_exeext conftest.$ac_ext
4375 rm -f "${LEX_OUTPUT_ROOT}.c"
4378 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4379 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4380 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4382 cat >>confdefs.h <<\_ACEOF
4383 #define YYTEXT_POINTER 1
4391 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4392 echo "${ECHO_T}$ac_cv_has_flex" >&6
4393 if test "$LEX" != "flex"; then
4394 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4395 echo "$as_me: error: flex not found but required" >&2;}
4396 { (exit 1); exit 1; }; }
4402 echo "$as_me:$LINENO: checking " >&5
4403 echo $ECHO_N "checking ... $ECHO_C" >&6
4404 if test "${llvm_cv_has_bison+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 for ac_prog in 'bison -y' byacc
4409 # Extract the first word of "$ac_prog", so it can be a program name with args.
4410 set dummy $ac_prog; ac_word=$2
4411 echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4413 if test "${ac_cv_prog_YACC+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 if test -n "$YACC"; then
4417 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 test -z "$as_dir" && as_dir=.
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4426 ac_cv_prog_YACC="$ac_prog"
4427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 YACC=$ac_cv_prog_YACC
4436 if test -n "$YACC"; then
4437 echo "$as_me:$LINENO: result: $YACC" >&5
4438 echo "${ECHO_T}$YACC" >&6
4440 echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6
4444 test -n "$YACC" && break
4446 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; }; }
4460 echo "$as_me:$LINENO: checking for GNU make" >&5
4461 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4462 if test "${llvm_cv_gnu_make_command+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 llvm_cv_gnu_make_command=''
4466 for a in "$MAKE" make gmake gnumake ; do
4467 if test -z "$a" ; then continue ; fi ;
4468 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4470 llvm_cv_gnu_make_command=$a ;
4475 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4476 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4477 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4481 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4482 echo "${ECHO_T}\"Not found\"" >&6;
4486 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4487 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4489 if test "$LN_S" = "ln -s"; then
4490 echo "$as_me:$LINENO: result: yes" >&5
4491 echo "${ECHO_T}yes" >&6
4493 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4494 echo "${ECHO_T}no, using $LN_S" >&6
4497 # Extract the first word of "cmp", so it can be a program name with args.
4498 set dummy cmp; ac_word=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_path_CMP+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4529 if test -n "$CMP"; then
4530 echo "$as_me:$LINENO: result: $CMP" >&5
4531 echo "${ECHO_T}$CMP" >&6
4533 echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6
4537 # Extract the first word of "cp", so it can be a program name with args.
4538 set dummy cp; ac_word=$2
4539 echo "$as_me:$LINENO: checking for $ac_word" >&5
4540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4541 if test "${ac_cv_path_CP+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4569 if test -n "$CP"; then
4570 echo "$as_me:$LINENO: result: $CP" >&5
4571 echo "${ECHO_T}$CP" >&6
4573 echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6
4577 # Extract the first word of "date", so it can be a program name with args.
4578 set dummy date; ac_word=$2
4579 echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581 if test "${ac_cv_path_DATE+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4607 DATE=$ac_cv_path_DATE
4609 if test -n "$DATE"; then
4610 echo "$as_me:$LINENO: result: $DATE" >&5
4611 echo "${ECHO_T}$DATE" >&6
4613 echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6
4617 # Extract the first word of "find", so it can be a program name with args.
4618 set dummy find; ac_word=$2
4619 echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621 if test "${ac_cv_path_FIND+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4647 FIND=$ac_cv_path_FIND
4649 if test -n "$FIND"; then
4650 echo "$as_me:$LINENO: result: $FIND" >&5
4651 echo "${ECHO_T}$FIND" >&6
4653 echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6
4657 # Extract the first word of "grep", so it can be a program name with args.
4658 set dummy grep; ac_word=$2
4659 echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661 if test "${ac_cv_path_GREP+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4687 GREP=$ac_cv_path_GREP
4689 if test -n "$GREP"; then
4690 echo "$as_me:$LINENO: result: $GREP" >&5
4691 echo "${ECHO_T}$GREP" >&6
4693 echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6
4697 # Extract the first word of "mkdir", so it can be a program name with args.
4698 set dummy mkdir; ac_word=$2
4699 echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701 if test "${ac_cv_path_MKDIR+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4727 MKDIR=$ac_cv_path_MKDIR
4729 if test -n "$MKDIR"; then
4730 echo "$as_me:$LINENO: result: $MKDIR" >&5
4731 echo "${ECHO_T}$MKDIR" >&6
4733 echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6
4737 # Extract the first word of "mv", so it can be a program name with args.
4738 set dummy mv; ac_word=$2
4739 echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4741 if test "${ac_cv_path_MV+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 ac_cv_path_MV="$MV" # Let the user override the test with a path.
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_path_MV="$as_dir/$ac_word$ac_exec_ext"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4769 if test -n "$MV"; then
4770 echo "$as_me:$LINENO: result: $MV" >&5
4771 echo "${ECHO_T}$MV" >&6
4773 echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6
4777 # Extract the first word of "pax", so it can be a program name with args.
4778 set dummy pax; 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_path_PAX+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4809 if test -n "$PAX"; then
4810 echo "$as_me:$LINENO: result: $PAX" >&5
4811 echo "${ECHO_T}$PAX" >&6
4813 echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6
4817 if test -n "$ac_tool_prefix"; then
4818 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4819 set dummy ${ac_tool_prefix}ranlib; 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_prog_RANLIB+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 if test -n "$RANLIB"; then
4826 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4835 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 RANLIB=$ac_cv_prog_RANLIB
4845 if test -n "$RANLIB"; then
4846 echo "$as_me:$LINENO: result: $RANLIB" >&5
4847 echo "${ECHO_T}$RANLIB" >&6
4849 echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6
4854 if test -z "$ac_cv_prog_RANLIB"; then
4855 ac_ct_RANLIB=$RANLIB
4856 # Extract the first word of "ranlib", so it can be a program name with args.
4857 set dummy ranlib; ac_word=$2
4858 echo "$as_me:$LINENO: checking for $ac_word" >&5
4859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4860 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 if test -n "$ac_ct_RANLIB"; then
4864 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873 ac_cv_prog_ac_ct_RANLIB="ranlib"
4874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4883 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4884 if test -n "$ac_ct_RANLIB"; then
4885 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4886 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4888 echo "$as_me:$LINENO: result: no" >&5
4889 echo "${ECHO_T}no" >&6
4892 RANLIB=$ac_ct_RANLIB
4894 RANLIB="$ac_cv_prog_RANLIB"
4897 # Extract the first word of "rm", so it can be a program name with args.
4898 set dummy rm; ac_word=$2
4899 echo "$as_me:$LINENO: checking for $ac_word" >&5
4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4901 if test "${ac_cv_path_RM+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4929 if test -n "$RM"; then
4930 echo "$as_me:$LINENO: result: $RM" >&5
4931 echo "${ECHO_T}$RM" >&6
4933 echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4937 # Extract the first word of "sed", so it can be a program name with args.
4938 set dummy sed; ac_word=$2
4939 echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941 if test "${ac_cv_path_SED+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4969 if test -n "$SED"; then
4970 echo "$as_me:$LINENO: result: $SED" >&5
4971 echo "${ECHO_T}$SED" >&6
4973 echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6
4977 # Extract the first word of "tar", so it can be a program name with args.
4978 set dummy tar; ac_word=$2
4979 echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4981 if test "${ac_cv_path_TAR+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5009 if test -n "$TAR"; then
5010 echo "$as_me:$LINENO: result: $TAR" >&5
5011 echo "${ECHO_T}$TAR" >&6
5013 echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6
5018 # Find a good install program. We prefer a C program (faster),
5019 # so one script is as good as another. But avoid the broken or
5020 # incompatible versions:
5021 # SysV /etc/install, /usr/sbin/install
5022 # SunOS /usr/etc/install
5023 # IRIX /sbin/install
5025 # AmigaOS /C/install, which installs bootblocks on floppy discs
5026 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5027 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5028 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5029 # OS/2's system install, which has a completely different semantic
5030 # ./install, which can be erroneously created by make from ./install.sh.
5031 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5032 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5033 if test -z "$INSTALL"; then
5034 if test "${ac_cv_path_install+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 test -z "$as_dir" && as_dir=.
5042 # Account for people who put trailing slashes in PATH elements.
5044 ./ | .// | /cC/* | \
5045 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5046 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5049 # OSF1 and SCO ODT 3.0 have their own names for install.
5050 # Don't use installbsd from OSF since it installs stuff as root
5052 for ac_prog in ginstall scoinst install; do
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5055 if test $ac_prog = install &&
5056 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5057 # AIX install. It has an incompatible calling convention.
5059 elif test $ac_prog = install &&
5060 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5061 # program-specific install script used by HP pwplus--don't use.
5064 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5076 if test "${ac_cv_path_install+set}" = set; then
5077 INSTALL=$ac_cv_path_install
5079 # As a last resort, use the slow shell script. We don't cache a
5080 # path for INSTALL within a source directory, because that will
5081 # break other packages using the cache if that directory is
5082 # removed, or if the path is relative.
5083 INSTALL=$ac_install_sh
5086 echo "$as_me:$LINENO: result: $INSTALL" >&5
5087 echo "${ECHO_T}$INSTALL" >&6
5089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5090 # It thinks the first close brace ends the variable substitution.
5091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5098 # Extract the first word of "bzip2", so it can be a program name with args.
5099 set dummy bzip2; ac_word=$2
5100 echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102 if test "${ac_cv_path_BZIP2+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5117 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5128 BZIP2=$ac_cv_path_BZIP2
5130 if test -n "$BZIP2"; then
5131 echo "$as_me:$LINENO: result: $BZIP2" >&5
5132 echo "${ECHO_T}$BZIP2" >&6
5134 echo "$as_me:$LINENO: result: no" >&5
5135 echo "${ECHO_T}no" >&6
5138 # Extract the first word of "dot", so it can be a program name with args.
5139 set dummy dot; ac_word=$2
5140 echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 if test "${ac_cv_path_DOT+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5170 if test -n "$DOT"; then
5171 echo "$as_me:$LINENO: result: $DOT" >&5
5172 echo "${ECHO_T}$DOT" >&6
5174 echo "$as_me:$LINENO: result: no" >&5
5175 echo "${ECHO_T}no" >&6
5178 # Extract the first word of "doxygen", so it can be a program name with args.
5179 set dummy doxygen; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5208 DOXYGEN=$ac_cv_path_DOXYGEN
5210 if test -n "$DOXYGEN"; then
5211 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5212 echo "${ECHO_T}$DOXYGEN" >&6
5214 echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6
5218 # Extract the first word of "etags", so it can be a program name with args.
5219 set dummy etags; ac_word=$2
5220 echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5222 if test "${ac_cv_path_ETAGS+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5248 ETAGS=$ac_cv_path_ETAGS
5250 if test -n "$ETAGS"; then
5251 echo "$as_me:$LINENO: result: $ETAGS" >&5
5252 echo "${ECHO_T}$ETAGS" >&6
5254 echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6
5258 # Extract the first word of "groff", so it can be a program name with args.
5259 set dummy groff; ac_word=$2
5260 echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262 if test "${ac_cv_path_GROFF+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5288 GROFF=$ac_cv_path_GROFF
5290 if test -n "$GROFF"; then
5291 echo "$as_me:$LINENO: result: $GROFF" >&5
5292 echo "${ECHO_T}$GROFF" >&6
5294 echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6
5298 # Extract the first word of "gzip", so it can be a program name with args.
5299 set dummy gzip; ac_word=$2
5300 echo "$as_me:$LINENO: checking for $ac_word" >&5
5301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5302 if test "${ac_cv_path_GZIP+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5328 GZIP=$ac_cv_path_GZIP
5330 if test -n "$GZIP"; then
5331 echo "$as_me:$LINENO: result: $GZIP" >&5
5332 echo "${ECHO_T}$GZIP" >&6
5334 echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6
5338 # Extract the first word of "pod2html", so it can be a program name with args.
5339 set dummy pod2html; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_path_POD2HTML+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5368 POD2HTML=$ac_cv_path_POD2HTML
5370 if test -n "$POD2HTML"; then
5371 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5372 echo "${ECHO_T}$POD2HTML" >&6
5374 echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5378 # Extract the first word of "pod2man", so it can be a program name with args.
5379 set dummy pod2man; ac_word=$2
5380 echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5382 if test "${ac_cv_path_POD2MAN+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5408 POD2MAN=$ac_cv_path_POD2MAN
5410 if test -n "$POD2MAN"; then
5411 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5412 echo "${ECHO_T}$POD2MAN" >&6
5414 echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5418 # Extract the first word of "runtest", so it can be a program name with args.
5419 set dummy runtest; ac_word=$2
5420 echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5422 if test "${ac_cv_path_RUNTEST+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5437 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5448 RUNTEST=$ac_cv_path_RUNTEST
5450 if test -n "$RUNTEST"; then
5451 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5452 echo "${ECHO_T}$RUNTEST" >&6
5454 echo "$as_me:$LINENO: result: no" >&5
5455 echo "${ECHO_T}no" >&6
5460 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5461 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5463 # Check whether --with-tclinclude or --without-tclinclude was given.
5464 if test "${with_tclinclude+set}" = set; then
5465 withval="$with_tclinclude"
5466 with_tclinclude=${withval}
5470 if test "${ac_cv_path_tclsh+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 if test x"${with_tclinclude}" != x ; then
5475 if test -f ${with_tclinclude}/tclsh ; then
5476 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5477 elif test -f ${with_tclinclude}/src/tclsh ; then
5478 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5480 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5481 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5482 { (exit 1); exit 1; }; }
5486 if test x"${ac_cv_path_tclsh}" = x ; then
5487 echo "$as_me:$LINENO: result: none" >&5
5488 echo "${ECHO_T}none" >&6
5489 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 .tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
5491 # Extract the first word of "$ac_prog", so it can be a program name with args.
5492 set dummy $ac_prog; ac_word=$2
5493 echo "$as_me:$LINENO: checking for $ac_word" >&5
5494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5495 if test "${ac_cv_path_TCLSH+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 TCLSH=$ac_cv_path_TCLSH
5522 if test -n "$TCLSH"; then
5523 echo "$as_me:$LINENO: result: $TCLSH" >&5
5524 echo "${ECHO_T}$TCLSH" >&6
5526 echo "$as_me:$LINENO: result: no" >&5
5527 echo "${ECHO_T}no" >&6
5530 test -n "$TCLSH" && break
5533 if test x"${TCLSH}" = x ; then
5534 ac_cv_path_tclsh='';
5536 ac_cv_path_tclsh="${TCLSH}";
5539 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5540 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5541 TCLSH="${ac_cv_path_tclsh}"
5547 # Extract the first word of "zip", so it can be a program name with args.
5548 set dummy zip; ac_word=$2
5549 echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551 if test "${ac_cv_path_ZIP+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5579 if test -n "$ZIP"; then
5580 echo "$as_me:$LINENO: result: $ZIP" >&5
5581 echo "${ECHO_T}$ZIP" >&6
5583 echo "$as_me:$LINENO: result: no" >&5
5584 echo "${ECHO_T}no" >&6
5588 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5589 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5590 if test "${llvm_cv_link_use_r+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 ac_cpp='$CPP $CPPFLAGS'
5595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5600 CFLAGS="$CFLAGS -Wl,-R."
5601 cat >conftest.$ac_ext <<_ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5611 int main() { return 0; }
5616 rm -f conftest.$ac_objext conftest$ac_exeext
5617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5618 (eval $ac_link) 2>conftest.er1
5620 grep -v '^ *+' conftest.er1 >conftest.err
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } &&
5625 { ac_try='test -z "$ac_c_werror_flag"
5626 || test ! -s conftest.err'
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; } &&
5632 { ac_try='test -s conftest$ac_exeext'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
5638 llvm_cv_link_use_r=yes
5640 echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5643 llvm_cv_link_use_r=no
5645 rm -f conftest.err conftest.$ac_objext \
5646 conftest$ac_exeext conftest.$ac_ext
5649 ac_cpp='$CPP $CPPFLAGS'
5650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5656 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5657 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5658 if test "$llvm_cv_link_use_r" = yes ; then
5660 cat >>confdefs.h <<\_ACEOF
5661 #define HAVE_LINK_R 1
5669 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5670 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5671 if test "${ac_cv_c_const+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 cat >conftest.$ac_ext <<_ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5684 /* FIXME: Include the comments suggested by Paul. */
5686 /* Ultrix mips cc rejects this. */
5687 typedef int charset[2];
5689 /* SunOS 4.1.1 cc rejects this. */
5690 char const *const *ccp;
5692 /* NEC SVR4.0.2 mips cc rejects this. */
5693 struct point {int x, y;};
5694 static struct point const zero = {0,0};
5695 /* AIX XL C 1.02.0.0 rejects this.
5696 It does not let you subtract one const X* pointer from another in
5697 an arm of an if-expression whose if-part is not a constant
5699 const char *g = "string";
5700 ccp = &g + (g ? g-g : 0);
5701 /* HPUX 7.0 cc rejects these. */
5704 ccp = (char const *const *) p;
5705 { /* SCO 3.2v4 cc rejects this. */
5707 char const *s = 0 ? (char *) 0 : (char const *) 0;
5711 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5713 const int *foo = &x[0];
5716 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5717 typedef const int *iptr;
5721 { /* AIX XL C 1.02.0.0 rejects this saying
5722 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5723 struct s { int j; const int *ap[3]; };
5724 struct s *b; b->j = 5;
5726 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5735 rm -f conftest.$ac_objext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5737 (eval $ac_compile) 2>conftest.er1
5739 grep -v '^ *+' conftest.er1 >conftest.err
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -z "$ac_c_werror_flag"
5745 || test ! -s conftest.err'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; } &&
5751 { ac_try='test -s conftest.$ac_objext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5766 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5767 echo "${ECHO_T}$ac_cv_c_const" >&6
5768 if test $ac_cv_c_const = no; then
5770 cat >>confdefs.h <<\_ACEOF
5777 echo "$as_me:$LINENO: checking for egrep" >&5
5778 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5779 if test "${ac_cv_prog_egrep+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5783 then ac_cv_prog_egrep='grep -E'
5784 else ac_cv_prog_egrep='egrep'
5787 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5788 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5789 EGREP=$ac_cv_prog_egrep
5792 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5793 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5794 if test "${ac_cv_header_stdc+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 cat >conftest.$ac_ext <<_ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5816 rm -f conftest.$ac_objext
5817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5818 (eval $ac_compile) 2>conftest.er1
5820 grep -v '^ *+' conftest.er1 >conftest.err
5822 cat conftest.err >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } &&
5825 { ac_try='test -z "$ac_c_werror_flag"
5826 || test ! -s conftest.err'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; } &&
5832 { ac_try='test -s conftest.$ac_objext'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; }; then
5838 ac_cv_header_stdc=yes
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5843 ac_cv_header_stdc=no
5845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5847 if test $ac_cv_header_stdc = yes; then
5848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5849 cat >conftest.$ac_ext <<_ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5859 $EGREP "memchr" >/dev/null 2>&1; then
5862 ac_cv_header_stdc=no
5868 if test $ac_cv_header_stdc = yes; then
5869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5870 cat >conftest.$ac_ext <<_ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5880 $EGREP "free" >/dev/null 2>&1; then
5883 ac_cv_header_stdc=no
5889 if test $ac_cv_header_stdc = yes; then
5890 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5891 if test "$cross_compiling" = yes; then
5894 cat >conftest.$ac_ext <<_ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5901 #if ((' ' & 0x0FF) == 0x020)
5902 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5903 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5905 # define ISLOWER(c) \
5906 (('a' <= (c) && (c) <= 'i') \
5907 || ('j' <= (c) && (c) <= 'r') \
5908 || ('s' <= (c) && (c) <= 'z'))
5909 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5912 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5917 for (i = 0; i < 256; i++)
5918 if (XOR (islower (i), ISLOWER (i))
5919 || toupper (i) != TOUPPER (i))
5924 rm -f conftest$ac_exeext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5926 (eval $ac_link) 2>&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; }; then
5937 echo "$as_me: program exited with status $ac_status" >&5
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5942 ac_cv_header_stdc=no
5944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5948 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5949 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5950 if test $ac_cv_header_stdc = yes; then
5952 cat >>confdefs.h <<\_ACEOF
5953 #define STDC_HEADERS 1
5964 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5965 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5966 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5967 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 cat >conftest.$ac_ext <<_ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 #include <sys/types.h>
5989 rm -f conftest.$ac_objext
5990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991 (eval $ac_compile) 2>conftest.er1
5993 grep -v '^ *+' conftest.er1 >conftest.err
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } &&
5998 { ac_try='test -z "$ac_c_werror_flag"
5999 || test ! -s conftest.err'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; } &&
6005 { ac_try='test -s conftest.$ac_objext'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 eval "$as_ac_Header=yes"
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6016 eval "$as_ac_Header=no"
6018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6023 cat >>confdefs.h <<_ACEOF
6024 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6027 ac_header_dirent=$ac_hdr; break
6031 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6032 if test $ac_header_dirent = dirent.h; then
6033 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6034 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6035 if test "${ac_cv_search_opendir+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 ac_func_search_save_LIBS=$LIBS
6039 ac_cv_search_opendir=no
6040 cat >conftest.$ac_ext <<_ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6047 /* Override any gcc2 internal prototype to avoid an error. */
6051 /* We use char because int might match the return type of a gcc2
6052 builtin and then its argument prototype would still apply. */
6062 rm -f conftest.$ac_objext conftest$ac_exeext
6063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6064 (eval $ac_link) 2>conftest.er1
6066 grep -v '^ *+' conftest.er1 >conftest.err
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
6071 { ac_try='test -z "$ac_c_werror_flag"
6072 || test ! -s conftest.err'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; } &&
6078 { ac_try='test -s conftest$ac_exeext'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then
6084 ac_cv_search_opendir="none required"
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6090 rm -f conftest.err conftest.$ac_objext \
6091 conftest$ac_exeext conftest.$ac_ext
6092 if test "$ac_cv_search_opendir" = no; then
6093 for ac_lib in dir; do
6094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6095 cat >conftest.$ac_ext <<_ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6102 /* Override any gcc2 internal prototype to avoid an error. */
6106 /* We use char because int might match the return type of a gcc2
6107 builtin and then its argument prototype would still apply. */
6117 rm -f conftest.$ac_objext conftest$ac_exeext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6119 (eval $ac_link) 2>conftest.er1
6121 grep -v '^ *+' conftest.er1 >conftest.err
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } &&
6126 { ac_try='test -z "$ac_c_werror_flag"
6127 || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try='test -s conftest$ac_exeext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 ac_cv_search_opendir="-l$ac_lib"
6142 echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6146 rm -f conftest.err conftest.$ac_objext \
6147 conftest$ac_exeext conftest.$ac_ext
6150 LIBS=$ac_func_search_save_LIBS
6152 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6153 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6154 if test "$ac_cv_search_opendir" != no; then
6155 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6160 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6161 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6162 if test "${ac_cv_search_opendir+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 ac_func_search_save_LIBS=$LIBS
6166 ac_cv_search_opendir=no
6167 cat >conftest.$ac_ext <<_ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6174 /* Override any gcc2 internal prototype to avoid an error. */
6178 /* We use char because int might match the return type of a gcc2
6179 builtin and then its argument prototype would still apply. */
6189 rm -f conftest.$ac_objext conftest$ac_exeext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6191 (eval $ac_link) 2>conftest.er1
6193 grep -v '^ *+' conftest.er1 >conftest.err
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -z "$ac_c_werror_flag"
6199 || test ! -s conftest.err'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; } &&
6205 { ac_try='test -s conftest$ac_exeext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6211 ac_cv_search_opendir="none required"
6213 echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6217 rm -f conftest.err conftest.$ac_objext \
6218 conftest$ac_exeext conftest.$ac_ext
6219 if test "$ac_cv_search_opendir" = no; then
6221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6222 cat >conftest.$ac_ext <<_ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6229 /* Override any gcc2 internal prototype to avoid an error. */
6233 /* We use char because int might match the return type of a gcc2
6234 builtin and then its argument prototype would still apply. */
6244 rm -f conftest.$ac_objext conftest$ac_exeext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6246 (eval $ac_link) 2>conftest.er1
6248 grep -v '^ *+' conftest.er1 >conftest.err
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
6253 { ac_try='test -z "$ac_c_werror_flag"
6254 || test ! -s conftest.err'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; } &&
6260 { ac_try='test -s conftest$ac_exeext'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; }; then
6266 ac_cv_search_opendir="-l$ac_lib"
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6273 rm -f conftest.err conftest.$ac_objext \
6274 conftest$ac_exeext conftest.$ac_ext
6277 LIBS=$ac_func_search_save_LIBS
6279 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6280 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6281 if test "$ac_cv_search_opendir" != no; then
6282 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6298 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6299 inttypes.h stdint.h unistd.h
6301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6302 echo "$as_me:$LINENO: checking for $ac_header" >&5
6303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 cat >conftest.$ac_ext <<_ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 $ac_includes_default
6315 #include <$ac_header>
6317 rm -f conftest.$ac_objext
6318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6319 (eval $ac_compile) 2>conftest.er1
6321 grep -v '^ *+' conftest.er1 >conftest.err
6323 cat conftest.err >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } &&
6326 { ac_try='test -z "$ac_c_werror_flag"
6327 || test ! -s conftest.err'
6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; } &&
6333 { ac_try='test -s conftest.$ac_objext'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 eval "$as_ac_Header=yes"
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6344 eval "$as_ac_Header=no"
6346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6351 cat >>confdefs.h <<_ACEOF
6352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6361 for ac_header in dlfcn.h
6363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6365 echo "$as_me:$LINENO: checking for $ac_header" >&5
6366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6373 # Is the header compilable?
6374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6376 cat >conftest.$ac_ext <<_ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 $ac_includes_default
6383 #include <$ac_header>
6385 rm -f conftest.$ac_objext
6386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6387 (eval $ac_compile) 2>conftest.er1
6389 grep -v '^ *+' conftest.er1 >conftest.err
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
6394 { ac_try='test -z "$ac_c_werror_flag"
6395 || test ! -s conftest.err'
6396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; } &&
6401 { ac_try='test -s conftest.$ac_objext'
6402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; }; then
6407 ac_header_compiler=yes
6409 echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6412 ac_header_compiler=no
6414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6416 echo "${ECHO_T}$ac_header_compiler" >&6
6418 # Is the header present?
6419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6421 cat >conftest.$ac_ext <<_ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6427 #include <$ac_header>
6429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6432 grep -v '^ *+' conftest.er1 >conftest.err
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } >/dev/null; then
6437 if test -s conftest.err; then
6438 ac_cpp_err=$ac_c_preproc_warn_flag
6439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6446 if test -z "$ac_cpp_err"; then
6447 ac_header_preproc=yes
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6452 ac_header_preproc=no
6454 rm -f conftest.err conftest.$ac_ext
6455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6456 echo "${ECHO_T}$ac_header_preproc" >&6
6458 # So? What about this header?
6459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6465 ac_header_preproc=yes
6468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6482 ## ----------------------------------- ##
6483 ## Report this to llvmbugs@cs.uiuc.edu ##
6484 ## ----------------------------------- ##
6487 sed "s/^/$as_me: WARNING: /" >&2
6490 echo "$as_me:$LINENO: checking for $ac_header" >&5
6491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 eval "$as_ac_Header=\$ac_header_preproc"
6497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6502 cat >>confdefs.h <<_ACEOF
6503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6510 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6511 if test "${enable_ltdl_install+set}" = set; then
6512 enableval="$enable_ltdl_install"
6518 if test x"${enable_ltdl_install-no}" != xno; then
6520 INSTALL_LTDL_FALSE='#'
6522 INSTALL_LTDL_TRUE='#'
6528 if test x"${enable_ltdl_convenience-no}" != xno; then
6529 CONVENIENCE_LTDL_TRUE=
6530 CONVENIENCE_LTDL_FALSE='#'
6532 CONVENIENCE_LTDL_TRUE='#'
6533 CONVENIENCE_LTDL_FALSE=
6537 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6538 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6540 libname_spec='lib$name'
6548 shlibpath_overrides_runpath=unknown
6550 dynamic_linker="$host_os ld.so"
6551 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6552 if test "$GCC" = yes; then
6553 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6554 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6555 # if the path contains ";" then we assume it to be the separator
6556 # otherwise default to the standard path separator (i.e. ":") - it is
6557 # assumed that no part of a normal pathname contains ";" but that should
6558 # okay in the real world where ";" in dirpaths is itself problematic.
6559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6564 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6566 need_lib_prefix=unknown
6567 hardcode_into_libs=no
6569 # when you set need_version to no, make sure it does not cause -set_version
6570 # flags to be left without arguments
6571 need_version=unknown
6576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6577 shlibpath_var=LIBPATH
6579 # AIX 3 has no versioning support, so we append a major version to the name.
6580 soname_spec='${libname}${release}${shared_ext}$major'
6587 hardcode_into_libs=yes
6588 if test "$host_cpu" = ia64; then
6589 # AIX 5 supports IA64
6590 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6591 shlibpath_var=LD_LIBRARY_PATH
6593 # With GCC up to 2.95.x, collect2 would create an import file
6594 # for dependence libraries. The import file would start with
6595 # the line `#! .'. This would cause the generated library to
6596 # depend on `.', always an invalid library. This was fixed in
6597 # development snapshots of GCC prior to 3.0.
6599 aix4 | aix4.[01] | aix4.[01].*)
6600 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6602 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6609 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6610 # soname into executable. Probably we can add versioning support to
6611 # collect2, so additional links can be useful in future.
6612 if test "$aix_use_runtimelinking" = yes; then
6613 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6614 # instead of lib<name>.a to let people know that these are not
6615 # typical AIX shared libraries.
6616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6618 # We preserve .a as extension for shared libraries through AIX4.2
6619 # and later when we are not doing run time linking.
6620 library_names_spec='${libname}${release}.a $libname.a'
6621 soname_spec='${libname}${release}${shared_ext}$major'
6623 shlibpath_var=LIBPATH
6628 library_names_spec='$libname.ixlibrary $libname.a'
6629 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6630 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'
6634 library_names_spec='${libname}${shared_ext}'
6635 dynamic_linker="$host_os ld.so"
6636 shlibpath_var=LIBRARY_PATH
6642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6643 soname_spec='${libname}${release}${shared_ext}$major'
6644 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6645 shlibpath_var=LD_LIBRARY_PATH
6646 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6647 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6648 # the default ld.so.conf also contains /usr/contrib/lib and
6649 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6650 # libtool to hard-code these into programs
6653 cygwin* | mingw* | pw32*)
6654 version_type=windows
6659 case $GCC,$host_os in
6660 yes,cygwin* | yes,mingw* | yes,pw32*)
6661 library_names_spec='$libname.dll.a'
6662 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6663 postinstall_cmds='base_file=`basename \${file}`~
6664 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6665 dldir=$destdir/`dirname \$dlpath`~
6666 test -d \$dldir || mkdir -p \$dldir~
6667 $install_prog $dir/$dlname \$dldir/$dlname'
6668 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6669 dlpath=$dir/\$dldll~
6671 shlibpath_overrides_runpath=yes
6675 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6676 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6677 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6680 # MinGW DLLs use traditional 'lib' prefix
6681 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6682 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6683 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6684 # It is most probably a Windows format PATH printed by
6685 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6686 # path with ; separators, and with drive letters. We can handle the
6687 # drive letters (cygwin fileutils understands them), so leave them,
6688 # especially as we might pass files found there to a mingw objdump,
6689 # which wouldn't understand a cygwinified path. Ahh.
6690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6692 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6696 # pw32 DLLs use 'pw' prefix rather than 'lib'
6697 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6703 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6706 dynamic_linker='Win32 ld.exe'
6707 # FIXME: first we should search . and the directory the executable is in
6711 darwin* | rhapsody*)
6712 dynamic_linker="$host_os dyld"
6716 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6717 soname_spec='${libname}${release}${major}$shared_ext'
6718 shlibpath_overrides_runpath=yes
6719 shlibpath_var=DYLD_LIBRARY_PATH
6720 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6721 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6722 if test "$GCC" = yes; then
6723 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"`
6725 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6727 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6735 soname_spec='${libname}${release}${shared_ext}$major'
6736 shlibpath_var=LD_LIBRARY_PATH
6747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6748 soname_spec='${libname}${release}${shared_ext}$major'
6749 shlibpath_var=LD_LIBRARY_PATH
6750 shlibpath_overrides_runpath=no
6751 hardcode_into_libs=yes
6752 dynamic_linker='GNU ld.so'
6756 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6757 version_type=freebsd-$objformat
6758 case $version_type in
6760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6765 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6769 shlibpath_var=LD_LIBRARY_PATH
6772 shlibpath_overrides_runpath=yes
6774 freebsd3.01* | freebsdelf3.01*)
6775 shlibpath_overrides_runpath=yes
6776 hardcode_into_libs=yes
6779 shlibpath_overrides_runpath=no
6780 hardcode_into_libs=yes
6789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6790 soname_spec='${libname}${release}${shared_ext}$major'
6791 shlibpath_var=LD_LIBRARY_PATH
6792 hardcode_into_libs=yes
6795 hpux9* | hpux10* | hpux11*)
6796 # Give a soname corresponding to the major version so that dld.sl refuses to
6797 # link against other versions.
6804 hardcode_into_libs=yes
6805 dynamic_linker="$host_os dld.so"
6806 shlibpath_var=LD_LIBRARY_PATH
6807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6809 soname_spec='${libname}${release}${shared_ext}$major'
6810 if test "X$HPUX_IA64_MODE" = X32; then
6811 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6813 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6815 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6819 hardcode_into_libs=yes
6820 dynamic_linker="$host_os dld.sl"
6821 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6824 soname_spec='${libname}${release}${shared_ext}$major'
6825 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6830 dynamic_linker="$host_os dld.sl"
6831 shlibpath_var=SHLIB_PATH
6832 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6834 soname_spec='${libname}${release}${shared_ext}$major'
6837 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6838 postinstall_cmds='chmod 555 $lib'
6841 irix5* | irix6* | nonstopux*)
6843 nonstopux*) version_type=nonstopux ;;
6845 if test "$lt_cv_prog_gnu_ld" = yes; then
6853 soname_spec='${libname}${release}${shared_ext}$major'
6854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6856 irix5* | nonstopux*)
6860 case $LD in # libtool.m4 will add one of these switches to LD
6861 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6862 libsuff= shlibsuff= libmagic=32-bit;;
6863 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6864 libsuff=32 shlibsuff=N32 libmagic=N32;;
6865 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6866 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6867 *) libsuff= shlibsuff= libmagic=never-match;;
6871 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6872 shlibpath_overrides_runpath=no
6873 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6874 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6875 hardcode_into_libs=yes
6878 # No shared lib support for Linux oldld, aout, or coff.
6879 linux*oldld* | linux*aout* | linux*coff*)
6883 # This must be Linux ELF.
6888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6889 soname_spec='${libname}${release}${shared_ext}$major'
6890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6891 shlibpath_var=LD_LIBRARY_PATH
6892 shlibpath_overrides_runpath=no
6893 # This implies no fast_install, which is unacceptable.
6894 # Some rework will be needed to allow for fast_install
6895 # before this can be enabled.
6896 hardcode_into_libs=yes
6898 # Append ld.so.conf contents to the search path
6899 if test -f /etc/ld.so.conf; then
6900 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6901 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6904 # We used to test for /lib/ld.so.1 and disable shared libraries on
6905 # powerpc, because MkLinux only supported shared libraries with the
6906 # GNU dynamic linker. Since this was broken with cross compilers,
6907 # most powerpc-linux boxes support dynamic linking these days and
6908 # people can always --disable-shared, the test was removed, and we
6909 # assume the GNU/Linux dynamic linker is in use.
6910 dynamic_linker='GNU/Linux ld.so'
6917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6918 soname_spec='${libname}${release}${shared_ext}$major'
6919 shlibpath_var=LD_LIBRARY_PATH
6920 shlibpath_overrides_runpath=no
6921 hardcode_into_libs=yes
6922 dynamic_linker='GNU ld.so'
6929 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6932 dynamic_linker='NetBSD (a.out) ld.so'
6934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6935 soname_spec='${libname}${release}${shared_ext}$major'
6936 dynamic_linker='NetBSD ld.elf_so'
6938 shlibpath_var=LD_LIBRARY_PATH
6939 shlibpath_overrides_runpath=yes
6940 hardcode_into_libs=yes
6945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6946 shlibpath_var=LD_LIBRARY_PATH
6947 shlibpath_overrides_runpath=yes
6954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6955 soname_spec='${libname}${release}${shared_ext}$major'
6956 shlibpath_var=LD_LIBRARY_PATH
6957 shlibpath_overrides_runpath=yes
6964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6966 shlibpath_var=LD_LIBRARY_PATH
6967 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6969 openbsd2.[89] | openbsd2.[89].*)
6970 shlibpath_overrides_runpath=no
6973 shlibpath_overrides_runpath=yes
6977 shlibpath_overrides_runpath=yes
6982 libname_spec='$name'
6985 library_names_spec='$libname${shared_ext} $libname.a'
6986 dynamic_linker='OS/2 ld.exe'
6987 shlibpath_var=LIBPATH
6990 osf3* | osf4* | osf5*)
6994 soname_spec='${libname}${release}${shared_ext}$major'
6995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6996 shlibpath_var=LD_LIBRARY_PATH
6997 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6998 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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
7012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7013 soname_spec='${libname}${release}${shared_ext}$major'
7014 shlibpath_var=LD_LIBRARY_PATH
7015 shlibpath_overrides_runpath=yes
7016 hardcode_into_libs=yes
7017 # ldd complains unless libraries are executable
7018 postinstall_cmds='chmod +x $lib'
7023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7024 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7025 shlibpath_var=LD_LIBRARY_PATH
7026 shlibpath_overrides_runpath=yes
7027 if test "$with_gnu_ld" = yes; then
7033 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7036 soname_spec='${libname}${release}${shared_ext}$major'
7037 shlibpath_var=LD_LIBRARY_PATH
7038 case $host_vendor in
7040 shlibpath_overrides_runpath=no
7042 export_dynamic_flag_spec='${wl}-Blargedynsym'
7043 runpath_var=LD_RUN_PATH
7051 shlibpath_overrides_runpath=no
7052 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7058 if test -d /usr/nec ;then
7060 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7061 soname_spec='$libname${shared_ext}.$major'
7062 shlibpath_var=LD_LIBRARY_PATH
7068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7069 soname_spec='${libname}${release}${shared_ext}$major'
7070 shlibpath_var=LD_LIBRARY_PATH
7077 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7078 echo "${ECHO_T}$dynamic_linker" >&6
7079 test "$dynamic_linker" = no && can_build_shared=no
7082 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7083 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7084 if test "${libltdl_cv_shlibext+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 eval libltdl_cv_shlibext=$shrext_cmds
7092 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7093 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7094 if test -n "$libltdl_cv_shlibext"; then
7096 cat >>confdefs.h <<_ACEOF
7097 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7103 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7104 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7105 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 libltdl_cv_shlibpath_var="$shlibpath_var"
7110 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7111 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7112 if test -n "$libltdl_cv_shlibpath_var"; then
7114 cat >>confdefs.h <<_ACEOF
7115 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7121 echo "$as_me:$LINENO: checking for the default library search path" >&5
7122 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7123 if test "${libltdl_cv_sys_search_path+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7128 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7129 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7130 if test -n "$libltdl_cv_sys_search_path"; then
7132 for dir in $libltdl_cv_sys_search_path; do
7133 if test -z "$sys_search_path"; then
7134 sys_search_path="$dir"
7136 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7140 cat >>confdefs.h <<_ACEOF
7141 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7146 echo "$as_me:$LINENO: checking for objdir" >&5
7147 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7148 if test "${libltdl_cv_objdir+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 libltdl_cv_objdir="$objdir"
7152 if test -n "$objdir"; then
7155 rm -f .libs 2>/dev/null
7156 mkdir .libs 2>/dev/null
7157 if test -d .libs; then
7158 libltdl_cv_objdir=.libs
7160 # MS-DOS does not allow filenames that begin with a dot.
7161 libltdl_cv_objdir=_libs
7163 rmdir .libs 2>/dev/null
7167 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7168 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7170 cat >>confdefs.h <<_ACEOF
7171 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7175 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7176 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7177 if test "${lt_cv_path_NM+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 if test -n "$NM"; then
7181 # Let the user override the test.
7184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7185 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7187 test -z "$ac_dir" && ac_dir=.
7188 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7189 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7190 # Check to see if the nm accepts a BSD-compat flag.
7191 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7192 # nm: unknown option "B" ignored
7193 # Tru64's nm complains that /dev/null is an invalid object file
7194 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7195 */dev/null* | *'Invalid file or object type'*)
7196 lt_cv_path_NM="$tmp_nm -B"
7200 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7202 lt_cv_path_NM="$tmp_nm -p"
7206 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7207 continue # so that we can try to find one that supports BSD flags
7214 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7217 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7218 echo "${ECHO_T}$lt_cv_path_NM" >&6
7225 # Check for command to grab the raw symbol name followed by C symbol from nm.
7226 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7227 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7228 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 # These are sane defaults that work on at least a few old systems.
7233 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7235 # Character class describing NM global symbol codes.
7236 symcode='[BCDEGRST]'
7238 # Regexp to match symbols that can be accessed directly from C.
7239 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7241 # Transform the above into a raw symbol and a C symbol.
7242 symxfrm='\1 \2\3 \3'
7244 # Transform an extracted symbol line into a proper C declaration
7245 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7247 # Transform an extracted symbol line into symbol name and symbol address
7248 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'"
7250 # Define system-specific variables.
7255 cygwin* | mingw* | pw32*)
7256 symcode='[ABCDGISTW]'
7258 hpux*) # Its linker distinguishes data from code symbols
7259 if test "$host_cpu" = ia64; then
7260 symcode='[ABCDEGRST]'
7262 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7263 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'"
7266 if test "$host_cpu" = ia64; then
7267 symcode='[ABCDGIRSTW]'
7268 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7269 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'"
7273 symcode='[BCDEGRST]'
7276 symcode='[BCDEGQRST]'
7286 # Handle CRLF in mingw tool chain
7290 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7294 # If we're using GNU nm, then use its standard symbol codes.
7295 case `$NM -V 2>&1` in
7296 *GNU* | *'with BFD'*)
7297 symcode='[ABCDGIRSTW]' ;;
7300 # Try without a prefix undercore, then with it.
7301 for ac_symprfx in "" "_"; do
7303 # Write the raw and C identifiers.
7304 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7306 # Check to see that the pipe works correctly.
7310 cat > conftest.$ac_ext <<EOF
7315 void nm_test_func(){}
7319 int main(){nm_test_var='a';nm_test_func();return(0);}
7322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7323 (eval $ac_compile) 2>&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; then
7327 # Now try to grab the symbols.
7329 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7330 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } && test -s "$nlist"; then
7334 # Try sorting and uniquifying the output.
7335 if sort "$nlist" | uniq > "$nlist"T; then
7336 mv -f "$nlist"T "$nlist"
7341 # Make sure that we snagged all the symbols we need.
7342 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7343 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7344 cat <<EOF > conftest.$ac_ext
7350 # Now generate the symbol file.
7351 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7353 cat <<EOF >> conftest.$ac_ext
7354 #if defined (__STDC__) && __STDC__
7355 # define lt_ptr_t void *
7357 # define lt_ptr_t char *
7361 /* The mapping between symbol names and symbols. */
7366 lt_preloaded_symbols[] =
7369 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7370 cat <<\EOF >> conftest.$ac_ext
7378 # Now try linking the two files.
7379 mv conftest.$ac_objext conftstm.$ac_objext
7380 lt_save_LIBS="$LIBS"
7381 lt_save_CFLAGS="$CFLAGS"
7382 LIBS="conftstm.$ac_objext"
7383 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7385 (eval $ac_link) 2>&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7391 LIBS="$lt_save_LIBS"
7392 CFLAGS="$lt_save_CFLAGS"
7394 echo "cannot find nm_test_func in $nlist" >&5
7397 echo "cannot find nm_test_var in $nlist" >&5
7400 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7403 echo "$progname: failed program was:" >&5
7404 cat conftest.$ac_ext >&5
7406 rm -f conftest* conftst*
7408 # Do not use the global_symbol_pipe unless it works.
7409 if test "$pipe_works" = yes; then
7412 lt_cv_sys_global_symbol_pipe=
7418 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7419 lt_cv_sys_global_symbol_to_cdecl=
7421 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7422 echo "$as_me:$LINENO: result: failed" >&5
7423 echo "${ECHO_T}failed" >&6
7425 echo "$as_me:$LINENO: result: ok" >&5
7426 echo "${ECHO_T}ok" >&6
7430 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7431 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7432 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7436 libltdl_cv_preloaded_symbols=yes
7438 libltdl_cv_preloaded_symbols=no
7442 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7443 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7444 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7446 cat >>confdefs.h <<\_ACEOF
7447 #define HAVE_PRELOADED_SYMBOLS 1
7455 ac_cpp='$CPP $CPPFLAGS'
7456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7461 echo "$as_me:$LINENO: checking for shl_load" >&5
7462 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7463 if test "${ac_cv_func_shl_load+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 cat >conftest.$ac_ext <<_ACEOF
7469 cat confdefs.h >>conftest.$ac_ext
7470 cat >>conftest.$ac_ext <<_ACEOF
7471 /* end confdefs.h. */
7472 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7474 #define shl_load innocuous_shl_load
7476 /* System header to define __stub macros and hopefully few prototypes,
7477 which can conflict with char shl_load (); below.
7478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7479 <limits.h> exists even on freestanding compilers. */
7482 # include <limits.h>
7484 # include <assert.h>
7489 /* Override any gcc2 internal prototype to avoid an error. */
7494 /* We use char because int might match the return type of a gcc2
7495 builtin and then its argument prototype would still apply. */
7497 /* The GNU C library defines this for functions which it implements
7498 to always fail with ENOSYS. Some functions are actually named
7499 something starting with __ and the normal name is an alias. */
7500 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7503 char (*f) () = shl_load;
7512 return f != shl_load;
7517 rm -f conftest.$ac_objext conftest$ac_exeext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7519 (eval $ac_link) 2>conftest.er1
7521 grep -v '^ *+' conftest.er1 >conftest.err
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } &&
7526 { ac_try='test -z "$ac_c_werror_flag"
7527 || test ! -s conftest.err'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; } &&
7533 { ac_try='test -s conftest$ac_exeext'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; }; then
7539 ac_cv_func_shl_load=yes
7541 echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7544 ac_cv_func_shl_load=no
7546 rm -f conftest.err conftest.$ac_objext \
7547 conftest$ac_exeext conftest.$ac_ext
7549 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7550 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7551 if test $ac_cv_func_shl_load = yes; then
7553 cat >>confdefs.h <<\_ACEOF
7554 #define HAVE_SHL_LOAD 1
7558 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7559 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7560 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 ac_check_lib_save_LIBS=$LIBS
7565 cat >conftest.$ac_ext <<_ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7572 /* Override any gcc2 internal prototype to avoid an error. */
7576 /* We use char because int might match the return type of a gcc2
7577 builtin and then its argument prototype would still apply. */
7587 rm -f conftest.$ac_objext conftest$ac_exeext
7588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7589 (eval $ac_link) 2>conftest.er1
7591 grep -v '^ *+' conftest.er1 >conftest.err
7593 cat conftest.err >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } &&
7596 { ac_try='test -z "$ac_c_werror_flag"
7597 || test ! -s conftest.err'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; } &&
7603 { ac_try='test -s conftest$ac_exeext'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7609 ac_cv_lib_dld_shl_load=yes
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7614 ac_cv_lib_dld_shl_load=no
7616 rm -f conftest.err conftest.$ac_objext \
7617 conftest$ac_exeext conftest.$ac_ext
7618 LIBS=$ac_check_lib_save_LIBS
7620 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7621 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7622 if test $ac_cv_lib_dld_shl_load = yes; then
7624 cat >>confdefs.h <<\_ACEOF
7625 #define HAVE_SHL_LOAD 1
7628 LIBADD_DL="$LIBADD_DL -ldld"
7630 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7631 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7632 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 ac_check_lib_save_LIBS=$LIBS
7637 cat >conftest.$ac_ext <<_ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7644 /* Override any gcc2 internal prototype to avoid an error. */
7648 /* We use char because int might match the return type of a gcc2
7649 builtin and then its argument prototype would still apply. */
7659 rm -f conftest.$ac_objext conftest$ac_exeext
7660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7661 (eval $ac_link) 2>conftest.er1
7663 grep -v '^ *+' conftest.er1 >conftest.err
7665 cat conftest.err >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } &&
7668 { ac_try='test -z "$ac_c_werror_flag"
7669 || test ! -s conftest.err'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; } &&
7675 { ac_try='test -s conftest$ac_exeext'
7676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; }; then
7681 ac_cv_lib_dl_dlopen=yes
7683 echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7686 ac_cv_lib_dl_dlopen=no
7688 rm -f conftest.err conftest.$ac_objext \
7689 conftest$ac_exeext conftest.$ac_ext
7690 LIBS=$ac_check_lib_save_LIBS
7692 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7693 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7694 if test $ac_cv_lib_dl_dlopen = yes; then
7696 cat >>confdefs.h <<\_ACEOF
7697 #define HAVE_LIBDL 1
7700 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7702 cat >conftest.$ac_ext <<_ACEOF
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h. */
7720 rm -f conftest.$ac_objext conftest$ac_exeext
7721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7722 (eval $ac_link) 2>conftest.er1
7724 grep -v '^ *+' conftest.er1 >conftest.err
7726 cat conftest.err >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } &&
7729 { ac_try='test -z "$ac_c_werror_flag"
7730 || test ! -s conftest.err'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; } &&
7736 { ac_try='test -s conftest$ac_exeext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7743 cat >>confdefs.h <<\_ACEOF
7744 #define HAVE_LIBDL 1
7746 libltdl_cv_func_dlopen="yes"
7748 echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7752 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7753 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7756 ac_check_lib_save_LIBS=$LIBS
7758 cat >conftest.$ac_ext <<_ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7765 /* Override any gcc2 internal prototype to avoid an error. */
7769 /* We use char because int might match the return type of a gcc2
7770 builtin and then its argument prototype would still apply. */
7780 rm -f conftest.$ac_objext conftest$ac_exeext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7782 (eval $ac_link) 2>conftest.er1
7784 grep -v '^ *+' conftest.er1 >conftest.err
7786 cat conftest.err >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } &&
7789 { ac_try='test -z "$ac_c_werror_flag"
7790 || test ! -s conftest.err'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; } &&
7796 { ac_try='test -s conftest$ac_exeext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7802 ac_cv_lib_svld_dlopen=yes
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7807 ac_cv_lib_svld_dlopen=no
7809 rm -f conftest.err conftest.$ac_objext \
7810 conftest$ac_exeext conftest.$ac_ext
7811 LIBS=$ac_check_lib_save_LIBS
7813 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7814 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7815 if test $ac_cv_lib_svld_dlopen = yes; then
7817 cat >>confdefs.h <<\_ACEOF
7818 #define HAVE_LIBDL 1
7821 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7823 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7824 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7825 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 ac_check_lib_save_LIBS=$LIBS
7830 cat >conftest.$ac_ext <<_ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h. */
7837 /* Override any gcc2 internal prototype to avoid an error. */
7841 /* We use char because int might match the return type of a gcc2
7842 builtin and then its argument prototype would still apply. */
7852 rm -f conftest.$ac_objext conftest$ac_exeext
7853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7854 (eval $ac_link) 2>conftest.er1
7856 grep -v '^ *+' conftest.er1 >conftest.err
7858 cat conftest.err >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } &&
7861 { ac_try='test -z "$ac_c_werror_flag"
7862 || test ! -s conftest.err'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; } &&
7868 { ac_try='test -s conftest$ac_exeext'
7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; }; then
7874 ac_cv_lib_dld_dld_link=yes
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7879 ac_cv_lib_dld_dld_link=no
7881 rm -f conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
7883 LIBS=$ac_check_lib_save_LIBS
7885 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7886 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7887 if test $ac_cv_lib_dld_dld_link = yes; then
7889 cat >>confdefs.h <<\_ACEOF
7893 LIBADD_DL="$LIBADD_DL -ldld"
7895 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7896 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7897 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 cat >conftest.$ac_ext <<_ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7908 #define _dyld_func_lookup innocuous__dyld_func_lookup
7910 /* System header to define __stub macros and hopefully few prototypes,
7911 which can conflict with char _dyld_func_lookup (); below.
7912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7913 <limits.h> exists even on freestanding compilers. */
7916 # include <limits.h>
7918 # include <assert.h>
7921 #undef _dyld_func_lookup
7923 /* Override any gcc2 internal prototype to avoid an error. */
7928 /* We use char because int might match the return type of a gcc2
7929 builtin and then its argument prototype would still apply. */
7930 char _dyld_func_lookup ();
7931 /* The GNU C library defines this for functions which it implements
7932 to always fail with ENOSYS. Some functions are actually named
7933 something starting with __ and the normal name is an alias. */
7934 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7937 char (*f) () = _dyld_func_lookup;
7946 return f != _dyld_func_lookup;
7951 rm -f conftest.$ac_objext conftest$ac_exeext
7952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7953 (eval $ac_link) 2>conftest.er1
7955 grep -v '^ *+' conftest.er1 >conftest.err
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try='test -z "$ac_c_werror_flag"
7961 || test ! -s conftest.err'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; } &&
7967 { ac_try='test -s conftest$ac_exeext'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7973 ac_cv_func__dyld_func_lookup=yes
7975 echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7978 ac_cv_func__dyld_func_lookup=no
7980 rm -f conftest.err conftest.$ac_objext \
7981 conftest$ac_exeext conftest.$ac_ext
7983 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7984 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7985 if test $ac_cv_func__dyld_func_lookup = yes; then
7987 cat >>confdefs.h <<\_ACEOF
8001 rm -f conftest.err conftest.$ac_objext \
8002 conftest$ac_exeext conftest.$ac_ext
8013 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8015 lt_save_LIBS="$LIBS"
8016 LIBS="$LIBS $LIBADD_DL"
8018 for ac_func in dlerror
8020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8021 echo "$as_me:$LINENO: checking for $ac_func" >&5
8022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8023 if eval "test \"\${$as_ac_var+set}\" = set"; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 cat >conftest.$ac_ext <<_ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8034 #define $ac_func innocuous_$ac_func
8036 /* System header to define __stub macros and hopefully few prototypes,
8037 which can conflict with char $ac_func (); below.
8038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8039 <limits.h> exists even on freestanding compilers. */
8042 # include <limits.h>
8044 # include <assert.h>
8049 /* Override any gcc2 internal prototype to avoid an error. */
8054 /* We use char because int might match the return type of a gcc2
8055 builtin and then its argument prototype would still apply. */
8057 /* The GNU C library defines this for functions which it implements
8058 to always fail with ENOSYS. Some functions are actually named
8059 something starting with __ and the normal name is an alias. */
8060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8063 char (*f) () = $ac_func;
8072 return f != $ac_func;
8077 rm -f conftest.$ac_objext conftest$ac_exeext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8079 (eval $ac_link) 2>conftest.er1
8081 grep -v '^ *+' conftest.er1 >conftest.err
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -z "$ac_c_werror_flag"
8087 || test ! -s conftest.err'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; } &&
8093 { ac_try='test -s conftest$ac_exeext'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
8099 eval "$as_ac_var=yes"
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8104 eval "$as_ac_var=no"
8106 rm -f conftest.err conftest.$ac_objext \
8107 conftest$ac_exeext conftest.$ac_ext
8109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8111 if test `eval echo '${'$as_ac_var'}'` = yes; then
8112 cat >>confdefs.h <<_ACEOF
8113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8119 LIBS="$lt_save_LIBS"
8122 ac_cpp='$CPP $CPPFLAGS'
8123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8129 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8130 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8131 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 ac_cv_sys_symbol_underscore=no
8135 cat > conftest.$ac_ext <<EOF
8136 void nm_test_func(){}
8137 int main(){nm_test_func;return 0;}
8139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8140 (eval $ac_compile) 2>&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; then
8144 # Now try to grab the symbols.
8145 ac_nlist=conftest.nm
8146 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8147 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } && test -s "$ac_nlist"; then
8151 # See whether the symbols have a leading underscore.
8152 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8153 ac_cv_sys_symbol_underscore=yes
8155 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8158 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8162 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8165 echo "configure: failed program was:" >&5
8171 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8172 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8175 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8176 if test x"$libltdl_cv_func_dlopen" = xyes ||
8177 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8178 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8179 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8180 if test "${libltdl_cv_need_uscore+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 libltdl_cv_need_uscore=unknown
8185 LIBS="$LIBS $LIBADD_DL"
8186 if test "$cross_compiling" = yes; then :
8187 libltdl_cv_need_uscore=cross
8189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8190 lt_status=$lt_dlunknown
8191 cat > conftest.$ac_ext <<EOF
8192 #line 8192 "configure"
8193 #include "confdefs.h"
8202 # define LT_DLGLOBAL RTLD_GLOBAL
8205 # define LT_DLGLOBAL DL_GLOBAL
8207 # define LT_DLGLOBAL 0
8211 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8212 find out it does not work in some platform. */
8213 #ifndef LT_DLLAZY_OR_NOW
8215 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8218 # define LT_DLLAZY_OR_NOW DL_LAZY
8221 # define LT_DLLAZY_OR_NOW RTLD_NOW
8224 # define LT_DLLAZY_OR_NOW DL_NOW
8226 # define LT_DLLAZY_OR_NOW 0
8234 extern "C" void exit (int);
8237 void fnord() { int i=42;}
8240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8241 int status = $lt_dlunknown;
8245 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8246 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8247 /* dlclose (self); */
8253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8254 (eval $ac_link) 2>&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8258 (./conftest; exit; ) 2>/dev/null
8261 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8262 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8266 # compilation failed
8275 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8276 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8280 if test x"$libltdl_cv_need_uscore" = xyes; then
8282 cat >>confdefs.h <<\_ACEOF
8283 #define NEED_USCORE 1
8289 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8290 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8291 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 # PORTME does your system automatically load deplibs for dlopen?
8295 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8296 # For now, we just catch OSes we know something about -- in the
8297 # future, we'll try test this programmatically.
8298 libltdl_cv_sys_dlopen_deplibs=unknown
8300 aix3*|aix4.1.*|aix4.2.*)
8301 # Unknown whether this is true for these versions of AIX, but
8302 # we want this `case' here to explicitly catch those versions.
8303 libltdl_cv_sys_dlopen_deplibs=unknown
8306 libltdl_cv_sys_dlopen_deplibs=yes
8309 # Assuming the user has installed a libdl from somewhere, this is true
8310 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8311 libltdl_cv_sys_dlopen_deplibs=yes
8313 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8314 # GNU and its variants, using gnu ld.so (Glibc)
8315 libltdl_cv_sys_dlopen_deplibs=yes
8318 libltdl_cv_sys_dlopen_deplibs=yes
8320 irix[12345]*|irix6.[01]*)
8321 # Catch all versions of IRIX before 6.2, and indicate that we don't
8322 # know how it worked for any of those versions.
8323 libltdl_cv_sys_dlopen_deplibs=unknown
8326 # The case above catches anything before 6.2, and it's known that
8327 # at 6.2 and later dlopen does load deplibs.
8328 libltdl_cv_sys_dlopen_deplibs=yes
8331 libltdl_cv_sys_dlopen_deplibs=yes
8334 libltdl_cv_sys_dlopen_deplibs=yes
8337 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8338 # it did *not* use an RPATH in a shared library to find objects the
8339 # library depends on, so we explictly say `no'.
8340 libltdl_cv_sys_dlopen_deplibs=no
8342 osf5.0|osf5.0a|osf5.1)
8343 # dlopen *does* load deplibs and with the right loader patch applied
8344 # it even uses RPATH in a shared library to search for shared objects
8345 # that the library depends on, but there's no easy way to know if that
8346 # patch is installed. Since this is the case, all we can really
8347 # say is unknown -- it depends on the patch being installed. If
8348 # it is, this changes to `yes'. Without it, it would be `no'.
8349 libltdl_cv_sys_dlopen_deplibs=unknown
8352 # the two cases above should catch all versions of osf <= 5.1. Read
8353 # the comments above for what we know about them.
8354 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8355 # is used to find them so we can finally say `yes'.
8356 libltdl_cv_sys_dlopen_deplibs=yes
8359 libltdl_cv_sys_dlopen_deplibs=yes
8364 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8365 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8366 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8368 cat >>confdefs.h <<\_ACEOF
8369 #define LTDL_DLOPEN_DEPLIBS 1
8375 for ac_header in argz.h
8377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8379 echo "$as_me:$LINENO: checking for $ac_header" >&5
8380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8387 # Is the header compilable?
8388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8390 cat >conftest.$ac_ext <<_ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8396 $ac_includes_default
8397 #include <$ac_header>
8399 rm -f conftest.$ac_objext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401 (eval $ac_compile) 2>conftest.er1
8403 grep -v '^ *+' conftest.er1 >conftest.err
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try='test -z "$ac_c_werror_flag"
8409 || test ! -s conftest.err'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; } &&
8415 { ac_try='test -s conftest.$ac_objext'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; }; then
8421 ac_header_compiler=yes
8423 echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8426 ac_header_compiler=no
8428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8430 echo "${ECHO_T}$ac_header_compiler" >&6
8432 # Is the header present?
8433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8435 cat >conftest.$ac_ext <<_ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8441 #include <$ac_header>
8443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8446 grep -v '^ *+' conftest.er1 >conftest.err
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } >/dev/null; then
8451 if test -s conftest.err; then
8452 ac_cpp_err=$ac_c_preproc_warn_flag
8453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8460 if test -z "$ac_cpp_err"; then
8461 ac_header_preproc=yes
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8466 ac_header_preproc=no
8468 rm -f conftest.err conftest.$ac_ext
8469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8470 echo "${ECHO_T}$ac_header_preproc" >&6
8472 # So? What about this header?
8473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8479 ac_header_preproc=yes
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8496 ## ----------------------------------- ##
8497 ## Report this to llvmbugs@cs.uiuc.edu ##
8498 ## ----------------------------------- ##
8501 sed "s/^/$as_me: WARNING: /" >&2
8504 echo "$as_me:$LINENO: checking for $ac_header" >&5
8505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 eval "$as_ac_Header=\$ac_header_preproc"
8511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8516 cat >>confdefs.h <<_ACEOF
8517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8525 echo "$as_me:$LINENO: checking for error_t" >&5
8526 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8527 if test "${ac_cv_type_error_t+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 cat >conftest.$ac_ext <<_ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8545 if (sizeof (error_t))
8551 rm -f conftest.$ac_objext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8553 (eval $ac_compile) 2>conftest.er1
8555 grep -v '^ *+' conftest.er1 >conftest.err
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -z "$ac_c_werror_flag"
8561 || test ! -s conftest.err'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try='test -s conftest.$ac_objext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 ac_cv_type_error_t=yes
8575 echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8578 ac_cv_type_error_t=no
8580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8582 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8583 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8584 if test $ac_cv_type_error_t = yes; then
8586 cat >>confdefs.h <<_ACEOF
8587 #define HAVE_ERROR_T 1
8593 cat >>confdefs.h <<\_ACEOF
8605 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8608 echo "$as_me:$LINENO: checking for $ac_func" >&5
8609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8610 if eval "test \"\${$as_ac_var+set}\" = set"; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 cat >conftest.$ac_ext <<_ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8621 #define $ac_func innocuous_$ac_func
8623 /* System header to define __stub macros and hopefully few prototypes,
8624 which can conflict with char $ac_func (); below.
8625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8626 <limits.h> exists even on freestanding compilers. */
8629 # include <limits.h>
8631 # include <assert.h>
8636 /* Override any gcc2 internal prototype to avoid an error. */
8641 /* We use char because int might match the return type of a gcc2
8642 builtin and then its argument prototype would still apply. */
8644 /* The GNU C library defines this for functions which it implements
8645 to always fail with ENOSYS. Some functions are actually named
8646 something starting with __ and the normal name is an alias. */
8647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8650 char (*f) () = $ac_func;
8659 return f != $ac_func;
8664 rm -f conftest.$ac_objext conftest$ac_exeext
8665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8666 (eval $ac_link) 2>conftest.er1
8668 grep -v '^ *+' conftest.er1 >conftest.err
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -z "$ac_c_werror_flag"
8674 || test ! -s conftest.err'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; } &&
8680 { ac_try='test -s conftest$ac_exeext'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 eval "$as_ac_var=yes"
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8691 eval "$as_ac_var=no"
8693 rm -f conftest.err conftest.$ac_objext \
8694 conftest$ac_exeext conftest.$ac_ext
8696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8698 if test `eval echo '${'$as_ac_var'}'` = yes; then
8699 cat >>confdefs.h <<_ACEOF
8700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8733 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8738 echo "$as_me:$LINENO: checking for $ac_header" >&5
8739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8746 # Is the header compilable?
8747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8749 cat >conftest.$ac_ext <<_ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8755 $ac_includes_default
8756 #include <$ac_header>
8758 rm -f conftest.$ac_objext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8760 (eval $ac_compile) 2>conftest.er1
8762 grep -v '^ *+' conftest.er1 >conftest.err
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } &&
8767 { ac_try='test -z "$ac_c_werror_flag"
8768 || test ! -s conftest.err'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; } &&
8774 { ac_try='test -s conftest.$ac_objext'
8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 ac_header_compiler=yes
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8785 ac_header_compiler=no
8787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8789 echo "${ECHO_T}$ac_header_compiler" >&6
8791 # Is the header present?
8792 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8794 cat >conftest.$ac_ext <<_ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 #include <$ac_header>
8802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8805 grep -v '^ *+' conftest.er1 >conftest.err
8807 cat conftest.err >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } >/dev/null; then
8810 if test -s conftest.err; then
8811 ac_cpp_err=$ac_c_preproc_warn_flag
8812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8819 if test -z "$ac_cpp_err"; then
8820 ac_header_preproc=yes
8822 echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.$ac_ext >&5
8825 ac_header_preproc=no
8827 rm -f conftest.err conftest.$ac_ext
8828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8829 echo "${ECHO_T}$ac_header_preproc" >&6
8831 # So? What about this header?
8832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8838 ac_header_preproc=yes
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8848 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8855 ## ----------------------------------- ##
8856 ## Report this to llvmbugs@cs.uiuc.edu ##
8857 ## ----------------------------------- ##
8860 sed "s/^/$as_me: WARNING: /" >&2
8863 echo "$as_me:$LINENO: checking for $ac_header" >&5
8864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8868 eval "$as_ac_Header=\$ac_header_preproc"
8870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8875 cat >>confdefs.h <<_ACEOF
8876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8887 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8891 echo "$as_me:$LINENO: checking for $ac_header" >&5
8892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8899 # Is the header compilable?
8900 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8902 cat >conftest.$ac_ext <<_ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h. */
8908 $ac_includes_default
8909 #include <$ac_header>
8911 rm -f conftest.$ac_objext
8912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8913 (eval $ac_compile) 2>conftest.er1
8915 grep -v '^ *+' conftest.er1 >conftest.err
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } &&
8920 { ac_try='test -z "$ac_c_werror_flag"
8921 || test ! -s conftest.err'
8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; } &&
8927 { ac_try='test -s conftest.$ac_objext'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; }; then
8933 ac_header_compiler=yes
8935 echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8938 ac_header_compiler=no
8940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8942 echo "${ECHO_T}$ac_header_compiler" >&6
8944 # Is the header present?
8945 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8947 cat >conftest.$ac_ext <<_ACEOF
8950 cat confdefs.h >>conftest.$ac_ext
8951 cat >>conftest.$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8953 #include <$ac_header>
8955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8958 grep -v '^ *+' conftest.er1 >conftest.err
8960 cat conftest.err >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } >/dev/null; then
8963 if test -s conftest.err; then
8964 ac_cpp_err=$ac_c_preproc_warn_flag
8965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8972 if test -z "$ac_cpp_err"; then
8973 ac_header_preproc=yes
8975 echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8978 ac_header_preproc=no
8980 rm -f conftest.err conftest.$ac_ext
8981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8982 echo "${ECHO_T}$ac_header_preproc" >&6
8984 # So? What about this header?
8985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8991 ac_header_preproc=yes
8994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9008 ## ----------------------------------- ##
9009 ## Report this to llvmbugs@cs.uiuc.edu ##
9010 ## ----------------------------------- ##
9013 sed "s/^/$as_me: WARNING: /" >&2
9016 echo "$as_me:$LINENO: checking for $ac_header" >&5
9017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 eval "$as_ac_Header=\$ac_header_preproc"
9023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9028 cat >>confdefs.h <<_ACEOF
9029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9038 for ac_header in string.h strings.h
9040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9042 echo "$as_me:$LINENO: checking for $ac_header" >&5
9043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9050 # Is the header compilable?
9051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9053 cat >conftest.$ac_ext <<_ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 $ac_includes_default
9060 #include <$ac_header>
9062 rm -f conftest.$ac_objext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9064 (eval $ac_compile) 2>conftest.er1
9066 grep -v '^ *+' conftest.er1 >conftest.err
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } &&
9071 { ac_try='test -z "$ac_c_werror_flag"
9072 || test ! -s conftest.err'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; } &&
9078 { ac_try='test -s conftest.$ac_objext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 ac_header_compiler=yes
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9089 ac_header_compiler=no
9091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9093 echo "${ECHO_T}$ac_header_compiler" >&6
9095 # Is the header present?
9096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9098 cat >conftest.$ac_ext <<_ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 #include <$ac_header>
9106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9109 grep -v '^ *+' conftest.er1 >conftest.err
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } >/dev/null; then
9114 if test -s conftest.err; then
9115 ac_cpp_err=$ac_c_preproc_warn_flag
9116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9123 if test -z "$ac_cpp_err"; then
9124 ac_header_preproc=yes
9126 echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9129 ac_header_preproc=no
9131 rm -f conftest.err conftest.$ac_ext
9132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9133 echo "${ECHO_T}$ac_header_preproc" >&6
9135 # So? What about this header?
9136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9142 ac_header_preproc=yes
9145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9159 ## ----------------------------------- ##
9160 ## Report this to llvmbugs@cs.uiuc.edu ##
9161 ## ----------------------------------- ##
9164 sed "s/^/$as_me: WARNING: /" >&2
9167 echo "$as_me:$LINENO: checking for $ac_header" >&5
9168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 eval "$as_ac_Header=\$ac_header_preproc"
9174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9179 cat >>confdefs.h <<_ACEOF
9180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9190 for ac_func in strchr index
9192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9193 echo "$as_me:$LINENO: checking for $ac_func" >&5
9194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9195 if eval "test \"\${$as_ac_var+set}\" = set"; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 cat >conftest.$ac_ext <<_ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h. */
9204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9206 #define $ac_func innocuous_$ac_func
9208 /* System header to define __stub macros and hopefully few prototypes,
9209 which can conflict with char $ac_func (); below.
9210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9211 <limits.h> exists even on freestanding compilers. */
9214 # include <limits.h>
9216 # include <assert.h>
9221 /* Override any gcc2 internal prototype to avoid an error. */
9226 /* We use char because int might match the return type of a gcc2
9227 builtin and then its argument prototype would still apply. */
9229 /* The GNU C library defines this for functions which it implements
9230 to always fail with ENOSYS. Some functions are actually named
9231 something starting with __ and the normal name is an alias. */
9232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9235 char (*f) () = $ac_func;
9244 return f != $ac_func;
9249 rm -f conftest.$ac_objext conftest$ac_exeext
9250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9251 (eval $ac_link) 2>conftest.er1
9253 grep -v '^ *+' conftest.er1 >conftest.err
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } &&
9258 { ac_try='test -z "$ac_c_werror_flag"
9259 || test ! -s conftest.err'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; } &&
9265 { ac_try='test -s conftest$ac_exeext'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; }; then
9271 eval "$as_ac_var=yes"
9273 echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9276 eval "$as_ac_var=no"
9278 rm -f conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9283 if test `eval echo '${'$as_ac_var'}'` = yes; then
9284 cat >>confdefs.h <<_ACEOF
9285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9293 for ac_func in strrchr rindex
9295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9296 echo "$as_me:$LINENO: checking for $ac_func" >&5
9297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9298 if eval "test \"\${$as_ac_var+set}\" = set"; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 cat >conftest.$ac_ext <<_ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9309 #define $ac_func innocuous_$ac_func
9311 /* System header to define __stub macros and hopefully few prototypes,
9312 which can conflict with char $ac_func (); below.
9313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9314 <limits.h> exists even on freestanding compilers. */
9317 # include <limits.h>
9319 # include <assert.h>
9324 /* Override any gcc2 internal prototype to avoid an error. */
9329 /* We use char because int might match the return type of a gcc2
9330 builtin and then its argument prototype would still apply. */
9332 /* The GNU C library defines this for functions which it implements
9333 to always fail with ENOSYS. Some functions are actually named
9334 something starting with __ and the normal name is an alias. */
9335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9338 char (*f) () = $ac_func;
9347 return f != $ac_func;
9352 rm -f conftest.$ac_objext conftest$ac_exeext
9353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9354 (eval $ac_link) 2>conftest.er1
9356 grep -v '^ *+' conftest.er1 >conftest.err
9358 cat conftest.err >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
9361 { ac_try='test -z "$ac_c_werror_flag"
9362 || test ! -s conftest.err'
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; } &&
9368 { ac_try='test -s conftest$ac_exeext'
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; }; then
9374 eval "$as_ac_var=yes"
9376 echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9379 eval "$as_ac_var=no"
9381 rm -f conftest.err conftest.$ac_objext \
9382 conftest$ac_exeext conftest.$ac_ext
9384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9386 if test `eval echo '${'$as_ac_var'}'` = yes; then
9387 cat >>confdefs.h <<_ACEOF
9388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9396 for ac_func in memcpy bcopy
9398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9399 echo "$as_me:$LINENO: checking for $ac_func" >&5
9400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9401 if eval "test \"\${$as_ac_var+set}\" = set"; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 cat >conftest.$ac_ext <<_ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9412 #define $ac_func innocuous_$ac_func
9414 /* System header to define __stub macros and hopefully few prototypes,
9415 which can conflict with char $ac_func (); below.
9416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9417 <limits.h> exists even on freestanding compilers. */
9420 # include <limits.h>
9422 # include <assert.h>
9427 /* Override any gcc2 internal prototype to avoid an error. */
9432 /* We use char because int might match the return type of a gcc2
9433 builtin and then its argument prototype would still apply. */
9435 /* The GNU C library defines this for functions which it implements
9436 to always fail with ENOSYS. Some functions are actually named
9437 something starting with __ and the normal name is an alias. */
9438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9441 char (*f) () = $ac_func;
9450 return f != $ac_func;
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9457 (eval $ac_link) 2>conftest.er1
9459 grep -v '^ *+' conftest.er1 >conftest.err
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try='test -z "$ac_c_werror_flag"
9465 || test ! -s conftest.err'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; } &&
9471 { ac_try='test -s conftest$ac_exeext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 eval "$as_ac_var=yes"
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9482 eval "$as_ac_var=no"
9484 rm -f conftest.err conftest.$ac_objext \
9485 conftest$ac_exeext conftest.$ac_ext
9487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9489 if test `eval echo '${'$as_ac_var'}'` = yes; then
9490 cat >>confdefs.h <<_ACEOF
9491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9499 for ac_func in memmove strcmp
9501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9502 echo "$as_me:$LINENO: checking for $ac_func" >&5
9503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9504 if eval "test \"\${$as_ac_var+set}\" = set"; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 cat >conftest.$ac_ext <<_ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h. */
9513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9515 #define $ac_func innocuous_$ac_func
9517 /* System header to define __stub macros and hopefully few prototypes,
9518 which can conflict with char $ac_func (); below.
9519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9520 <limits.h> exists even on freestanding compilers. */
9523 # include <limits.h>
9525 # include <assert.h>
9530 /* Override any gcc2 internal prototype to avoid an error. */
9535 /* We use char because int might match the return type of a gcc2
9536 builtin and then its argument prototype would still apply. */
9538 /* The GNU C library defines this for functions which it implements
9539 to always fail with ENOSYS. Some functions are actually named
9540 something starting with __ and the normal name is an alias. */
9541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9544 char (*f) () = $ac_func;
9553 return f != $ac_func;
9558 rm -f conftest.$ac_objext conftest$ac_exeext
9559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9560 (eval $ac_link) 2>conftest.er1
9562 grep -v '^ *+' conftest.er1 >conftest.err
9564 cat conftest.err >&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } &&
9567 { ac_try='test -z "$ac_c_werror_flag"
9568 || test ! -s conftest.err'
9569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; } &&
9574 { ac_try='test -s conftest$ac_exeext'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; }; then
9580 eval "$as_ac_var=yes"
9582 echo "$as_me: failed program was:" >&5
9583 sed 's/^/| /' conftest.$ac_ext >&5
9585 eval "$as_ac_var=no"
9587 rm -f conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9592 if test `eval echo '${'$as_ac_var'}'` = yes; then
9593 cat >>confdefs.h <<_ACEOF
9594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9603 for ac_func in closedir opendir readdir
9605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9606 echo "$as_me:$LINENO: checking for $ac_func" >&5
9607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9608 if eval "test \"\${$as_ac_var+set}\" = set"; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 cat >conftest.$ac_ext <<_ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9619 #define $ac_func innocuous_$ac_func
9621 /* System header to define __stub macros and hopefully few prototypes,
9622 which can conflict with char $ac_func (); below.
9623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9624 <limits.h> exists even on freestanding compilers. */
9627 # include <limits.h>
9629 # include <assert.h>
9634 /* Override any gcc2 internal prototype to avoid an error. */
9639 /* We use char because int might match the return type of a gcc2
9640 builtin and then its argument prototype would still apply. */
9642 /* The GNU C library defines this for functions which it implements
9643 to always fail with ENOSYS. Some functions are actually named
9644 something starting with __ and the normal name is an alias. */
9645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9648 char (*f) () = $ac_func;
9657 return f != $ac_func;
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9664 (eval $ac_link) 2>conftest.er1
9666 grep -v '^ *+' conftest.er1 >conftest.err
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } &&
9671 { ac_try='test -z "$ac_c_werror_flag"
9672 || test ! -s conftest.err'
9673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; } &&
9678 { ac_try='test -s conftest$ac_exeext'
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; }; then
9684 eval "$as_ac_var=yes"
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9689 eval "$as_ac_var=no"
9691 rm -f conftest.err conftest.$ac_objext \
9692 conftest$ac_exeext conftest.$ac_ext
9694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9696 if test `eval echo '${'$as_ac_var'}'` = yes; then
9697 cat >>confdefs.h <<_ACEOF
9698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9705 # Check whether --enable-shared or --disable-shared was given.
9706 if test "${enable_shared+set}" = set; then
9707 enableval="$enable_shared"
9708 p=${PACKAGE-default}
9710 yes) enable_shared=yes ;;
9711 no) enable_shared=no ;;
9714 # Look at the argument we got. We use all the common list separators.
9715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9716 for pkg in $enableval; do
9718 if test "X$pkg" = "X$p"; then
9729 # Check whether --enable-static or --disable-static was given.
9730 if test "${enable_static+set}" = set; then
9731 enableval="$enable_static"
9732 p=${PACKAGE-default}
9734 yes) enable_static=yes ;;
9735 no) enable_static=no ;;
9738 # Look at the argument we got. We use all the common list separators.
9739 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9740 for pkg in $enableval; do
9742 if test "X$pkg" = "X$p"; then
9753 # Check whether --enable-fast-install or --disable-fast-install was given.
9754 if test "${enable_fast_install+set}" = set; then
9755 enableval="$enable_fast_install"
9756 p=${PACKAGE-default}
9758 yes) enable_fast_install=yes ;;
9759 no) enable_fast_install=no ;;
9761 enable_fast_install=no
9762 # Look at the argument we got. We use all the common list separators.
9763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9764 for pkg in $enableval; do
9766 if test "X$pkg" = "X$p"; then
9767 enable_fast_install=yes
9774 enable_fast_install=yes
9777 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9778 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9779 if test "${lt_cv_path_SED+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 # Loop through the user's path and test for sed and gsed.
9783 # Then use that list of sed's as ones to test for truncation.
9784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788 test -z "$as_dir" && as_dir=.
9789 for lt_ac_prog in sed gsed; do
9790 for ac_exec_ext in '' $ac_executable_extensions; do
9791 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9792 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9799 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9800 # along with /bin/sed that truncates output.
9801 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9802 test ! -f $lt_ac_sed && break
9803 cat /dev/null > conftest.in
9805 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9806 # Check for GNU sed and select it if it is found.
9807 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9808 lt_cv_path_SED=$lt_ac_sed
9812 cat conftest.in conftest.in >conftest.tmp
9813 mv conftest.tmp conftest.in
9814 cp conftest.in conftest.nl
9816 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9817 cmp -s conftest.out conftest.nl || break
9818 # 10000 chars as input seems more than enough
9819 test $lt_ac_count -gt 10 && break
9820 lt_ac_count=`expr $lt_ac_count + 1`
9821 if test $lt_ac_count -gt $lt_ac_max; then
9822 lt_ac_max=$lt_ac_count
9823 lt_cv_path_SED=$lt_ac_sed
9831 echo "$as_me:$LINENO: result: $SED" >&5
9832 echo "${ECHO_T}$SED" >&6
9835 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9836 if test "${with_gnu_ld+set}" = set; then
9837 withval="$with_gnu_ld"
9838 test "$withval" = no || with_gnu_ld=yes
9843 if test "$GCC" = yes; then
9844 # Check if gcc -print-prog-name=ld gives a path.
9845 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9846 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9849 # gcc leaves a trailing carriage return which upsets mingw
9850 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9852 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9855 # Accept absolute paths.
9857 re_direlt='/[^/][^/]*/\.\./'
9858 # Canonicalize the pathname of ld
9859 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9860 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9861 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9863 test -z "$LD" && LD="$ac_prog"
9866 # If it fails, then pretend we aren't using GCC.
9870 # If it is relative, then search for the first ld in PATH.
9874 elif test "$with_gnu_ld" = yes; then
9875 echo "$as_me:$LINENO: checking for GNU ld" >&5
9876 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9878 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9879 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9881 if test "${lt_cv_path_LD+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 if test -z "$LD"; then
9885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9886 for ac_dir in $PATH; do
9888 test -z "$ac_dir" && ac_dir=.
9889 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9890 lt_cv_path_LD="$ac_dir/$ac_prog"
9891 # Check to see if the program is GNU ld. I'd rather use --version,
9892 # but apparently some GNU ld's only accept -v.
9893 # Break only if it was the GNU/non-GNU ld that we prefer.
9894 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9895 *GNU* | *'with BFD'*)
9896 test "$with_gnu_ld" != no && break
9899 test "$with_gnu_ld" != yes && break
9906 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9911 if test -n "$LD"; then
9912 echo "$as_me:$LINENO: result: $LD" >&5
9913 echo "${ECHO_T}$LD" >&6
9915 echo "$as_me:$LINENO: result: no" >&5
9916 echo "${ECHO_T}no" >&6
9918 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9919 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9920 { (exit 1); exit 1; }; }
9921 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9922 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9923 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9927 case `$LD -v 2>&1 </dev/null` in
9928 *GNU* | *'with BFD'*)
9929 lt_cv_prog_gnu_ld=yes
9932 lt_cv_prog_gnu_ld=no
9936 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9937 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9938 with_gnu_ld=$lt_cv_prog_gnu_ld
9941 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9942 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9943 if test "${lt_cv_ld_reload_flag+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 lt_cv_ld_reload_flag='-r'
9948 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9949 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9950 reload_flag=$lt_cv_ld_reload_flag
9951 case $reload_flag in
9953 *) reload_flag=" $reload_flag" ;;
9955 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9958 if test "$GCC" = yes; then
9959 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9961 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9966 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9967 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9968 if test "${lt_cv_deplibs_check_method+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 lt_cv_file_magic_cmd='$MAGIC_CMD'
9972 lt_cv_file_magic_test_file=
9973 lt_cv_deplibs_check_method='unknown'
9974 # Need to set the preceding variable on all platforms that support
9975 # interlibrary dependencies.
9976 # 'none' -- dependencies not supported.
9977 # `unknown' -- same as none, but documents that we really don't know.
9978 # 'pass_all' -- all dependencies passed with no checks.
9979 # 'test_compile' -- check by making test program.
9980 # 'file_magic [[regex]]' -- check by looking for files in library path
9981 # which responds to the $file_magic_cmd with a given extended regex.
9982 # If you have `file' or equivalent on your system and you're not sure
9983 # whether `pass_all' will *always* work, you probably want this one.
9987 lt_cv_deplibs_check_method=pass_all
9991 lt_cv_deplibs_check_method=pass_all
9995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9996 lt_cv_file_magic_cmd='/usr/bin/file -L'
9997 lt_cv_file_magic_test_file=/shlib/libc.so
10001 # func_win32_libid is a shell function defined in ltmain.sh
10002 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10003 lt_cv_file_magic_cmd='func_win32_libid'
10007 # Base MSYS/MinGW do not provide the 'file' command needed by
10008 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10009 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10010 lt_cv_file_magic_cmd='$OBJDUMP -f'
10013 darwin* | rhapsody*)
10014 lt_cv_deplibs_check_method=pass_all
10017 freebsd* | kfreebsd*-gnu)
10018 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10021 # Not sure whether the presence of OpenBSD here was a mistake.
10022 # Let's accept both of them until this is cleared up.
10023 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10024 lt_cv_file_magic_cmd=/usr/bin/file
10025 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10029 lt_cv_deplibs_check_method=pass_all
10034 lt_cv_deplibs_check_method=pass_all
10037 hpux10.20* | hpux11*)
10038 lt_cv_file_magic_cmd=/usr/bin/file
10039 case "$host_cpu" in
10041 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10042 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10045 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]'
10046 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10049 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10050 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10055 irix5* | irix6* | nonstopux*)
10057 *-32|*"-32 ") libmagic=32-bit;;
10058 *-n32|*"-n32 ") libmagic=N32;;
10059 *-64|*"-64 ") libmagic=64-bit;;
10060 *) libmagic=never-match;;
10062 lt_cv_deplibs_check_method=pass_all
10065 # This must be Linux ELF.
10067 lt_cv_deplibs_check_method=pass_all
10071 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10080 lt_cv_file_magic_cmd=/usr/bin/file
10081 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10085 lt_cv_deplibs_check_method=unknown
10089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10096 osf3* | osf4* | osf5*)
10097 lt_cv_deplibs_check_method=pass_all
10101 lt_cv_deplibs_check_method=pass_all
10105 lt_cv_deplibs_check_method=pass_all
10108 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10109 case $host_vendor in
10111 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]'
10112 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10115 lt_cv_deplibs_check_method=pass_all
10118 lt_cv_file_magic_cmd='/bin/file'
10119 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10122 lt_cv_file_magic_cmd='/bin/file'
10123 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10124 lt_cv_file_magic_test_file=/lib/libc.so
10127 lt_cv_deplibs_check_method=pass_all
10132 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10133 lt_cv_deplibs_check_method=pass_all
10138 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10139 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10140 file_magic_cmd=$lt_cv_file_magic_cmd
10141 deplibs_check_method=$lt_cv_deplibs_check_method
10142 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10146 # If no C compiler was specified, use CC.
10149 # Allow CC to be a program name with arguments.
10152 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10153 if test "${enable_libtool_lock+set}" = set; then
10154 enableval="$enable_libtool_lock"
10157 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10159 # Some flags need to be propagated to the compiler or linker for good
10163 # Find out which ABI we are using.
10164 echo 'int i;' > conftest.$ac_ext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10166 (eval $ac_compile) 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; then
10170 case `/usr/bin/file conftest.$ac_objext` in
10172 HPUX_IA64_MODE="32"
10175 HPUX_IA64_MODE="64"
10182 # Find out which ABI we are using.
10183 echo '#line 10183 "configure"' > conftest.$ac_ext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185 (eval $ac_compile) 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; then
10189 if test "$lt_cv_prog_gnu_ld" = yes; then
10190 case `/usr/bin/file conftest.$ac_objext` in
10192 LD="${LD-ld} -melf32bsmip"
10195 LD="${LD-ld} -melf32bmipn32"
10198 LD="${LD-ld} -melf64bmip"
10202 case `/usr/bin/file conftest.$ac_objext` in
10218 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10219 # Find out which ABI we are using.
10220 echo 'int i;' > conftest.$ac_ext
10221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10222 (eval $ac_compile) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; then
10226 case "`/usr/bin/file conftest.o`" in
10230 LD="${LD-ld} -m elf_i386"
10232 ppc64-*linux*|powerpc64-*linux*)
10233 LD="${LD-ld} -m elf32ppclinux"
10236 LD="${LD-ld} -m elf_s390"
10239 LD="${LD-ld} -m elf32_sparc"
10246 LD="${LD-ld} -m elf_x86_64"
10248 ppc*-*linux*|powerpc*-*linux*)
10249 LD="${LD-ld} -m elf64ppc"
10252 LD="${LD-ld} -m elf64_s390"
10255 LD="${LD-ld} -m elf64_sparc"
10265 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10266 SAVE_CFLAGS="$CFLAGS"
10267 CFLAGS="$CFLAGS -belf"
10268 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10269 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10270 if test "${lt_cv_cc_needs_belf+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 ac_cpp='$CPP $CPPFLAGS'
10275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10279 cat >conftest.$ac_ext <<_ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289 (eval $ac_link) 2>conftest.er1
10291 grep -v '^ *+' conftest.er1 >conftest.err
10293 cat conftest.err >&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } &&
10296 { ac_try='test -z "$ac_c_werror_flag"
10297 || test ! -s conftest.err'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; } &&
10303 { ac_try='test -s conftest$ac_exeext'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 lt_cv_cc_needs_belf=yes
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10314 lt_cv_cc_needs_belf=no
10316 rm -f conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10319 ac_cpp='$CPP $CPPFLAGS'
10320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10325 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10326 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10327 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10328 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10329 CFLAGS="$SAVE_CFLAGS"
10335 need_locks="$enable_libtool_lock"
10340 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10341 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10342 (test "X$CXX" != "Xg++"))) ; then
10344 ac_cpp='$CXXCPP $CPPFLAGS'
10345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10348 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10349 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10350 if test -z "$CXXCPP"; then
10351 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10354 # Double quotes because CXXCPP needs to be expanded
10355 for CXXCPP in "$CXX -E" "/lib/cpp"
10357 ac_preproc_ok=false
10358 for ac_cxx_preproc_warn_flag in '' yes
10360 # Use a header file that comes with gcc, so configuring glibc
10361 # with a fresh cross-compiler works.
10362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10363 # <limits.h> exists even on freestanding compilers.
10364 # On the NeXT, cc -E runs the code through the compiler's parser,
10365 # not just through cpp. "Syntax error" is here to catch this case.
10366 cat >conftest.$ac_ext <<_ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10373 # include <limits.h>
10375 # include <assert.h>
10379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10382 grep -v '^ *+' conftest.er1 >conftest.err
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } >/dev/null; then
10387 if test -s conftest.err; then
10388 ac_cpp_err=$ac_cxx_preproc_warn_flag
10389 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10396 if test -z "$ac_cpp_err"; then
10399 echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10402 # Broken: fails on valid input.
10405 rm -f conftest.err conftest.$ac_ext
10407 # OK, works on sane cases. Now check whether non-existent headers
10408 # can be detected and how.
10409 cat >conftest.$ac_ext <<_ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10415 #include <ac_nonexistent.h>
10417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10420 grep -v '^ *+' conftest.er1 >conftest.err
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } >/dev/null; then
10425 if test -s conftest.err; then
10426 ac_cpp_err=$ac_cxx_preproc_warn_flag
10427 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10434 if test -z "$ac_cpp_err"; then
10435 # Broken: success on invalid input.
10438 echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10441 # Passes both tests.
10445 rm -f conftest.err conftest.$ac_ext
10448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10449 rm -f conftest.err conftest.$ac_ext
10450 if $ac_preproc_ok; then
10455 ac_cv_prog_CXXCPP=$CXXCPP
10458 CXXCPP=$ac_cv_prog_CXXCPP
10460 ac_cv_prog_CXXCPP=$CXXCPP
10462 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10463 echo "${ECHO_T}$CXXCPP" >&6
10464 ac_preproc_ok=false
10465 for ac_cxx_preproc_warn_flag in '' yes
10467 # Use a header file that comes with gcc, so configuring glibc
10468 # with a fresh cross-compiler works.
10469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10470 # <limits.h> exists even on freestanding compilers.
10471 # On the NeXT, cc -E runs the code through the compiler's parser,
10472 # not just through cpp. "Syntax error" is here to catch this case.
10473 cat >conftest.$ac_ext <<_ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10480 # include <limits.h>
10482 # include <assert.h>
10486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10489 grep -v '^ *+' conftest.er1 >conftest.err
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } >/dev/null; then
10494 if test -s conftest.err; then
10495 ac_cpp_err=$ac_cxx_preproc_warn_flag
10496 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10503 if test -z "$ac_cpp_err"; then
10506 echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10509 # Broken: fails on valid input.
10512 rm -f conftest.err conftest.$ac_ext
10514 # OK, works on sane cases. Now check whether non-existent headers
10515 # can be detected and how.
10516 cat >conftest.$ac_ext <<_ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10522 #include <ac_nonexistent.h>
10524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10527 grep -v '^ *+' conftest.er1 >conftest.err
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } >/dev/null; then
10532 if test -s conftest.err; then
10533 ac_cpp_err=$ac_cxx_preproc_warn_flag
10534 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10541 if test -z "$ac_cpp_err"; then
10542 # Broken: success on invalid input.
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10548 # Passes both tests.
10552 rm -f conftest.err conftest.$ac_ext
10555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10556 rm -f conftest.err conftest.$ac_ext
10557 if $ac_preproc_ok; then
10560 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10561 See \`config.log' for more details." >&5
10562 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10563 See \`config.log' for more details." >&2;}
10564 { (exit 1); exit 1; }; }
10568 ac_cpp='$CXXCPP $CPPFLAGS'
10569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10577 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10578 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10579 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10580 if test -n "$ac_tool_prefix"; then
10581 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10585 echo "$as_me:$LINENO: checking for $ac_word" >&5
10586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10587 if test "${ac_cv_prog_F77+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 if test -n "$F77"; then
10591 ac_cv_prog_F77="$F77" # Let the user override the test.
10593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10594 for as_dir in $PATH
10597 test -z "$as_dir" && as_dir=.
10598 for ac_exec_ext in '' $ac_executable_extensions; do
10599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10600 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10609 F77=$ac_cv_prog_F77
10610 if test -n "$F77"; then
10611 echo "$as_me:$LINENO: result: $F77" >&5
10612 echo "${ECHO_T}$F77" >&6
10614 echo "$as_me:$LINENO: result: no" >&5
10615 echo "${ECHO_T}no" >&6
10618 test -n "$F77" && break
10621 if test -z "$F77"; then
10623 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10625 # Extract the first word of "$ac_prog", so it can be a program name with args.
10626 set dummy $ac_prog; ac_word=$2
10627 echo "$as_me:$LINENO: checking for $ac_word" >&5
10628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10629 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 if test -n "$ac_ct_F77"; then
10633 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10636 for as_dir in $PATH
10639 test -z "$as_dir" && as_dir=.
10640 for ac_exec_ext in '' $ac_executable_extensions; do
10641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10642 ac_cv_prog_ac_ct_F77="$ac_prog"
10643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10651 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10652 if test -n "$ac_ct_F77"; then
10653 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10654 echo "${ECHO_T}$ac_ct_F77" >&6
10656 echo "$as_me:$LINENO: result: no" >&5
10657 echo "${ECHO_T}no" >&6
10660 test -n "$ac_ct_F77" && break
10667 # Provide some information about the compiler.
10668 echo "$as_me:10668:" \
10669 "checking for Fortran 77 compiler version" >&5
10670 ac_compiler=`set X $ac_compile; echo $2`
10671 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10672 (eval $ac_compiler --version </dev/null >&5) 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }
10676 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10677 (eval $ac_compiler -v </dev/null >&5) 2>&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }
10681 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10682 (eval $ac_compiler -V </dev/null >&5) 2>&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }
10688 # If we don't use `.F' as extension, the preprocessor is not run on the
10689 # input file. (Note that this only needs to work for GNU compilers.)
10690 ac_save_ext=$ac_ext
10692 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10693 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10694 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 cat >conftest.$ac_ext <<_ACEOF
10705 rm -f conftest.$ac_objext
10706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10707 (eval $ac_compile) 2>conftest.er1
10709 grep -v '^ *+' conftest.er1 >conftest.err
10711 cat conftest.err >&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } &&
10714 { ac_try='test -z "$ac_f77_werror_flag"
10715 || test ! -s conftest.err'
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; } &&
10721 { ac_try='test -s conftest.$ac_objext'
10722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723 (eval $ac_try) 2>&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }; }; then
10727 ac_compiler_gnu=yes
10729 echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.$ac_ext >&5
10734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10735 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10738 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10739 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10740 ac_ext=$ac_save_ext
10741 ac_test_FFLAGS=${FFLAGS+set}
10742 ac_save_FFLAGS=$FFLAGS
10744 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10745 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10746 if test "${ac_cv_prog_f77_g+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 cat >conftest.$ac_ext <<_ACEOF
10755 rm -f conftest.$ac_objext
10756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10757 (eval $ac_compile) 2>conftest.er1
10759 grep -v '^ *+' conftest.er1 >conftest.err
10761 cat conftest.err >&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } &&
10764 { ac_try='test -z "$ac_f77_werror_flag"
10765 || test ! -s conftest.err'
10766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767 (eval $ac_try) 2>&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }; } &&
10771 { ac_try='test -s conftest.$ac_objext'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; }; then
10777 ac_cv_prog_f77_g=yes
10779 echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10782 ac_cv_prog_f77_g=no
10784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10787 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10788 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10789 if test "$ac_test_FFLAGS" = set; then
10790 FFLAGS=$ac_save_FFLAGS
10791 elif test $ac_cv_prog_f77_g = yes; then
10792 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10798 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10805 G77=`test $ac_compiler_gnu = yes && echo yes`
10807 ac_cpp='$CPP $CPPFLAGS'
10808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10814 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10816 # find the maximum length of command line arguments
10817 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10818 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10819 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10827 # On DJGPP, this test can blow up pretty badly due to problems in libc
10828 # (any single argument exceeding 2000 bytes causes a buffer overrun
10829 # during glob expansion). Even if it were fixed, the result of this
10830 # check would be larger than it should be.
10831 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10835 # Under GNU Hurd, this test is not required because there is
10836 # no limit to the length of command line arguments.
10837 # Libtool will interpret -1 as no limit whatsoever
10838 lt_cv_sys_max_cmd_len=-1;
10842 # On Win9x/ME, this test blows up -- it succeeds, but takes
10843 # about 5 minutes as the teststring grows exponentially.
10844 # Worse, since 9x/ME are not pre-emptively multitasking,
10845 # you end up with a "frozen" computer, even though with patience
10846 # the test eventually succeeds (with a max line length of 256k).
10847 # Instead, let's just punt: use the minimum linelength reported by
10848 # all of the supported platforms: 8192 (on NT/2K/XP).
10849 lt_cv_sys_max_cmd_len=8192;
10853 # On AmigaOS with pdksh, this test takes hours, literally.
10854 # So we just punt and use a minimum line length of 8192.
10855 lt_cv_sys_max_cmd_len=8192;
10858 netbsd* | freebsd* | openbsd* | darwin* )
10859 # This has been around since 386BSD, at least. Likely further.
10860 if test -x /sbin/sysctl; then
10861 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10862 elif test -x /usr/sbin/sysctl; then
10863 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10865 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10867 # And add a safety zone
10868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10872 # If test is not a shell built-in, we'll probably end up computing a
10873 # maximum length that is only half of the actual maximum length, but
10875 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10876 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10877 = "XX$teststring") >/dev/null 2>&1 &&
10878 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10879 lt_cv_sys_max_cmd_len=$new_result &&
10880 test $i != 17 # 1/2 MB should be enough
10883 teststring=$teststring$teststring
10886 # Add a significant safety factor because C++ compilers can tack on massive
10887 # amounts of additional arguments before passing them to the linker.
10888 # It appears as though 1/2 is a usable value.
10889 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10895 if test -n $lt_cv_sys_max_cmd_len ; then
10896 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10897 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10899 echo "$as_me:$LINENO: result: none" >&5
10900 echo "${ECHO_T}none" >&6
10906 # Check for command to grab the raw symbol name followed by C symbol from nm.
10907 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10908 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10909 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 # These are sane defaults that work on at least a few old systems.
10914 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10916 # Character class describing NM global symbol codes.
10917 symcode='[BCDEGRST]'
10919 # Regexp to match symbols that can be accessed directly from C.
10920 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10922 # Transform the above into a raw symbol and a C symbol.
10923 symxfrm='\1 \2\3 \3'
10925 # Transform an extracted symbol line into a proper C declaration
10926 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10928 # Transform an extracted symbol line into symbol name and symbol address
10929 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'"
10931 # Define system-specific variables.
10936 cygwin* | mingw* | pw32*)
10937 symcode='[ABCDGISTW]'
10939 hpux*) # Its linker distinguishes data from code symbols
10940 if test "$host_cpu" = ia64; then
10941 symcode='[ABCDEGRST]'
10943 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10944 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'"
10947 if test "$host_cpu" = ia64; then
10948 symcode='[ABCDGIRSTW]'
10949 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10950 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'"
10953 irix* | nonstopux*)
10954 symcode='[BCDEGRST]'
10957 symcode='[BCDEGQRST]'
10967 # Handle CRLF in mingw tool chain
10971 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10975 # If we're using GNU nm, then use its standard symbol codes.
10976 case `$NM -V 2>&1` in
10977 *GNU* | *'with BFD'*)
10978 symcode='[ABCDGIRSTW]' ;;
10981 # Try without a prefix undercore, then with it.
10982 for ac_symprfx in "" "_"; do
10984 # Write the raw and C identifiers.
10985 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10987 # Check to see that the pipe works correctly.
10991 cat > conftest.$ac_ext <<EOF
10996 void nm_test_func(){}
11000 int main(){nm_test_var='a';nm_test_func();return(0);}
11003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11004 (eval $ac_compile) 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; then
11008 # Now try to grab the symbols.
11010 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11011 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } && test -s "$nlist"; then
11015 # Try sorting and uniquifying the output.
11016 if sort "$nlist" | uniq > "$nlist"T; then
11017 mv -f "$nlist"T "$nlist"
11022 # Make sure that we snagged all the symbols we need.
11023 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11024 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11025 cat <<EOF > conftest.$ac_ext
11031 # Now generate the symbol file.
11032 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11034 cat <<EOF >> conftest.$ac_ext
11035 #if defined (__STDC__) && __STDC__
11036 # define lt_ptr_t void *
11038 # define lt_ptr_t char *
11042 /* The mapping between symbol names and symbols. */
11047 lt_preloaded_symbols[] =
11050 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11051 cat <<\EOF >> conftest.$ac_ext
11059 # Now try linking the two files.
11060 mv conftest.$ac_objext conftstm.$ac_objext
11061 lt_save_LIBS="$LIBS"
11062 lt_save_CFLAGS="$CFLAGS"
11063 LIBS="conftstm.$ac_objext"
11064 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066 (eval $ac_link) 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11072 LIBS="$lt_save_LIBS"
11073 CFLAGS="$lt_save_CFLAGS"
11075 echo "cannot find nm_test_func in $nlist" >&5
11078 echo "cannot find nm_test_var in $nlist" >&5
11081 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11084 echo "$progname: failed program was:" >&5
11085 cat conftest.$ac_ext >&5
11087 rm -f conftest* conftst*
11089 # Do not use the global_symbol_pipe unless it works.
11090 if test "$pipe_works" = yes; then
11093 lt_cv_sys_global_symbol_pipe=
11099 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11100 lt_cv_sys_global_symbol_to_cdecl=
11102 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11103 echo "$as_me:$LINENO: result: failed" >&5
11104 echo "${ECHO_T}failed" >&6
11106 echo "$as_me:$LINENO: result: ok" >&5
11107 echo "${ECHO_T}ok" >&6
11110 echo "$as_me:$LINENO: checking for objdir" >&5
11111 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11112 if test "${lt_cv_objdir+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 rm -f .libs 2>/dev/null
11116 mkdir .libs 2>/dev/null
11117 if test -d .libs; then
11120 # MS-DOS does not allow filenames that begin with a dot.
11123 rmdir .libs 2>/dev/null
11125 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11126 echo "${ECHO_T}$lt_cv_objdir" >&6
11127 objdir=$lt_cv_objdir
11135 # AIX sometimes has problems with the GCC collect2 program. For some
11136 # reason, if we set the COLLECT_NAMES environment variable, the problems
11137 # vanish in a puff of smoke.
11138 if test "X${COLLECT_NAMES+set}" != Xset; then
11140 export COLLECT_NAMES
11145 # Sed substitution that helps us do robust quoting. It backslashifies
11146 # metacharacters that are still active within double-quoted strings.
11147 Xsed='sed -e s/^X//'
11148 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11150 # Same as above, but do not quote variable references.
11151 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11153 # Sed substitution to delay expansion of an escaped shell variable in a
11154 # double_quote_subst'ed string.
11155 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11157 # Sed substitution to avoid accidental globbing in evaled expressions
11158 no_glob_subst='s/\*/\\\*/g'
11163 # Global variables:
11164 default_ofile=mklib
11165 can_build_shared=yes
11167 # All known linkers require a `.a' archive for static linking (except M$VC,
11168 # which needs '.lib').
11170 ltmain="$ac_aux_dir/ltmain.sh"
11171 ofile="$default_ofile"
11172 with_gnu_ld="$lt_cv_prog_gnu_ld"
11174 if test -n "$ac_tool_prefix"; then
11175 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11176 set dummy ${ac_tool_prefix}ar; ac_word=$2
11177 echo "$as_me:$LINENO: checking for $ac_word" >&5
11178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11179 if test "${ac_cv_prog_AR+set}" = set; then
11180 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 if test -n "$AR"; then
11183 ac_cv_prog_AR="$AR" # Let the user override the test.
11185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11186 for as_dir in $PATH
11189 test -z "$as_dir" && as_dir=.
11190 for ac_exec_ext in '' $ac_executable_extensions; do
11191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11192 ac_cv_prog_AR="${ac_tool_prefix}ar"
11193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11202 if test -n "$AR"; then
11203 echo "$as_me:$LINENO: result: $AR" >&5
11204 echo "${ECHO_T}$AR" >&6
11206 echo "$as_me:$LINENO: result: no" >&5
11207 echo "${ECHO_T}no" >&6
11211 if test -z "$ac_cv_prog_AR"; then
11213 # Extract the first word of "ar", so it can be a program name with args.
11214 set dummy ar; ac_word=$2
11215 echo "$as_me:$LINENO: checking for $ac_word" >&5
11216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11217 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 if test -n "$ac_ct_AR"; then
11221 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $PATH
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
11229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11230 ac_cv_prog_ac_ct_AR="ar"
11231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11237 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11240 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11241 if test -n "$ac_ct_AR"; then
11242 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11243 echo "${ECHO_T}$ac_ct_AR" >&6
11245 echo "$as_me:$LINENO: result: no" >&5
11246 echo "${ECHO_T}no" >&6
11251 AR="$ac_cv_prog_AR"
11254 if test -n "$ac_tool_prefix"; then
11255 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11256 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11257 echo "$as_me:$LINENO: checking for $ac_word" >&5
11258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11259 if test "${ac_cv_prog_RANLIB+set}" = set; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 if test -n "$RANLIB"; then
11263 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266 for as_dir in $PATH
11269 test -z "$as_dir" && as_dir=.
11270 for ac_exec_ext in '' $ac_executable_extensions; do
11271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11281 RANLIB=$ac_cv_prog_RANLIB
11282 if test -n "$RANLIB"; then
11283 echo "$as_me:$LINENO: result: $RANLIB" >&5
11284 echo "${ECHO_T}$RANLIB" >&6
11286 echo "$as_me:$LINENO: result: no" >&5
11287 echo "${ECHO_T}no" >&6
11291 if test -z "$ac_cv_prog_RANLIB"; then
11292 ac_ct_RANLIB=$RANLIB
11293 # Extract the first word of "ranlib", so it can be a program name with args.
11294 set dummy ranlib; ac_word=$2
11295 echo "$as_me:$LINENO: checking for $ac_word" >&5
11296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11297 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 if test -n "$ac_ct_RANLIB"; then
11301 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304 for as_dir in $PATH
11307 test -z "$as_dir" && as_dir=.
11308 for ac_exec_ext in '' $ac_executable_extensions; do
11309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11310 ac_cv_prog_ac_ct_RANLIB="ranlib"
11311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11317 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11320 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11321 if test -n "$ac_ct_RANLIB"; then
11322 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11323 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11325 echo "$as_me:$LINENO: result: no" >&5
11326 echo "${ECHO_T}no" >&6
11329 RANLIB=$ac_ct_RANLIB
11331 RANLIB="$ac_cv_prog_RANLIB"
11334 if test -n "$ac_tool_prefix"; then
11335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11336 set dummy ${ac_tool_prefix}strip; ac_word=$2
11337 echo "$as_me:$LINENO: checking for $ac_word" >&5
11338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11339 if test "${ac_cv_prog_STRIP+set}" = set; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 if test -n "$STRIP"; then
11343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346 for as_dir in $PATH
11349 test -z "$as_dir" && as_dir=.
11350 for ac_exec_ext in '' $ac_executable_extensions; do
11351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11352 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11361 STRIP=$ac_cv_prog_STRIP
11362 if test -n "$STRIP"; then
11363 echo "$as_me:$LINENO: result: $STRIP" >&5
11364 echo "${ECHO_T}$STRIP" >&6
11366 echo "$as_me:$LINENO: result: no" >&5
11367 echo "${ECHO_T}no" >&6
11371 if test -z "$ac_cv_prog_STRIP"; then
11373 # Extract the first word of "strip", so it can be a program name with args.
11374 set dummy strip; ac_word=$2
11375 echo "$as_me:$LINENO: checking for $ac_word" >&5
11376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11377 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11380 if test -n "$ac_ct_STRIP"; then
11381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384 for as_dir in $PATH
11387 test -z "$as_dir" && as_dir=.
11388 for ac_exec_ext in '' $ac_executable_extensions; do
11389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11390 ac_cv_prog_ac_ct_STRIP="strip"
11391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11397 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11401 if test -n "$ac_ct_STRIP"; then
11402 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11403 echo "${ECHO_T}$ac_ct_STRIP" >&6
11405 echo "$as_me:$LINENO: result: no" >&5
11406 echo "${ECHO_T}no" >&6
11411 STRIP="$ac_cv_prog_STRIP"
11416 old_CFLAGS="$CFLAGS"
11418 # Set sane defaults for various variables
11419 test -z "$AR" && AR=ar
11420 test -z "$AR_FLAGS" && AR_FLAGS=cru
11421 test -z "$AS" && AS=as
11422 test -z "$CC" && CC=cc
11423 test -z "$LTCC" && LTCC=$CC
11424 test -z "$DLLTOOL" && DLLTOOL=dlltool
11425 test -z "$LD" && LD=ld
11426 test -z "$LN_S" && LN_S="ln -s"
11427 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11428 test -z "$NM" && NM=nm
11429 test -z "$SED" && SED=sed
11430 test -z "$OBJDUMP" && OBJDUMP=objdump
11431 test -z "$RANLIB" && RANLIB=:
11432 test -z "$STRIP" && STRIP=:
11433 test -z "$ac_objext" && ac_objext=o
11435 # Determine commands to create old-style static archives.
11436 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11437 old_postinstall_cmds='chmod 644 $oldlib'
11438 old_postuninstall_cmds=
11440 if test -n "$RANLIB"; then
11443 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11446 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11449 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11452 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11454 # Only perform the check for file, if the check method requires it
11455 case $deplibs_check_method in
11457 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11458 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11459 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11460 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11468 lt_save_MAGIC_CMD="$MAGIC_CMD"
11469 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11470 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11471 for ac_dir in $ac_dummy; do
11473 test -z "$ac_dir" && ac_dir=.
11474 if test -f $ac_dir/${ac_tool_prefix}file; then
11475 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11476 if test -n "$file_magic_test_file"; then
11477 case $deplibs_check_method in
11479 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11481 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11482 $EGREP "$file_magic_regex" > /dev/null; then
11487 *** Warning: the command libtool uses to detect shared libraries,
11488 *** $file_magic_cmd, produces output that libtool cannot recognize.
11489 *** The result is that libtool may fail to recognize shared libraries
11490 *** as such. This will affect the creation of libtool libraries that
11491 *** depend on shared libraries, but programs linked with such libtool
11492 *** libraries will work regardless of this problem. Nevertheless, you
11493 *** may want to report the problem to your system manager and/or to
11494 *** bug-libtool@gnu.org
11504 MAGIC_CMD="$lt_save_MAGIC_CMD"
11509 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11510 if test -n "$MAGIC_CMD"; then
11511 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11512 echo "${ECHO_T}$MAGIC_CMD" >&6
11514 echo "$as_me:$LINENO: result: no" >&5
11515 echo "${ECHO_T}no" >&6
11518 if test -z "$lt_cv_path_MAGIC_CMD"; then
11519 if test -n "$ac_tool_prefix"; then
11520 echo "$as_me:$LINENO: checking for file" >&5
11521 echo $ECHO_N "checking for file... $ECHO_C" >&6
11522 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11530 lt_save_MAGIC_CMD="$MAGIC_CMD"
11531 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11532 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11533 for ac_dir in $ac_dummy; do
11535 test -z "$ac_dir" && ac_dir=.
11536 if test -f $ac_dir/file; then
11537 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11538 if test -n "$file_magic_test_file"; then
11539 case $deplibs_check_method in
11541 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11543 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11544 $EGREP "$file_magic_regex" > /dev/null; then
11549 *** Warning: the command libtool uses to detect shared libraries,
11550 *** $file_magic_cmd, produces output that libtool cannot recognize.
11551 *** The result is that libtool may fail to recognize shared libraries
11552 *** as such. This will affect the creation of libtool libraries that
11553 *** depend on shared libraries, but programs linked with such libtool
11554 *** libraries will work regardless of this problem. Nevertheless, you
11555 *** may want to report the problem to your system manager and/or to
11556 *** bug-libtool@gnu.org
11566 MAGIC_CMD="$lt_save_MAGIC_CMD"
11571 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11572 if test -n "$MAGIC_CMD"; then
11573 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11574 echo "${ECHO_T}$MAGIC_CMD" >&6
11576 echo "$as_me:$LINENO: result: no" >&5
11577 echo "${ECHO_T}no" >&6
11590 enable_win32_dll=no
11592 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11593 if test "${enable_libtool_lock+set}" = set; then
11594 enableval="$enable_libtool_lock"
11597 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11600 # Check whether --with-pic or --without-pic was given.
11601 if test "${with_pic+set}" = set; then
11602 withval="$with_pic"
11603 pic_mode="$withval"
11607 test -z "$pic_mode" && pic_mode=default
11609 # Use C for the default configuration in the libtool script
11613 ac_cpp='$CPP $CPPFLAGS'
11614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11619 # Source file extension for C test sources.
11622 # Object file extension for compiled C test sources.
11626 # Code to be used in simple compile tests
11627 lt_simple_compile_test_code="int some_variable = 0;\n"
11629 # Code to be used in simple link tests
11630 lt_simple_link_test_code='int main(){return(0);}\n'
11633 # If no C compiler was specified, use CC.
11636 # Allow CC to be a program name with arguments.
11641 # Check for any special shared library compilation flags.
11644 if test "$GCC" = no; then
11647 lt_prog_cc_shlib='-belf'
11651 if test -n "$lt_prog_cc_shlib"; then
11652 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11653 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11654 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11656 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11657 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11658 lt_cv_prog_cc_can_build_shared=no
11664 # Check to make sure the static flag actually works.
11666 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11667 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11668 if test "${lt_prog_compiler_static_works+set}" = set; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 lt_prog_compiler_static_works=no
11672 save_LDFLAGS="$LDFLAGS"
11673 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11674 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11675 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11676 # The compiler can only warn and ignore the option if not recognized
11677 # So say no if there are warnings
11678 if test -s conftest.err; then
11679 # Append any errors to the config.log.
11680 cat conftest.err 1>&5
11682 lt_prog_compiler_static_works=yes
11686 LDFLAGS="$save_LDFLAGS"
11689 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11690 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11692 if test x"$lt_prog_compiler_static_works" = xyes; then
11695 lt_prog_compiler_static=
11701 lt_prog_compiler_no_builtin_flag=
11703 if test "$GCC" = yes; then
11704 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11707 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11708 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11709 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 lt_cv_prog_compiler_rtti_exceptions=no
11713 ac_outfile=conftest.$ac_objext
11714 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11715 lt_compiler_flag="-fno-rtti -fno-exceptions"
11716 # Insert the option either (1) after the last *FLAGS variable, or
11717 # (2) before a word containing "conftest.", or (3) at the end.
11718 # Note that $ac_compile itself does not contain backslashes and begins
11719 # with a dollar sign (not a hyphen), so the echo should work correctly.
11720 # The option is referenced via a variable to avoid confusing sed.
11721 lt_compile=`echo "$ac_compile" | $SED \
11722 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11724 -e 's:$: $lt_compiler_flag:'`
11725 (eval echo "\"\$as_me:11725: $lt_compile\"" >&5)
11726 (eval "$lt_compile" 2>conftest.err)
11728 cat conftest.err >&5
11729 echo "$as_me:11729: \$? = $ac_status" >&5
11730 if (exit $ac_status) && test -s "$ac_outfile"; then
11731 # The compiler can only warn and ignore the option if not recognized
11732 # So say no if there are warnings
11733 if test ! -s conftest.err; then
11734 lt_cv_prog_compiler_rtti_exceptions=yes
11740 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11741 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11743 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11744 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11751 lt_prog_compiler_wl=
11752 lt_prog_compiler_pic=
11753 lt_prog_compiler_static=
11755 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11756 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11758 if test "$GCC" = yes; then
11759 lt_prog_compiler_wl='-Wl,'
11760 lt_prog_compiler_static='-static'
11764 # All AIX code is PIC.
11765 if test "$host_cpu" = ia64; then
11766 # AIX 5 now supports IA64 processor
11767 lt_prog_compiler_static='-Bstatic'
11772 # FIXME: we need at least 68020 code to build shared libraries, but
11773 # adding the `-m68020' flag to GCC prevents building anything better,
11775 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11778 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11779 # PIC is the default for these OSes.
11782 mingw* | pw32* | os2*)
11783 # This hack is so that the source file can tell whether it is being
11784 # built for inclusion in a dll (and should export symbols for example).
11785 lt_prog_compiler_pic='-DDLL_EXPORT'
11788 darwin* | rhapsody*)
11789 # PIC is the default on this platform
11790 # Common symbols not allowed in MH_DYLIB files
11791 lt_prog_compiler_pic='-fno-common'
11795 # Just because we use GCC doesn't mean we suddenly get shared libraries
11796 # on systems that don't support them.
11797 lt_prog_compiler_can_build_shared=no
11802 if test -d /usr/nec; then
11803 lt_prog_compiler_pic=-Kconform_pic
11808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11809 # not for PA HP-UX.
11810 case "$host_cpu" in
11815 lt_prog_compiler_pic='-fPIC'
11821 lt_prog_compiler_pic='-fPIC'
11825 # PORTME Check for flag to pass linker flags through the system compiler.
11828 lt_prog_compiler_wl='-Wl,'
11829 if test "$host_cpu" = ia64; then
11830 # AIX 5 now supports IA64 processor
11831 lt_prog_compiler_static='-Bstatic'
11833 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11837 # PIC is the default on this platform
11838 # Common symbols not allowed in MH_DYLIB files
11839 case "$cc_basename" in
11841 lt_prog_compiler_pic='-qnocommon'
11842 lt_prog_compiler_wl='-Wl,'
11847 mingw* | pw32* | os2*)
11848 # This hack is so that the source file can tell whether it is being
11849 # built for inclusion in a dll (and should export symbols for example).
11850 lt_prog_compiler_pic='-DDLL_EXPORT'
11853 hpux9* | hpux10* | hpux11*)
11854 lt_prog_compiler_wl='-Wl,'
11855 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11856 # not for PA HP-UX.
11857 case "$host_cpu" in
11862 lt_prog_compiler_pic='+Z'
11865 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11866 lt_prog_compiler_static='${wl}-a ${wl}archive'
11869 irix5* | irix6* | nonstopux*)
11870 lt_prog_compiler_wl='-Wl,'
11871 # PIC (with -KPIC) is the default.
11872 lt_prog_compiler_static='-non_shared'
11876 lt_prog_compiler_pic='-KPIC'
11877 lt_prog_compiler_static='-Bstatic'
11883 lt_prog_compiler_wl='-Wl,'
11884 lt_prog_compiler_pic='-KPIC'
11885 lt_prog_compiler_static='-static'
11888 lt_prog_compiler_wl='-Wl,'
11889 # All Alpha code is PIC.
11890 lt_prog_compiler_static='-non_shared'
11895 osf3* | osf4* | osf5*)
11896 lt_prog_compiler_wl='-Wl,'
11897 # All OSF/1 code is PIC.
11898 lt_prog_compiler_static='-non_shared'
11902 lt_prog_compiler_pic='-Kpic'
11903 lt_prog_compiler_static='-dn'
11907 lt_prog_compiler_wl='-Wl,'
11908 lt_prog_compiler_pic='-KPIC'
11909 lt_prog_compiler_static='-Bstatic'
11913 lt_prog_compiler_wl='-Qoption ld '
11914 lt_prog_compiler_pic='-PIC'
11915 lt_prog_compiler_static='-Bstatic'
11918 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11919 lt_prog_compiler_wl='-Wl,'
11920 lt_prog_compiler_pic='-KPIC'
11921 lt_prog_compiler_static='-Bstatic'
11925 if test -d /usr/nec ;then
11926 lt_prog_compiler_pic='-Kconform_pic'
11927 lt_prog_compiler_static='-Bstatic'
11932 lt_prog_compiler_pic='-pic'
11933 lt_prog_compiler_static='-Bstatic'
11937 lt_prog_compiler_can_build_shared=no
11942 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11943 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11946 # Check to make sure the PIC flag actually works.
11948 if test -n "$lt_prog_compiler_pic"; then
11950 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11951 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11952 if test "${lt_prog_compiler_pic_works+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 lt_prog_compiler_pic_works=no
11956 ac_outfile=conftest.$ac_objext
11957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11958 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11959 # Insert the option either (1) after the last *FLAGS variable, or
11960 # (2) before a word containing "conftest.", or (3) at the end.
11961 # Note that $ac_compile itself does not contain backslashes and begins
11962 # with a dollar sign (not a hyphen), so the echo should work correctly.
11963 # The option is referenced via a variable to avoid confusing sed.
11964 lt_compile=`echo "$ac_compile" | $SED \
11965 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11967 -e 's:$: $lt_compiler_flag:'`
11968 (eval echo "\"\$as_me:11968: $lt_compile\"" >&5)
11969 (eval "$lt_compile" 2>conftest.err)
11971 cat conftest.err >&5
11972 echo "$as_me:11972: \$? = $ac_status" >&5
11973 if (exit $ac_status) && test -s "$ac_outfile"; then
11974 # The compiler can only warn and ignore the option if not recognized
11975 # So say no if there are warnings
11976 if test ! -s conftest.err; then
11977 lt_prog_compiler_pic_works=yes
11983 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11984 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11986 if test x"$lt_prog_compiler_pic_works" = xyes; then
11987 case $lt_prog_compiler_pic in
11989 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11992 lt_prog_compiler_pic=
11993 lt_prog_compiler_can_build_shared=no
11998 # For platforms which do not support PIC, -DPIC is meaningless:
12000 lt_prog_compiler_pic=
12003 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12007 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12008 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12009 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
12012 lt_cv_prog_compiler_c_o=no
12013 $rm -r conftest 2>/dev/null
12017 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12019 lt_compiler_flag="-o out/conftest2.$ac_objext"
12020 # Insert the option either (1) after the last *FLAGS variable, or
12021 # (2) before a word containing "conftest.", or (3) at the end.
12022 # Note that $ac_compile itself does not contain backslashes and begins
12023 # with a dollar sign (not a hyphen), so the echo should work correctly.
12024 lt_compile=`echo "$ac_compile" | $SED \
12025 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12027 -e 's:$: $lt_compiler_flag:'`
12028 (eval echo "\"\$as_me:12028: $lt_compile\"" >&5)
12029 (eval "$lt_compile" 2>out/conftest.err)
12031 cat out/conftest.err >&5
12032 echo "$as_me:12032: \$? = $ac_status" >&5
12033 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12035 # The compiler can only warn and ignore the option if not recognized
12036 # So say no if there are warnings
12037 if test ! -s out/conftest.err; then
12038 lt_cv_prog_compiler_c_o=yes
12043 # SGI C++ compiler will create directory out/ii_files/ for
12044 # template instantiation
12045 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12046 $rm out/* && rmdir out
12052 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12053 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12056 hard_links="nottested"
12057 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12058 # do not overwrite the value of need_locks provided by the user
12059 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12060 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12063 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12065 ln conftest.a conftest.b 2>&5 || hard_links=no
12066 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12067 echo "$as_me:$LINENO: result: $hard_links" >&5
12068 echo "${ECHO_T}$hard_links" >&6
12069 if test "$hard_links" = no; then
12070 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12071 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12078 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12079 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12082 allow_undefined_flag=
12083 enable_shared_with_static_runtimes=no
12085 archive_expsym_cmds=
12086 old_archive_From_new_cmds=
12087 old_archive_from_expsyms_cmds=
12088 export_dynamic_flag_spec=
12089 whole_archive_flag_spec=
12090 thread_safe_flag_spec=
12091 hardcode_libdir_flag_spec=
12092 hardcode_libdir_flag_spec_ld=
12093 hardcode_libdir_separator=
12095 hardcode_minus_L=no
12096 hardcode_shlibpath_var=unsupported
12097 link_all_deplibs=unknown
12098 hardcode_automatic=no
12100 module_expsym_cmds=
12101 always_export_symbols=no
12102 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12103 # include_expsyms should be a list of space-separated symbols to be *always*
12104 # included in the symbol list
12106 # exclude_expsyms can be an extended regexp of symbols to exclude
12107 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12108 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12109 # as well as any symbol that contains `d'.
12110 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12111 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12112 # platforms (ab)use it in PIC code, but their linkers get confused if
12113 # the symbol is explicitly referenced. Since portable code cannot
12114 # rely on this symbol name, it's probably fine to never include it in
12115 # preloaded symbol tables.
12116 extract_expsyms_cmds=
12119 cygwin* | mingw* | pw32*)
12120 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12121 # When not using gcc, we currently assume that we are using
12122 # Microsoft Visual C++.
12123 if test "$GCC" != yes; then
12133 if test "$with_gnu_ld" = yes; then
12134 # If archive_cmds runs LD, not CC, wlarc should be empty
12137 # See if GNU ld supports shared libraries.
12139 aix3* | aix4* | aix5*)
12140 # On AIX/PPC, the GNU linker is very broken
12141 if test "$host_cpu" != ia64; then
12145 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12146 *** to be unable to reliably create shared libraries on AIX.
12147 *** Therefore, libtool is disabling shared libraries support. If you
12148 *** really care for shared libraries, you may want to modify your PATH
12149 *** so that a non-GNU linker is found, and then restart.
12156 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)'
12157 hardcode_libdir_flag_spec='-L$libdir'
12158 hardcode_minus_L=yes
12160 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12161 # that the semantics of dynamic libraries on AmigaOS, at least up
12162 # to version 4, is to share data among multiple programs linked
12163 # with the same dynamic library. Since this doesn't match the
12164 # behavior of shared libraries on other platforms, we can't use
12170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12171 allow_undefined_flag=unsupported
12172 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12173 # support --undefined. This deserves some investigation. FIXME
12174 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12180 cygwin* | mingw* | pw32*)
12181 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12182 # as there is no search path for DLLs.
12183 hardcode_libdir_flag_spec='-L$libdir'
12184 allow_undefined_flag=unsupported
12185 always_export_symbols=no
12186 enable_shared_with_static_runtimes=yes
12187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12189 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12191 # If the export-symbols file already is a .def file (1st line
12192 # is EXPORTS), use it as is; otherwise, prepend...
12193 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12194 cp $export_symbols $output_objdir/$soname.def;
12196 echo EXPORTS > $output_objdir/$soname.def;
12197 cat $export_symbols >> $output_objdir/$soname.def;
12199 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12207 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12211 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12216 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12220 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12221 *** create shared libraries on Solaris systems. Therefore, libtool
12222 *** is disabling shared libraries support. We urge you to upgrade GNU
12223 *** binutils to release 2.9.1 or newer. Another option is to modify
12224 *** your PATH or compiler configuration so that the native linker is
12225 *** used, and then restart.
12228 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12237 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12239 hardcode_direct=yes
12240 hardcode_shlibpath_var=no
12244 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12245 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12246 archive_cmds="$tmp_archive_cmds"
12247 supports_anon_versioning=no
12248 case `$LD -v 2>/dev/null` in
12249 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12250 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12251 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12252 *\ 2.11.*) ;; # other 2.11 versions
12253 *) supports_anon_versioning=yes ;;
12255 if test $supports_anon_versioning = yes; then
12256 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12257 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12258 $echo "local: *; };" >> $output_objdir/$libname.ver~
12259 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12261 archive_expsym_cmds="$tmp_archive_cmds"
12269 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12271 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12278 if test "$ld_shlibs" = yes; then
12279 runpath_var=LD_RUN_PATH
12280 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12281 export_dynamic_flag_spec='${wl}--export-dynamic'
12282 # ancient GNU ld didn't support --whole-archive et. al.
12283 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12284 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12286 whole_archive_flag_spec=
12290 # PORTME fill in a description of your system's linker (not GNU ld)
12293 allow_undefined_flag=unsupported
12294 always_export_symbols=yes
12295 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'
12296 # Note: this linker hardcodes the directories in LIBPATH if there
12297 # are no directories specified by -L.
12298 hardcode_minus_L=yes
12299 if test "$GCC" = yes && test -z "$link_static_flag"; then
12300 # Neither direct hardcoding nor static linking is supported with a
12302 hardcode_direct=unsupported
12307 if test "$host_cpu" = ia64; then
12308 # On IA64, the linker does run time linking by default, so we don't
12309 # have to do anything special.
12310 aix_use_runtimelinking=no
12311 exp_sym_flag='-Bexport'
12314 # If we're using GNU nm, then we don't want the "-C" option.
12315 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12316 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12317 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'
12319 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'
12321 aix_use_runtimelinking=no
12323 # Test if we are trying to use run time linking or normal
12324 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12325 # need to do runtime linking.
12326 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12327 for ld_flag in $LDFLAGS; do
12328 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12329 aix_use_runtimelinking=yes
12335 exp_sym_flag='-bexport'
12336 no_entry_flag='-bnoentry'
12339 # When large executables or shared objects are built, AIX ld can
12340 # have problems creating the table of contents. If linking a library
12341 # or program results in "error TOC overflow" add -mminimal-toc to
12342 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12343 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12346 hardcode_direct=yes
12347 hardcode_libdir_separator=':'
12348 link_all_deplibs=yes
12350 if test "$GCC" = yes; then
12351 case $host_os in aix4.012|aix4.012.*)
12352 # We only want to do this on AIX 4.2 and lower, the check
12353 # below for broken collect2 doesn't work under 4.3+
12354 collect2name=`${CC} -print-prog-name=collect2`
12355 if test -f "$collect2name" && \
12356 strings "$collect2name" | grep resolve_lib_name >/dev/null
12358 # We have reworked collect2
12359 hardcode_direct=yes
12361 # We have old collect2
12362 hardcode_direct=unsupported
12363 # It fails to find uninstalled libraries when the uninstalled
12364 # path is not listed in the libpath. Setting hardcode_minus_L
12365 # to unsupported forces relinking
12366 hardcode_minus_L=yes
12367 hardcode_libdir_flag_spec='-L$libdir'
12368 hardcode_libdir_separator=
12371 shared_flag='-shared'
12374 if test "$host_cpu" = ia64; then
12375 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12376 # chokes on -Wl,-G. The following line is correct:
12379 if test "$aix_use_runtimelinking" = yes; then
12380 shared_flag='${wl}-G'
12382 shared_flag='${wl}-bM:SRE'
12387 # It seems that -bexpall does not export symbols beginning with
12388 # underscore (_), so it is better to generate a list of symbols to export.
12389 always_export_symbols=yes
12390 if test "$aix_use_runtimelinking" = yes; then
12391 # Warning - without using the other runtime loading flags (-brtl),
12392 # -berok will link without error, but may produce a broken library.
12393 allow_undefined_flag='-berok'
12394 # Determine the default libpath from the value encoded in an empty executable.
12395 cat >conftest.$ac_ext <<_ACEOF
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h. */
12410 rm -f conftest.$ac_objext conftest$ac_exeext
12411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12412 (eval $ac_link) 2>conftest.er1
12414 grep -v '^ *+' conftest.er1 >conftest.err
12416 cat conftest.err >&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } &&
12419 { ac_try='test -z "$ac_c_werror_flag"
12420 || test ! -s conftest.err'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; } &&
12426 { ac_try='test -s conftest$ac_exeext'
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; }; then
12433 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12435 # Check for a 64-bit object if we didn't find anything.
12436 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; }
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12443 rm -f conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12445 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12447 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12448 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"
12450 if test "$host_cpu" = ia64; then
12451 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12452 allow_undefined_flag="-z nodefs"
12453 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"
12455 # Determine the default libpath from the value encoded in an empty executable.
12456 cat >conftest.$ac_ext <<_ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h. */
12471 rm -f conftest.$ac_objext conftest$ac_exeext
12472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12473 (eval $ac_link) 2>conftest.er1
12475 grep -v '^ *+' conftest.er1 >conftest.err
12477 cat conftest.err >&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
12480 { ac_try='test -z "$ac_c_werror_flag"
12481 || test ! -s conftest.err'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; } &&
12487 { ac_try='test -s conftest$ac_exeext'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12494 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12496 # Check for a 64-bit object if we didn't find anything.
12497 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; }
12500 echo "$as_me: failed program was:" >&5
12501 sed 's/^/| /' conftest.$ac_ext >&5
12504 rm -f conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
12506 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12508 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12509 # Warning - without using the other run time loading flags,
12510 # -berok will link without error, but may produce a broken library.
12511 no_undefined_flag=' ${wl}-bernotok'
12512 allow_undefined_flag=' ${wl}-berok'
12513 # -bexpall does not export symbols beginning with underscore (_)
12514 always_export_symbols=yes
12515 # Exported symbols can be pulled into shared objects from archives
12516 whole_archive_flag_spec=' '
12517 archive_cmds_need_lc=yes
12518 # This is similar to how AIX traditionally builds it's shared libraries.
12519 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'
12525 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)'
12526 hardcode_libdir_flag_spec='-L$libdir'
12527 hardcode_minus_L=yes
12528 # see comment about different semantics on the GNU ld section
12533 export_dynamic_flag_spec=-rdynamic
12536 cygwin* | mingw* | pw32*)
12537 # When not using gcc, we currently assume that we are using
12538 # Microsoft Visual C++.
12539 # hardcode_libdir_flag_spec is actually meaningless, as there is
12540 # no search path for DLLs.
12541 hardcode_libdir_flag_spec=' '
12542 allow_undefined_flag=unsupported
12543 # Tell ltmain to make .lib files, not .a files.
12545 # Tell ltmain to make .dll files, not .so files.
12547 # FIXME: Setting linknames here is a bad hack.
12548 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12549 # The linker will automatically build a .lib file if we build a DLL.
12550 old_archive_From_new_cmds='true'
12551 # FIXME: Should let the user specify the lib program.
12552 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12553 fix_srcfile_path='`cygpath -w "$srcfile"`'
12554 enable_shared_with_static_runtimes=yes
12557 darwin* | rhapsody*)
12559 rhapsody* | darwin1.[012])
12560 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12563 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12564 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12566 case ${MACOSX_DEPLOYMENT_TARGET} in
12568 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12571 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12577 archive_cmds_need_lc=no
12579 hardcode_automatic=yes
12580 hardcode_shlibpath_var=unsupported
12581 whole_archive_flag_spec=''
12582 link_all_deplibs=yes
12583 if test "$GCC" = yes ; then
12584 output_verbose_link_cmd='echo'
12585 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12586 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12587 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12588 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}'
12589 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}'
12591 case "$cc_basename" in
12593 output_verbose_link_cmd='echo'
12594 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $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 -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}'
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}'
12608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12609 hardcode_libdir_flag_spec='-L$libdir'
12610 hardcode_shlibpath_var=no
12617 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12618 # support. Future versions do this automatically, but an explicit c++rt0.o
12619 # does not break anything, and helps significantly (at the cost of a little
12622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12623 hardcode_libdir_flag_spec='-R$libdir'
12624 hardcode_direct=yes
12625 hardcode_shlibpath_var=no
12628 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12631 hardcode_direct=yes
12632 hardcode_minus_L=yes
12633 hardcode_shlibpath_var=no
12636 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12637 freebsd* | kfreebsd*-gnu)
12638 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12639 hardcode_libdir_flag_spec='-R$libdir'
12640 hardcode_direct=yes
12641 hardcode_shlibpath_var=no
12645 if test "$GCC" = yes; then
12646 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'
12648 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'
12650 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12651 hardcode_libdir_separator=:
12652 hardcode_direct=yes
12654 # hardcode_minus_L: Not really in the search PATH,
12655 # but as the default location of the library.
12656 hardcode_minus_L=yes
12657 export_dynamic_flag_spec='${wl}-E'
12661 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12662 case "$host_cpu" in
12664 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12667 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12671 case "$host_cpu" in
12673 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12676 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12680 if test "$with_gnu_ld" = no; then
12681 case "$host_cpu" in
12683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12684 hardcode_libdir_flag_spec_ld='+b $libdir'
12685 hardcode_libdir_separator=:
12687 hardcode_shlibpath_var=no
12690 hardcode_libdir_flag_spec='-L$libdir'
12692 hardcode_shlibpath_var=no
12694 # hardcode_minus_L: Not really in the search PATH,
12695 # but as the default location of the library.
12696 hardcode_minus_L=yes
12699 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12700 hardcode_libdir_separator=:
12701 hardcode_direct=yes
12702 export_dynamic_flag_spec='${wl}-E'
12704 # hardcode_minus_L: Not really in the search PATH,
12705 # but as the default location of the library.
12706 hardcode_minus_L=yes
12712 irix5* | irix6* | nonstopux*)
12713 if test "$GCC" = yes; then
12714 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'
12716 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'
12717 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12720 hardcode_libdir_separator=:
12721 link_all_deplibs=yes
12725 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12728 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12730 hardcode_libdir_flag_spec='-R$libdir'
12731 hardcode_direct=yes
12732 hardcode_shlibpath_var=no
12736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12737 hardcode_direct=yes
12738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12739 hardcode_libdir_separator=:
12740 hardcode_shlibpath_var=no
12744 hardcode_direct=yes
12745 hardcode_shlibpath_var=no
12746 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12747 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12748 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12749 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12750 export_dynamic_flag_spec='${wl}-E'
12753 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12755 hardcode_libdir_flag_spec='-R$libdir'
12758 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12759 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12766 hardcode_libdir_flag_spec='-L$libdir'
12767 hardcode_minus_L=yes
12768 allow_undefined_flag=unsupported
12769 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'
12770 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12774 if test "$GCC" = yes; then
12775 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12776 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'
12778 allow_undefined_flag=' -expect_unresolved \*'
12779 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'
12781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12782 hardcode_libdir_separator=:
12785 osf4* | osf5*) # as osf3* with the addition of -msym flag
12786 if test "$GCC" = yes; then
12787 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12788 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'
12789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12791 allow_undefined_flag=' -expect_unresolved \*'
12792 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'
12793 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12794 $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'
12796 # Both c and cxx compiler support -rpath directly
12797 hardcode_libdir_flag_spec='-rpath $libdir'
12799 hardcode_libdir_separator=:
12803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12804 hardcode_shlibpath_var=no
12805 export_dynamic_flag_spec='${wl}-Bexport'
12806 runpath_var=LD_RUN_PATH
12807 hardcode_runpath_var=yes
12811 no_undefined_flag=' -z text'
12812 if test "$GCC" = yes; then
12813 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12814 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12815 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12817 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12818 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12819 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12821 hardcode_libdir_flag_spec='-R$libdir'
12822 hardcode_shlibpath_var=no
12824 solaris2.[0-5] | solaris2.[0-5].*) ;;
12825 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12826 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12828 link_all_deplibs=yes
12832 if test "x$host_vendor" = xsequent; then
12833 # Use $CC to link under sequent, because it throws in some extra .o
12834 # files that make .init and .fini sections work.
12835 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12837 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12839 hardcode_libdir_flag_spec='-L$libdir'
12840 hardcode_direct=yes
12841 hardcode_minus_L=yes
12842 hardcode_shlibpath_var=no
12846 case $host_vendor in
12848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12849 hardcode_direct=yes # is this really true???
12852 ## LD is ld it makes a PLAMLIB
12853 ## CC just makes a GrossModule.
12854 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12855 reload_cmds='$CC -r -o $output$reload_objs'
12859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12860 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12863 runpath_var='LD_RUN_PATH'
12864 hardcode_shlibpath_var=no
12868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12869 hardcode_shlibpath_var=no
12870 export_dynamic_flag_spec='-Bexport'
12874 if test -d /usr/nec; then
12875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12876 hardcode_shlibpath_var=no
12877 runpath_var=LD_RUN_PATH
12878 hardcode_runpath_var=yes
12884 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12885 hardcode_direct=yes
12886 hardcode_minus_L=no
12887 hardcode_shlibpath_var=no
12888 hardcode_runpath_var=yes
12889 runpath_var=LD_RUN_PATH
12892 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12893 no_undefined_flag='${wl}-z ${wl}text'
12894 if test "$GCC" = yes; then
12895 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12897 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12899 runpath_var='LD_RUN_PATH'
12900 hardcode_shlibpath_var=no
12904 no_undefined_flag=' -z text'
12905 # $CC -shared without GNU ld will not create a library from C++
12906 # object files and a static libstdc++, better avoid it by now
12907 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12908 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12909 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12910 hardcode_libdir_flag_spec=
12911 hardcode_shlibpath_var=no
12912 runpath_var='LD_RUN_PATH'
12916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12917 hardcode_libdir_flag_spec='-L$libdir'
12918 hardcode_shlibpath_var=no
12927 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12928 echo "${ECHO_T}$ld_shlibs" >&6
12929 test "$ld_shlibs" = no && can_build_shared=no
12931 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12932 if test "$GCC" = yes; then
12933 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12937 # Do we need to explicitly link libc?
12939 case "x$archive_cmds_need_lc" in
12941 # Assume -lc should be added
12942 archive_cmds_need_lc=yes
12944 if test "$enable_shared" = yes && test "$GCC" = yes; then
12945 case $archive_cmds in
12947 # FIXME: we may have to deal with multi-command sequences.
12950 # Test whether the compiler implicitly links with -lc since on some
12951 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12952 # to ld, don't add -lc before -lgcc.
12953 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12954 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12956 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12959 (eval $ac_compile) 2>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } 2>conftest.err; then
12965 libobjs=conftest.$ac_objext
12967 wl=$lt_prog_compiler_wl
12973 lt_save_allow_undefined_flag=$allow_undefined_flag
12974 allow_undefined_flag=
12975 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12976 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }
12981 archive_cmds_need_lc=no
12983 archive_cmds_need_lc=yes
12985 allow_undefined_flag=$lt_save_allow_undefined_flag
12987 cat conftest.err 1>&5
12990 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12991 echo "${ECHO_T}$archive_cmds_need_lc" >&6
12998 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12999 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13000 library_names_spec=
13001 libname_spec='lib$name'
13005 postuninstall_cmds=
13009 shlibpath_overrides_runpath=unknown
13011 dynamic_linker="$host_os ld.so"
13012 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13013 if test "$GCC" = yes; then
13014 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13015 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13016 # if the path contains ";" then we assume it to be the separator
13017 # otherwise default to the standard path separator (i.e. ":") - it is
13018 # assumed that no part of a normal pathname contains ";" but that should
13019 # okay in the real world where ";" in dirpaths is itself problematic.
13020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13025 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13027 need_lib_prefix=unknown
13028 hardcode_into_libs=no
13030 # when you set need_version to no, make sure it does not cause -set_version
13031 # flags to be left without arguments
13032 need_version=unknown
13037 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13038 shlibpath_var=LIBPATH
13040 # AIX 3 has no versioning support, so we append a major version to the name.
13041 soname_spec='${libname}${release}${shared_ext}$major'
13048 hardcode_into_libs=yes
13049 if test "$host_cpu" = ia64; then
13050 # AIX 5 supports IA64
13051 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13052 shlibpath_var=LD_LIBRARY_PATH
13054 # With GCC up to 2.95.x, collect2 would create an import file
13055 # for dependence libraries. The import file would start with
13056 # the line `#! .'. This would cause the generated library to
13057 # depend on `.', always an invalid library. This was fixed in
13058 # development snapshots of GCC prior to 3.0.
13060 aix4 | aix4.[01] | aix4.[01].*)
13061 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13063 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13066 can_build_shared=no
13070 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13071 # soname into executable. Probably we can add versioning support to
13072 # collect2, so additional links can be useful in future.
13073 if test "$aix_use_runtimelinking" = yes; then
13074 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13075 # instead of lib<name>.a to let people know that these are not
13076 # typical AIX shared libraries.
13077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13079 # We preserve .a as extension for shared libraries through AIX4.2
13080 # and later when we are not doing run time linking.
13081 library_names_spec='${libname}${release}.a $libname.a'
13082 soname_spec='${libname}${release}${shared_ext}$major'
13084 shlibpath_var=LIBPATH
13089 library_names_spec='$libname.ixlibrary $libname.a'
13090 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13091 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'
13095 library_names_spec='${libname}${shared_ext}'
13096 dynamic_linker="$host_os ld.so"
13097 shlibpath_var=LIBRARY_PATH
13103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13104 soname_spec='${libname}${release}${shared_ext}$major'
13105 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13106 shlibpath_var=LD_LIBRARY_PATH
13107 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13108 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13109 # the default ld.so.conf also contains /usr/contrib/lib and
13110 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13111 # libtool to hard-code these into programs
13114 cygwin* | mingw* | pw32*)
13115 version_type=windows
13120 case $GCC,$host_os in
13121 yes,cygwin* | yes,mingw* | yes,pw32*)
13122 library_names_spec='$libname.dll.a'
13123 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13124 postinstall_cmds='base_file=`basename \${file}`~
13125 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13126 dldir=$destdir/`dirname \$dlpath`~
13127 test -d \$dldir || mkdir -p \$dldir~
13128 $install_prog $dir/$dlname \$dldir/$dlname'
13129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13130 dlpath=$dir/\$dldll~
13132 shlibpath_overrides_runpath=yes
13136 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13137 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13138 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13141 # MinGW DLLs use traditional 'lib' prefix
13142 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13143 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13144 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13145 # It is most probably a Windows format PATH printed by
13146 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13147 # path with ; separators, and with drive letters. We can handle the
13148 # drive letters (cygwin fileutils understands them), so leave them,
13149 # especially as we might pass files found there to a mingw objdump,
13150 # which wouldn't understand a cygwinified path. Ahh.
13151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13153 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13157 # pw32 DLLs use 'pw' prefix rather than 'lib'
13158 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13164 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13167 dynamic_linker='Win32 ld.exe'
13168 # FIXME: first we should search . and the directory the executable is in
13172 darwin* | rhapsody*)
13173 dynamic_linker="$host_os dyld"
13174 version_type=darwin
13177 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13178 soname_spec='${libname}${release}${major}$shared_ext'
13179 shlibpath_overrides_runpath=yes
13180 shlibpath_var=DYLD_LIBRARY_PATH
13181 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13182 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13183 if test "$GCC" = yes; then
13184 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"`
13186 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13188 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13196 soname_spec='${libname}${release}${shared_ext}$major'
13197 shlibpath_var=LD_LIBRARY_PATH
13208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13209 soname_spec='${libname}${release}${shared_ext}$major'
13210 shlibpath_var=LD_LIBRARY_PATH
13211 shlibpath_overrides_runpath=no
13212 hardcode_into_libs=yes
13213 dynamic_linker='GNU ld.so'
13217 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13218 version_type=freebsd-$objformat
13219 case $version_type in
13221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13230 shlibpath_var=LD_LIBRARY_PATH
13233 shlibpath_overrides_runpath=yes
13235 freebsd3.01* | freebsdelf3.01*)
13236 shlibpath_overrides_runpath=yes
13237 hardcode_into_libs=yes
13240 shlibpath_overrides_runpath=no
13241 hardcode_into_libs=yes
13250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13251 soname_spec='${libname}${release}${shared_ext}$major'
13252 shlibpath_var=LD_LIBRARY_PATH
13253 hardcode_into_libs=yes
13256 hpux9* | hpux10* | hpux11*)
13257 # Give a soname corresponding to the major version so that dld.sl refuses to
13258 # link against other versions.
13262 case "$host_cpu" in
13265 hardcode_into_libs=yes
13266 dynamic_linker="$host_os dld.so"
13267 shlibpath_var=LD_LIBRARY_PATH
13268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13270 soname_spec='${libname}${release}${shared_ext}$major'
13271 if test "X$HPUX_IA64_MODE" = X32; then
13272 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13274 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13280 hardcode_into_libs=yes
13281 dynamic_linker="$host_os dld.sl"
13282 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13285 soname_spec='${libname}${release}${shared_ext}$major'
13286 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13291 dynamic_linker="$host_os dld.sl"
13292 shlibpath_var=SHLIB_PATH
13293 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13295 soname_spec='${libname}${release}${shared_ext}$major'
13298 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13299 postinstall_cmds='chmod 555 $lib'
13302 irix5* | irix6* | nonstopux*)
13304 nonstopux*) version_type=nonstopux ;;
13306 if test "$lt_cv_prog_gnu_ld" = yes; then
13314 soname_spec='${libname}${release}${shared_ext}$major'
13315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13317 irix5* | nonstopux*)
13318 libsuff= shlibsuff=
13321 case $LD in # libtool.m4 will add one of these switches to LD
13322 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13323 libsuff= shlibsuff= libmagic=32-bit;;
13324 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13325 libsuff=32 shlibsuff=N32 libmagic=N32;;
13326 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13327 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13328 *) libsuff= shlibsuff= libmagic=never-match;;
13332 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13333 shlibpath_overrides_runpath=no
13334 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13335 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13336 hardcode_into_libs=yes
13339 # No shared lib support for Linux oldld, aout, or coff.
13340 linux*oldld* | linux*aout* | linux*coff*)
13344 # This must be Linux ELF.
13349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13350 soname_spec='${libname}${release}${shared_ext}$major'
13351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13352 shlibpath_var=LD_LIBRARY_PATH
13353 shlibpath_overrides_runpath=no
13354 # This implies no fast_install, which is unacceptable.
13355 # Some rework will be needed to allow for fast_install
13356 # before this can be enabled.
13357 hardcode_into_libs=yes
13359 # Append ld.so.conf contents to the search path
13360 if test -f /etc/ld.so.conf; then
13361 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13362 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13365 # We used to test for /lib/ld.so.1 and disable shared libraries on
13366 # powerpc, because MkLinux only supported shared libraries with the
13367 # GNU dynamic linker. Since this was broken with cross compilers,
13368 # most powerpc-linux boxes support dynamic linking these days and
13369 # people can always --disable-shared, the test was removed, and we
13370 # assume the GNU/Linux dynamic linker is in use.
13371 dynamic_linker='GNU/Linux ld.so'
13378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13379 soname_spec='${libname}${release}${shared_ext}$major'
13380 shlibpath_var=LD_LIBRARY_PATH
13381 shlibpath_overrides_runpath=no
13382 hardcode_into_libs=yes
13383 dynamic_linker='GNU ld.so'
13390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13393 dynamic_linker='NetBSD (a.out) ld.so'
13395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13396 soname_spec='${libname}${release}${shared_ext}$major'
13397 dynamic_linker='NetBSD ld.elf_so'
13399 shlibpath_var=LD_LIBRARY_PATH
13400 shlibpath_overrides_runpath=yes
13401 hardcode_into_libs=yes
13406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13407 shlibpath_var=LD_LIBRARY_PATH
13408 shlibpath_overrides_runpath=yes
13415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416 soname_spec='${libname}${release}${shared_ext}$major'
13417 shlibpath_var=LD_LIBRARY_PATH
13418 shlibpath_overrides_runpath=yes
13425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13427 shlibpath_var=LD_LIBRARY_PATH
13428 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13430 openbsd2.[89] | openbsd2.[89].*)
13431 shlibpath_overrides_runpath=no
13434 shlibpath_overrides_runpath=yes
13438 shlibpath_overrides_runpath=yes
13443 libname_spec='$name'
13446 library_names_spec='$libname${shared_ext} $libname.a'
13447 dynamic_linker='OS/2 ld.exe'
13448 shlibpath_var=LIBPATH
13451 osf3* | osf4* | osf5*)
13455 soname_spec='${libname}${release}${shared_ext}$major'
13456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13457 shlibpath_var=LD_LIBRARY_PATH
13458 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13459 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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
13473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13474 soname_spec='${libname}${release}${shared_ext}$major'
13475 shlibpath_var=LD_LIBRARY_PATH
13476 shlibpath_overrides_runpath=yes
13477 hardcode_into_libs=yes
13478 # ldd complains unless libraries are executable
13479 postinstall_cmds='chmod +x $lib'
13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13485 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13486 shlibpath_var=LD_LIBRARY_PATH
13487 shlibpath_overrides_runpath=yes
13488 if test "$with_gnu_ld" = yes; then
13494 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13497 soname_spec='${libname}${release}${shared_ext}$major'
13498 shlibpath_var=LD_LIBRARY_PATH
13499 case $host_vendor in
13501 shlibpath_overrides_runpath=no
13503 export_dynamic_flag_spec='${wl}-Blargedynsym'
13504 runpath_var=LD_RUN_PATH
13512 shlibpath_overrides_runpath=no
13513 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13519 if test -d /usr/nec ;then
13521 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13522 soname_spec='$libname${shared_ext}.$major'
13523 shlibpath_var=LD_LIBRARY_PATH
13529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13530 soname_spec='${libname}${release}${shared_ext}$major'
13531 shlibpath_var=LD_LIBRARY_PATH
13538 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13539 echo "${ECHO_T}$dynamic_linker" >&6
13540 test "$dynamic_linker" = no && can_build_shared=no
13542 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13545 if test -n "$hardcode_libdir_flag_spec" || \
13546 test -n "$runpath_var" || \
13547 test "X$hardcode_automatic" = "Xyes" ; then
13549 # We can hardcode non-existant directories.
13550 if test "$hardcode_direct" != no &&
13551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13552 # have to relink, otherwise we might link with an installed library
13553 # when we should be linking with a yet-to-be-installed one
13554 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13555 test "$hardcode_minus_L" != no; then
13556 # Linking always hardcodes the temporary library directory.
13557 hardcode_action=relink
13559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13560 hardcode_action=immediate
13563 # We cannot hardcode anything, or else we can only hardcode existing
13565 hardcode_action=unsupported
13567 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13568 echo "${ECHO_T}$hardcode_action" >&6
13570 if test "$hardcode_action" = relink; then
13571 # Fast installation is not supported
13572 enable_fast_install=no
13573 elif test "$shlibpath_overrides_runpath" = yes ||
13574 test "$enable_shared" = no; then
13575 # Fast installation is not necessary
13576 enable_fast_install=needless
13581 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13582 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13583 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13584 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13585 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13586 echo "$as_me:$LINENO: result: yes" >&5
13587 echo "${ECHO_T}yes" >&6
13589 # FIXME - insert some real tests, host_os isn't really good enough
13592 if test -n "$STRIP" ; then
13593 striplib="$STRIP -x"
13594 echo "$as_me:$LINENO: result: yes" >&5
13595 echo "${ECHO_T}yes" >&6
13597 echo "$as_me:$LINENO: result: no" >&5
13598 echo "${ECHO_T}no" >&6
13602 echo "$as_me:$LINENO: result: no" >&5
13603 echo "${ECHO_T}no" >&6
13608 if test "x$enable_dlopen" != xyes; then
13609 enable_dlopen=unknown
13610 enable_dlopen_self=unknown
13611 enable_dlopen_self_static=unknown
13618 lt_cv_dlopen="load_add_on"
13620 lt_cv_dlopen_self=yes
13624 lt_cv_dlopen="LoadLibrary"
13629 lt_cv_dlopen="dlopen"
13634 # if libdl is installed we need to link against it
13635 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13636 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13637 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 ac_check_lib_save_LIBS=$LIBS
13642 cat >conftest.$ac_ext <<_ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13649 /* Override any gcc2 internal prototype to avoid an error. */
13653 /* We use char because int might match the return type of a gcc2
13654 builtin and then its argument prototype would still apply. */
13664 rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666 (eval $ac_link) 2>conftest.er1
13668 grep -v '^ *+' conftest.er1 >conftest.err
13670 cat conftest.err >&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } &&
13673 { ac_try='test -z "$ac_c_werror_flag"
13674 || test ! -s conftest.err'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; } &&
13680 { ac_try='test -s conftest$ac_exeext'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }; then
13686 ac_cv_lib_dl_dlopen=yes
13688 echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13691 ac_cv_lib_dl_dlopen=no
13693 rm -f conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
13695 LIBS=$ac_check_lib_save_LIBS
13697 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13698 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13699 if test $ac_cv_lib_dl_dlopen = yes; then
13700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13703 lt_cv_dlopen="dyld"
13705 lt_cv_dlopen_self=yes
13712 echo "$as_me:$LINENO: checking for shl_load" >&5
13713 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13714 if test "${ac_cv_func_shl_load+set}" = set; then
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
13717 cat >conftest.$ac_ext <<_ACEOF
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h. */
13723 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13725 #define shl_load innocuous_shl_load
13727 /* System header to define __stub macros and hopefully few prototypes,
13728 which can conflict with char shl_load (); below.
13729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13730 <limits.h> exists even on freestanding compilers. */
13733 # include <limits.h>
13735 # include <assert.h>
13740 /* Override any gcc2 internal prototype to avoid an error. */
13745 /* We use char because int might match the return type of a gcc2
13746 builtin and then its argument prototype would still apply. */
13748 /* The GNU C library defines this for functions which it implements
13749 to always fail with ENOSYS. Some functions are actually named
13750 something starting with __ and the normal name is an alias. */
13751 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13754 char (*f) () = shl_load;
13763 return f != shl_load;
13768 rm -f conftest.$ac_objext conftest$ac_exeext
13769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13770 (eval $ac_link) 2>conftest.er1
13772 grep -v '^ *+' conftest.er1 >conftest.err
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
13777 { ac_try='test -z "$ac_c_werror_flag"
13778 || test ! -s conftest.err'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; } &&
13784 { ac_try='test -s conftest$ac_exeext'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }; then
13790 ac_cv_func_shl_load=yes
13792 echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13795 ac_cv_func_shl_load=no
13797 rm -f conftest.err conftest.$ac_objext \
13798 conftest$ac_exeext conftest.$ac_ext
13800 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13801 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13802 if test $ac_cv_func_shl_load = yes; then
13803 lt_cv_dlopen="shl_load"
13805 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13806 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13807 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 ac_check_lib_save_LIBS=$LIBS
13812 cat >conftest.$ac_ext <<_ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13819 /* Override any gcc2 internal prototype to avoid an error. */
13823 /* We use char because int might match the return type of a gcc2
13824 builtin and then its argument prototype would still apply. */
13834 rm -f conftest.$ac_objext conftest$ac_exeext
13835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13836 (eval $ac_link) 2>conftest.er1
13838 grep -v '^ *+' conftest.er1 >conftest.err
13840 cat conftest.err >&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } &&
13843 { ac_try='test -z "$ac_c_werror_flag"
13844 || test ! -s conftest.err'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; } &&
13850 { ac_try='test -s conftest$ac_exeext'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
13856 ac_cv_lib_dld_shl_load=yes
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13861 ac_cv_lib_dld_shl_load=no
13863 rm -f conftest.err conftest.$ac_objext \
13864 conftest$ac_exeext conftest.$ac_ext
13865 LIBS=$ac_check_lib_save_LIBS
13867 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13868 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13869 if test $ac_cv_lib_dld_shl_load = yes; then
13870 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13872 echo "$as_me:$LINENO: checking for dlopen" >&5
13873 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13874 if test "${ac_cv_func_dlopen+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13877 cat >conftest.$ac_ext <<_ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13883 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13885 #define dlopen innocuous_dlopen
13887 /* System header to define __stub macros and hopefully few prototypes,
13888 which can conflict with char dlopen (); below.
13889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13890 <limits.h> exists even on freestanding compilers. */
13893 # include <limits.h>
13895 # include <assert.h>
13900 /* Override any gcc2 internal prototype to avoid an error. */
13905 /* We use char because int might match the return type of a gcc2
13906 builtin and then its argument prototype would still apply. */
13908 /* The GNU C library defines this for functions which it implements
13909 to always fail with ENOSYS. Some functions are actually named
13910 something starting with __ and the normal name is an alias. */
13911 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13914 char (*f) () = dlopen;
13923 return f != dlopen;
13928 rm -f conftest.$ac_objext conftest$ac_exeext
13929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13930 (eval $ac_link) 2>conftest.er1
13932 grep -v '^ *+' conftest.er1 >conftest.err
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } &&
13937 { ac_try='test -z "$ac_c_werror_flag"
13938 || test ! -s conftest.err'
13939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13940 (eval $ac_try) 2>&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }; } &&
13944 { ac_try='test -s conftest$ac_exeext'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; }; then
13950 ac_cv_func_dlopen=yes
13952 echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13955 ac_cv_func_dlopen=no
13957 rm -f conftest.err conftest.$ac_objext \
13958 conftest$ac_exeext conftest.$ac_ext
13960 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13961 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13962 if test $ac_cv_func_dlopen = yes; then
13963 lt_cv_dlopen="dlopen"
13965 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13966 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
13970 ac_check_lib_save_LIBS=$LIBS
13972 cat >conftest.$ac_ext <<_ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h. */
13979 /* Override any gcc2 internal prototype to avoid an error. */
13983 /* We use char because int might match the return type of a gcc2
13984 builtin and then its argument prototype would still apply. */
13994 rm -f conftest.$ac_objext conftest$ac_exeext
13995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13996 (eval $ac_link) 2>conftest.er1
13998 grep -v '^ *+' conftest.er1 >conftest.err
14000 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
14003 { ac_try='test -z "$ac_c_werror_flag"
14004 || test ! -s conftest.err'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; } &&
14010 { ac_try='test -s conftest$ac_exeext'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14016 ac_cv_lib_dl_dlopen=yes
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14021 ac_cv_lib_dl_dlopen=no
14023 rm -f conftest.err conftest.$ac_objext \
14024 conftest$ac_exeext conftest.$ac_ext
14025 LIBS=$ac_check_lib_save_LIBS
14027 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14028 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14029 if test $ac_cv_lib_dl_dlopen = yes; then
14030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14032 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14033 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14034 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14037 ac_check_lib_save_LIBS=$LIBS
14038 LIBS="-lsvld $LIBS"
14039 cat >conftest.$ac_ext <<_ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14046 /* Override any gcc2 internal prototype to avoid an error. */
14050 /* We use char because int might match the return type of a gcc2
14051 builtin and then its argument prototype would still apply. */
14061 rm -f conftest.$ac_objext conftest$ac_exeext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14063 (eval $ac_link) 2>conftest.er1
14065 grep -v '^ *+' conftest.er1 >conftest.err
14067 cat conftest.err >&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } &&
14070 { ac_try='test -z "$ac_c_werror_flag"
14071 || test ! -s conftest.err'
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; } &&
14077 { ac_try='test -s conftest$ac_exeext'
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
14083 ac_cv_lib_svld_dlopen=yes
14085 echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14088 ac_cv_lib_svld_dlopen=no
14090 rm -f conftest.err conftest.$ac_objext \
14091 conftest$ac_exeext conftest.$ac_ext
14092 LIBS=$ac_check_lib_save_LIBS
14094 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14095 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14096 if test $ac_cv_lib_svld_dlopen = yes; then
14097 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14099 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14100 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14101 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 ac_check_lib_save_LIBS=$LIBS
14106 cat >conftest.$ac_ext <<_ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h. */
14113 /* Override any gcc2 internal prototype to avoid an error. */
14117 /* We use char because int might match the return type of a gcc2
14118 builtin and then its argument prototype would still apply. */
14128 rm -f conftest.$ac_objext conftest$ac_exeext
14129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14130 (eval $ac_link) 2>conftest.er1
14132 grep -v '^ *+' conftest.er1 >conftest.err
14134 cat conftest.err >&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } &&
14137 { ac_try='test -z "$ac_c_werror_flag"
14138 || test ! -s conftest.err'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; } &&
14144 { ac_try='test -s conftest$ac_exeext'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150 ac_cv_lib_dld_dld_link=yes
14152 echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14155 ac_cv_lib_dld_dld_link=no
14157 rm -f conftest.err conftest.$ac_objext \
14158 conftest$ac_exeext conftest.$ac_ext
14159 LIBS=$ac_check_lib_save_LIBS
14161 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14162 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14163 if test $ac_cv_lib_dld_dld_link = yes; then
14164 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14185 if test "x$lt_cv_dlopen" != xno; then
14191 case $lt_cv_dlopen in
14193 save_CPPFLAGS="$CPPFLAGS"
14194 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14196 save_LDFLAGS="$LDFLAGS"
14197 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14200 LIBS="$lt_cv_dlopen_libs $LIBS"
14202 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14203 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14204 if test "${lt_cv_dlopen_self+set}" = set; then
14205 echo $ECHO_N "(cached) $ECHO_C" >&6
14207 if test "$cross_compiling" = yes; then :
14208 lt_cv_dlopen_self=cross
14210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14211 lt_status=$lt_dlunknown
14212 cat > conftest.$ac_ext <<EOF
14213 #line 14213 "configure"
14214 #include "confdefs.h"
14223 # define LT_DLGLOBAL RTLD_GLOBAL
14226 # define LT_DLGLOBAL DL_GLOBAL
14228 # define LT_DLGLOBAL 0
14232 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14233 find out it does not work in some platform. */
14234 #ifndef LT_DLLAZY_OR_NOW
14236 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14239 # define LT_DLLAZY_OR_NOW DL_LAZY
14242 # define LT_DLLAZY_OR_NOW RTLD_NOW
14245 # define LT_DLLAZY_OR_NOW DL_NOW
14247 # define LT_DLLAZY_OR_NOW 0
14255 extern "C" void exit (int);
14258 void fnord() { int i=42;}
14261 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14262 int status = $lt_dlunknown;
14266 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14267 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14268 /* dlclose (self); */
14274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14275 (eval $ac_link) 2>&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14279 (./conftest; exit; ) 2>/dev/null
14281 case x$lt_status in
14282 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14283 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14284 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14287 # compilation failed
14288 lt_cv_dlopen_self=no
14295 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14296 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14298 if test "x$lt_cv_dlopen_self" = xyes; then
14299 LDFLAGS="$LDFLAGS $link_static_flag"
14300 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14301 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14302 if test "${lt_cv_dlopen_self_static+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14305 if test "$cross_compiling" = yes; then :
14306 lt_cv_dlopen_self_static=cross
14308 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14309 lt_status=$lt_dlunknown
14310 cat > conftest.$ac_ext <<EOF
14311 #line 14311 "configure"
14312 #include "confdefs.h"
14321 # define LT_DLGLOBAL RTLD_GLOBAL
14324 # define LT_DLGLOBAL DL_GLOBAL
14326 # define LT_DLGLOBAL 0
14330 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14331 find out it does not work in some platform. */
14332 #ifndef LT_DLLAZY_OR_NOW
14334 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14337 # define LT_DLLAZY_OR_NOW DL_LAZY
14340 # define LT_DLLAZY_OR_NOW RTLD_NOW
14343 # define LT_DLLAZY_OR_NOW DL_NOW
14345 # define LT_DLLAZY_OR_NOW 0
14353 extern "C" void exit (int);
14356 void fnord() { int i=42;}
14359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14360 int status = $lt_dlunknown;
14364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14365 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14366 /* dlclose (self); */
14372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14373 (eval $ac_link) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14377 (./conftest; exit; ) 2>/dev/null
14379 case x$lt_status in
14380 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14381 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14382 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14385 # compilation failed
14386 lt_cv_dlopen_self_static=no
14393 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14394 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14397 CPPFLAGS="$save_CPPFLAGS"
14398 LDFLAGS="$save_LDFLAGS"
14403 case $lt_cv_dlopen_self in
14404 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14405 *) enable_dlopen_self=unknown ;;
14408 case $lt_cv_dlopen_self_static in
14409 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14410 *) enable_dlopen_self_static=unknown ;;
14415 # Report which librarie types wil actually be built
14416 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14417 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14418 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14419 echo "${ECHO_T}$can_build_shared" >&6
14421 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14422 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14423 test "$can_build_shared" = "no" && enable_shared=no
14425 # On AIX, shared libraries and static libraries use the same namespace, and
14426 # are all built from PIC.
14429 test "$enable_shared" = yes && enable_static=no
14430 if test -n "$RANLIB"; then
14431 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14432 postinstall_cmds='$RANLIB $lib'
14437 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14438 test "$enable_shared" = yes && enable_static=no
14442 echo "$as_me:$LINENO: result: $enable_shared" >&5
14443 echo "${ECHO_T}$enable_shared" >&6
14445 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14446 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14447 # Make sure either enable_shared or enable_static is yes.
14448 test "$enable_shared" = yes || enable_static=yes
14449 echo "$as_me:$LINENO: result: $enable_static" >&5
14450 echo "${ECHO_T}$enable_static" >&6
14452 # The else clause should only fire when bootstrapping the
14453 # libtool distribution, otherwise you forgot to ship ltmain.sh
14454 # with your package, and you will get complaints that there are
14455 # no rules to generate ltmain.sh.
14456 if test -f "$ltmain"; then
14457 # See if we are running on zsh, and set the options which allow our commands through
14458 # without removal of \ escapes.
14459 if test -n "${ZSH_VERSION+set}" ; then
14460 setopt NO_GLOB_SUBST
14462 # Now quote all the things that may contain metacharacters while being
14463 # careful not to overquote the AC_SUBSTed values. We take copies of the
14464 # variables and quote the copies for generation of the libtool script.
14465 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14467 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14468 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14469 deplibs_check_method reload_flag reload_cmds need_locks \
14470 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14471 lt_cv_sys_global_symbol_to_c_name_address \
14472 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14473 old_postinstall_cmds old_postuninstall_cmds \
14477 lt_prog_compiler_wl \
14478 lt_prog_compiler_pic \
14479 lt_prog_compiler_static \
14480 lt_prog_compiler_no_builtin_flag \
14481 export_dynamic_flag_spec \
14482 thread_safe_flag_spec \
14483 whole_archive_flag_spec \
14484 enable_shared_with_static_runtimes \
14486 old_archive_from_new_cmds \
14491 compiler_lib_search_path \
14493 archive_expsym_cmds \
14495 postuninstall_cmds \
14496 old_archive_from_expsyms_cmds \
14497 allow_undefined_flag \
14498 no_undefined_flag \
14499 export_symbols_cmds \
14500 hardcode_libdir_flag_spec \
14501 hardcode_libdir_flag_spec_ld \
14502 hardcode_libdir_separator \
14503 hardcode_automatic \
14505 module_expsym_cmds \
14506 lt_cv_prog_compiler_c_o \
14508 include_expsyms; do
14511 old_archive_cmds | \
14512 old_archive_from_new_cmds | \
14514 archive_expsym_cmds | \
14516 module_expsym_cmds | \
14517 old_archive_from_expsyms_cmds | \
14518 export_symbols_cmds | \
14519 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14520 postinstall_cmds | postuninstall_cmds | \
14521 old_postinstall_cmds | old_postuninstall_cmds | \
14522 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14523 # Double-quote double-evaled strings.
14524 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14527 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14533 *'\$0 --fallback-echo"')
14534 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14538 cfgfile="${ofile}T"
14539 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14541 { echo "$as_me:$LINENO: creating $ofile" >&5
14542 echo "$as_me: creating $ofile" >&6;}
14544 cat <<__EOF__ >> "$cfgfile"
14547 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14548 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14549 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14551 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14552 # Free Software Foundation, Inc.
14554 # This file is part of GNU Libtool:
14555 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14557 # This program is free software; you can redistribute it and/or modify
14558 # it under the terms of the GNU General Public License as published by
14559 # the Free Software Foundation; either version 2 of the License, or
14560 # (at your option) any later version.
14562 # This program is distributed in the hope that it will be useful, but
14563 # WITHOUT ANY WARRANTY; without even the implied warranty of
14564 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14565 # General Public License for more details.
14567 # You should have received a copy of the GNU General Public License
14568 # along with this program; if not, write to the Free Software
14569 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14571 # As a special exception to the GNU General Public License, if you
14572 # distribute this file as part of a program that contains a
14573 # configuration script generated by Autoconf, you may include it under
14574 # the same distribution terms that you use for the rest of that program.
14576 # A sed program that does not truncate output.
14579 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14580 Xsed="$SED -e s/^X//"
14582 # The HP-UX ksh and POSIX shell print the target directory to stdout
14583 # if CDPATH is set.
14584 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14586 # The names of the tagged configurations supported by this script.
14589 # ### BEGIN LIBTOOL CONFIG
14591 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14593 # Shell to use when invoking shell scripts.
14596 # Whether or not to build shared libraries.
14597 build_libtool_libs=$enable_shared
14599 # Whether or not to build static libraries.
14600 build_old_libs=$enable_static
14602 # Whether or not to add -lc for building shared libraries.
14603 build_libtool_need_lc=$archive_cmds_need_lc
14605 # Whether or not to disallow shared libs when runtime libs are static
14606 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14608 # Whether or not to optimize for fast installation.
14609 fast_install=$enable_fast_install
14612 host_alias=$host_alias
14615 # An echo program that does not interpret backslashes.
14620 AR_FLAGS=$lt_AR_FLAGS
14625 # A language-specific compiler.
14628 # Is the compiler the GNU C compiler?
14634 # The linker used to build libraries.
14637 # Whether we need hard or soft links.
14640 # A BSD-compatible nm program.
14643 # A symbol stripping program
14646 # Used to examine libraries when file_magic_cmd begins "file"
14647 MAGIC_CMD=$MAGIC_CMD
14649 # Used on cygwin: DLL creation program.
14652 # Used on cygwin: object dumper.
14655 # Used on cygwin: assembler.
14658 # The name of the directory that contains temporary libtool files.
14661 # How to create reloadable object files.
14662 reload_flag=$lt_reload_flag
14663 reload_cmds=$lt_reload_cmds
14665 # How to pass a linker flag through the compiler.
14666 wl=$lt_lt_prog_compiler_wl
14668 # Object file suffix (normally "o").
14669 objext="$ac_objext"
14671 # Old archive suffix (normally "a").
14674 # Shared library suffix (normally ".so").
14675 shrext_cmds='$shrext_cmds'
14677 # Executable file suffix (normally "").
14680 # Additional compiler flags for building library objects.
14681 pic_flag=$lt_lt_prog_compiler_pic
14684 # What is the maximum length of a command?
14685 max_cmd_len=$lt_cv_sys_max_cmd_len
14687 # Does compiler simultaneously support -c and -o options?
14688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14690 # Must we lock files when doing compilation ?
14691 need_locks=$lt_need_locks
14693 # Do we need the lib prefix for modules?
14694 need_lib_prefix=$need_lib_prefix
14696 # Do we need a version for libraries?
14697 need_version=$need_version
14699 # Whether dlopen is supported.
14700 dlopen_support=$enable_dlopen
14702 # Whether dlopen of programs is supported.
14703 dlopen_self=$enable_dlopen_self
14705 # Whether dlopen of statically linked programs is supported.
14706 dlopen_self_static=$enable_dlopen_self_static
14708 # Compiler flag to prevent dynamic linking.
14709 link_static_flag=$lt_lt_prog_compiler_static
14711 # Compiler flag to turn off builtin functions.
14712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14714 # Compiler flag to allow reflexive dlopens.
14715 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14717 # Compiler flag to generate shared objects directly from archives.
14718 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14720 # Compiler flag to generate thread-safe objects.
14721 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14723 # Library versioning type.
14724 version_type=$version_type
14726 # Format of library name prefix.
14727 libname_spec=$lt_libname_spec
14729 # List of archive names. First name is the real one, the rest are links.
14730 # The last name is the one that the linker finds with -lNAME.
14731 library_names_spec=$lt_library_names_spec
14733 # The coded name of the library, if different from the real name.
14734 soname_spec=$lt_soname_spec
14736 # Commands used to build and install an old-style archive.
14738 old_archive_cmds=$lt_old_archive_cmds
14739 old_postinstall_cmds=$lt_old_postinstall_cmds
14740 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14742 # Create an old-style archive from a shared archive.
14743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14745 # Create a temporary old-style archive to link instead of a shared archive.
14746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14748 # Commands used to build and install a shared archive.
14749 archive_cmds=$lt_archive_cmds
14750 archive_expsym_cmds=$lt_archive_expsym_cmds
14751 postinstall_cmds=$lt_postinstall_cmds
14752 postuninstall_cmds=$lt_postuninstall_cmds
14754 # Commands used to build a loadable module (assumed same as above if empty)
14755 module_cmds=$lt_module_cmds
14756 module_expsym_cmds=$lt_module_expsym_cmds
14758 # Commands to strip libraries.
14759 old_striplib=$lt_old_striplib
14760 striplib=$lt_striplib
14762 # Dependencies to place before the objects being linked to create a
14764 predep_objects=$lt_predep_objects
14766 # Dependencies to place after the objects being linked to create a
14768 postdep_objects=$lt_postdep_objects
14770 # Dependencies to place before the objects being linked to create a
14772 predeps=$lt_predeps
14774 # Dependencies to place after the objects being linked to create a
14776 postdeps=$lt_postdeps
14778 # The library search path used internally by the compiler when linking
14779 # a shared library.
14780 compiler_lib_search_path=$lt_compiler_lib_search_path
14782 # Method to check whether dependent libraries are shared objects.
14783 deplibs_check_method=$lt_deplibs_check_method
14785 # Command to use when deplibs_check_method == file_magic.
14786 file_magic_cmd=$lt_file_magic_cmd
14788 # Flag that allows shared libraries with undefined symbols to be built.
14789 allow_undefined_flag=$lt_allow_undefined_flag
14791 # Flag that forces no undefined symbols.
14792 no_undefined_flag=$lt_no_undefined_flag
14794 # Commands used to finish a libtool library installation in a directory.
14795 finish_cmds=$lt_finish_cmds
14797 # Same as above, but a single script fragment to be evaled but not shown.
14798 finish_eval=$lt_finish_eval
14800 # Take the output of nm and produce a listing of raw symbols and C names.
14801 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14803 # Transform the output of nm in a proper C declaration
14804 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14806 # Transform the output of nm in a C name address pair
14807 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14809 # This is the shared library runtime path variable.
14810 runpath_var=$runpath_var
14812 # This is the shared library path variable.
14813 shlibpath_var=$shlibpath_var
14815 # Is shlibpath searched before the hard-coded library search path?
14816 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14818 # How to hardcode a shared library path into an executable.
14819 hardcode_action=$hardcode_action
14821 # Whether we should hardcode library paths into libraries.
14822 hardcode_into_libs=$hardcode_into_libs
14824 # Flag to hardcode \$libdir into a binary during linking.
14825 # This must work even if \$libdir does not exist.
14826 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14828 # If ld is used when linking, flag to hardcode \$libdir into
14829 # a binary during linking. This must work even if \$libdir does
14831 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14833 # Whether we need a single -rpath flag with a separated argument.
14834 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14836 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14837 # resulting binary.
14838 hardcode_direct=$hardcode_direct
14840 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14841 # resulting binary.
14842 hardcode_minus_L=$hardcode_minus_L
14844 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14845 # the resulting binary.
14846 hardcode_shlibpath_var=$hardcode_shlibpath_var
14848 # Set to yes if building a shared library automatically hardcodes DIR into the library
14849 # and all subsequent libraries and executables linked against it.
14850 hardcode_automatic=$hardcode_automatic
14852 # Variables whose values should be saved in libtool wrapper scripts and
14853 # restored at relink time.
14854 variables_saved_for_relink="$variables_saved_for_relink"
14856 # Whether libtool must link a program against all its dependency libraries.
14857 link_all_deplibs=$link_all_deplibs
14859 # Compile-time system search path for libraries
14860 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14862 # Run-time system search path for libraries
14863 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14865 # Fix the shell variable \$srcfile for the compiler.
14866 fix_srcfile_path="$fix_srcfile_path"
14868 # Set to yes if exported symbols are required.
14869 always_export_symbols=$always_export_symbols
14871 # The commands to list exported symbols.
14872 export_symbols_cmds=$lt_export_symbols_cmds
14874 # The commands to extract the exported symbol list from a shared archive.
14875 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14877 # Symbols that should not be listed in the preloaded symbols.
14878 exclude_expsyms=$lt_exclude_expsyms
14880 # Symbols that must always be exported.
14881 include_expsyms=$lt_include_expsyms
14883 # ### END LIBTOOL CONFIG
14890 cat <<\EOF >> "$cfgfile"
14892 # AIX sometimes has problems with the GCC collect2 program. For some
14893 # reason, if we set the COLLECT_NAMES environment variable, the problems
14894 # vanish in a puff of smoke.
14895 if test "X${COLLECT_NAMES+set}" != Xset; then
14897 export COLLECT_NAMES
14903 # We use sed instead of cat because bash on DJGPP gets confused if
14904 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14905 # text mode, it properly converts lines to CR/LF. This bash problem
14906 # is reportedly fixed, but why not run on old versions too?
14907 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14909 mv -f "$cfgfile" "$ofile" || \
14910 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14914 # If there is no Makefile yet, we rely on a make rule to execute
14915 # `config.status --recheck' to rerun these tests and create the
14916 # libtool script then.
14917 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14918 if test -f "$ltmain_in"; then
14919 test -f Makefile && make "$ltmain"
14925 ac_cpp='$CPP $CPPFLAGS'
14926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14933 # Check whether --with-tags or --without-tags was given.
14934 if test "${with_tags+set}" = set; then
14935 withval="$with_tags"
14936 tagnames="$withval"
14939 if test -f "$ltmain" && test -n "$tagnames"; then
14940 if test ! -f "${ofile}"; then
14941 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14942 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14945 if test -z "$LTCC"; then
14946 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14947 if test -z "$LTCC"; then
14948 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14949 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14951 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14952 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14956 # Extract list of available tagged configurations in $ofile.
14957 # Note that this assumes the entire list is on one line.
14958 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14960 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14961 for tagname in $tagnames; do
14963 # Check whether tagname contains only valid characters
14964 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14966 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14967 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14968 { (exit 1); exit 1; }; }
14972 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14974 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14975 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14976 { (exit 1); exit 1; }; }
14979 # Update the list of available tags.
14980 if test -n "$tagname"; then
14981 echo appending configuration tag "$tagname" to $ofile
14985 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14986 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14987 (test "X$CXX" != "Xg++"))) ; then
14989 ac_cpp='$CXXCPP $CPPFLAGS'
14990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14997 archive_cmds_need_lc_CXX=no
14998 allow_undefined_flag_CXX=
14999 always_export_symbols_CXX=no
15000 archive_expsym_cmds_CXX=
15001 export_dynamic_flag_spec_CXX=
15002 hardcode_direct_CXX=no
15003 hardcode_libdir_flag_spec_CXX=
15004 hardcode_libdir_flag_spec_ld_CXX=
15005 hardcode_libdir_separator_CXX=
15006 hardcode_minus_L_CXX=no
15007 hardcode_automatic_CXX=no
15009 module_expsym_cmds_CXX=
15010 link_all_deplibs_CXX=unknown
15011 old_archive_cmds_CXX=$old_archive_cmds
15012 no_undefined_flag_CXX=
15013 whole_archive_flag_spec_CXX=
15014 enable_shared_with_static_runtimes_CXX=no
15016 # Dependencies to place before and after the object being linked:
15017 predep_objects_CXX=
15018 postdep_objects_CXX=
15021 compiler_lib_search_path_CXX=
15023 # Source file extension for C++ test sources.
15026 # Object file extension for compiled C++ test sources.
15030 # Code to be used in simple compile tests
15031 lt_simple_compile_test_code="int some_variable = 0;\n"
15033 # Code to be used in simple link tests
15034 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15036 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15038 # If no C compiler was specified, use CC.
15041 # Allow CC to be a program name with arguments.
15045 # Allow CC to be a program name with arguments.
15050 lt_save_with_gnu_ld=$with_gnu_ld
15051 lt_save_path_LD=$lt_cv_path_LD
15052 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15053 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15055 unset lt_cv_prog_gnu_ld
15057 if test -n "${lt_cv_path_LDCXX+set}"; then
15058 lt_cv_path_LD=$lt_cv_path_LDCXX
15060 unset lt_cv_path_LD
15062 test -z "${LDCXX+set}" || LD=$LDCXX
15066 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15068 # We don't want -fno-exception wen compiling C++ code, so set the
15069 # no_builtin_flag separately
15070 if test "$GXX" = yes; then
15071 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15073 lt_prog_compiler_no_builtin_flag_CXX=
15076 if test "$GXX" = yes; then
15077 # Set up default GNU C++ configuration
15080 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15081 if test "${with_gnu_ld+set}" = set; then
15082 withval="$with_gnu_ld"
15083 test "$withval" = no || with_gnu_ld=yes
15088 if test "$GCC" = yes; then
15089 # Check if gcc -print-prog-name=ld gives a path.
15090 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15091 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15094 # gcc leaves a trailing carriage return which upsets mingw
15095 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15097 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15100 # Accept absolute paths.
15102 re_direlt='/[^/][^/]*/\.\./'
15103 # Canonicalize the pathname of ld
15104 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15105 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15106 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15108 test -z "$LD" && LD="$ac_prog"
15111 # If it fails, then pretend we aren't using GCC.
15115 # If it is relative, then search for the first ld in PATH.
15116 with_gnu_ld=unknown
15119 elif test "$with_gnu_ld" = yes; then
15120 echo "$as_me:$LINENO: checking for GNU ld" >&5
15121 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15123 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15124 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15126 if test "${lt_cv_path_LD+set}" = set; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 if test -z "$LD"; then
15130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15131 for ac_dir in $PATH; do
15133 test -z "$ac_dir" && ac_dir=.
15134 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15135 lt_cv_path_LD="$ac_dir/$ac_prog"
15136 # Check to see if the program is GNU ld. I'd rather use --version,
15137 # but apparently some GNU ld's only accept -v.
15138 # Break only if it was the GNU/non-GNU ld that we prefer.
15139 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15140 *GNU* | *'with BFD'*)
15141 test "$with_gnu_ld" != no && break
15144 test "$with_gnu_ld" != yes && break
15151 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15155 LD="$lt_cv_path_LD"
15156 if test -n "$LD"; then
15157 echo "$as_me:$LINENO: result: $LD" >&5
15158 echo "${ECHO_T}$LD" >&6
15160 echo "$as_me:$LINENO: result: no" >&5
15161 echo "${ECHO_T}no" >&6
15163 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15164 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15165 { (exit 1); exit 1; }; }
15166 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15167 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15168 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15171 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15172 case `$LD -v 2>&1 </dev/null` in
15173 *GNU* | *'with BFD'*)
15174 lt_cv_prog_gnu_ld=yes
15177 lt_cv_prog_gnu_ld=no
15181 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15182 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15183 with_gnu_ld=$lt_cv_prog_gnu_ld
15187 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15188 # archiving commands below assume that GNU ld is being used.
15189 if test "$with_gnu_ld" = yes; then
15190 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15191 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'
15193 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15194 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15196 # If archive_cmds runs LD, not CC, wlarc should be empty
15197 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15198 # investigate it a little bit more. (MM)
15201 # ancient GNU ld didn't support --whole-archive et. al.
15202 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15203 grep 'no-whole-archive' > /dev/null; then
15204 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15206 whole_archive_flag_spec_CXX=
15212 # A generic and very simple default shared library creation
15213 # command for GNU C++ for the case where it uses the native
15214 # linker, instead of GNU ld. If possible, this setting should
15215 # overridden to take advantage of the native linker features on
15216 # the platform it is being used on.
15217 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15220 # Commands to make compiler produce verbose output that lists
15221 # what "hidden" libraries, object files and flags are used when
15222 # linking a shared library.
15223 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15231 # PORTME: fill in a description of your system's C++ link characteristics
15232 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15233 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15237 # FIXME: insert proper C++ library support
15241 if test "$host_cpu" = ia64; then
15242 # On IA64, the linker does run time linking by default, so we don't
15243 # have to do anything special.
15244 aix_use_runtimelinking=no
15245 exp_sym_flag='-Bexport'
15248 aix_use_runtimelinking=no
15250 # Test if we are trying to use run time linking or normal
15251 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15252 # need to do runtime linking.
15253 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15254 for ld_flag in $LDFLAGS; do
15257 aix_use_runtimelinking=yes
15264 exp_sym_flag='-bexport'
15265 no_entry_flag='-bnoentry'
15268 # When large executables or shared objects are built, AIX ld can
15269 # have problems creating the table of contents. If linking a library
15270 # or program results in "error TOC overflow" add -mminimal-toc to
15271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15274 archive_cmds_CXX=''
15275 hardcode_direct_CXX=yes
15276 hardcode_libdir_separator_CXX=':'
15277 link_all_deplibs_CXX=yes
15279 if test "$GXX" = yes; then
15280 case $host_os in aix4.012|aix4.012.*)
15281 # We only want to do this on AIX 4.2 and lower, the check
15282 # below for broken collect2 doesn't work under 4.3+
15283 collect2name=`${CC} -print-prog-name=collect2`
15284 if test -f "$collect2name" && \
15285 strings "$collect2name" | grep resolve_lib_name >/dev/null
15287 # We have reworked collect2
15288 hardcode_direct_CXX=yes
15290 # We have old collect2
15291 hardcode_direct_CXX=unsupported
15292 # It fails to find uninstalled libraries when the uninstalled
15293 # path is not listed in the libpath. Setting hardcode_minus_L
15294 # to unsupported forces relinking
15295 hardcode_minus_L_CXX=yes
15296 hardcode_libdir_flag_spec_CXX='-L$libdir'
15297 hardcode_libdir_separator_CXX=
15300 shared_flag='-shared'
15303 if test "$host_cpu" = ia64; then
15304 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15305 # chokes on -Wl,-G. The following line is correct:
15308 if test "$aix_use_runtimelinking" = yes; then
15309 shared_flag='${wl}-G'
15311 shared_flag='${wl}-bM:SRE'
15316 # It seems that -bexpall does not export symbols beginning with
15317 # underscore (_), so it is better to generate a list of symbols to export.
15318 always_export_symbols_CXX=yes
15319 if test "$aix_use_runtimelinking" = yes; then
15320 # Warning - without using the other runtime loading flags (-brtl),
15321 # -berok will link without error, but may produce a broken library.
15322 allow_undefined_flag_CXX='-berok'
15323 # Determine the default libpath from the value encoded in an empty executable.
15324 cat >conftest.$ac_ext <<_ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h. */
15339 rm -f conftest.$ac_objext conftest$ac_exeext
15340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15341 (eval $ac_link) 2>conftest.er1
15343 grep -v '^ *+' conftest.er1 >conftest.err
15345 cat conftest.err >&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } &&
15348 { ac_try='test -z "$ac_cxx_werror_flag"
15349 || test ! -s conftest.err'
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; } &&
15355 { ac_try='test -s conftest$ac_exeext'
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
15362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15364 # Check for a 64-bit object if we didn't find anything.
15365 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; }
15368 echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15372 rm -f conftest.err conftest.$ac_objext \
15373 conftest$ac_exeext conftest.$ac_ext
15374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15376 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15378 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"
15380 if test "$host_cpu" = ia64; then
15381 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15382 allow_undefined_flag_CXX="-z nodefs"
15383 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"
15385 # Determine the default libpath from the value encoded in an empty executable.
15386 cat >conftest.$ac_ext <<_ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15401 rm -f conftest.$ac_objext conftest$ac_exeext
15402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15403 (eval $ac_link) 2>conftest.er1
15405 grep -v '^ *+' conftest.er1 >conftest.err
15407 cat conftest.err >&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } &&
15410 { ac_try='test -z "$ac_cxx_werror_flag"
15411 || test ! -s conftest.err'
15412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413 (eval $ac_try) 2>&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); }; } &&
15417 { ac_try='test -s conftest$ac_exeext'
15418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419 (eval $ac_try) 2>&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; }; then
15424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15426 # Check for a 64-bit object if we didn't find anything.
15427 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; }
15430 echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15434 rm -f conftest.err conftest.$ac_objext \
15435 conftest$ac_exeext conftest.$ac_ext
15436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15438 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15439 # Warning - without using the other run time loading flags,
15440 # -berok will link without error, but may produce a broken library.
15441 no_undefined_flag_CXX=' ${wl}-bernotok'
15442 allow_undefined_flag_CXX=' ${wl}-berok'
15443 # -bexpall does not export symbols beginning with underscore (_)
15444 always_export_symbols_CXX=yes
15445 # Exported symbols can be pulled into shared objects from archives
15446 whole_archive_flag_spec_CXX=' '
15447 archive_cmds_need_lc_CXX=yes
15448 # This is similar to how AIX traditionally builds it's shared libraries.
15449 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'
15454 case $cc_basename in
15456 # FIXME: insert proper C++ library support
15463 cygwin* | mingw* | pw32*)
15464 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15465 # as there is no search path for DLLs.
15466 hardcode_libdir_flag_spec_CXX='-L$libdir'
15467 allow_undefined_flag_CXX=unsupported
15468 always_export_symbols_CXX=no
15469 enable_shared_with_static_runtimes_CXX=yes
15471 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15472 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'
15473 # If the export-symbols file already is a .def file (1st line
15474 # is EXPORTS), use it as is; otherwise, prepend...
15475 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15476 cp $export_symbols $output_objdir/$soname.def;
15478 echo EXPORTS > $output_objdir/$soname.def;
15479 cat $export_symbols >> $output_objdir/$soname.def;
15481 $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'
15486 darwin* | rhapsody*)
15488 rhapsody* | darwin1.[012])
15489 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15492 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15493 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15495 case ${MACOSX_DEPLOYMENT_TARGET} in
15497 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15500 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15506 archive_cmds_need_lc_CXX=no
15507 hardcode_direct_CXX=no
15508 hardcode_automatic_CXX=yes
15509 hardcode_shlibpath_var_CXX=unsupported
15510 whole_archive_flag_spec_CXX=''
15511 link_all_deplibs_CXX=yes
15513 if test "$GXX" = yes ; then
15514 lt_int_apple_cc_single_mod=no
15515 output_verbose_link_cmd='echo'
15516 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15517 lt_int_apple_cc_single_mod=yes
15519 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15520 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15522 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'
15524 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15525 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15526 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15527 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}'
15529 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}'
15531 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}'
15533 case "$cc_basename" in
15535 output_verbose_link_cmd='echo'
15536 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'
15537 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15538 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15539 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}'
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}'
15550 case $cc_basename in
15552 # FIXME: insert proper C++ library support
15556 # Green Hills C++ Compiler
15557 # FIXME: insert proper C++ library support
15561 # FIXME: insert proper C++ library support
15567 # C++ shared libraries reported to be fairly broken before switch to ELF
15571 archive_cmds_need_lc_CXX=no
15573 freebsd* | kfreebsd*-gnu)
15574 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15581 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15582 hardcode_libdir_separator_CXX=:
15583 export_dynamic_flag_spec_CXX='${wl}-E'
15584 hardcode_direct_CXX=yes
15585 hardcode_minus_L_CXX=yes # Not in the search PATH,
15586 # but as the default
15587 # location of the library.
15589 case $cc_basename in
15591 # FIXME: insert proper C++ library support
15595 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'
15596 # Commands to make compiler produce verbose output that lists
15597 # what "hidden" libraries, object files and flags are used when
15598 # linking a shared library.
15600 # There doesn't appear to be a way to prevent this compiler from
15601 # explicitly linking system object files so we need to strip them
15602 # from the output so that they don't get included in the library
15604 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'
15607 if test "$GXX" = yes; then
15608 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'
15610 # FIXME: insert proper C++ library support
15617 if test $with_gnu_ld = no; then
15618 case "$host_cpu" in
15620 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15621 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15622 hardcode_libdir_separator_CXX=:
15625 hardcode_libdir_flag_spec_CXX='-L$libdir'
15628 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15629 hardcode_libdir_separator_CXX=:
15630 export_dynamic_flag_spec_CXX='${wl}-E'
15634 case "$host_cpu" in
15636 hardcode_direct_CXX=no
15637 hardcode_shlibpath_var_CXX=no
15640 hardcode_direct_CXX=no
15641 hardcode_shlibpath_var_CXX=no
15642 hardcode_minus_L_CXX=yes # Not in the search PATH,
15643 # but as the default
15644 # location of the library.
15647 hardcode_direct_CXX=yes
15648 hardcode_minus_L_CXX=yes # Not in the search PATH,
15649 # but as the default
15650 # location of the library.
15654 case $cc_basename in
15656 # FIXME: insert proper C++ library support
15660 case "$host_cpu" in
15662 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15665 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15668 # Commands to make compiler produce verbose output that lists
15669 # what "hidden" libraries, object files and flags are used when
15670 # linking a shared library.
15672 # There doesn't appear to be a way to prevent this compiler from
15673 # explicitly linking system object files so we need to strip them
15674 # from the output so that they don't get included in the library
15676 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'
15679 if test "$GXX" = yes; then
15680 if test $with_gnu_ld = no; then
15681 case "$host_cpu" in
15683 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15686 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'
15691 # FIXME: insert proper C++ library support
15698 case $cc_basename in
15701 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'
15703 # Archives containing C++ object files must be created using
15704 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15705 # necessary to make sure instantiated templates are included
15707 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15710 if test "$GXX" = yes; then
15711 if test "$with_gnu_ld" = no; then
15712 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'
15714 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'
15717 link_all_deplibs_CXX=yes
15720 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15721 hardcode_libdir_separator_CXX=:
15724 case $cc_basename in
15726 # Kuck and Associates, Inc. (KAI) C++ Compiler
15728 # KCC will only create a shared library if the output file
15729 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15730 # to its proper name (with version) after linking.
15731 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'
15732 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'
15733 # Commands to make compiler produce verbose output that lists
15734 # what "hidden" libraries, object files and flags are used when
15735 # linking a shared library.
15737 # There doesn't appear to be a way to prevent this compiler from
15738 # explicitly linking system object files so we need to strip them
15739 # from the output so that they don't get included in the library
15741 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'
15743 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15744 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15746 # Archives containing C++ object files must be created using
15747 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15748 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15753 # version 8.0 and above of icpc choke on multiply defined symbols
15754 # if we add $predep_objects and $postdep_objects, however 7.1 and
15755 # earlier do not add the objects themselves.
15756 case `$CC -V 2>&1` in
15758 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15759 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'
15761 *) # Version 8.0 or newer
15762 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15763 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15766 archive_cmds_need_lc_CXX=no
15767 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15768 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15769 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15773 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15774 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'
15776 runpath_var=LD_RUN_PATH
15777 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15778 hardcode_libdir_separator_CXX=:
15780 # Commands to make compiler produce verbose output that lists
15781 # what "hidden" libraries, object files and flags are used when
15782 # linking a shared library.
15784 # There doesn't appear to be a way to prevent this compiler from
15785 # explicitly linking system object files so we need to strip them
15786 # from the output so that they don't get included in the library
15788 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'
15793 # FIXME: insert proper C++ library support
15797 # FIXME: insert proper C++ library support
15801 case $cc_basename in
15803 # FIXME: insert proper C++ library support
15807 # FIXME: insert proper C++ library support
15813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15814 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15816 hardcode_libdir_flag_spec_CXX='-R$libdir'
15817 hardcode_direct_CXX=yes
15818 hardcode_shlibpath_var_CXX=no
15820 # Workaround some broken pre-1.5 toolchains
15821 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15824 # C++ shared libraries are fairly broken
15828 hardcode_direct_CXX=yes
15829 hardcode_shlibpath_var_CXX=no
15830 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15831 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15832 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15833 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15834 export_dynamic_flag_spec_CXX='${wl}-E'
15835 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15837 output_verbose_link_cmd='echo'
15840 case $cc_basename in
15842 # Kuck and Associates, Inc. (KAI) C++ Compiler
15844 # KCC will only create a shared library if the output file
15845 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15846 # to its proper name (with version) after linking.
15847 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'
15849 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15850 hardcode_libdir_separator_CXX=:
15852 # Archives containing C++ object files must be created using
15853 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15854 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15858 # Rational C++ 2.4.1
15859 # FIXME: insert proper C++ library support
15863 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15864 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'
15866 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15867 hardcode_libdir_separator_CXX=:
15869 # Commands to make compiler produce verbose output that lists
15870 # what "hidden" libraries, object files and flags are used when
15871 # linking a shared library.
15873 # There doesn't appear to be a way to prevent this compiler from
15874 # explicitly linking system object files so we need to strip them
15875 # from the output so that they don't get included in the library
15877 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'
15880 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15881 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15882 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'
15884 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15885 hardcode_libdir_separator_CXX=:
15887 # Commands to make compiler produce verbose output that lists
15888 # what "hidden" libraries, object files and flags are used when
15889 # linking a shared library.
15890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15893 # FIXME: insert proper C++ library support
15900 case $cc_basename in
15902 # Kuck and Associates, Inc. (KAI) C++ Compiler
15904 # KCC will only create a shared library if the output file
15905 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15906 # to its proper name (with version) after linking.
15907 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'
15909 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15910 hardcode_libdir_separator_CXX=:
15912 # Archives containing C++ object files must be created using
15913 # the KAI C++ compiler.
15914 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15917 # Rational C++ 2.4.1
15918 # FIXME: insert proper C++ library support
15922 allow_undefined_flag_CXX=' -expect_unresolved \*'
15923 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'
15924 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15925 echo "-hidden">> $lib.exp~
15926 $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~
15929 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15930 hardcode_libdir_separator_CXX=:
15932 # Commands to make compiler produce verbose output that lists
15933 # what "hidden" libraries, object files and flags are used when
15934 # linking a shared library.
15936 # There doesn't appear to be a way to prevent this compiler from
15937 # explicitly linking system object files so we need to strip them
15938 # from the output so that they don't get included in the library
15940 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'
15943 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15944 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15945 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'
15947 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15948 hardcode_libdir_separator_CXX=:
15950 # Commands to make compiler produce verbose output that lists
15951 # what "hidden" libraries, object files and flags are used when
15952 # linking a shared library.
15953 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15956 # FIXME: insert proper C++ library support
15963 # FIXME: insert proper C++ library support
15967 archive_cmds_need_lc_CXX=no
15968 case $cc_basename in
15970 # FIXME: insert proper C++ library support
15974 # FIXME: insert proper C++ library support
15980 case $cc_basename in
15983 # FIXME: insert proper C++ library support
15988 # FIXME: insert proper C++ library support
15992 # FIXME: insert proper C++ library support
15998 case $cc_basename in
16000 # Sun C++ 4.2, 5.x and Centerline C++
16001 no_undefined_flag_CXX=' -zdefs'
16002 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16003 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16004 $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'
16006 hardcode_libdir_flag_spec_CXX='-R$libdir'
16007 hardcode_shlibpath_var_CXX=no
16009 solaris2.0-5 | solaris2.0-5.*) ;;
16011 # The C++ compiler is used as linker so we must use $wl
16012 # flag to pass the commands to the underlying system
16014 # Supported since Solaris 2.6 (maybe 2.5.1?)
16015 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16018 link_all_deplibs_CXX=yes
16020 # Commands to make compiler produce verbose output that lists
16021 # what "hidden" libraries, object files and flags are used when
16022 # linking a shared library.
16024 # There doesn't appear to be a way to prevent this compiler from
16025 # explicitly linking system object files so we need to strip them
16026 # from the output so that they don't get included in the library
16028 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'
16030 # Archives containing C++ object files must be created using
16031 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16032 # necessary to make sure instantiated templates are included
16034 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16037 # Green Hills C++ Compiler
16038 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16040 # The C++ compiler must be used to create the archive.
16041 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16044 # GNU C++ compiler with Solaris linker
16045 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16046 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16047 if $CC --version | grep -v '^2\.7' > /dev/null; then
16048 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16049 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16050 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16052 # Commands to make compiler produce verbose output that lists
16053 # what "hidden" libraries, object files and flags are used when
16054 # linking a shared library.
16055 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16057 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16059 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16060 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16061 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16063 # Commands to make compiler produce verbose output that lists
16064 # what "hidden" libraries, object files and flags are used when
16065 # linking a shared library.
16066 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16069 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16074 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16075 archive_cmds_need_lc_CXX=no
16078 case $cc_basename in
16080 # NonStop-UX NCC 3.20
16081 # FIXME: insert proper C++ library support
16085 # FIXME: insert proper C++ library support
16091 # FIXME: insert proper C++ library support
16095 # FIXME: insert proper C++ library support
16099 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16100 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16101 test "$ld_shlibs_CXX" = no && can_build_shared=no
16107 cat > conftest.$ac_ext <<EOF
16111 Foo (void) { a = 0; }
16117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16118 (eval $ac_compile) 2>&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; then
16122 # Parse the compiler output and extract the necessary
16123 # objects, libraries and library flags.
16125 # Sentinel used to keep track of whether or not we are before
16126 # the conftest object file.
16127 pre_test_object_deps_done=no
16129 # The `*' in the case matches for architectures that use `case' in
16130 # $output_verbose_cmd can trigger glob expansion during the loop
16131 # eval without this substitution.
16132 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16134 for p in `eval $output_verbose_link_cmd`; do
16138 # Some compilers place space between "-{L,R}" and the path.
16139 # Remove the space.
16140 if test $p = "-L" \
16141 || test $p = "-R"; then
16148 if test "$pre_test_object_deps_done" = no; then
16151 # Internal compiler library paths should come after those
16152 # provided the user. The postdeps already come after the
16153 # user supplied libs so there is no need to process them.
16154 if test -z "$compiler_lib_search_path_CXX"; then
16155 compiler_lib_search_path_CXX="${prev}${p}"
16157 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16160 # The "-l" case would never come before the object being
16161 # linked, so don't bother handling this case.
16164 if test -z "$postdeps_CXX"; then
16165 postdeps_CXX="${prev}${p}"
16167 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16173 # This assumes that the test object file only shows up
16174 # once in the compiler output.
16175 if test "$p" = "conftest.$objext"; then
16176 pre_test_object_deps_done=yes
16180 if test "$pre_test_object_deps_done" = no; then
16181 if test -z "$predep_objects_CXX"; then
16182 predep_objects_CXX="$p"
16184 predep_objects_CXX="$predep_objects_CXX $p"
16187 if test -z "$postdep_objects_CXX"; then
16188 postdep_objects_CXX="$p"
16190 postdep_objects_CXX="$postdep_objects_CXX $p"
16195 *) ;; # Ignore the rest.
16203 echo "libtool.m4: error: problem compiling CXX test program"
16206 $rm -f confest.$objext
16208 case " $postdeps_CXX " in
16209 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16212 lt_prog_compiler_wl_CXX=
16213 lt_prog_compiler_pic_CXX=
16214 lt_prog_compiler_static_CXX=
16216 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16217 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16219 # C++ specific cases for pic, static, wl, etc.
16220 if test "$GXX" = yes; then
16221 lt_prog_compiler_wl_CXX='-Wl,'
16222 lt_prog_compiler_static_CXX='-static'
16226 # All AIX code is PIC.
16227 if test "$host_cpu" = ia64; then
16228 # AIX 5 now supports IA64 processor
16229 lt_prog_compiler_static_CXX='-Bstatic'
16233 # FIXME: we need at least 68020 code to build shared libraries, but
16234 # adding the `-m68020' flag to GCC prevents building anything better,
16236 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16238 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16239 # PIC is the default for these OSes.
16241 mingw* | os2* | pw32*)
16242 # This hack is so that the source file can tell whether it is being
16243 # built for inclusion in a dll (and should export symbols for example).
16244 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16246 darwin* | rhapsody*)
16247 # PIC is the default on this platform
16248 # Common symbols not allowed in MH_DYLIB files
16249 lt_prog_compiler_pic_CXX='-fno-common'
16252 # DJGPP does not support shared libraries at all
16253 lt_prog_compiler_pic_CXX=
16256 if test -d /usr/nec; then
16257 lt_prog_compiler_pic_CXX=-Kconform_pic
16261 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16262 # not for PA HP-UX.
16263 case "$host_cpu" in
16267 lt_prog_compiler_pic_CXX='-fPIC'
16272 lt_prog_compiler_pic_CXX='-fPIC'
16278 # All AIX code is PIC.
16279 if test "$host_cpu" = ia64; then
16280 # AIX 5 now supports IA64 processor
16281 lt_prog_compiler_static_CXX='-Bstatic'
16283 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16287 case $cc_basename in
16289 # Green Hills C++ Compiler
16290 # _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"
16295 # PIC is the default on this platform
16296 # Common symbols not allowed in MH_DYLIB files
16297 case "$cc_basename" in
16299 lt_prog_compiler_pic_CXX='-qnocommon'
16300 lt_prog_compiler_wl_CXX='-Wl,'
16305 case $cc_basename in
16307 lt_prog_compiler_pic_CXX='-KPIC'
16310 # Green Hills C++ Compiler
16311 lt_prog_compiler_pic_CXX='-pic'
16317 freebsd* | kfreebsd*-gnu)
16318 # FreeBSD uses GNU C++
16320 hpux9* | hpux10* | hpux11*)
16321 case $cc_basename in
16323 lt_prog_compiler_wl_CXX='-Wl,'
16324 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16325 if test "$host_cpu" != ia64; then
16326 lt_prog_compiler_pic_CXX='+Z'
16330 lt_prog_compiler_wl_CXX='-Wl,'
16331 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16332 case "$host_cpu" in
16337 lt_prog_compiler_pic_CXX='+Z'
16345 irix5* | irix6* | nonstopux*)
16346 case $cc_basename in
16348 lt_prog_compiler_wl_CXX='-Wl,'
16349 lt_prog_compiler_static_CXX='-non_shared'
16350 # CC pic flag -KPIC is the default.
16357 case $cc_basename in
16360 lt_prog_compiler_wl_CXX='--backend -Wl,'
16361 lt_prog_compiler_pic_CXX='-fPIC'
16365 lt_prog_compiler_wl_CXX='-Wl,'
16366 lt_prog_compiler_pic_CXX='-KPIC'
16367 lt_prog_compiler_static_CXX='-static'
16371 # Make sure the PIC flag is empty. It appears that all Alpha
16372 # Linux and Compaq Tru64 Unix objects are PIC.
16373 lt_prog_compiler_pic_CXX=
16374 lt_prog_compiler_static_CXX='-non_shared'
16385 case $cc_basename in
16387 lt_prog_compiler_pic_CXX='-W c,exportall'
16395 osf3* | osf4* | osf5*)
16396 case $cc_basename in
16398 lt_prog_compiler_wl_CXX='--backend -Wl,'
16401 # Rational C++ 2.4.1
16402 lt_prog_compiler_pic_CXX='-pic'
16405 # Digital/Compaq C++
16406 lt_prog_compiler_wl_CXX='-Wl,'
16407 # Make sure the PIC flag is empty. It appears that all Alpha
16408 # Linux and Compaq Tru64 Unix objects are PIC.
16409 lt_prog_compiler_pic_CXX=
16410 lt_prog_compiler_static_CXX='-non_shared'
16419 case $cc_basename in
16421 lt_prog_compiler_pic_CXX='-fPIC'
16428 case $cc_basename in
16430 # Sun C++ 4.2, 5.x and Centerline C++
16431 lt_prog_compiler_pic_CXX='-KPIC'
16432 lt_prog_compiler_static_CXX='-Bstatic'
16433 lt_prog_compiler_wl_CXX='-Qoption ld '
16436 # Green Hills C++ Compiler
16437 lt_prog_compiler_pic_CXX='-PIC'
16444 case $cc_basename in
16447 lt_prog_compiler_pic_CXX='-pic'
16448 lt_prog_compiler_static_CXX='-Bstatic'
16452 lt_prog_compiler_pic_CXX='-pic'
16459 case $cc_basename in
16461 # NonStop-UX NCC 3.20
16462 lt_prog_compiler_pic_CXX='-KPIC'
16473 lt_prog_compiler_can_build_shared_CXX=no
16478 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16479 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16482 # Check to make sure the PIC flag actually works.
16484 if test -n "$lt_prog_compiler_pic_CXX"; then
16486 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16487 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16488 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16489 echo $ECHO_N "(cached) $ECHO_C" >&6
16491 lt_prog_compiler_pic_works_CXX=no
16492 ac_outfile=conftest.$ac_objext
16493 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16494 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16495 # Insert the option either (1) after the last *FLAGS variable, or
16496 # (2) before a word containing "conftest.", or (3) at the end.
16497 # Note that $ac_compile itself does not contain backslashes and begins
16498 # with a dollar sign (not a hyphen), so the echo should work correctly.
16499 # The option is referenced via a variable to avoid confusing sed.
16500 lt_compile=`echo "$ac_compile" | $SED \
16501 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16503 -e 's:$: $lt_compiler_flag:'`
16504 (eval echo "\"\$as_me:16504: $lt_compile\"" >&5)
16505 (eval "$lt_compile" 2>conftest.err)
16507 cat conftest.err >&5
16508 echo "$as_me:16508: \$? = $ac_status" >&5
16509 if (exit $ac_status) && test -s "$ac_outfile"; then
16510 # The compiler can only warn and ignore the option if not recognized
16511 # So say no if there are warnings
16512 if test ! -s conftest.err; then
16513 lt_prog_compiler_pic_works_CXX=yes
16519 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16520 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16522 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16523 case $lt_prog_compiler_pic_CXX in
16525 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16528 lt_prog_compiler_pic_CXX=
16529 lt_prog_compiler_can_build_shared_CXX=no
16534 # For platforms which do not support PIC, -DPIC is meaningless:
16536 lt_prog_compiler_pic_CXX=
16539 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16543 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16544 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16545 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16548 lt_cv_prog_compiler_c_o_CXX=no
16549 $rm -r conftest 2>/dev/null
16553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16555 lt_compiler_flag="-o out/conftest2.$ac_objext"
16556 # Insert the option either (1) after the last *FLAGS variable, or
16557 # (2) before a word containing "conftest.", or (3) at the end.
16558 # Note that $ac_compile itself does not contain backslashes and begins
16559 # with a dollar sign (not a hyphen), so the echo should work correctly.
16560 lt_compile=`echo "$ac_compile" | $SED \
16561 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16563 -e 's:$: $lt_compiler_flag:'`
16564 (eval echo "\"\$as_me:16564: $lt_compile\"" >&5)
16565 (eval "$lt_compile" 2>out/conftest.err)
16567 cat out/conftest.err >&5
16568 echo "$as_me:16568: \$? = $ac_status" >&5
16569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16571 # The compiler can only warn and ignore the option if not recognized
16572 # So say no if there are warnings
16573 if test ! -s out/conftest.err; then
16574 lt_cv_prog_compiler_c_o_CXX=yes
16579 # SGI C++ compiler will create directory out/ii_files/ for
16580 # template instantiation
16581 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16582 $rm out/* && rmdir out
16588 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16589 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16592 hard_links="nottested"
16593 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16594 # do not overwrite the value of need_locks provided by the user
16595 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16596 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16601 ln conftest.a conftest.b 2>&5 || hard_links=no
16602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16603 echo "$as_me:$LINENO: result: $hard_links" >&5
16604 echo "${ECHO_T}$hard_links" >&6
16605 if test "$hard_links" = no; then
16606 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16607 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16614 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16615 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16617 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16620 # If we're using GNU nm, then we don't want the "-C" option.
16621 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16622 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16623 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'
16625 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'
16629 export_symbols_cmds_CXX="$ltdll_cmds"
16632 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16635 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16639 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16640 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16641 test "$ld_shlibs_CXX" = no && can_build_shared=no
16643 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16644 if test "$GCC" = yes; then
16645 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16649 # Do we need to explicitly link libc?
16651 case "x$archive_cmds_need_lc_CXX" in
16653 # Assume -lc should be added
16654 archive_cmds_need_lc_CXX=yes
16656 if test "$enable_shared" = yes && test "$GCC" = yes; then
16657 case $archive_cmds_CXX in
16659 # FIXME: we may have to deal with multi-command sequences.
16662 # Test whether the compiler implicitly links with -lc since on some
16663 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16664 # to ld, don't add -lc before -lgcc.
16665 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16666 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16668 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16671 (eval $ac_compile) 2>&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } 2>conftest.err; then
16677 libobjs=conftest.$ac_objext
16679 wl=$lt_prog_compiler_wl_CXX
16685 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16686 allow_undefined_flag_CXX=
16687 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16688 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }
16693 archive_cmds_need_lc_CXX=no
16695 archive_cmds_need_lc_CXX=yes
16697 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16699 cat conftest.err 1>&5
16702 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16703 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16710 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16711 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16712 library_names_spec=
16713 libname_spec='lib$name'
16717 postuninstall_cmds=
16721 shlibpath_overrides_runpath=unknown
16723 dynamic_linker="$host_os ld.so"
16724 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16725 if test "$GCC" = yes; then
16726 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16727 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16728 # if the path contains ";" then we assume it to be the separator
16729 # otherwise default to the standard path separator (i.e. ":") - it is
16730 # assumed that no part of a normal pathname contains ";" but that should
16731 # okay in the real world where ";" in dirpaths is itself problematic.
16732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16734 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16737 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16739 need_lib_prefix=unknown
16740 hardcode_into_libs=no
16742 # when you set need_version to no, make sure it does not cause -set_version
16743 # flags to be left without arguments
16744 need_version=unknown
16749 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16750 shlibpath_var=LIBPATH
16752 # AIX 3 has no versioning support, so we append a major version to the name.
16753 soname_spec='${libname}${release}${shared_ext}$major'
16760 hardcode_into_libs=yes
16761 if test "$host_cpu" = ia64; then
16762 # AIX 5 supports IA64
16763 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16764 shlibpath_var=LD_LIBRARY_PATH
16766 # With GCC up to 2.95.x, collect2 would create an import file
16767 # for dependence libraries. The import file would start with
16768 # the line `#! .'. This would cause the generated library to
16769 # depend on `.', always an invalid library. This was fixed in
16770 # development snapshots of GCC prior to 3.0.
16772 aix4 | aix4.[01] | aix4.[01].*)
16773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16775 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16778 can_build_shared=no
16782 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16783 # soname into executable. Probably we can add versioning support to
16784 # collect2, so additional links can be useful in future.
16785 if test "$aix_use_runtimelinking" = yes; then
16786 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16787 # instead of lib<name>.a to let people know that these are not
16788 # typical AIX shared libraries.
16789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16791 # We preserve .a as extension for shared libraries through AIX4.2
16792 # and later when we are not doing run time linking.
16793 library_names_spec='${libname}${release}.a $libname.a'
16794 soname_spec='${libname}${release}${shared_ext}$major'
16796 shlibpath_var=LIBPATH
16801 library_names_spec='$libname.ixlibrary $libname.a'
16802 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16803 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'
16807 library_names_spec='${libname}${shared_ext}'
16808 dynamic_linker="$host_os ld.so"
16809 shlibpath_var=LIBRARY_PATH
16815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16816 soname_spec='${libname}${release}${shared_ext}$major'
16817 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16818 shlibpath_var=LD_LIBRARY_PATH
16819 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16820 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16821 # the default ld.so.conf also contains /usr/contrib/lib and
16822 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16823 # libtool to hard-code these into programs
16826 cygwin* | mingw* | pw32*)
16827 version_type=windows
16832 case $GCC,$host_os in
16833 yes,cygwin* | yes,mingw* | yes,pw32*)
16834 library_names_spec='$libname.dll.a'
16835 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16836 postinstall_cmds='base_file=`basename \${file}`~
16837 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16838 dldir=$destdir/`dirname \$dlpath`~
16839 test -d \$dldir || mkdir -p \$dldir~
16840 $install_prog $dir/$dlname \$dldir/$dlname'
16841 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16842 dlpath=$dir/\$dldll~
16844 shlibpath_overrides_runpath=yes
16848 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16849 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16850 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16853 # MinGW DLLs use traditional 'lib' prefix
16854 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16855 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16856 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16857 # It is most probably a Windows format PATH printed by
16858 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16859 # path with ; separators, and with drive letters. We can handle the
16860 # drive letters (cygwin fileutils understands them), so leave them,
16861 # especially as we might pass files found there to a mingw objdump,
16862 # which wouldn't understand a cygwinified path. Ahh.
16863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16869 # pw32 DLLs use 'pw' prefix rather than 'lib'
16870 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16876 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16879 dynamic_linker='Win32 ld.exe'
16880 # FIXME: first we should search . and the directory the executable is in
16884 darwin* | rhapsody*)
16885 dynamic_linker="$host_os dyld"
16886 version_type=darwin
16889 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16890 soname_spec='${libname}${release}${major}$shared_ext'
16891 shlibpath_overrides_runpath=yes
16892 shlibpath_var=DYLD_LIBRARY_PATH
16893 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16894 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16895 if test "$GCC" = yes; then
16896 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"`
16898 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16900 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16908 soname_spec='${libname}${release}${shared_ext}$major'
16909 shlibpath_var=LD_LIBRARY_PATH
16920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16921 soname_spec='${libname}${release}${shared_ext}$major'
16922 shlibpath_var=LD_LIBRARY_PATH
16923 shlibpath_overrides_runpath=no
16924 hardcode_into_libs=yes
16925 dynamic_linker='GNU ld.so'
16929 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16930 version_type=freebsd-$objformat
16931 case $version_type in
16933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16942 shlibpath_var=LD_LIBRARY_PATH
16945 shlibpath_overrides_runpath=yes
16947 freebsd3.01* | freebsdelf3.01*)
16948 shlibpath_overrides_runpath=yes
16949 hardcode_into_libs=yes
16952 shlibpath_overrides_runpath=no
16953 hardcode_into_libs=yes
16962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16963 soname_spec='${libname}${release}${shared_ext}$major'
16964 shlibpath_var=LD_LIBRARY_PATH
16965 hardcode_into_libs=yes
16968 hpux9* | hpux10* | hpux11*)
16969 # Give a soname corresponding to the major version so that dld.sl refuses to
16970 # link against other versions.
16974 case "$host_cpu" in
16977 hardcode_into_libs=yes
16978 dynamic_linker="$host_os dld.so"
16979 shlibpath_var=LD_LIBRARY_PATH
16980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16982 soname_spec='${libname}${release}${shared_ext}$major'
16983 if test "X$HPUX_IA64_MODE" = X32; then
16984 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16992 hardcode_into_libs=yes
16993 dynamic_linker="$host_os dld.sl"
16994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16997 soname_spec='${libname}${release}${shared_ext}$major'
16998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17003 dynamic_linker="$host_os dld.sl"
17004 shlibpath_var=SHLIB_PATH
17005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007 soname_spec='${libname}${release}${shared_ext}$major'
17010 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17011 postinstall_cmds='chmod 555 $lib'
17014 irix5* | irix6* | nonstopux*)
17016 nonstopux*) version_type=nonstopux ;;
17018 if test "$lt_cv_prog_gnu_ld" = yes; then
17026 soname_spec='${libname}${release}${shared_ext}$major'
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17029 irix5* | nonstopux*)
17030 libsuff= shlibsuff=
17033 case $LD in # libtool.m4 will add one of these switches to LD
17034 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17035 libsuff= shlibsuff= libmagic=32-bit;;
17036 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17037 libsuff=32 shlibsuff=N32 libmagic=N32;;
17038 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17039 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17040 *) libsuff= shlibsuff= libmagic=never-match;;
17044 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17045 shlibpath_overrides_runpath=no
17046 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17047 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17048 hardcode_into_libs=yes
17051 # No shared lib support for Linux oldld, aout, or coff.
17052 linux*oldld* | linux*aout* | linux*coff*)
17056 # This must be Linux ELF.
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17062 soname_spec='${libname}${release}${shared_ext}$major'
17063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17064 shlibpath_var=LD_LIBRARY_PATH
17065 shlibpath_overrides_runpath=no
17066 # This implies no fast_install, which is unacceptable.
17067 # Some rework will be needed to allow for fast_install
17068 # before this can be enabled.
17069 hardcode_into_libs=yes
17071 # Append ld.so.conf contents to the search path
17072 if test -f /etc/ld.so.conf; then
17073 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17074 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17077 # We used to test for /lib/ld.so.1 and disable shared libraries on
17078 # powerpc, because MkLinux only supported shared libraries with the
17079 # GNU dynamic linker. Since this was broken with cross compilers,
17080 # most powerpc-linux boxes support dynamic linking these days and
17081 # people can always --disable-shared, the test was removed, and we
17082 # assume the GNU/Linux dynamic linker is in use.
17083 dynamic_linker='GNU/Linux ld.so'
17090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17091 soname_spec='${libname}${release}${shared_ext}$major'
17092 shlibpath_var=LD_LIBRARY_PATH
17093 shlibpath_overrides_runpath=no
17094 hardcode_into_libs=yes
17095 dynamic_linker='GNU ld.so'
17102 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17105 dynamic_linker='NetBSD (a.out) ld.so'
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17108 soname_spec='${libname}${release}${shared_ext}$major'
17109 dynamic_linker='NetBSD ld.elf_so'
17111 shlibpath_var=LD_LIBRARY_PATH
17112 shlibpath_overrides_runpath=yes
17113 hardcode_into_libs=yes
17118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17119 shlibpath_var=LD_LIBRARY_PATH
17120 shlibpath_overrides_runpath=yes
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128 soname_spec='${libname}${release}${shared_ext}$major'
17129 shlibpath_var=LD_LIBRARY_PATH
17130 shlibpath_overrides_runpath=yes
17137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17139 shlibpath_var=LD_LIBRARY_PATH
17140 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17142 openbsd2.[89] | openbsd2.[89].*)
17143 shlibpath_overrides_runpath=no
17146 shlibpath_overrides_runpath=yes
17150 shlibpath_overrides_runpath=yes
17155 libname_spec='$name'
17158 library_names_spec='$libname${shared_ext} $libname.a'
17159 dynamic_linker='OS/2 ld.exe'
17160 shlibpath_var=LIBPATH
17163 osf3* | osf4* | osf5*)
17167 soname_spec='${libname}${release}${shared_ext}$major'
17168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17169 shlibpath_var=LD_LIBRARY_PATH
17170 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17171 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17186 soname_spec='${libname}${release}${shared_ext}$major'
17187 shlibpath_var=LD_LIBRARY_PATH
17188 shlibpath_overrides_runpath=yes
17189 hardcode_into_libs=yes
17190 # ldd complains unless libraries are executable
17191 postinstall_cmds='chmod +x $lib'
17196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17197 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17198 shlibpath_var=LD_LIBRARY_PATH
17199 shlibpath_overrides_runpath=yes
17200 if test "$with_gnu_ld" = yes; then
17206 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17209 soname_spec='${libname}${release}${shared_ext}$major'
17210 shlibpath_var=LD_LIBRARY_PATH
17211 case $host_vendor in
17213 shlibpath_overrides_runpath=no
17215 export_dynamic_flag_spec='${wl}-Blargedynsym'
17216 runpath_var=LD_RUN_PATH
17224 shlibpath_overrides_runpath=no
17225 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17231 if test -d /usr/nec ;then
17233 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17234 soname_spec='$libname${shared_ext}.$major'
17235 shlibpath_var=LD_LIBRARY_PATH
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17242 soname_spec='${libname}${release}${shared_ext}$major'
17243 shlibpath_var=LD_LIBRARY_PATH
17250 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17251 echo "${ECHO_T}$dynamic_linker" >&6
17252 test "$dynamic_linker" = no && can_build_shared=no
17254 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17255 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17256 hardcode_action_CXX=
17257 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17258 test -n "$runpath_var_CXX" || \
17259 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17261 # We can hardcode non-existant directories.
17262 if test "$hardcode_direct_CXX" != no &&
17263 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17264 # have to relink, otherwise we might link with an installed library
17265 # when we should be linking with a yet-to-be-installed one
17266 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17267 test "$hardcode_minus_L_CXX" != no; then
17268 # Linking always hardcodes the temporary library directory.
17269 hardcode_action_CXX=relink
17271 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17272 hardcode_action_CXX=immediate
17275 # We cannot hardcode anything, or else we can only hardcode existing
17277 hardcode_action_CXX=unsupported
17279 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17280 echo "${ECHO_T}$hardcode_action_CXX" >&6
17282 if test "$hardcode_action_CXX" = relink; then
17283 # Fast installation is not supported
17284 enable_fast_install=no
17285 elif test "$shlibpath_overrides_runpath" = yes ||
17286 test "$enable_shared" = no; then
17287 # Fast installation is not necessary
17288 enable_fast_install=needless
17293 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17294 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17295 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17296 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17297 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17298 echo "$as_me:$LINENO: result: yes" >&5
17299 echo "${ECHO_T}yes" >&6
17301 # FIXME - insert some real tests, host_os isn't really good enough
17304 if test -n "$STRIP" ; then
17305 striplib="$STRIP -x"
17306 echo "$as_me:$LINENO: result: yes" >&5
17307 echo "${ECHO_T}yes" >&6
17309 echo "$as_me:$LINENO: result: no" >&5
17310 echo "${ECHO_T}no" >&6
17314 echo "$as_me:$LINENO: result: no" >&5
17315 echo "${ECHO_T}no" >&6
17320 if test "x$enable_dlopen" != xyes; then
17321 enable_dlopen=unknown
17322 enable_dlopen_self=unknown
17323 enable_dlopen_self_static=unknown
17330 lt_cv_dlopen="load_add_on"
17332 lt_cv_dlopen_self=yes
17336 lt_cv_dlopen="LoadLibrary"
17341 lt_cv_dlopen="dlopen"
17346 # if libdl is installed we need to link against it
17347 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17348 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17349 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17350 echo $ECHO_N "(cached) $ECHO_C" >&6
17352 ac_check_lib_save_LIBS=$LIBS
17354 cat >conftest.$ac_ext <<_ACEOF
17357 cat confdefs.h >>conftest.$ac_ext
17358 cat >>conftest.$ac_ext <<_ACEOF
17359 /* end confdefs.h. */
17361 /* Override any gcc2 internal prototype to avoid an error. */
17365 /* We use char because int might match the return type of a gcc2
17366 builtin and then its argument prototype would still apply. */
17376 rm -f conftest.$ac_objext conftest$ac_exeext
17377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17378 (eval $ac_link) 2>conftest.er1
17380 grep -v '^ *+' conftest.er1 >conftest.err
17382 cat conftest.err >&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } &&
17385 { ac_try='test -z "$ac_cxx_werror_flag"
17386 || test ! -s conftest.err'
17387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17388 (eval $ac_try) 2>&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); }; } &&
17392 { ac_try='test -s conftest$ac_exeext'
17393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394 (eval $ac_try) 2>&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); }; }; then
17398 ac_cv_lib_dl_dlopen=yes
17400 echo "$as_me: failed program was:" >&5
17401 sed 's/^/| /' conftest.$ac_ext >&5
17403 ac_cv_lib_dl_dlopen=no
17405 rm -f conftest.err conftest.$ac_objext \
17406 conftest$ac_exeext conftest.$ac_ext
17407 LIBS=$ac_check_lib_save_LIBS
17409 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17410 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17411 if test $ac_cv_lib_dl_dlopen = yes; then
17412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17415 lt_cv_dlopen="dyld"
17417 lt_cv_dlopen_self=yes
17424 echo "$as_me:$LINENO: checking for shl_load" >&5
17425 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17426 if test "${ac_cv_func_shl_load+set}" = set; then
17427 echo $ECHO_N "(cached) $ECHO_C" >&6
17429 cat >conftest.$ac_ext <<_ACEOF
17432 cat confdefs.h >>conftest.$ac_ext
17433 cat >>conftest.$ac_ext <<_ACEOF
17434 /* end confdefs.h. */
17435 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17437 #define shl_load innocuous_shl_load
17439 /* System header to define __stub macros and hopefully few prototypes,
17440 which can conflict with char shl_load (); below.
17441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17442 <limits.h> exists even on freestanding compilers. */
17445 # include <limits.h>
17447 # include <assert.h>
17452 /* Override any gcc2 internal prototype to avoid an error. */
17457 /* We use char because int might match the return type of a gcc2
17458 builtin and then its argument prototype would still apply. */
17460 /* The GNU C library defines this for functions which it implements
17461 to always fail with ENOSYS. Some functions are actually named
17462 something starting with __ and the normal name is an alias. */
17463 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17466 char (*f) () = shl_load;
17475 return f != shl_load;
17480 rm -f conftest.$ac_objext conftest$ac_exeext
17481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17482 (eval $ac_link) 2>conftest.er1
17484 grep -v '^ *+' conftest.er1 >conftest.err
17486 cat conftest.err >&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
17489 { ac_try='test -z "$ac_cxx_werror_flag"
17490 || test ! -s conftest.err'
17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492 (eval $ac_try) 2>&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest$ac_exeext'
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 ac_cv_func_shl_load=yes
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 ac_cv_func_shl_load=no
17509 rm -f conftest.err conftest.$ac_objext \
17510 conftest$ac_exeext conftest.$ac_ext
17512 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17513 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17514 if test $ac_cv_func_shl_load = yes; then
17515 lt_cv_dlopen="shl_load"
17517 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17518 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17519 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17522 ac_check_lib_save_LIBS=$LIBS
17524 cat >conftest.$ac_ext <<_ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h. */
17531 /* Override any gcc2 internal prototype to avoid an error. */
17535 /* We use char because int might match the return type of a gcc2
17536 builtin and then its argument prototype would still apply. */
17546 rm -f conftest.$ac_objext conftest$ac_exeext
17547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17548 (eval $ac_link) 2>conftest.er1
17550 grep -v '^ *+' conftest.er1 >conftest.err
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
17555 { ac_try='test -z "$ac_cxx_werror_flag"
17556 || test ! -s conftest.err'
17557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; } &&
17562 { ac_try='test -s conftest$ac_exeext'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 ac_cv_lib_dld_shl_load=yes
17570 echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17573 ac_cv_lib_dld_shl_load=no
17575 rm -f conftest.err conftest.$ac_objext \
17576 conftest$ac_exeext conftest.$ac_ext
17577 LIBS=$ac_check_lib_save_LIBS
17579 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17580 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17581 if test $ac_cv_lib_dld_shl_load = yes; then
17582 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17584 echo "$as_me:$LINENO: checking for dlopen" >&5
17585 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17586 if test "${ac_cv_func_dlopen+set}" = set; then
17587 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 cat >conftest.$ac_ext <<_ACEOF
17592 cat confdefs.h >>conftest.$ac_ext
17593 cat >>conftest.$ac_ext <<_ACEOF
17594 /* end confdefs.h. */
17595 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17597 #define dlopen innocuous_dlopen
17599 /* System header to define __stub macros and hopefully few prototypes,
17600 which can conflict with char dlopen (); below.
17601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17602 <limits.h> exists even on freestanding compilers. */
17605 # include <limits.h>
17607 # include <assert.h>
17612 /* Override any gcc2 internal prototype to avoid an error. */
17617 /* We use char because int might match the return type of a gcc2
17618 builtin and then its argument prototype would still apply. */
17620 /* The GNU C library defines this for functions which it implements
17621 to always fail with ENOSYS. Some functions are actually named
17622 something starting with __ and the normal name is an alias. */
17623 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17626 char (*f) () = dlopen;
17635 return f != dlopen;
17640 rm -f conftest.$ac_objext conftest$ac_exeext
17641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17642 (eval $ac_link) 2>conftest.er1
17644 grep -v '^ *+' conftest.er1 >conftest.err
17646 cat conftest.err >&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } &&
17649 { ac_try='test -z "$ac_cxx_werror_flag"
17650 || test ! -s conftest.err'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; } &&
17656 { ac_try='test -s conftest$ac_exeext'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; }; then
17662 ac_cv_func_dlopen=yes
17664 echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17667 ac_cv_func_dlopen=no
17669 rm -f conftest.err conftest.$ac_objext \
17670 conftest$ac_exeext conftest.$ac_ext
17672 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17673 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17674 if test $ac_cv_func_dlopen = yes; then
17675 lt_cv_dlopen="dlopen"
17677 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17678 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17679 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17682 ac_check_lib_save_LIBS=$LIBS
17684 cat >conftest.$ac_ext <<_ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h. */
17691 /* Override any gcc2 internal prototype to avoid an error. */
17695 /* We use char because int might match the return type of a gcc2
17696 builtin and then its argument prototype would still apply. */
17706 rm -f conftest.$ac_objext conftest$ac_exeext
17707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17708 (eval $ac_link) 2>conftest.er1
17710 grep -v '^ *+' conftest.er1 >conftest.err
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_cxx_werror_flag"
17716 || test ! -s conftest.err'
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest$ac_exeext'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 ac_cv_lib_dl_dlopen=yes
17730 echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17733 ac_cv_lib_dl_dlopen=no
17735 rm -f conftest.err conftest.$ac_objext \
17736 conftest$ac_exeext conftest.$ac_ext
17737 LIBS=$ac_check_lib_save_LIBS
17739 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17740 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17741 if test $ac_cv_lib_dl_dlopen = yes; then
17742 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17744 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17745 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17746 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17747 echo $ECHO_N "(cached) $ECHO_C" >&6
17749 ac_check_lib_save_LIBS=$LIBS
17750 LIBS="-lsvld $LIBS"
17751 cat >conftest.$ac_ext <<_ACEOF
17754 cat confdefs.h >>conftest.$ac_ext
17755 cat >>conftest.$ac_ext <<_ACEOF
17756 /* end confdefs.h. */
17758 /* Override any gcc2 internal prototype to avoid an error. */
17762 /* We use char because int might match the return type of a gcc2
17763 builtin and then its argument prototype would still apply. */
17773 rm -f conftest.$ac_objext conftest$ac_exeext
17774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17775 (eval $ac_link) 2>conftest.er1
17777 grep -v '^ *+' conftest.er1 >conftest.err
17779 cat conftest.err >&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } &&
17782 { ac_try='test -z "$ac_cxx_werror_flag"
17783 || test ! -s conftest.err'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; } &&
17789 { ac_try='test -s conftest$ac_exeext'
17790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791 (eval $ac_try) 2>&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; }; then
17795 ac_cv_lib_svld_dlopen=yes
17797 echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17800 ac_cv_lib_svld_dlopen=no
17802 rm -f conftest.err conftest.$ac_objext \
17803 conftest$ac_exeext conftest.$ac_ext
17804 LIBS=$ac_check_lib_save_LIBS
17806 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17807 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17808 if test $ac_cv_lib_svld_dlopen = yes; then
17809 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17811 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17812 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17813 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17816 ac_check_lib_save_LIBS=$LIBS
17818 cat >conftest.$ac_ext <<_ACEOF
17821 cat confdefs.h >>conftest.$ac_ext
17822 cat >>conftest.$ac_ext <<_ACEOF
17823 /* end confdefs.h. */
17825 /* Override any gcc2 internal prototype to avoid an error. */
17829 /* We use char because int might match the return type of a gcc2
17830 builtin and then its argument prototype would still apply. */
17840 rm -f conftest.$ac_objext conftest$ac_exeext
17841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17842 (eval $ac_link) 2>conftest.er1
17844 grep -v '^ *+' conftest.er1 >conftest.err
17846 cat conftest.err >&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } &&
17849 { ac_try='test -z "$ac_cxx_werror_flag"
17850 || test ! -s conftest.err'
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; } &&
17856 { ac_try='test -s conftest$ac_exeext'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; }; then
17862 ac_cv_lib_dld_dld_link=yes
17864 echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17867 ac_cv_lib_dld_dld_link=no
17869 rm -f conftest.err conftest.$ac_objext \
17870 conftest$ac_exeext conftest.$ac_ext
17871 LIBS=$ac_check_lib_save_LIBS
17873 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17874 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17875 if test $ac_cv_lib_dld_dld_link = yes; then
17876 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17897 if test "x$lt_cv_dlopen" != xno; then
17903 case $lt_cv_dlopen in
17905 save_CPPFLAGS="$CPPFLAGS"
17906 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17908 save_LDFLAGS="$LDFLAGS"
17909 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17912 LIBS="$lt_cv_dlopen_libs $LIBS"
17914 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17915 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17916 if test "${lt_cv_dlopen_self+set}" = set; then
17917 echo $ECHO_N "(cached) $ECHO_C" >&6
17919 if test "$cross_compiling" = yes; then :
17920 lt_cv_dlopen_self=cross
17922 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17923 lt_status=$lt_dlunknown
17924 cat > conftest.$ac_ext <<EOF
17925 #line 17925 "configure"
17926 #include "confdefs.h"
17935 # define LT_DLGLOBAL RTLD_GLOBAL
17938 # define LT_DLGLOBAL DL_GLOBAL
17940 # define LT_DLGLOBAL 0
17944 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17945 find out it does not work in some platform. */
17946 #ifndef LT_DLLAZY_OR_NOW
17948 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17951 # define LT_DLLAZY_OR_NOW DL_LAZY
17954 # define LT_DLLAZY_OR_NOW RTLD_NOW
17957 # define LT_DLLAZY_OR_NOW DL_NOW
17959 # define LT_DLLAZY_OR_NOW 0
17967 extern "C" void exit (int);
17970 void fnord() { int i=42;}
17973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17974 int status = $lt_dlunknown;
17978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17979 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17980 /* dlclose (self); */
17986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17987 (eval $ac_link) 2>&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17991 (./conftest; exit; ) 2>/dev/null
17993 case x$lt_status in
17994 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17995 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17996 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17999 # compilation failed
18000 lt_cv_dlopen_self=no
18007 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18008 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18010 if test "x$lt_cv_dlopen_self" = xyes; then
18011 LDFLAGS="$LDFLAGS $link_static_flag"
18012 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18013 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18014 if test "${lt_cv_dlopen_self_static+set}" = set; then
18015 echo $ECHO_N "(cached) $ECHO_C" >&6
18017 if test "$cross_compiling" = yes; then :
18018 lt_cv_dlopen_self_static=cross
18020 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18021 lt_status=$lt_dlunknown
18022 cat > conftest.$ac_ext <<EOF
18023 #line 18023 "configure"
18024 #include "confdefs.h"
18033 # define LT_DLGLOBAL RTLD_GLOBAL
18036 # define LT_DLGLOBAL DL_GLOBAL
18038 # define LT_DLGLOBAL 0
18042 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18043 find out it does not work in some platform. */
18044 #ifndef LT_DLLAZY_OR_NOW
18046 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18049 # define LT_DLLAZY_OR_NOW DL_LAZY
18052 # define LT_DLLAZY_OR_NOW RTLD_NOW
18055 # define LT_DLLAZY_OR_NOW DL_NOW
18057 # define LT_DLLAZY_OR_NOW 0
18065 extern "C" void exit (int);
18068 void fnord() { int i=42;}
18071 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18072 int status = $lt_dlunknown;
18076 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18077 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18078 /* dlclose (self); */
18084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18085 (eval $ac_link) 2>&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18089 (./conftest; exit; ) 2>/dev/null
18091 case x$lt_status in
18092 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18093 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18094 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18097 # compilation failed
18098 lt_cv_dlopen_self_static=no
18105 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18106 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18109 CPPFLAGS="$save_CPPFLAGS"
18110 LDFLAGS="$save_LDFLAGS"
18115 case $lt_cv_dlopen_self in
18116 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18117 *) enable_dlopen_self=unknown ;;
18120 case $lt_cv_dlopen_self_static in
18121 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18122 *) enable_dlopen_self_static=unknown ;;
18127 # The else clause should only fire when bootstrapping the
18128 # libtool distribution, otherwise you forgot to ship ltmain.sh
18129 # with your package, and you will get complaints that there are
18130 # no rules to generate ltmain.sh.
18131 if test -f "$ltmain"; then
18132 # See if we are running on zsh, and set the options which allow our commands through
18133 # without removal of \ escapes.
18134 if test -n "${ZSH_VERSION+set}" ; then
18135 setopt NO_GLOB_SUBST
18137 # Now quote all the things that may contain metacharacters while being
18138 # careful not to overquote the AC_SUBSTed values. We take copies of the
18139 # variables and quote the copies for generation of the libtool script.
18140 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18142 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18143 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18144 deplibs_check_method reload_flag reload_cmds need_locks \
18145 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18146 lt_cv_sys_global_symbol_to_c_name_address \
18147 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18148 old_postinstall_cmds old_postuninstall_cmds \
18152 lt_prog_compiler_wl_CXX \
18153 lt_prog_compiler_pic_CXX \
18154 lt_prog_compiler_static_CXX \
18155 lt_prog_compiler_no_builtin_flag_CXX \
18156 export_dynamic_flag_spec_CXX \
18157 thread_safe_flag_spec_CXX \
18158 whole_archive_flag_spec_CXX \
18159 enable_shared_with_static_runtimes_CXX \
18160 old_archive_cmds_CXX \
18161 old_archive_from_new_cmds_CXX \
18162 predep_objects_CXX \
18163 postdep_objects_CXX \
18166 compiler_lib_search_path_CXX \
18168 archive_expsym_cmds_CXX \
18169 postinstall_cmds_CXX \
18170 postuninstall_cmds_CXX \
18171 old_archive_from_expsyms_cmds_CXX \
18172 allow_undefined_flag_CXX \
18173 no_undefined_flag_CXX \
18174 export_symbols_cmds_CXX \
18175 hardcode_libdir_flag_spec_CXX \
18176 hardcode_libdir_flag_spec_ld_CXX \
18177 hardcode_libdir_separator_CXX \
18178 hardcode_automatic_CXX \
18180 module_expsym_cmds_CXX \
18181 lt_cv_prog_compiler_c_o_CXX \
18182 exclude_expsyms_CXX \
18183 include_expsyms_CXX; do
18186 old_archive_cmds_CXX | \
18187 old_archive_from_new_cmds_CXX | \
18188 archive_cmds_CXX | \
18189 archive_expsym_cmds_CXX | \
18190 module_cmds_CXX | \
18191 module_expsym_cmds_CXX | \
18192 old_archive_from_expsyms_cmds_CXX | \
18193 export_symbols_cmds_CXX | \
18194 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18195 postinstall_cmds | postuninstall_cmds | \
18196 old_postinstall_cmds | old_postuninstall_cmds | \
18197 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18198 # Double-quote double-evaled strings.
18199 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18202 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18208 *'\$0 --fallback-echo"')
18209 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18215 cat <<__EOF__ >> "$cfgfile"
18216 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18218 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18220 # Shell to use when invoking shell scripts.
18223 # Whether or not to build shared libraries.
18224 build_libtool_libs=$enable_shared
18226 # Whether or not to build static libraries.
18227 build_old_libs=$enable_static
18229 # Whether or not to add -lc for building shared libraries.
18230 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18232 # Whether or not to disallow shared libs when runtime libs are static
18233 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18235 # Whether or not to optimize for fast installation.
18236 fast_install=$enable_fast_install
18239 host_alias=$host_alias
18242 # An echo program that does not interpret backslashes.
18247 AR_FLAGS=$lt_AR_FLAGS
18252 # A language-specific compiler.
18253 CC=$lt_compiler_CXX
18255 # Is the compiler the GNU C compiler?
18261 # The linker used to build libraries.
18264 # Whether we need hard or soft links.
18267 # A BSD-compatible nm program.
18270 # A symbol stripping program
18273 # Used to examine libraries when file_magic_cmd begins "file"
18274 MAGIC_CMD=$MAGIC_CMD
18276 # Used on cygwin: DLL creation program.
18279 # Used on cygwin: object dumper.
18282 # Used on cygwin: assembler.
18285 # The name of the directory that contains temporary libtool files.
18288 # How to create reloadable object files.
18289 reload_flag=$lt_reload_flag
18290 reload_cmds=$lt_reload_cmds
18292 # How to pass a linker flag through the compiler.
18293 wl=$lt_lt_prog_compiler_wl_CXX
18295 # Object file suffix (normally "o").
18296 objext="$ac_objext"
18298 # Old archive suffix (normally "a").
18301 # Shared library suffix (normally ".so").
18302 shrext_cmds='$shrext_cmds'
18304 # Executable file suffix (normally "").
18307 # Additional compiler flags for building library objects.
18308 pic_flag=$lt_lt_prog_compiler_pic_CXX
18311 # What is the maximum length of a command?
18312 max_cmd_len=$lt_cv_sys_max_cmd_len
18314 # Does compiler simultaneously support -c and -o options?
18315 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18317 # Must we lock files when doing compilation ?
18318 need_locks=$lt_need_locks
18320 # Do we need the lib prefix for modules?
18321 need_lib_prefix=$need_lib_prefix
18323 # Do we need a version for libraries?
18324 need_version=$need_version
18326 # Whether dlopen is supported.
18327 dlopen_support=$enable_dlopen
18329 # Whether dlopen of programs is supported.
18330 dlopen_self=$enable_dlopen_self
18332 # Whether dlopen of statically linked programs is supported.
18333 dlopen_self_static=$enable_dlopen_self_static
18335 # Compiler flag to prevent dynamic linking.
18336 link_static_flag=$lt_lt_prog_compiler_static_CXX
18338 # Compiler flag to turn off builtin functions.
18339 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18341 # Compiler flag to allow reflexive dlopens.
18342 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18344 # Compiler flag to generate shared objects directly from archives.
18345 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18347 # Compiler flag to generate thread-safe objects.
18348 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18350 # Library versioning type.
18351 version_type=$version_type
18353 # Format of library name prefix.
18354 libname_spec=$lt_libname_spec
18356 # List of archive names. First name is the real one, the rest are links.
18357 # The last name is the one that the linker finds with -lNAME.
18358 library_names_spec=$lt_library_names_spec
18360 # The coded name of the library, if different from the real name.
18361 soname_spec=$lt_soname_spec
18363 # Commands used to build and install an old-style archive.
18365 old_archive_cmds=$lt_old_archive_cmds_CXX
18366 old_postinstall_cmds=$lt_old_postinstall_cmds
18367 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18369 # Create an old-style archive from a shared archive.
18370 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18372 # Create a temporary old-style archive to link instead of a shared archive.
18373 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18375 # Commands used to build and install a shared archive.
18376 archive_cmds=$lt_archive_cmds_CXX
18377 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18378 postinstall_cmds=$lt_postinstall_cmds
18379 postuninstall_cmds=$lt_postuninstall_cmds
18381 # Commands used to build a loadable module (assumed same as above if empty)
18382 module_cmds=$lt_module_cmds_CXX
18383 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18385 # Commands to strip libraries.
18386 old_striplib=$lt_old_striplib
18387 striplib=$lt_striplib
18389 # Dependencies to place before the objects being linked to create a
18391 predep_objects=$lt_predep_objects_CXX
18393 # Dependencies to place after the objects being linked to create a
18395 postdep_objects=$lt_postdep_objects_CXX
18397 # Dependencies to place before the objects being linked to create a
18399 predeps=$lt_predeps_CXX
18401 # Dependencies to place after the objects being linked to create a
18403 postdeps=$lt_postdeps_CXX
18405 # The library search path used internally by the compiler when linking
18406 # a shared library.
18407 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18409 # Method to check whether dependent libraries are shared objects.
18410 deplibs_check_method=$lt_deplibs_check_method
18412 # Command to use when deplibs_check_method == file_magic.
18413 file_magic_cmd=$lt_file_magic_cmd
18415 # Flag that allows shared libraries with undefined symbols to be built.
18416 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18418 # Flag that forces no undefined symbols.
18419 no_undefined_flag=$lt_no_undefined_flag_CXX
18421 # Commands used to finish a libtool library installation in a directory.
18422 finish_cmds=$lt_finish_cmds
18424 # Same as above, but a single script fragment to be evaled but not shown.
18425 finish_eval=$lt_finish_eval
18427 # Take the output of nm and produce a listing of raw symbols and C names.
18428 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18430 # Transform the output of nm in a proper C declaration
18431 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18433 # Transform the output of nm in a C name address pair
18434 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18436 # This is the shared library runtime path variable.
18437 runpath_var=$runpath_var
18439 # This is the shared library path variable.
18440 shlibpath_var=$shlibpath_var
18442 # Is shlibpath searched before the hard-coded library search path?
18443 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18445 # How to hardcode a shared library path into an executable.
18446 hardcode_action=$hardcode_action_CXX
18448 # Whether we should hardcode library paths into libraries.
18449 hardcode_into_libs=$hardcode_into_libs
18451 # Flag to hardcode \$libdir into a binary during linking.
18452 # This must work even if \$libdir does not exist.
18453 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18455 # If ld is used when linking, flag to hardcode \$libdir into
18456 # a binary during linking. This must work even if \$libdir does
18458 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18460 # Whether we need a single -rpath flag with a separated argument.
18461 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18463 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18464 # resulting binary.
18465 hardcode_direct=$hardcode_direct_CXX
18467 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18468 # resulting binary.
18469 hardcode_minus_L=$hardcode_minus_L_CXX
18471 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18472 # the resulting binary.
18473 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18475 # Set to yes if building a shared library automatically hardcodes DIR into the library
18476 # and all subsequent libraries and executables linked against it.
18477 hardcode_automatic=$hardcode_automatic_CXX
18479 # Variables whose values should be saved in libtool wrapper scripts and
18480 # restored at relink time.
18481 variables_saved_for_relink="$variables_saved_for_relink"
18483 # Whether libtool must link a program against all its dependency libraries.
18484 link_all_deplibs=$link_all_deplibs_CXX
18486 # Compile-time system search path for libraries
18487 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18489 # Run-time system search path for libraries
18490 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18492 # Fix the shell variable \$srcfile for the compiler.
18493 fix_srcfile_path="$fix_srcfile_path_CXX"
18495 # Set to yes if exported symbols are required.
18496 always_export_symbols=$always_export_symbols_CXX
18498 # The commands to list exported symbols.
18499 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18501 # The commands to extract the exported symbol list from a shared archive.
18502 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18504 # Symbols that should not be listed in the preloaded symbols.
18505 exclude_expsyms=$lt_exclude_expsyms_CXX
18507 # Symbols that must always be exported.
18508 include_expsyms=$lt_include_expsyms_CXX
18510 # ### END LIBTOOL TAG CONFIG: $tagname
18516 # If there is no Makefile yet, we rely on a make rule to execute
18517 # `config.status --recheck' to rerun these tests and create the
18518 # libtool script then.
18519 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18520 if test -f "$ltmain_in"; then
18521 test -f Makefile && make "$ltmain"
18527 ac_cpp='$CPP $CPPFLAGS'
18528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18536 with_gnu_ldcxx=$with_gnu_ld
18537 with_gnu_ld=$lt_save_with_gnu_ld
18538 lt_cv_path_LDCXX=$lt_cv_path_LD
18539 lt_cv_path_LD=$lt_save_path_LD
18540 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18541 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18549 if test -n "$F77" && test "X$F77" != "Xno"; then
18552 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18553 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18554 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18557 archive_cmds_need_lc_F77=no
18558 allow_undefined_flag_F77=
18559 always_export_symbols_F77=no
18560 archive_expsym_cmds_F77=
18561 export_dynamic_flag_spec_F77=
18562 hardcode_direct_F77=no
18563 hardcode_libdir_flag_spec_F77=
18564 hardcode_libdir_flag_spec_ld_F77=
18565 hardcode_libdir_separator_F77=
18566 hardcode_minus_L_F77=no
18567 hardcode_automatic_F77=no
18569 module_expsym_cmds_F77=
18570 link_all_deplibs_F77=unknown
18571 old_archive_cmds_F77=$old_archive_cmds
18572 no_undefined_flag_F77=
18573 whole_archive_flag_spec_F77=
18574 enable_shared_with_static_runtimes_F77=no
18576 # Source file extension for f77 test sources.
18579 # Object file extension for compiled f77 test sources.
18583 # Code to be used in simple compile tests
18584 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18586 # Code to be used in simple link tests
18587 lt_simple_link_test_code=" program t\n end\n"
18589 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18591 # If no C compiler was specified, use CC.
18594 # Allow CC to be a program name with arguments.
18598 # Allow CC to be a program name with arguments.
18603 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18605 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18606 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18607 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18608 echo "${ECHO_T}$can_build_shared" >&6
18610 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18611 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18612 test "$can_build_shared" = "no" && enable_shared=no
18614 # On AIX, shared libraries and static libraries use the same namespace, and
18615 # are all built from PIC.
18618 test "$enable_shared" = yes && enable_static=no
18619 if test -n "$RANLIB"; then
18620 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18621 postinstall_cmds='$RANLIB $lib'
18625 test "$enable_shared" = yes && enable_static=no
18628 echo "$as_me:$LINENO: result: $enable_shared" >&5
18629 echo "${ECHO_T}$enable_shared" >&6
18631 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18632 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18633 # Make sure either enable_shared or enable_static is yes.
18634 test "$enable_shared" = yes || enable_static=yes
18635 echo "$as_me:$LINENO: result: $enable_static" >&5
18636 echo "${ECHO_T}$enable_static" >&6
18638 test "$ld_shlibs_F77" = no && can_build_shared=no
18643 lt_prog_compiler_wl_F77=
18644 lt_prog_compiler_pic_F77=
18645 lt_prog_compiler_static_F77=
18647 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18648 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18650 if test "$GCC" = yes; then
18651 lt_prog_compiler_wl_F77='-Wl,'
18652 lt_prog_compiler_static_F77='-static'
18656 # All AIX code is PIC.
18657 if test "$host_cpu" = ia64; then
18658 # AIX 5 now supports IA64 processor
18659 lt_prog_compiler_static_F77='-Bstatic'
18664 # FIXME: we need at least 68020 code to build shared libraries, but
18665 # adding the `-m68020' flag to GCC prevents building anything better,
18667 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18670 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18671 # PIC is the default for these OSes.
18674 mingw* | pw32* | os2*)
18675 # This hack is so that the source file can tell whether it is being
18676 # built for inclusion in a dll (and should export symbols for example).
18677 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18680 darwin* | rhapsody*)
18681 # PIC is the default on this platform
18682 # Common symbols not allowed in MH_DYLIB files
18683 lt_prog_compiler_pic_F77='-fno-common'
18687 # Just because we use GCC doesn't mean we suddenly get shared libraries
18688 # on systems that don't support them.
18689 lt_prog_compiler_can_build_shared_F77=no
18694 if test -d /usr/nec; then
18695 lt_prog_compiler_pic_F77=-Kconform_pic
18700 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18701 # not for PA HP-UX.
18702 case "$host_cpu" in
18707 lt_prog_compiler_pic_F77='-fPIC'
18713 lt_prog_compiler_pic_F77='-fPIC'
18717 # PORTME Check for flag to pass linker flags through the system compiler.
18720 lt_prog_compiler_wl_F77='-Wl,'
18721 if test "$host_cpu" = ia64; then
18722 # AIX 5 now supports IA64 processor
18723 lt_prog_compiler_static_F77='-Bstatic'
18725 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18729 # PIC is the default on this platform
18730 # Common symbols not allowed in MH_DYLIB files
18731 case "$cc_basename" in
18733 lt_prog_compiler_pic_F77='-qnocommon'
18734 lt_prog_compiler_wl_F77='-Wl,'
18739 mingw* | pw32* | os2*)
18740 # This hack is so that the source file can tell whether it is being
18741 # built for inclusion in a dll (and should export symbols for example).
18742 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18745 hpux9* | hpux10* | hpux11*)
18746 lt_prog_compiler_wl_F77='-Wl,'
18747 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18748 # not for PA HP-UX.
18749 case "$host_cpu" in
18754 lt_prog_compiler_pic_F77='+Z'
18757 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18758 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18761 irix5* | irix6* | nonstopux*)
18762 lt_prog_compiler_wl_F77='-Wl,'
18763 # PIC (with -KPIC) is the default.
18764 lt_prog_compiler_static_F77='-non_shared'
18768 lt_prog_compiler_pic_F77='-KPIC'
18769 lt_prog_compiler_static_F77='-Bstatic'
18775 lt_prog_compiler_wl_F77='-Wl,'
18776 lt_prog_compiler_pic_F77='-KPIC'
18777 lt_prog_compiler_static_F77='-static'
18780 lt_prog_compiler_wl_F77='-Wl,'
18781 # All Alpha code is PIC.
18782 lt_prog_compiler_static_F77='-non_shared'
18787 osf3* | osf4* | osf5*)
18788 lt_prog_compiler_wl_F77='-Wl,'
18789 # All OSF/1 code is PIC.
18790 lt_prog_compiler_static_F77='-non_shared'
18794 lt_prog_compiler_pic_F77='-Kpic'
18795 lt_prog_compiler_static_F77='-dn'
18799 lt_prog_compiler_wl_F77='-Wl,'
18800 lt_prog_compiler_pic_F77='-KPIC'
18801 lt_prog_compiler_static_F77='-Bstatic'
18805 lt_prog_compiler_wl_F77='-Qoption ld '
18806 lt_prog_compiler_pic_F77='-PIC'
18807 lt_prog_compiler_static_F77='-Bstatic'
18810 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18811 lt_prog_compiler_wl_F77='-Wl,'
18812 lt_prog_compiler_pic_F77='-KPIC'
18813 lt_prog_compiler_static_F77='-Bstatic'
18817 if test -d /usr/nec ;then
18818 lt_prog_compiler_pic_F77='-Kconform_pic'
18819 lt_prog_compiler_static_F77='-Bstatic'
18824 lt_prog_compiler_pic_F77='-pic'
18825 lt_prog_compiler_static_F77='-Bstatic'
18829 lt_prog_compiler_can_build_shared_F77=no
18834 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18835 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18838 # Check to make sure the PIC flag actually works.
18840 if test -n "$lt_prog_compiler_pic_F77"; then
18842 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18843 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18844 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
18847 lt_prog_compiler_pic_works_F77=no
18848 ac_outfile=conftest.$ac_objext
18849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18850 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18851 # Insert the option either (1) after the last *FLAGS variable, or
18852 # (2) before a word containing "conftest.", or (3) at the end.
18853 # Note that $ac_compile itself does not contain backslashes and begins
18854 # with a dollar sign (not a hyphen), so the echo should work correctly.
18855 # The option is referenced via a variable to avoid confusing sed.
18856 lt_compile=`echo "$ac_compile" | $SED \
18857 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18859 -e 's:$: $lt_compiler_flag:'`
18860 (eval echo "\"\$as_me:18860: $lt_compile\"" >&5)
18861 (eval "$lt_compile" 2>conftest.err)
18863 cat conftest.err >&5
18864 echo "$as_me:18864: \$? = $ac_status" >&5
18865 if (exit $ac_status) && test -s "$ac_outfile"; then
18866 # The compiler can only warn and ignore the option if not recognized
18867 # So say no if there are warnings
18868 if test ! -s conftest.err; then
18869 lt_prog_compiler_pic_works_F77=yes
18875 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18876 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18878 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18879 case $lt_prog_compiler_pic_F77 in
18881 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18884 lt_prog_compiler_pic_F77=
18885 lt_prog_compiler_can_build_shared_F77=no
18890 # For platforms which do not support PIC, -DPIC is meaningless:
18892 lt_prog_compiler_pic_F77=
18895 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18899 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18900 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18901 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18904 lt_cv_prog_compiler_c_o_F77=no
18905 $rm -r conftest 2>/dev/null
18909 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18911 lt_compiler_flag="-o out/conftest2.$ac_objext"
18912 # Insert the option either (1) after the last *FLAGS variable, or
18913 # (2) before a word containing "conftest.", or (3) at the end.
18914 # Note that $ac_compile itself does not contain backslashes and begins
18915 # with a dollar sign (not a hyphen), so the echo should work correctly.
18916 lt_compile=`echo "$ac_compile" | $SED \
18917 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18919 -e 's:$: $lt_compiler_flag:'`
18920 (eval echo "\"\$as_me:18920: $lt_compile\"" >&5)
18921 (eval "$lt_compile" 2>out/conftest.err)
18923 cat out/conftest.err >&5
18924 echo "$as_me:18924: \$? = $ac_status" >&5
18925 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18927 # The compiler can only warn and ignore the option if not recognized
18928 # So say no if there are warnings
18929 if test ! -s out/conftest.err; then
18930 lt_cv_prog_compiler_c_o_F77=yes
18935 # SGI C++ compiler will create directory out/ii_files/ for
18936 # template instantiation
18937 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18938 $rm out/* && rmdir out
18944 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18945 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18948 hard_links="nottested"
18949 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18950 # do not overwrite the value of need_locks provided by the user
18951 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18952 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18957 ln conftest.a conftest.b 2>&5 || hard_links=no
18958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18959 echo "$as_me:$LINENO: result: $hard_links" >&5
18960 echo "${ECHO_T}$hard_links" >&6
18961 if test "$hard_links" = no; then
18962 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18963 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18970 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18971 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18974 allow_undefined_flag_F77=
18975 enable_shared_with_static_runtimes_F77=no
18977 archive_expsym_cmds_F77=
18978 old_archive_From_new_cmds_F77=
18979 old_archive_from_expsyms_cmds_F77=
18980 export_dynamic_flag_spec_F77=
18981 whole_archive_flag_spec_F77=
18982 thread_safe_flag_spec_F77=
18983 hardcode_libdir_flag_spec_F77=
18984 hardcode_libdir_flag_spec_ld_F77=
18985 hardcode_libdir_separator_F77=
18986 hardcode_direct_F77=no
18987 hardcode_minus_L_F77=no
18988 hardcode_shlibpath_var_F77=unsupported
18989 link_all_deplibs_F77=unknown
18990 hardcode_automatic_F77=no
18992 module_expsym_cmds_F77=
18993 always_export_symbols_F77=no
18994 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18995 # include_expsyms should be a list of space-separated symbols to be *always*
18996 # included in the symbol list
18997 include_expsyms_F77=
18998 # exclude_expsyms can be an extended regexp of symbols to exclude
18999 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19000 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19001 # as well as any symbol that contains `d'.
19002 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19004 # platforms (ab)use it in PIC code, but their linkers get confused if
19005 # the symbol is explicitly referenced. Since portable code cannot
19006 # rely on this symbol name, it's probably fine to never include it in
19007 # preloaded symbol tables.
19008 extract_expsyms_cmds=
19011 cygwin* | mingw* | pw32*)
19012 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19013 # When not using gcc, we currently assume that we are using
19014 # Microsoft Visual C++.
19015 if test "$GCC" != yes; then
19025 if test "$with_gnu_ld" = yes; then
19026 # If archive_cmds runs LD, not CC, wlarc should be empty
19029 # See if GNU ld supports shared libraries.
19031 aix3* | aix4* | aix5*)
19032 # On AIX/PPC, the GNU linker is very broken
19033 if test "$host_cpu" != ia64; then
19037 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19038 *** to be unable to reliably create shared libraries on AIX.
19039 *** Therefore, libtool is disabling shared libraries support. If you
19040 *** really care for shared libraries, you may want to modify your PATH
19041 *** so that a non-GNU linker is found, and then restart.
19048 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)'
19049 hardcode_libdir_flag_spec_F77='-L$libdir'
19050 hardcode_minus_L_F77=yes
19052 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19053 # that the semantics of dynamic libraries on AmigaOS, at least up
19054 # to version 4, is to share data among multiple programs linked
19055 # with the same dynamic library. Since this doesn't match the
19056 # behavior of shared libraries on other platforms, we can't use
19062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19063 allow_undefined_flag_F77=unsupported
19064 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19065 # support --undefined. This deserves some investigation. FIXME
19066 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19072 cygwin* | mingw* | pw32*)
19073 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19074 # as there is no search path for DLLs.
19075 hardcode_libdir_flag_spec_F77='-L$libdir'
19076 allow_undefined_flag_F77=unsupported
19077 always_export_symbols_F77=no
19078 enable_shared_with_static_runtimes_F77=yes
19079 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19081 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19082 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19083 # If the export-symbols file already is a .def file (1st line
19084 # is EXPORTS), use it as is; otherwise, prepend...
19085 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19086 cp $export_symbols $output_objdir/$soname.def;
19088 echo EXPORTS > $output_objdir/$soname.def;
19089 cat $export_symbols >> $output_objdir/$soname.def;
19091 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19099 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19102 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19103 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19108 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19113 *** create shared libraries on Solaris systems. Therefore, libtool
19114 *** is disabling shared libraries support. We urge you to upgrade GNU
19115 *** binutils to release 2.9.1 or newer. Another option is to modify
19116 *** your PATH or compiler configuration so that the native linker is
19117 *** used, and then restart.
19120 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19121 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19122 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19129 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19131 hardcode_direct_F77=yes
19132 hardcode_shlibpath_var_F77=no
19136 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19137 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19138 archive_cmds_F77="$tmp_archive_cmds"
19139 supports_anon_versioning=no
19140 case `$LD -v 2>/dev/null` in
19141 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19142 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19143 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19144 *\ 2.11.*) ;; # other 2.11 versions
19145 *) supports_anon_versioning=yes ;;
19147 if test $supports_anon_versioning = yes; then
19148 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19150 $echo "local: *; };" >> $output_objdir/$libname.ver~
19151 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19153 archive_expsym_cmds_F77="$tmp_archive_cmds"
19161 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19162 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19163 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19170 if test "$ld_shlibs_F77" = yes; then
19171 runpath_var=LD_RUN_PATH
19172 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19173 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19174 # ancient GNU ld didn't support --whole-archive et. al.
19175 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19176 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19178 whole_archive_flag_spec_F77=
19182 # PORTME fill in a description of your system's linker (not GNU ld)
19185 allow_undefined_flag_F77=unsupported
19186 always_export_symbols_F77=yes
19187 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'
19188 # Note: this linker hardcodes the directories in LIBPATH if there
19189 # are no directories specified by -L.
19190 hardcode_minus_L_F77=yes
19191 if test "$GCC" = yes && test -z "$link_static_flag"; then
19192 # Neither direct hardcoding nor static linking is supported with a
19194 hardcode_direct_F77=unsupported
19199 if test "$host_cpu" = ia64; then
19200 # On IA64, the linker does run time linking by default, so we don't
19201 # have to do anything special.
19202 aix_use_runtimelinking=no
19203 exp_sym_flag='-Bexport'
19206 # If we're using GNU nm, then we don't want the "-C" option.
19207 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19208 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19209 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'
19211 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'
19213 aix_use_runtimelinking=no
19215 # Test if we are trying to use run time linking or normal
19216 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19217 # need to do runtime linking.
19218 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19219 for ld_flag in $LDFLAGS; do
19220 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19221 aix_use_runtimelinking=yes
19227 exp_sym_flag='-bexport'
19228 no_entry_flag='-bnoentry'
19231 # When large executables or shared objects are built, AIX ld can
19232 # have problems creating the table of contents. If linking a library
19233 # or program results in "error TOC overflow" add -mminimal-toc to
19234 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19235 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19237 archive_cmds_F77=''
19238 hardcode_direct_F77=yes
19239 hardcode_libdir_separator_F77=':'
19240 link_all_deplibs_F77=yes
19242 if test "$GCC" = yes; then
19243 case $host_os in aix4.012|aix4.012.*)
19244 # We only want to do this on AIX 4.2 and lower, the check
19245 # below for broken collect2 doesn't work under 4.3+
19246 collect2name=`${CC} -print-prog-name=collect2`
19247 if test -f "$collect2name" && \
19248 strings "$collect2name" | grep resolve_lib_name >/dev/null
19250 # We have reworked collect2
19251 hardcode_direct_F77=yes
19253 # We have old collect2
19254 hardcode_direct_F77=unsupported
19255 # It fails to find uninstalled libraries when the uninstalled
19256 # path is not listed in the libpath. Setting hardcode_minus_L
19257 # to unsupported forces relinking
19258 hardcode_minus_L_F77=yes
19259 hardcode_libdir_flag_spec_F77='-L$libdir'
19260 hardcode_libdir_separator_F77=
19263 shared_flag='-shared'
19266 if test "$host_cpu" = ia64; then
19267 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19268 # chokes on -Wl,-G. The following line is correct:
19271 if test "$aix_use_runtimelinking" = yes; then
19272 shared_flag='${wl}-G'
19274 shared_flag='${wl}-bM:SRE'
19279 # It seems that -bexpall does not export symbols beginning with
19280 # underscore (_), so it is better to generate a list of symbols to export.
19281 always_export_symbols_F77=yes
19282 if test "$aix_use_runtimelinking" = yes; then
19283 # Warning - without using the other runtime loading flags (-brtl),
19284 # -berok will link without error, but may produce a broken library.
19285 allow_undefined_flag_F77='-berok'
19286 # Determine the default libpath from the value encoded in an empty executable.
19287 cat >conftest.$ac_ext <<_ACEOF
19292 rm -f conftest.$ac_objext conftest$ac_exeext
19293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19294 (eval $ac_link) 2>conftest.er1
19296 grep -v '^ *+' conftest.er1 >conftest.err
19298 cat conftest.err >&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); } &&
19301 { ac_try='test -z "$ac_f77_werror_flag"
19302 || test ! -s conftest.err'
19303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304 (eval $ac_try) 2>&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; } &&
19308 { ac_try='test -s conftest$ac_exeext'
19309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310 (eval $ac_try) 2>&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); }; }; then
19315 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19317 # Check for a 64-bit object if we didn't find anything.
19318 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; }
19321 echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19325 rm -f conftest.err conftest.$ac_objext \
19326 conftest$ac_exeext conftest.$ac_ext
19327 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19329 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19330 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"
19332 if test "$host_cpu" = ia64; then
19333 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19334 allow_undefined_flag_F77="-z nodefs"
19335 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"
19337 # Determine the default libpath from the value encoded in an empty executable.
19338 cat >conftest.$ac_ext <<_ACEOF
19343 rm -f conftest.$ac_objext conftest$ac_exeext
19344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19345 (eval $ac_link) 2>conftest.er1
19347 grep -v '^ *+' conftest.er1 >conftest.err
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } &&
19352 { ac_try='test -z "$ac_f77_werror_flag"
19353 || test ! -s conftest.err'
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; } &&
19359 { ac_try='test -s conftest$ac_exeext'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19366 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19368 # Check for a 64-bit object if we didn't find anything.
19369 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; }
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19376 rm -f conftest.err conftest.$ac_objext \
19377 conftest$ac_exeext conftest.$ac_ext
19378 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19380 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19381 # Warning - without using the other run time loading flags,
19382 # -berok will link without error, but may produce a broken library.
19383 no_undefined_flag_F77=' ${wl}-bernotok'
19384 allow_undefined_flag_F77=' ${wl}-berok'
19385 # -bexpall does not export symbols beginning with underscore (_)
19386 always_export_symbols_F77=yes
19387 # Exported symbols can be pulled into shared objects from archives
19388 whole_archive_flag_spec_F77=' '
19389 archive_cmds_need_lc_F77=yes
19390 # This is similar to how AIX traditionally builds it's shared libraries.
19391 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'
19397 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)'
19398 hardcode_libdir_flag_spec_F77='-L$libdir'
19399 hardcode_minus_L_F77=yes
19400 # see comment about different semantics on the GNU ld section
19405 export_dynamic_flag_spec_F77=-rdynamic
19408 cygwin* | mingw* | pw32*)
19409 # When not using gcc, we currently assume that we are using
19410 # Microsoft Visual C++.
19411 # hardcode_libdir_flag_spec is actually meaningless, as there is
19412 # no search path for DLLs.
19413 hardcode_libdir_flag_spec_F77=' '
19414 allow_undefined_flag_F77=unsupported
19415 # Tell ltmain to make .lib files, not .a files.
19417 # Tell ltmain to make .dll files, not .so files.
19419 # FIXME: Setting linknames here is a bad hack.
19420 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19421 # The linker will automatically build a .lib file if we build a DLL.
19422 old_archive_From_new_cmds_F77='true'
19423 # FIXME: Should let the user specify the lib program.
19424 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19425 fix_srcfile_path='`cygpath -w "$srcfile"`'
19426 enable_shared_with_static_runtimes_F77=yes
19429 darwin* | rhapsody*)
19431 rhapsody* | darwin1.[012])
19432 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19435 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19436 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19438 case ${MACOSX_DEPLOYMENT_TARGET} in
19440 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19443 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19449 archive_cmds_need_lc_F77=no
19450 hardcode_direct_F77=no
19451 hardcode_automatic_F77=yes
19452 hardcode_shlibpath_var_F77=unsupported
19453 whole_archive_flag_spec_F77=''
19454 link_all_deplibs_F77=yes
19455 if test "$GCC" = yes ; then
19456 output_verbose_link_cmd='echo'
19457 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19458 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19459 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19460 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}'
19461 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}'
19463 case "$cc_basename" in
19465 output_verbose_link_cmd='echo'
19466 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $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 -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}'
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}'
19480 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19481 hardcode_libdir_flag_spec_F77='-L$libdir'
19482 hardcode_shlibpath_var_F77=no
19489 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19490 # support. Future versions do this automatically, but an explicit c++rt0.o
19491 # does not break anything, and helps significantly (at the cost of a little
19494 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19495 hardcode_libdir_flag_spec_F77='-R$libdir'
19496 hardcode_direct_F77=yes
19497 hardcode_shlibpath_var_F77=no
19500 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19502 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19503 hardcode_direct_F77=yes
19504 hardcode_minus_L_F77=yes
19505 hardcode_shlibpath_var_F77=no
19508 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19509 freebsd* | kfreebsd*-gnu)
19510 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19511 hardcode_libdir_flag_spec_F77='-R$libdir'
19512 hardcode_direct_F77=yes
19513 hardcode_shlibpath_var_F77=no
19517 if test "$GCC" = yes; then
19518 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'
19520 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'
19522 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19523 hardcode_libdir_separator_F77=:
19524 hardcode_direct_F77=yes
19526 # hardcode_minus_L: Not really in the search PATH,
19527 # but as the default location of the library.
19528 hardcode_minus_L_F77=yes
19529 export_dynamic_flag_spec_F77='${wl}-E'
19533 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19534 case "$host_cpu" in
19536 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19539 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19543 case "$host_cpu" in
19545 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19548 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19552 if test "$with_gnu_ld" = no; then
19553 case "$host_cpu" in
19555 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19556 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19557 hardcode_libdir_separator_F77=:
19558 hardcode_direct_F77=no
19559 hardcode_shlibpath_var_F77=no
19562 hardcode_libdir_flag_spec_F77='-L$libdir'
19563 hardcode_direct_F77=no
19564 hardcode_shlibpath_var_F77=no
19566 # hardcode_minus_L: Not really in the search PATH,
19567 # but as the default location of the library.
19568 hardcode_minus_L_F77=yes
19571 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19572 hardcode_libdir_separator_F77=:
19573 hardcode_direct_F77=yes
19574 export_dynamic_flag_spec_F77='${wl}-E'
19576 # hardcode_minus_L: Not really in the search PATH,
19577 # but as the default location of the library.
19578 hardcode_minus_L_F77=yes
19584 irix5* | irix6* | nonstopux*)
19585 if test "$GCC" = yes; then
19586 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'
19588 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'
19589 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19591 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19592 hardcode_libdir_separator_F77=:
19593 link_all_deplibs_F77=yes
19597 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19598 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19600 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19602 hardcode_libdir_flag_spec_F77='-R$libdir'
19603 hardcode_direct_F77=yes
19604 hardcode_shlibpath_var_F77=no
19608 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19609 hardcode_direct_F77=yes
19610 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19611 hardcode_libdir_separator_F77=:
19612 hardcode_shlibpath_var_F77=no
19616 hardcode_direct_F77=yes
19617 hardcode_shlibpath_var_F77=no
19618 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19619 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19620 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19621 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19622 export_dynamic_flag_spec_F77='${wl}-E'
19625 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19626 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19627 hardcode_libdir_flag_spec_F77='-R$libdir'
19630 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19631 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19638 hardcode_libdir_flag_spec_F77='-L$libdir'
19639 hardcode_minus_L_F77=yes
19640 allow_undefined_flag_F77=unsupported
19641 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'
19642 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19646 if test "$GCC" = yes; then
19647 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19648 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'
19650 allow_undefined_flag_F77=' -expect_unresolved \*'
19651 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'
19653 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19654 hardcode_libdir_separator_F77=:
19657 osf4* | osf5*) # as osf3* with the addition of -msym flag
19658 if test "$GCC" = yes; then
19659 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19660 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'
19661 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19663 allow_undefined_flag_F77=' -expect_unresolved \*'
19664 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'
19665 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~
19666 $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'
19668 # Both c and cxx compiler support -rpath directly
19669 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19671 hardcode_libdir_separator_F77=:
19675 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19676 hardcode_shlibpath_var_F77=no
19677 export_dynamic_flag_spec_F77='${wl}-Bexport'
19678 runpath_var=LD_RUN_PATH
19679 hardcode_runpath_var=yes
19683 no_undefined_flag_F77=' -z text'
19684 if test "$GCC" = yes; then
19685 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19686 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19687 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19689 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19690 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19691 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19693 hardcode_libdir_flag_spec_F77='-R$libdir'
19694 hardcode_shlibpath_var_F77=no
19696 solaris2.[0-5] | solaris2.[0-5].*) ;;
19697 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19698 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19700 link_all_deplibs_F77=yes
19704 if test "x$host_vendor" = xsequent; then
19705 # Use $CC to link under sequent, because it throws in some extra .o
19706 # files that make .init and .fini sections work.
19707 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19709 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19711 hardcode_libdir_flag_spec_F77='-L$libdir'
19712 hardcode_direct_F77=yes
19713 hardcode_minus_L_F77=yes
19714 hardcode_shlibpath_var_F77=no
19718 case $host_vendor in
19720 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19721 hardcode_direct_F77=yes # is this really true???
19724 ## LD is ld it makes a PLAMLIB
19725 ## CC just makes a GrossModule.
19726 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19727 reload_cmds_F77='$CC -r -o $output$reload_objs'
19728 hardcode_direct_F77=no
19731 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19732 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19735 runpath_var='LD_RUN_PATH'
19736 hardcode_shlibpath_var_F77=no
19740 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19741 hardcode_shlibpath_var_F77=no
19742 export_dynamic_flag_spec_F77='-Bexport'
19746 if test -d /usr/nec; then
19747 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19748 hardcode_shlibpath_var_F77=no
19749 runpath_var=LD_RUN_PATH
19750 hardcode_runpath_var=yes
19756 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19757 hardcode_direct_F77=yes
19758 hardcode_minus_L_F77=no
19759 hardcode_shlibpath_var_F77=no
19760 hardcode_runpath_var=yes
19761 runpath_var=LD_RUN_PATH
19764 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19765 no_undefined_flag_F77='${wl}-z ${wl}text'
19766 if test "$GCC" = yes; then
19767 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19769 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19771 runpath_var='LD_RUN_PATH'
19772 hardcode_shlibpath_var_F77=no
19776 no_undefined_flag_F77=' -z text'
19777 # $CC -shared without GNU ld will not create a library from C++
19778 # object files and a static libstdc++, better avoid it by now
19779 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19780 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19781 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19782 hardcode_libdir_flag_spec_F77=
19783 hardcode_shlibpath_var_F77=no
19784 runpath_var='LD_RUN_PATH'
19788 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19789 hardcode_libdir_flag_spec_F77='-L$libdir'
19790 hardcode_shlibpath_var_F77=no
19799 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19800 echo "${ECHO_T}$ld_shlibs_F77" >&6
19801 test "$ld_shlibs_F77" = no && can_build_shared=no
19803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19804 if test "$GCC" = yes; then
19805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19809 # Do we need to explicitly link libc?
19811 case "x$archive_cmds_need_lc_F77" in
19813 # Assume -lc should be added
19814 archive_cmds_need_lc_F77=yes
19816 if test "$enable_shared" = yes && test "$GCC" = yes; then
19817 case $archive_cmds_F77 in
19819 # FIXME: we may have to deal with multi-command sequences.
19822 # Test whether the compiler implicitly links with -lc since on some
19823 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19824 # to ld, don't add -lc before -lgcc.
19825 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19826 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19828 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19831 (eval $ac_compile) 2>&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } 2>conftest.err; then
19837 libobjs=conftest.$ac_objext
19839 wl=$lt_prog_compiler_wl_F77
19845 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19846 allow_undefined_flag_F77=
19847 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19848 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); }
19853 archive_cmds_need_lc_F77=no
19855 archive_cmds_need_lc_F77=yes
19857 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19859 cat conftest.err 1>&5
19862 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19863 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19870 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19871 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19872 library_names_spec=
19873 libname_spec='lib$name'
19877 postuninstall_cmds=
19881 shlibpath_overrides_runpath=unknown
19883 dynamic_linker="$host_os ld.so"
19884 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19885 if test "$GCC" = yes; then
19886 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19887 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19888 # if the path contains ";" then we assume it to be the separator
19889 # otherwise default to the standard path separator (i.e. ":") - it is
19890 # assumed that no part of a normal pathname contains ";" but that should
19891 # okay in the real world where ";" in dirpaths is itself problematic.
19892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19897 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19899 need_lib_prefix=unknown
19900 hardcode_into_libs=no
19902 # when you set need_version to no, make sure it does not cause -set_version
19903 # flags to be left without arguments
19904 need_version=unknown
19909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19910 shlibpath_var=LIBPATH
19912 # AIX 3 has no versioning support, so we append a major version to the name.
19913 soname_spec='${libname}${release}${shared_ext}$major'
19920 hardcode_into_libs=yes
19921 if test "$host_cpu" = ia64; then
19922 # AIX 5 supports IA64
19923 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19924 shlibpath_var=LD_LIBRARY_PATH
19926 # With GCC up to 2.95.x, collect2 would create an import file
19927 # for dependence libraries. The import file would start with
19928 # the line `#! .'. This would cause the generated library to
19929 # depend on `.', always an invalid library. This was fixed in
19930 # development snapshots of GCC prior to 3.0.
19932 aix4 | aix4.[01] | aix4.[01].*)
19933 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19935 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19938 can_build_shared=no
19942 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19943 # soname into executable. Probably we can add versioning support to
19944 # collect2, so additional links can be useful in future.
19945 if test "$aix_use_runtimelinking" = yes; then
19946 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19947 # instead of lib<name>.a to let people know that these are not
19948 # typical AIX shared libraries.
19949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19951 # We preserve .a as extension for shared libraries through AIX4.2
19952 # and later when we are not doing run time linking.
19953 library_names_spec='${libname}${release}.a $libname.a'
19954 soname_spec='${libname}${release}${shared_ext}$major'
19956 shlibpath_var=LIBPATH
19961 library_names_spec='$libname.ixlibrary $libname.a'
19962 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19963 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'
19967 library_names_spec='${libname}${shared_ext}'
19968 dynamic_linker="$host_os ld.so"
19969 shlibpath_var=LIBRARY_PATH
19975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19976 soname_spec='${libname}${release}${shared_ext}$major'
19977 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19978 shlibpath_var=LD_LIBRARY_PATH
19979 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19980 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19981 # the default ld.so.conf also contains /usr/contrib/lib and
19982 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19983 # libtool to hard-code these into programs
19986 cygwin* | mingw* | pw32*)
19987 version_type=windows
19992 case $GCC,$host_os in
19993 yes,cygwin* | yes,mingw* | yes,pw32*)
19994 library_names_spec='$libname.dll.a'
19995 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19996 postinstall_cmds='base_file=`basename \${file}`~
19997 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19998 dldir=$destdir/`dirname \$dlpath`~
19999 test -d \$dldir || mkdir -p \$dldir~
20000 $install_prog $dir/$dlname \$dldir/$dlname'
20001 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20002 dlpath=$dir/\$dldll~
20004 shlibpath_overrides_runpath=yes
20008 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20009 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20010 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20013 # MinGW DLLs use traditional 'lib' prefix
20014 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20015 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20016 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20017 # It is most probably a Windows format PATH printed by
20018 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20019 # path with ; separators, and with drive letters. We can handle the
20020 # drive letters (cygwin fileutils understands them), so leave them,
20021 # especially as we might pass files found there to a mingw objdump,
20022 # which wouldn't understand a cygwinified path. Ahh.
20023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20025 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20029 # pw32 DLLs use 'pw' prefix rather than 'lib'
20030 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20036 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20039 dynamic_linker='Win32 ld.exe'
20040 # FIXME: first we should search . and the directory the executable is in
20044 darwin* | rhapsody*)
20045 dynamic_linker="$host_os dyld"
20046 version_type=darwin
20049 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20050 soname_spec='${libname}${release}${major}$shared_ext'
20051 shlibpath_overrides_runpath=yes
20052 shlibpath_var=DYLD_LIBRARY_PATH
20053 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20054 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20055 if test "$GCC" = yes; then
20056 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"`
20058 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20060 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20068 soname_spec='${libname}${release}${shared_ext}$major'
20069 shlibpath_var=LD_LIBRARY_PATH
20080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20081 soname_spec='${libname}${release}${shared_ext}$major'
20082 shlibpath_var=LD_LIBRARY_PATH
20083 shlibpath_overrides_runpath=no
20084 hardcode_into_libs=yes
20085 dynamic_linker='GNU ld.so'
20089 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20090 version_type=freebsd-$objformat
20091 case $version_type in
20093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20098 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20102 shlibpath_var=LD_LIBRARY_PATH
20105 shlibpath_overrides_runpath=yes
20107 freebsd3.01* | freebsdelf3.01*)
20108 shlibpath_overrides_runpath=yes
20109 hardcode_into_libs=yes
20112 shlibpath_overrides_runpath=no
20113 hardcode_into_libs=yes
20122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20123 soname_spec='${libname}${release}${shared_ext}$major'
20124 shlibpath_var=LD_LIBRARY_PATH
20125 hardcode_into_libs=yes
20128 hpux9* | hpux10* | hpux11*)
20129 # Give a soname corresponding to the major version so that dld.sl refuses to
20130 # link against other versions.
20134 case "$host_cpu" in
20137 hardcode_into_libs=yes
20138 dynamic_linker="$host_os dld.so"
20139 shlibpath_var=LD_LIBRARY_PATH
20140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20142 soname_spec='${libname}${release}${shared_ext}$major'
20143 if test "X$HPUX_IA64_MODE" = X32; then
20144 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20146 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20152 hardcode_into_libs=yes
20153 dynamic_linker="$host_os dld.sl"
20154 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20157 soname_spec='${libname}${release}${shared_ext}$major'
20158 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20159 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20163 dynamic_linker="$host_os dld.sl"
20164 shlibpath_var=SHLIB_PATH
20165 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20167 soname_spec='${libname}${release}${shared_ext}$major'
20170 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20171 postinstall_cmds='chmod 555 $lib'
20174 irix5* | irix6* | nonstopux*)
20176 nonstopux*) version_type=nonstopux ;;
20178 if test "$lt_cv_prog_gnu_ld" = yes; then
20186 soname_spec='${libname}${release}${shared_ext}$major'
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20189 irix5* | nonstopux*)
20190 libsuff= shlibsuff=
20193 case $LD in # libtool.m4 will add one of these switches to LD
20194 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20195 libsuff= shlibsuff= libmagic=32-bit;;
20196 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20197 libsuff=32 shlibsuff=N32 libmagic=N32;;
20198 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20199 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20200 *) libsuff= shlibsuff= libmagic=never-match;;
20204 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20205 shlibpath_overrides_runpath=no
20206 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20207 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20208 hardcode_into_libs=yes
20211 # No shared lib support for Linux oldld, aout, or coff.
20212 linux*oldld* | linux*aout* | linux*coff*)
20216 # This must be Linux ELF.
20221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20222 soname_spec='${libname}${release}${shared_ext}$major'
20223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20224 shlibpath_var=LD_LIBRARY_PATH
20225 shlibpath_overrides_runpath=no
20226 # This implies no fast_install, which is unacceptable.
20227 # Some rework will be needed to allow for fast_install
20228 # before this can be enabled.
20229 hardcode_into_libs=yes
20231 # Append ld.so.conf contents to the search path
20232 if test -f /etc/ld.so.conf; then
20233 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20234 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20237 # We used to test for /lib/ld.so.1 and disable shared libraries on
20238 # powerpc, because MkLinux only supported shared libraries with the
20239 # GNU dynamic linker. Since this was broken with cross compilers,
20240 # most powerpc-linux boxes support dynamic linking these days and
20241 # people can always --disable-shared, the test was removed, and we
20242 # assume the GNU/Linux dynamic linker is in use.
20243 dynamic_linker='GNU/Linux ld.so'
20250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20251 soname_spec='${libname}${release}${shared_ext}$major'
20252 shlibpath_var=LD_LIBRARY_PATH
20253 shlibpath_overrides_runpath=no
20254 hardcode_into_libs=yes
20255 dynamic_linker='GNU ld.so'
20262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20265 dynamic_linker='NetBSD (a.out) ld.so'
20267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20268 soname_spec='${libname}${release}${shared_ext}$major'
20269 dynamic_linker='NetBSD ld.elf_so'
20271 shlibpath_var=LD_LIBRARY_PATH
20272 shlibpath_overrides_runpath=yes
20273 hardcode_into_libs=yes
20278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20279 shlibpath_var=LD_LIBRARY_PATH
20280 shlibpath_overrides_runpath=yes
20287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20288 soname_spec='${libname}${release}${shared_ext}$major'
20289 shlibpath_var=LD_LIBRARY_PATH
20290 shlibpath_overrides_runpath=yes
20297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20299 shlibpath_var=LD_LIBRARY_PATH
20300 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20302 openbsd2.[89] | openbsd2.[89].*)
20303 shlibpath_overrides_runpath=no
20306 shlibpath_overrides_runpath=yes
20310 shlibpath_overrides_runpath=yes
20315 libname_spec='$name'
20318 library_names_spec='$libname${shared_ext} $libname.a'
20319 dynamic_linker='OS/2 ld.exe'
20320 shlibpath_var=LIBPATH
20323 osf3* | osf4* | osf5*)
20327 soname_spec='${libname}${release}${shared_ext}$major'
20328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20329 shlibpath_var=LD_LIBRARY_PATH
20330 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20331 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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
20345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20346 soname_spec='${libname}${release}${shared_ext}$major'
20347 shlibpath_var=LD_LIBRARY_PATH
20348 shlibpath_overrides_runpath=yes
20349 hardcode_into_libs=yes
20350 # ldd complains unless libraries are executable
20351 postinstall_cmds='chmod +x $lib'
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20357 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20358 shlibpath_var=LD_LIBRARY_PATH
20359 shlibpath_overrides_runpath=yes
20360 if test "$with_gnu_ld" = yes; then
20366 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20369 soname_spec='${libname}${release}${shared_ext}$major'
20370 shlibpath_var=LD_LIBRARY_PATH
20371 case $host_vendor in
20373 shlibpath_overrides_runpath=no
20375 export_dynamic_flag_spec='${wl}-Blargedynsym'
20376 runpath_var=LD_RUN_PATH
20384 shlibpath_overrides_runpath=no
20385 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20391 if test -d /usr/nec ;then
20393 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20394 soname_spec='$libname${shared_ext}.$major'
20395 shlibpath_var=LD_LIBRARY_PATH
20401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20402 soname_spec='${libname}${release}${shared_ext}$major'
20403 shlibpath_var=LD_LIBRARY_PATH
20410 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20411 echo "${ECHO_T}$dynamic_linker" >&6
20412 test "$dynamic_linker" = no && can_build_shared=no
20414 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20415 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20416 hardcode_action_F77=
20417 if test -n "$hardcode_libdir_flag_spec_F77" || \
20418 test -n "$runpath_var_F77" || \
20419 test "X$hardcode_automatic_F77" = "Xyes" ; then
20421 # We can hardcode non-existant directories.
20422 if test "$hardcode_direct_F77" != no &&
20423 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20424 # have to relink, otherwise we might link with an installed library
20425 # when we should be linking with a yet-to-be-installed one
20426 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20427 test "$hardcode_minus_L_F77" != no; then
20428 # Linking always hardcodes the temporary library directory.
20429 hardcode_action_F77=relink
20431 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20432 hardcode_action_F77=immediate
20435 # We cannot hardcode anything, or else we can only hardcode existing
20437 hardcode_action_F77=unsupported
20439 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20440 echo "${ECHO_T}$hardcode_action_F77" >&6
20442 if test "$hardcode_action_F77" = relink; then
20443 # Fast installation is not supported
20444 enable_fast_install=no
20445 elif test "$shlibpath_overrides_runpath" = yes ||
20446 test "$enable_shared" = no; then
20447 # Fast installation is not necessary
20448 enable_fast_install=needless
20453 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20454 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20455 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20456 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20457 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20458 echo "$as_me:$LINENO: result: yes" >&5
20459 echo "${ECHO_T}yes" >&6
20461 # FIXME - insert some real tests, host_os isn't really good enough
20464 if test -n "$STRIP" ; then
20465 striplib="$STRIP -x"
20466 echo "$as_me:$LINENO: result: yes" >&5
20467 echo "${ECHO_T}yes" >&6
20469 echo "$as_me:$LINENO: result: no" >&5
20470 echo "${ECHO_T}no" >&6
20474 echo "$as_me:$LINENO: result: no" >&5
20475 echo "${ECHO_T}no" >&6
20482 # The else clause should only fire when bootstrapping the
20483 # libtool distribution, otherwise you forgot to ship ltmain.sh
20484 # with your package, and you will get complaints that there are
20485 # no rules to generate ltmain.sh.
20486 if test -f "$ltmain"; then
20487 # See if we are running on zsh, and set the options which allow our commands through
20488 # without removal of \ escapes.
20489 if test -n "${ZSH_VERSION+set}" ; then
20490 setopt NO_GLOB_SUBST
20492 # Now quote all the things that may contain metacharacters while being
20493 # careful not to overquote the AC_SUBSTed values. We take copies of the
20494 # variables and quote the copies for generation of the libtool script.
20495 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20497 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20498 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20499 deplibs_check_method reload_flag reload_cmds need_locks \
20500 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20501 lt_cv_sys_global_symbol_to_c_name_address \
20502 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20503 old_postinstall_cmds old_postuninstall_cmds \
20507 lt_prog_compiler_wl_F77 \
20508 lt_prog_compiler_pic_F77 \
20509 lt_prog_compiler_static_F77 \
20510 lt_prog_compiler_no_builtin_flag_F77 \
20511 export_dynamic_flag_spec_F77 \
20512 thread_safe_flag_spec_F77 \
20513 whole_archive_flag_spec_F77 \
20514 enable_shared_with_static_runtimes_F77 \
20515 old_archive_cmds_F77 \
20516 old_archive_from_new_cmds_F77 \
20517 predep_objects_F77 \
20518 postdep_objects_F77 \
20521 compiler_lib_search_path_F77 \
20523 archive_expsym_cmds_F77 \
20524 postinstall_cmds_F77 \
20525 postuninstall_cmds_F77 \
20526 old_archive_from_expsyms_cmds_F77 \
20527 allow_undefined_flag_F77 \
20528 no_undefined_flag_F77 \
20529 export_symbols_cmds_F77 \
20530 hardcode_libdir_flag_spec_F77 \
20531 hardcode_libdir_flag_spec_ld_F77 \
20532 hardcode_libdir_separator_F77 \
20533 hardcode_automatic_F77 \
20535 module_expsym_cmds_F77 \
20536 lt_cv_prog_compiler_c_o_F77 \
20537 exclude_expsyms_F77 \
20538 include_expsyms_F77; do
20541 old_archive_cmds_F77 | \
20542 old_archive_from_new_cmds_F77 | \
20543 archive_cmds_F77 | \
20544 archive_expsym_cmds_F77 | \
20545 module_cmds_F77 | \
20546 module_expsym_cmds_F77 | \
20547 old_archive_from_expsyms_cmds_F77 | \
20548 export_symbols_cmds_F77 | \
20549 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20550 postinstall_cmds | postuninstall_cmds | \
20551 old_postinstall_cmds | old_postuninstall_cmds | \
20552 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20553 # Double-quote double-evaled strings.
20554 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20557 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20563 *'\$0 --fallback-echo"')
20564 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20570 cat <<__EOF__ >> "$cfgfile"
20571 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20573 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20575 # Shell to use when invoking shell scripts.
20578 # Whether or not to build shared libraries.
20579 build_libtool_libs=$enable_shared
20581 # Whether or not to build static libraries.
20582 build_old_libs=$enable_static
20584 # Whether or not to add -lc for building shared libraries.
20585 build_libtool_need_lc=$archive_cmds_need_lc_F77
20587 # Whether or not to disallow shared libs when runtime libs are static
20588 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20590 # Whether or not to optimize for fast installation.
20591 fast_install=$enable_fast_install
20594 host_alias=$host_alias
20597 # An echo program that does not interpret backslashes.
20602 AR_FLAGS=$lt_AR_FLAGS
20607 # A language-specific compiler.
20608 CC=$lt_compiler_F77
20610 # Is the compiler the GNU C compiler?
20616 # The linker used to build libraries.
20619 # Whether we need hard or soft links.
20622 # A BSD-compatible nm program.
20625 # A symbol stripping program
20628 # Used to examine libraries when file_magic_cmd begins "file"
20629 MAGIC_CMD=$MAGIC_CMD
20631 # Used on cygwin: DLL creation program.
20634 # Used on cygwin: object dumper.
20637 # Used on cygwin: assembler.
20640 # The name of the directory that contains temporary libtool files.
20643 # How to create reloadable object files.
20644 reload_flag=$lt_reload_flag
20645 reload_cmds=$lt_reload_cmds
20647 # How to pass a linker flag through the compiler.
20648 wl=$lt_lt_prog_compiler_wl_F77
20650 # Object file suffix (normally "o").
20651 objext="$ac_objext"
20653 # Old archive suffix (normally "a").
20656 # Shared library suffix (normally ".so").
20657 shrext_cmds='$shrext_cmds'
20659 # Executable file suffix (normally "").
20662 # Additional compiler flags for building library objects.
20663 pic_flag=$lt_lt_prog_compiler_pic_F77
20666 # What is the maximum length of a command?
20667 max_cmd_len=$lt_cv_sys_max_cmd_len
20669 # Does compiler simultaneously support -c and -o options?
20670 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20672 # Must we lock files when doing compilation ?
20673 need_locks=$lt_need_locks
20675 # Do we need the lib prefix for modules?
20676 need_lib_prefix=$need_lib_prefix
20678 # Do we need a version for libraries?
20679 need_version=$need_version
20681 # Whether dlopen is supported.
20682 dlopen_support=$enable_dlopen
20684 # Whether dlopen of programs is supported.
20685 dlopen_self=$enable_dlopen_self
20687 # Whether dlopen of statically linked programs is supported.
20688 dlopen_self_static=$enable_dlopen_self_static
20690 # Compiler flag to prevent dynamic linking.
20691 link_static_flag=$lt_lt_prog_compiler_static_F77
20693 # Compiler flag to turn off builtin functions.
20694 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20696 # Compiler flag to allow reflexive dlopens.
20697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20699 # Compiler flag to generate shared objects directly from archives.
20700 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20702 # Compiler flag to generate thread-safe objects.
20703 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20705 # Library versioning type.
20706 version_type=$version_type
20708 # Format of library name prefix.
20709 libname_spec=$lt_libname_spec
20711 # List of archive names. First name is the real one, the rest are links.
20712 # The last name is the one that the linker finds with -lNAME.
20713 library_names_spec=$lt_library_names_spec
20715 # The coded name of the library, if different from the real name.
20716 soname_spec=$lt_soname_spec
20718 # Commands used to build and install an old-style archive.
20720 old_archive_cmds=$lt_old_archive_cmds_F77
20721 old_postinstall_cmds=$lt_old_postinstall_cmds
20722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20724 # Create an old-style archive from a shared archive.
20725 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20727 # Create a temporary old-style archive to link instead of a shared archive.
20728 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20730 # Commands used to build and install a shared archive.
20731 archive_cmds=$lt_archive_cmds_F77
20732 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20733 postinstall_cmds=$lt_postinstall_cmds
20734 postuninstall_cmds=$lt_postuninstall_cmds
20736 # Commands used to build a loadable module (assumed same as above if empty)
20737 module_cmds=$lt_module_cmds_F77
20738 module_expsym_cmds=$lt_module_expsym_cmds_F77
20740 # Commands to strip libraries.
20741 old_striplib=$lt_old_striplib
20742 striplib=$lt_striplib
20744 # Dependencies to place before the objects being linked to create a
20746 predep_objects=$lt_predep_objects_F77
20748 # Dependencies to place after the objects being linked to create a
20750 postdep_objects=$lt_postdep_objects_F77
20752 # Dependencies to place before the objects being linked to create a
20754 predeps=$lt_predeps_F77
20756 # Dependencies to place after the objects being linked to create a
20758 postdeps=$lt_postdeps_F77
20760 # The library search path used internally by the compiler when linking
20761 # a shared library.
20762 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20764 # Method to check whether dependent libraries are shared objects.
20765 deplibs_check_method=$lt_deplibs_check_method
20767 # Command to use when deplibs_check_method == file_magic.
20768 file_magic_cmd=$lt_file_magic_cmd
20770 # Flag that allows shared libraries with undefined symbols to be built.
20771 allow_undefined_flag=$lt_allow_undefined_flag_F77
20773 # Flag that forces no undefined symbols.
20774 no_undefined_flag=$lt_no_undefined_flag_F77
20776 # Commands used to finish a libtool library installation in a directory.
20777 finish_cmds=$lt_finish_cmds
20779 # Same as above, but a single script fragment to be evaled but not shown.
20780 finish_eval=$lt_finish_eval
20782 # Take the output of nm and produce a listing of raw symbols and C names.
20783 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20785 # Transform the output of nm in a proper C declaration
20786 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20788 # Transform the output of nm in a C name address pair
20789 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20791 # This is the shared library runtime path variable.
20792 runpath_var=$runpath_var
20794 # This is the shared library path variable.
20795 shlibpath_var=$shlibpath_var
20797 # Is shlibpath searched before the hard-coded library search path?
20798 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20800 # How to hardcode a shared library path into an executable.
20801 hardcode_action=$hardcode_action_F77
20803 # Whether we should hardcode library paths into libraries.
20804 hardcode_into_libs=$hardcode_into_libs
20806 # Flag to hardcode \$libdir into a binary during linking.
20807 # This must work even if \$libdir does not exist.
20808 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20810 # If ld is used when linking, flag to hardcode \$libdir into
20811 # a binary during linking. This must work even if \$libdir does
20813 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20815 # Whether we need a single -rpath flag with a separated argument.
20816 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20818 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20819 # resulting binary.
20820 hardcode_direct=$hardcode_direct_F77
20822 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20823 # resulting binary.
20824 hardcode_minus_L=$hardcode_minus_L_F77
20826 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20827 # the resulting binary.
20828 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20830 # Set to yes if building a shared library automatically hardcodes DIR into the library
20831 # and all subsequent libraries and executables linked against it.
20832 hardcode_automatic=$hardcode_automatic_F77
20834 # Variables whose values should be saved in libtool wrapper scripts and
20835 # restored at relink time.
20836 variables_saved_for_relink="$variables_saved_for_relink"
20838 # Whether libtool must link a program against all its dependency libraries.
20839 link_all_deplibs=$link_all_deplibs_F77
20841 # Compile-time system search path for libraries
20842 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20844 # Run-time system search path for libraries
20845 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20847 # Fix the shell variable \$srcfile for the compiler.
20848 fix_srcfile_path="$fix_srcfile_path_F77"
20850 # Set to yes if exported symbols are required.
20851 always_export_symbols=$always_export_symbols_F77
20853 # The commands to list exported symbols.
20854 export_symbols_cmds=$lt_export_symbols_cmds_F77
20856 # The commands to extract the exported symbol list from a shared archive.
20857 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20859 # Symbols that should not be listed in the preloaded symbols.
20860 exclude_expsyms=$lt_exclude_expsyms_F77
20862 # Symbols that must always be exported.
20863 include_expsyms=$lt_include_expsyms_F77
20865 # ### END LIBTOOL TAG CONFIG: $tagname
20871 # If there is no Makefile yet, we rely on a make rule to execute
20872 # `config.status --recheck' to rerun these tests and create the
20873 # libtool script then.
20874 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20875 if test -f "$ltmain_in"; then
20876 test -f Makefile && make "$ltmain"
20882 ac_cpp='$CPP $CPPFLAGS'
20883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20895 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20897 ac_cpp='$CPP $CPPFLAGS'
20898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20903 # Source file extension for Java test sources.
20906 # Object file extension for compiled Java test sources.
20910 # Code to be used in simple compile tests
20911 lt_simple_compile_test_code="class foo {}\n"
20913 # Code to be used in simple link tests
20914 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20916 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20918 # If no C compiler was specified, use CC.
20921 # Allow CC to be a program name with arguments.
20925 # Allow CC to be a program name with arguments.
20931 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20932 archive_cmds_need_lc_GCJ=no
20935 lt_prog_compiler_no_builtin_flag_GCJ=
20937 if test "$GCC" = yes; then
20938 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20941 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20942 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20943 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20944 echo $ECHO_N "(cached) $ECHO_C" >&6
20946 lt_cv_prog_compiler_rtti_exceptions=no
20947 ac_outfile=conftest.$ac_objext
20948 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20949 lt_compiler_flag="-fno-rtti -fno-exceptions"
20950 # Insert the option either (1) after the last *FLAGS variable, or
20951 # (2) before a word containing "conftest.", or (3) at the end.
20952 # Note that $ac_compile itself does not contain backslashes and begins
20953 # with a dollar sign (not a hyphen), so the echo should work correctly.
20954 # The option is referenced via a variable to avoid confusing sed.
20955 lt_compile=`echo "$ac_compile" | $SED \
20956 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20958 -e 's:$: $lt_compiler_flag:'`
20959 (eval echo "\"\$as_me:20959: $lt_compile\"" >&5)
20960 (eval "$lt_compile" 2>conftest.err)
20962 cat conftest.err >&5
20963 echo "$as_me:20963: \$? = $ac_status" >&5
20964 if (exit $ac_status) && test -s "$ac_outfile"; then
20965 # The compiler can only warn and ignore the option if not recognized
20966 # So say no if there are warnings
20967 if test ! -s conftest.err; then
20968 lt_cv_prog_compiler_rtti_exceptions=yes
20974 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20975 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20977 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20978 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20985 lt_prog_compiler_wl_GCJ=
20986 lt_prog_compiler_pic_GCJ=
20987 lt_prog_compiler_static_GCJ=
20989 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20990 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20992 if test "$GCC" = yes; then
20993 lt_prog_compiler_wl_GCJ='-Wl,'
20994 lt_prog_compiler_static_GCJ='-static'
20998 # All AIX code is PIC.
20999 if test "$host_cpu" = ia64; then
21000 # AIX 5 now supports IA64 processor
21001 lt_prog_compiler_static_GCJ='-Bstatic'
21006 # FIXME: we need at least 68020 code to build shared libraries, but
21007 # adding the `-m68020' flag to GCC prevents building anything better,
21009 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21012 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21013 # PIC is the default for these OSes.
21016 mingw* | pw32* | os2*)
21017 # This hack is so that the source file can tell whether it is being
21018 # built for inclusion in a dll (and should export symbols for example).
21019 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21022 darwin* | rhapsody*)
21023 # PIC is the default on this platform
21024 # Common symbols not allowed in MH_DYLIB files
21025 lt_prog_compiler_pic_GCJ='-fno-common'
21029 # Just because we use GCC doesn't mean we suddenly get shared libraries
21030 # on systems that don't support them.
21031 lt_prog_compiler_can_build_shared_GCJ=no
21036 if test -d /usr/nec; then
21037 lt_prog_compiler_pic_GCJ=-Kconform_pic
21042 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21043 # not for PA HP-UX.
21044 case "$host_cpu" in
21049 lt_prog_compiler_pic_GCJ='-fPIC'
21055 lt_prog_compiler_pic_GCJ='-fPIC'
21059 # PORTME Check for flag to pass linker flags through the system compiler.
21062 lt_prog_compiler_wl_GCJ='-Wl,'
21063 if test "$host_cpu" = ia64; then
21064 # AIX 5 now supports IA64 processor
21065 lt_prog_compiler_static_GCJ='-Bstatic'
21067 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21071 # PIC is the default on this platform
21072 # Common symbols not allowed in MH_DYLIB files
21073 case "$cc_basename" in
21075 lt_prog_compiler_pic_GCJ='-qnocommon'
21076 lt_prog_compiler_wl_GCJ='-Wl,'
21081 mingw* | pw32* | os2*)
21082 # This hack is so that the source file can tell whether it is being
21083 # built for inclusion in a dll (and should export symbols for example).
21084 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21087 hpux9* | hpux10* | hpux11*)
21088 lt_prog_compiler_wl_GCJ='-Wl,'
21089 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21090 # not for PA HP-UX.
21091 case "$host_cpu" in
21096 lt_prog_compiler_pic_GCJ='+Z'
21099 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21100 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21103 irix5* | irix6* | nonstopux*)
21104 lt_prog_compiler_wl_GCJ='-Wl,'
21105 # PIC (with -KPIC) is the default.
21106 lt_prog_compiler_static_GCJ='-non_shared'
21110 lt_prog_compiler_pic_GCJ='-KPIC'
21111 lt_prog_compiler_static_GCJ='-Bstatic'
21117 lt_prog_compiler_wl_GCJ='-Wl,'
21118 lt_prog_compiler_pic_GCJ='-KPIC'
21119 lt_prog_compiler_static_GCJ='-static'
21122 lt_prog_compiler_wl_GCJ='-Wl,'
21123 # All Alpha code is PIC.
21124 lt_prog_compiler_static_GCJ='-non_shared'
21129 osf3* | osf4* | osf5*)
21130 lt_prog_compiler_wl_GCJ='-Wl,'
21131 # All OSF/1 code is PIC.
21132 lt_prog_compiler_static_GCJ='-non_shared'
21136 lt_prog_compiler_pic_GCJ='-Kpic'
21137 lt_prog_compiler_static_GCJ='-dn'
21141 lt_prog_compiler_wl_GCJ='-Wl,'
21142 lt_prog_compiler_pic_GCJ='-KPIC'
21143 lt_prog_compiler_static_GCJ='-Bstatic'
21147 lt_prog_compiler_wl_GCJ='-Qoption ld '
21148 lt_prog_compiler_pic_GCJ='-PIC'
21149 lt_prog_compiler_static_GCJ='-Bstatic'
21152 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21153 lt_prog_compiler_wl_GCJ='-Wl,'
21154 lt_prog_compiler_pic_GCJ='-KPIC'
21155 lt_prog_compiler_static_GCJ='-Bstatic'
21159 if test -d /usr/nec ;then
21160 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21161 lt_prog_compiler_static_GCJ='-Bstatic'
21166 lt_prog_compiler_pic_GCJ='-pic'
21167 lt_prog_compiler_static_GCJ='-Bstatic'
21171 lt_prog_compiler_can_build_shared_GCJ=no
21176 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21177 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21180 # Check to make sure the PIC flag actually works.
21182 if test -n "$lt_prog_compiler_pic_GCJ"; then
21184 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21185 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21186 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21187 echo $ECHO_N "(cached) $ECHO_C" >&6
21189 lt_prog_compiler_pic_works_GCJ=no
21190 ac_outfile=conftest.$ac_objext
21191 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21192 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21193 # Insert the option either (1) after the last *FLAGS variable, or
21194 # (2) before a word containing "conftest.", or (3) at the end.
21195 # Note that $ac_compile itself does not contain backslashes and begins
21196 # with a dollar sign (not a hyphen), so the echo should work correctly.
21197 # The option is referenced via a variable to avoid confusing sed.
21198 lt_compile=`echo "$ac_compile" | $SED \
21199 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21201 -e 's:$: $lt_compiler_flag:'`
21202 (eval echo "\"\$as_me:21202: $lt_compile\"" >&5)
21203 (eval "$lt_compile" 2>conftest.err)
21205 cat conftest.err >&5
21206 echo "$as_me:21206: \$? = $ac_status" >&5
21207 if (exit $ac_status) && test -s "$ac_outfile"; then
21208 # The compiler can only warn and ignore the option if not recognized
21209 # So say no if there are warnings
21210 if test ! -s conftest.err; then
21211 lt_prog_compiler_pic_works_GCJ=yes
21217 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21218 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21220 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21221 case $lt_prog_compiler_pic_GCJ in
21223 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21226 lt_prog_compiler_pic_GCJ=
21227 lt_prog_compiler_can_build_shared_GCJ=no
21232 # For platforms which do not support PIC, -DPIC is meaningless:
21234 lt_prog_compiler_pic_GCJ=
21237 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21241 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21242 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21243 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21244 echo $ECHO_N "(cached) $ECHO_C" >&6
21246 lt_cv_prog_compiler_c_o_GCJ=no
21247 $rm -r conftest 2>/dev/null
21251 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21253 lt_compiler_flag="-o out/conftest2.$ac_objext"
21254 # Insert the option either (1) after the last *FLAGS variable, or
21255 # (2) before a word containing "conftest.", or (3) at the end.
21256 # Note that $ac_compile itself does not contain backslashes and begins
21257 # with a dollar sign (not a hyphen), so the echo should work correctly.
21258 lt_compile=`echo "$ac_compile" | $SED \
21259 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21261 -e 's:$: $lt_compiler_flag:'`
21262 (eval echo "\"\$as_me:21262: $lt_compile\"" >&5)
21263 (eval "$lt_compile" 2>out/conftest.err)
21265 cat out/conftest.err >&5
21266 echo "$as_me:21266: \$? = $ac_status" >&5
21267 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21269 # The compiler can only warn and ignore the option if not recognized
21270 # So say no if there are warnings
21271 if test ! -s out/conftest.err; then
21272 lt_cv_prog_compiler_c_o_GCJ=yes
21277 # SGI C++ compiler will create directory out/ii_files/ for
21278 # template instantiation
21279 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21280 $rm out/* && rmdir out
21286 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21287 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21290 hard_links="nottested"
21291 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21292 # do not overwrite the value of need_locks provided by the user
21293 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21294 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21297 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21299 ln conftest.a conftest.b 2>&5 || hard_links=no
21300 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21301 echo "$as_me:$LINENO: result: $hard_links" >&5
21302 echo "${ECHO_T}$hard_links" >&6
21303 if test "$hard_links" = no; then
21304 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21305 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21312 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21313 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21316 allow_undefined_flag_GCJ=
21317 enable_shared_with_static_runtimes_GCJ=no
21319 archive_expsym_cmds_GCJ=
21320 old_archive_From_new_cmds_GCJ=
21321 old_archive_from_expsyms_cmds_GCJ=
21322 export_dynamic_flag_spec_GCJ=
21323 whole_archive_flag_spec_GCJ=
21324 thread_safe_flag_spec_GCJ=
21325 hardcode_libdir_flag_spec_GCJ=
21326 hardcode_libdir_flag_spec_ld_GCJ=
21327 hardcode_libdir_separator_GCJ=
21328 hardcode_direct_GCJ=no
21329 hardcode_minus_L_GCJ=no
21330 hardcode_shlibpath_var_GCJ=unsupported
21331 link_all_deplibs_GCJ=unknown
21332 hardcode_automatic_GCJ=no
21334 module_expsym_cmds_GCJ=
21335 always_export_symbols_GCJ=no
21336 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21337 # include_expsyms should be a list of space-separated symbols to be *always*
21338 # included in the symbol list
21339 include_expsyms_GCJ=
21340 # exclude_expsyms can be an extended regexp of symbols to exclude
21341 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21342 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21343 # as well as any symbol that contains `d'.
21344 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21345 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21346 # platforms (ab)use it in PIC code, but their linkers get confused if
21347 # the symbol is explicitly referenced. Since portable code cannot
21348 # rely on this symbol name, it's probably fine to never include it in
21349 # preloaded symbol tables.
21350 extract_expsyms_cmds=
21353 cygwin* | mingw* | pw32*)
21354 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21355 # When not using gcc, we currently assume that we are using
21356 # Microsoft Visual C++.
21357 if test "$GCC" != yes; then
21367 if test "$with_gnu_ld" = yes; then
21368 # If archive_cmds runs LD, not CC, wlarc should be empty
21371 # See if GNU ld supports shared libraries.
21373 aix3* | aix4* | aix5*)
21374 # On AIX/PPC, the GNU linker is very broken
21375 if test "$host_cpu" != ia64; then
21379 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21380 *** to be unable to reliably create shared libraries on AIX.
21381 *** Therefore, libtool is disabling shared libraries support. If you
21382 *** really care for shared libraries, you may want to modify your PATH
21383 *** so that a non-GNU linker is found, and then restart.
21390 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)'
21391 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21392 hardcode_minus_L_GCJ=yes
21394 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21395 # that the semantics of dynamic libraries on AmigaOS, at least up
21396 # to version 4, is to share data among multiple programs linked
21397 # with the same dynamic library. Since this doesn't match the
21398 # behavior of shared libraries on other platforms, we can't use
21404 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21405 allow_undefined_flag_GCJ=unsupported
21406 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21407 # support --undefined. This deserves some investigation. FIXME
21408 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21414 cygwin* | mingw* | pw32*)
21415 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21416 # as there is no search path for DLLs.
21417 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21418 allow_undefined_flag_GCJ=unsupported
21419 always_export_symbols_GCJ=no
21420 enable_shared_with_static_runtimes_GCJ=yes
21421 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21423 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21424 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21425 # If the export-symbols file already is a .def file (1st line
21426 # is EXPORTS), use it as is; otherwise, prepend...
21427 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21428 cp $export_symbols $output_objdir/$soname.def;
21430 echo EXPORTS > $output_objdir/$soname.def;
21431 cat $export_symbols >> $output_objdir/$soname.def;
21433 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21440 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21441 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21444 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21445 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21450 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21454 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21455 *** create shared libraries on Solaris systems. Therefore, libtool
21456 *** is disabling shared libraries support. We urge you to upgrade GNU
21457 *** binutils to release 2.9.1 or newer. Another option is to modify
21458 *** your PATH or compiler configuration so that the native linker is
21459 *** used, and then restart.
21462 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21463 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21464 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21471 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21473 hardcode_direct_GCJ=yes
21474 hardcode_shlibpath_var_GCJ=no
21478 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21479 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21480 archive_cmds_GCJ="$tmp_archive_cmds"
21481 supports_anon_versioning=no
21482 case `$LD -v 2>/dev/null` in
21483 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21484 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21485 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21486 *\ 2.11.*) ;; # other 2.11 versions
21487 *) supports_anon_versioning=yes ;;
21489 if test $supports_anon_versioning = yes; then
21490 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21491 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21492 $echo "local: *; };" >> $output_objdir/$libname.ver~
21493 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21495 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21503 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21504 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21505 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21512 if test "$ld_shlibs_GCJ" = yes; then
21513 runpath_var=LD_RUN_PATH
21514 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21515 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21516 # ancient GNU ld didn't support --whole-archive et. al.
21517 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21518 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21520 whole_archive_flag_spec_GCJ=
21524 # PORTME fill in a description of your system's linker (not GNU ld)
21527 allow_undefined_flag_GCJ=unsupported
21528 always_export_symbols_GCJ=yes
21529 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'
21530 # Note: this linker hardcodes the directories in LIBPATH if there
21531 # are no directories specified by -L.
21532 hardcode_minus_L_GCJ=yes
21533 if test "$GCC" = yes && test -z "$link_static_flag"; then
21534 # Neither direct hardcoding nor static linking is supported with a
21536 hardcode_direct_GCJ=unsupported
21541 if test "$host_cpu" = ia64; then
21542 # On IA64, the linker does run time linking by default, so we don't
21543 # have to do anything special.
21544 aix_use_runtimelinking=no
21545 exp_sym_flag='-Bexport'
21548 # If we're using GNU nm, then we don't want the "-C" option.
21549 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21550 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21551 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'
21553 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'
21555 aix_use_runtimelinking=no
21557 # Test if we are trying to use run time linking or normal
21558 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21559 # need to do runtime linking.
21560 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21561 for ld_flag in $LDFLAGS; do
21562 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21563 aix_use_runtimelinking=yes
21569 exp_sym_flag='-bexport'
21570 no_entry_flag='-bnoentry'
21573 # When large executables or shared objects are built, AIX ld can
21574 # have problems creating the table of contents. If linking a library
21575 # or program results in "error TOC overflow" add -mminimal-toc to
21576 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21577 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21579 archive_cmds_GCJ=''
21580 hardcode_direct_GCJ=yes
21581 hardcode_libdir_separator_GCJ=':'
21582 link_all_deplibs_GCJ=yes
21584 if test "$GCC" = yes; then
21585 case $host_os in aix4.012|aix4.012.*)
21586 # We only want to do this on AIX 4.2 and lower, the check
21587 # below for broken collect2 doesn't work under 4.3+
21588 collect2name=`${CC} -print-prog-name=collect2`
21589 if test -f "$collect2name" && \
21590 strings "$collect2name" | grep resolve_lib_name >/dev/null
21592 # We have reworked collect2
21593 hardcode_direct_GCJ=yes
21595 # We have old collect2
21596 hardcode_direct_GCJ=unsupported
21597 # It fails to find uninstalled libraries when the uninstalled
21598 # path is not listed in the libpath. Setting hardcode_minus_L
21599 # to unsupported forces relinking
21600 hardcode_minus_L_GCJ=yes
21601 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21602 hardcode_libdir_separator_GCJ=
21605 shared_flag='-shared'
21608 if test "$host_cpu" = ia64; then
21609 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21610 # chokes on -Wl,-G. The following line is correct:
21613 if test "$aix_use_runtimelinking" = yes; then
21614 shared_flag='${wl}-G'
21616 shared_flag='${wl}-bM:SRE'
21621 # It seems that -bexpall does not export symbols beginning with
21622 # underscore (_), so it is better to generate a list of symbols to export.
21623 always_export_symbols_GCJ=yes
21624 if test "$aix_use_runtimelinking" = yes; then
21625 # Warning - without using the other runtime loading flags (-brtl),
21626 # -berok will link without error, but may produce a broken library.
21627 allow_undefined_flag_GCJ='-berok'
21628 # Determine the default libpath from the value encoded in an empty executable.
21629 cat >conftest.$ac_ext <<_ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h. */
21644 rm -f conftest.$ac_objext conftest$ac_exeext
21645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21646 (eval $ac_link) 2>conftest.er1
21648 grep -v '^ *+' conftest.er1 >conftest.err
21650 cat conftest.err >&5
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } &&
21653 { ac_try='test -z "$ac_c_werror_flag"
21654 || test ! -s conftest.err'
21655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656 (eval $ac_try) 2>&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; } &&
21660 { ac_try='test -s conftest$ac_exeext'
21661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21662 (eval $ac_try) 2>&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; }; then
21667 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21669 # Check for a 64-bit object if we didn't find anything.
21670 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; }
21673 echo "$as_me: failed program was:" >&5
21674 sed 's/^/| /' conftest.$ac_ext >&5
21677 rm -f conftest.err conftest.$ac_objext \
21678 conftest$ac_exeext conftest.$ac_ext
21679 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21681 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21682 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"
21684 if test "$host_cpu" = ia64; then
21685 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21686 allow_undefined_flag_GCJ="-z nodefs"
21687 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"
21689 # Determine the default libpath from the value encoded in an empty executable.
21690 cat >conftest.$ac_ext <<_ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21705 rm -f conftest.$ac_objext conftest$ac_exeext
21706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21707 (eval $ac_link) 2>conftest.er1
21709 grep -v '^ *+' conftest.er1 >conftest.err
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } &&
21714 { ac_try='test -z "$ac_c_werror_flag"
21715 || test ! -s conftest.err'
21716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717 (eval $ac_try) 2>&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); }; } &&
21721 { ac_try='test -s conftest$ac_exeext'
21722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21723 (eval $ac_try) 2>&5
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); }; }; then
21728 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21730 # Check for a 64-bit object if we didn't find anything.
21731 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; }
21734 echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21738 rm -f conftest.err conftest.$ac_objext \
21739 conftest$ac_exeext conftest.$ac_ext
21740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21742 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21743 # Warning - without using the other run time loading flags,
21744 # -berok will link without error, but may produce a broken library.
21745 no_undefined_flag_GCJ=' ${wl}-bernotok'
21746 allow_undefined_flag_GCJ=' ${wl}-berok'
21747 # -bexpall does not export symbols beginning with underscore (_)
21748 always_export_symbols_GCJ=yes
21749 # Exported symbols can be pulled into shared objects from archives
21750 whole_archive_flag_spec_GCJ=' '
21751 archive_cmds_need_lc_GCJ=yes
21752 # This is similar to how AIX traditionally builds it's shared libraries.
21753 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'
21759 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)'
21760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21761 hardcode_minus_L_GCJ=yes
21762 # see comment about different semantics on the GNU ld section
21767 export_dynamic_flag_spec_GCJ=-rdynamic
21770 cygwin* | mingw* | pw32*)
21771 # When not using gcc, we currently assume that we are using
21772 # Microsoft Visual C++.
21773 # hardcode_libdir_flag_spec is actually meaningless, as there is
21774 # no search path for DLLs.
21775 hardcode_libdir_flag_spec_GCJ=' '
21776 allow_undefined_flag_GCJ=unsupported
21777 # Tell ltmain to make .lib files, not .a files.
21779 # Tell ltmain to make .dll files, not .so files.
21781 # FIXME: Setting linknames here is a bad hack.
21782 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21783 # The linker will automatically build a .lib file if we build a DLL.
21784 old_archive_From_new_cmds_GCJ='true'
21785 # FIXME: Should let the user specify the lib program.
21786 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21787 fix_srcfile_path='`cygpath -w "$srcfile"`'
21788 enable_shared_with_static_runtimes_GCJ=yes
21791 darwin* | rhapsody*)
21793 rhapsody* | darwin1.[012])
21794 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21797 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21798 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21800 case ${MACOSX_DEPLOYMENT_TARGET} in
21802 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21805 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21811 archive_cmds_need_lc_GCJ=no
21812 hardcode_direct_GCJ=no
21813 hardcode_automatic_GCJ=yes
21814 hardcode_shlibpath_var_GCJ=unsupported
21815 whole_archive_flag_spec_GCJ=''
21816 link_all_deplibs_GCJ=yes
21817 if test "$GCC" = yes ; then
21818 output_verbose_link_cmd='echo'
21819 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21820 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21821 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21822 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}'
21823 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}'
21825 case "$cc_basename" in
21827 output_verbose_link_cmd='echo'
21828 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $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 -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}'
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}'
21842 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21843 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21844 hardcode_shlibpath_var_GCJ=no
21851 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21852 # support. Future versions do this automatically, but an explicit c++rt0.o
21853 # does not break anything, and helps significantly (at the cost of a little
21856 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21857 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21858 hardcode_direct_GCJ=yes
21859 hardcode_shlibpath_var_GCJ=no
21862 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21864 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21865 hardcode_direct_GCJ=yes
21866 hardcode_minus_L_GCJ=yes
21867 hardcode_shlibpath_var_GCJ=no
21870 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21871 freebsd* | kfreebsd*-gnu)
21872 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21873 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21874 hardcode_direct_GCJ=yes
21875 hardcode_shlibpath_var_GCJ=no
21879 if test "$GCC" = yes; then
21880 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'
21882 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'
21884 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21885 hardcode_libdir_separator_GCJ=:
21886 hardcode_direct_GCJ=yes
21888 # hardcode_minus_L: Not really in the search PATH,
21889 # but as the default location of the library.
21890 hardcode_minus_L_GCJ=yes
21891 export_dynamic_flag_spec_GCJ='${wl}-E'
21895 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21896 case "$host_cpu" in
21898 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21901 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21905 case "$host_cpu" in
21907 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21910 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21914 if test "$with_gnu_ld" = no; then
21915 case "$host_cpu" in
21917 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21918 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21919 hardcode_libdir_separator_GCJ=:
21920 hardcode_direct_GCJ=no
21921 hardcode_shlibpath_var_GCJ=no
21924 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21925 hardcode_direct_GCJ=no
21926 hardcode_shlibpath_var_GCJ=no
21928 # hardcode_minus_L: Not really in the search PATH,
21929 # but as the default location of the library.
21930 hardcode_minus_L_GCJ=yes
21933 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21934 hardcode_libdir_separator_GCJ=:
21935 hardcode_direct_GCJ=yes
21936 export_dynamic_flag_spec_GCJ='${wl}-E'
21938 # hardcode_minus_L: Not really in the search PATH,
21939 # but as the default location of the library.
21940 hardcode_minus_L_GCJ=yes
21946 irix5* | irix6* | nonstopux*)
21947 if test "$GCC" = yes; then
21948 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'
21950 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'
21951 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21953 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21954 hardcode_libdir_separator_GCJ=:
21955 link_all_deplibs_GCJ=yes
21959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21960 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21962 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21964 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21965 hardcode_direct_GCJ=yes
21966 hardcode_shlibpath_var_GCJ=no
21970 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21971 hardcode_direct_GCJ=yes
21972 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21973 hardcode_libdir_separator_GCJ=:
21974 hardcode_shlibpath_var_GCJ=no
21978 hardcode_direct_GCJ=yes
21979 hardcode_shlibpath_var_GCJ=no
21980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21981 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21982 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21983 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21984 export_dynamic_flag_spec_GCJ='${wl}-E'
21987 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21988 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21989 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21992 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21993 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22000 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22001 hardcode_minus_L_GCJ=yes
22002 allow_undefined_flag_GCJ=unsupported
22003 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'
22004 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22008 if test "$GCC" = yes; then
22009 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22010 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'
22012 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22013 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'
22015 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22016 hardcode_libdir_separator_GCJ=:
22019 osf4* | osf5*) # as osf3* with the addition of -msym flag
22020 if test "$GCC" = yes; then
22021 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22022 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'
22023 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22025 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22026 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'
22027 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~
22028 $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'
22030 # Both c and cxx compiler support -rpath directly
22031 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22033 hardcode_libdir_separator_GCJ=:
22037 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22038 hardcode_shlibpath_var_GCJ=no
22039 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22040 runpath_var=LD_RUN_PATH
22041 hardcode_runpath_var=yes
22045 no_undefined_flag_GCJ=' -z text'
22046 if test "$GCC" = yes; then
22047 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22048 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22049 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22051 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22052 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22053 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22055 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22056 hardcode_shlibpath_var_GCJ=no
22058 solaris2.[0-5] | solaris2.[0-5].*) ;;
22059 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22060 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22062 link_all_deplibs_GCJ=yes
22066 if test "x$host_vendor" = xsequent; then
22067 # Use $CC to link under sequent, because it throws in some extra .o
22068 # files that make .init and .fini sections work.
22069 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22071 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22073 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22074 hardcode_direct_GCJ=yes
22075 hardcode_minus_L_GCJ=yes
22076 hardcode_shlibpath_var_GCJ=no
22080 case $host_vendor in
22082 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22083 hardcode_direct_GCJ=yes # is this really true???
22086 ## LD is ld it makes a PLAMLIB
22087 ## CC just makes a GrossModule.
22088 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22089 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22090 hardcode_direct_GCJ=no
22093 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22094 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22097 runpath_var='LD_RUN_PATH'
22098 hardcode_shlibpath_var_GCJ=no
22102 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22103 hardcode_shlibpath_var_GCJ=no
22104 export_dynamic_flag_spec_GCJ='-Bexport'
22108 if test -d /usr/nec; then
22109 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22110 hardcode_shlibpath_var_GCJ=no
22111 runpath_var=LD_RUN_PATH
22112 hardcode_runpath_var=yes
22118 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22119 hardcode_direct_GCJ=yes
22120 hardcode_minus_L_GCJ=no
22121 hardcode_shlibpath_var_GCJ=no
22122 hardcode_runpath_var=yes
22123 runpath_var=LD_RUN_PATH
22126 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22127 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22128 if test "$GCC" = yes; then
22129 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22131 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22133 runpath_var='LD_RUN_PATH'
22134 hardcode_shlibpath_var_GCJ=no
22138 no_undefined_flag_GCJ=' -z text'
22139 # $CC -shared without GNU ld will not create a library from C++
22140 # object files and a static libstdc++, better avoid it by now
22141 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22142 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22143 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22144 hardcode_libdir_flag_spec_GCJ=
22145 hardcode_shlibpath_var_GCJ=no
22146 runpath_var='LD_RUN_PATH'
22150 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22151 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22152 hardcode_shlibpath_var_GCJ=no
22161 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22162 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22163 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22165 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22166 if test "$GCC" = yes; then
22167 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22171 # Do we need to explicitly link libc?
22173 case "x$archive_cmds_need_lc_GCJ" in
22175 # Assume -lc should be added
22176 archive_cmds_need_lc_GCJ=yes
22178 if test "$enable_shared" = yes && test "$GCC" = yes; then
22179 case $archive_cmds_GCJ in
22181 # FIXME: we may have to deal with multi-command sequences.
22184 # Test whether the compiler implicitly links with -lc since on some
22185 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22186 # to ld, don't add -lc before -lgcc.
22187 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22188 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22190 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22193 (eval $ac_compile) 2>&5
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); } 2>conftest.err; then
22199 libobjs=conftest.$ac_objext
22201 wl=$lt_prog_compiler_wl_GCJ
22207 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22208 allow_undefined_flag_GCJ=
22209 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22210 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }
22215 archive_cmds_need_lc_GCJ=no
22217 archive_cmds_need_lc_GCJ=yes
22219 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22221 cat conftest.err 1>&5
22224 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22225 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22232 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22233 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22234 library_names_spec=
22235 libname_spec='lib$name'
22239 postuninstall_cmds=
22243 shlibpath_overrides_runpath=unknown
22245 dynamic_linker="$host_os ld.so"
22246 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22247 if test "$GCC" = yes; then
22248 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22249 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22250 # if the path contains ";" then we assume it to be the separator
22251 # otherwise default to the standard path separator (i.e. ":") - it is
22252 # assumed that no part of a normal pathname contains ";" but that should
22253 # okay in the real world where ";" in dirpaths is itself problematic.
22254 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22259 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22261 need_lib_prefix=unknown
22262 hardcode_into_libs=no
22264 # when you set need_version to no, make sure it does not cause -set_version
22265 # flags to be left without arguments
22266 need_version=unknown
22271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22272 shlibpath_var=LIBPATH
22274 # AIX 3 has no versioning support, so we append a major version to the name.
22275 soname_spec='${libname}${release}${shared_ext}$major'
22282 hardcode_into_libs=yes
22283 if test "$host_cpu" = ia64; then
22284 # AIX 5 supports IA64
22285 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22286 shlibpath_var=LD_LIBRARY_PATH
22288 # With GCC up to 2.95.x, collect2 would create an import file
22289 # for dependence libraries. The import file would start with
22290 # the line `#! .'. This would cause the generated library to
22291 # depend on `.', always an invalid library. This was fixed in
22292 # development snapshots of GCC prior to 3.0.
22294 aix4 | aix4.[01] | aix4.[01].*)
22295 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22297 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22300 can_build_shared=no
22304 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22305 # soname into executable. Probably we can add versioning support to
22306 # collect2, so additional links can be useful in future.
22307 if test "$aix_use_runtimelinking" = yes; then
22308 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22309 # instead of lib<name>.a to let people know that these are not
22310 # typical AIX shared libraries.
22311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22313 # We preserve .a as extension for shared libraries through AIX4.2
22314 # and later when we are not doing run time linking.
22315 library_names_spec='${libname}${release}.a $libname.a'
22316 soname_spec='${libname}${release}${shared_ext}$major'
22318 shlibpath_var=LIBPATH
22323 library_names_spec='$libname.ixlibrary $libname.a'
22324 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22325 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'
22329 library_names_spec='${libname}${shared_ext}'
22330 dynamic_linker="$host_os ld.so"
22331 shlibpath_var=LIBRARY_PATH
22337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22338 soname_spec='${libname}${release}${shared_ext}$major'
22339 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22340 shlibpath_var=LD_LIBRARY_PATH
22341 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22342 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22343 # the default ld.so.conf also contains /usr/contrib/lib and
22344 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22345 # libtool to hard-code these into programs
22348 cygwin* | mingw* | pw32*)
22349 version_type=windows
22354 case $GCC,$host_os in
22355 yes,cygwin* | yes,mingw* | yes,pw32*)
22356 library_names_spec='$libname.dll.a'
22357 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22358 postinstall_cmds='base_file=`basename \${file}`~
22359 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22360 dldir=$destdir/`dirname \$dlpath`~
22361 test -d \$dldir || mkdir -p \$dldir~
22362 $install_prog $dir/$dlname \$dldir/$dlname'
22363 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22364 dlpath=$dir/\$dldll~
22366 shlibpath_overrides_runpath=yes
22370 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22371 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22372 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22375 # MinGW DLLs use traditional 'lib' prefix
22376 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22377 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22378 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22379 # It is most probably a Windows format PATH printed by
22380 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22381 # path with ; separators, and with drive letters. We can handle the
22382 # drive letters (cygwin fileutils understands them), so leave them,
22383 # especially as we might pass files found there to a mingw objdump,
22384 # which wouldn't understand a cygwinified path. Ahh.
22385 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22391 # pw32 DLLs use 'pw' prefix rather than 'lib'
22392 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22398 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22401 dynamic_linker='Win32 ld.exe'
22402 # FIXME: first we should search . and the directory the executable is in
22406 darwin* | rhapsody*)
22407 dynamic_linker="$host_os dyld"
22408 version_type=darwin
22411 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22412 soname_spec='${libname}${release}${major}$shared_ext'
22413 shlibpath_overrides_runpath=yes
22414 shlibpath_var=DYLD_LIBRARY_PATH
22415 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22416 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22417 if test "$GCC" = yes; then
22418 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"`
22420 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22422 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22430 soname_spec='${libname}${release}${shared_ext}$major'
22431 shlibpath_var=LD_LIBRARY_PATH
22442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22443 soname_spec='${libname}${release}${shared_ext}$major'
22444 shlibpath_var=LD_LIBRARY_PATH
22445 shlibpath_overrides_runpath=no
22446 hardcode_into_libs=yes
22447 dynamic_linker='GNU ld.so'
22451 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22452 version_type=freebsd-$objformat
22453 case $version_type in
22455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22460 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22464 shlibpath_var=LD_LIBRARY_PATH
22467 shlibpath_overrides_runpath=yes
22469 freebsd3.01* | freebsdelf3.01*)
22470 shlibpath_overrides_runpath=yes
22471 hardcode_into_libs=yes
22474 shlibpath_overrides_runpath=no
22475 hardcode_into_libs=yes
22484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22485 soname_spec='${libname}${release}${shared_ext}$major'
22486 shlibpath_var=LD_LIBRARY_PATH
22487 hardcode_into_libs=yes
22490 hpux9* | hpux10* | hpux11*)
22491 # Give a soname corresponding to the major version so that dld.sl refuses to
22492 # link against other versions.
22496 case "$host_cpu" in
22499 hardcode_into_libs=yes
22500 dynamic_linker="$host_os dld.so"
22501 shlibpath_var=LD_LIBRARY_PATH
22502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22504 soname_spec='${libname}${release}${shared_ext}$major'
22505 if test "X$HPUX_IA64_MODE" = X32; then
22506 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22508 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22514 hardcode_into_libs=yes
22515 dynamic_linker="$host_os dld.sl"
22516 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22519 soname_spec='${libname}${release}${shared_ext}$major'
22520 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22525 dynamic_linker="$host_os dld.sl"
22526 shlibpath_var=SHLIB_PATH
22527 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22529 soname_spec='${libname}${release}${shared_ext}$major'
22532 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22533 postinstall_cmds='chmod 555 $lib'
22536 irix5* | irix6* | nonstopux*)
22538 nonstopux*) version_type=nonstopux ;;
22540 if test "$lt_cv_prog_gnu_ld" = yes; then
22548 soname_spec='${libname}${release}${shared_ext}$major'
22549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22551 irix5* | nonstopux*)
22552 libsuff= shlibsuff=
22555 case $LD in # libtool.m4 will add one of these switches to LD
22556 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22557 libsuff= shlibsuff= libmagic=32-bit;;
22558 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22559 libsuff=32 shlibsuff=N32 libmagic=N32;;
22560 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22561 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22562 *) libsuff= shlibsuff= libmagic=never-match;;
22566 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22567 shlibpath_overrides_runpath=no
22568 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22569 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22570 hardcode_into_libs=yes
22573 # No shared lib support for Linux oldld, aout, or coff.
22574 linux*oldld* | linux*aout* | linux*coff*)
22578 # This must be Linux ELF.
22583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22584 soname_spec='${libname}${release}${shared_ext}$major'
22585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22586 shlibpath_var=LD_LIBRARY_PATH
22587 shlibpath_overrides_runpath=no
22588 # This implies no fast_install, which is unacceptable.
22589 # Some rework will be needed to allow for fast_install
22590 # before this can be enabled.
22591 hardcode_into_libs=yes
22593 # Append ld.so.conf contents to the search path
22594 if test -f /etc/ld.so.conf; then
22595 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22596 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22599 # We used to test for /lib/ld.so.1 and disable shared libraries on
22600 # powerpc, because MkLinux only supported shared libraries with the
22601 # GNU dynamic linker. Since this was broken with cross compilers,
22602 # most powerpc-linux boxes support dynamic linking these days and
22603 # people can always --disable-shared, the test was removed, and we
22604 # assume the GNU/Linux dynamic linker is in use.
22605 dynamic_linker='GNU/Linux ld.so'
22612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22613 soname_spec='${libname}${release}${shared_ext}$major'
22614 shlibpath_var=LD_LIBRARY_PATH
22615 shlibpath_overrides_runpath=no
22616 hardcode_into_libs=yes
22617 dynamic_linker='GNU ld.so'
22624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22627 dynamic_linker='NetBSD (a.out) ld.so'
22629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22630 soname_spec='${libname}${release}${shared_ext}$major'
22631 dynamic_linker='NetBSD ld.elf_so'
22633 shlibpath_var=LD_LIBRARY_PATH
22634 shlibpath_overrides_runpath=yes
22635 hardcode_into_libs=yes
22640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22641 shlibpath_var=LD_LIBRARY_PATH
22642 shlibpath_overrides_runpath=yes
22649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22650 soname_spec='${libname}${release}${shared_ext}$major'
22651 shlibpath_var=LD_LIBRARY_PATH
22652 shlibpath_overrides_runpath=yes
22659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22661 shlibpath_var=LD_LIBRARY_PATH
22662 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22664 openbsd2.[89] | openbsd2.[89].*)
22665 shlibpath_overrides_runpath=no
22668 shlibpath_overrides_runpath=yes
22672 shlibpath_overrides_runpath=yes
22677 libname_spec='$name'
22680 library_names_spec='$libname${shared_ext} $libname.a'
22681 dynamic_linker='OS/2 ld.exe'
22682 shlibpath_var=LIBPATH
22685 osf3* | osf4* | osf5*)
22689 soname_spec='${libname}${release}${shared_ext}$major'
22690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22691 shlibpath_var=LD_LIBRARY_PATH
22692 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22693 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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
22707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22708 soname_spec='${libname}${release}${shared_ext}$major'
22709 shlibpath_var=LD_LIBRARY_PATH
22710 shlibpath_overrides_runpath=yes
22711 hardcode_into_libs=yes
22712 # ldd complains unless libraries are executable
22713 postinstall_cmds='chmod +x $lib'
22718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22719 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22720 shlibpath_var=LD_LIBRARY_PATH
22721 shlibpath_overrides_runpath=yes
22722 if test "$with_gnu_ld" = yes; then
22728 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22731 soname_spec='${libname}${release}${shared_ext}$major'
22732 shlibpath_var=LD_LIBRARY_PATH
22733 case $host_vendor in
22735 shlibpath_overrides_runpath=no
22737 export_dynamic_flag_spec='${wl}-Blargedynsym'
22738 runpath_var=LD_RUN_PATH
22746 shlibpath_overrides_runpath=no
22747 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22753 if test -d /usr/nec ;then
22755 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22756 soname_spec='$libname${shared_ext}.$major'
22757 shlibpath_var=LD_LIBRARY_PATH
22763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22764 soname_spec='${libname}${release}${shared_ext}$major'
22765 shlibpath_var=LD_LIBRARY_PATH
22772 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22773 echo "${ECHO_T}$dynamic_linker" >&6
22774 test "$dynamic_linker" = no && can_build_shared=no
22776 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22777 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22778 hardcode_action_GCJ=
22779 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22780 test -n "$runpath_var_GCJ" || \
22781 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22783 # We can hardcode non-existant directories.
22784 if test "$hardcode_direct_GCJ" != no &&
22785 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22786 # have to relink, otherwise we might link with an installed library
22787 # when we should be linking with a yet-to-be-installed one
22788 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22789 test "$hardcode_minus_L_GCJ" != no; then
22790 # Linking always hardcodes the temporary library directory.
22791 hardcode_action_GCJ=relink
22793 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22794 hardcode_action_GCJ=immediate
22797 # We cannot hardcode anything, or else we can only hardcode existing
22799 hardcode_action_GCJ=unsupported
22801 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22802 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22804 if test "$hardcode_action_GCJ" = relink; then
22805 # Fast installation is not supported
22806 enable_fast_install=no
22807 elif test "$shlibpath_overrides_runpath" = yes ||
22808 test "$enable_shared" = no; then
22809 # Fast installation is not necessary
22810 enable_fast_install=needless
22815 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22816 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22817 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22818 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22819 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22820 echo "$as_me:$LINENO: result: yes" >&5
22821 echo "${ECHO_T}yes" >&6
22823 # FIXME - insert some real tests, host_os isn't really good enough
22826 if test -n "$STRIP" ; then
22827 striplib="$STRIP -x"
22828 echo "$as_me:$LINENO: result: yes" >&5
22829 echo "${ECHO_T}yes" >&6
22831 echo "$as_me:$LINENO: result: no" >&5
22832 echo "${ECHO_T}no" >&6
22836 echo "$as_me:$LINENO: result: no" >&5
22837 echo "${ECHO_T}no" >&6
22842 if test "x$enable_dlopen" != xyes; then
22843 enable_dlopen=unknown
22844 enable_dlopen_self=unknown
22845 enable_dlopen_self_static=unknown
22852 lt_cv_dlopen="load_add_on"
22854 lt_cv_dlopen_self=yes
22858 lt_cv_dlopen="LoadLibrary"
22863 lt_cv_dlopen="dlopen"
22868 # if libdl is installed we need to link against it
22869 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22870 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22871 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22872 echo $ECHO_N "(cached) $ECHO_C" >&6
22874 ac_check_lib_save_LIBS=$LIBS
22876 cat >conftest.$ac_ext <<_ACEOF
22879 cat confdefs.h >>conftest.$ac_ext
22880 cat >>conftest.$ac_ext <<_ACEOF
22881 /* end confdefs.h. */
22883 /* Override any gcc2 internal prototype to avoid an error. */
22887 /* We use char because int might match the return type of a gcc2
22888 builtin and then its argument prototype would still apply. */
22898 rm -f conftest.$ac_objext conftest$ac_exeext
22899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22900 (eval $ac_link) 2>conftest.er1
22902 grep -v '^ *+' conftest.er1 >conftest.err
22904 cat conftest.err >&5
22905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906 (exit $ac_status); } &&
22907 { ac_try='test -z "$ac_c_werror_flag"
22908 || test ! -s conftest.err'
22909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22910 (eval $ac_try) 2>&5
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); }; } &&
22914 { ac_try='test -s conftest$ac_exeext'
22915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22916 (eval $ac_try) 2>&5
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); }; }; then
22920 ac_cv_lib_dl_dlopen=yes
22922 echo "$as_me: failed program was:" >&5
22923 sed 's/^/| /' conftest.$ac_ext >&5
22925 ac_cv_lib_dl_dlopen=no
22927 rm -f conftest.err conftest.$ac_objext \
22928 conftest$ac_exeext conftest.$ac_ext
22929 LIBS=$ac_check_lib_save_LIBS
22931 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22932 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22933 if test $ac_cv_lib_dl_dlopen = yes; then
22934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22937 lt_cv_dlopen="dyld"
22939 lt_cv_dlopen_self=yes
22946 echo "$as_me:$LINENO: checking for shl_load" >&5
22947 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22948 if test "${ac_cv_func_shl_load+set}" = set; then
22949 echo $ECHO_N "(cached) $ECHO_C" >&6
22951 cat >conftest.$ac_ext <<_ACEOF
22954 cat confdefs.h >>conftest.$ac_ext
22955 cat >>conftest.$ac_ext <<_ACEOF
22956 /* end confdefs.h. */
22957 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22959 #define shl_load innocuous_shl_load
22961 /* System header to define __stub macros and hopefully few prototypes,
22962 which can conflict with char shl_load (); below.
22963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22964 <limits.h> exists even on freestanding compilers. */
22967 # include <limits.h>
22969 # include <assert.h>
22974 /* Override any gcc2 internal prototype to avoid an error. */
22979 /* We use char because int might match the return type of a gcc2
22980 builtin and then its argument prototype would still apply. */
22982 /* The GNU C library defines this for functions which it implements
22983 to always fail with ENOSYS. Some functions are actually named
22984 something starting with __ and the normal name is an alias. */
22985 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22988 char (*f) () = shl_load;
22997 return f != shl_load;
23002 rm -f conftest.$ac_objext conftest$ac_exeext
23003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23004 (eval $ac_link) 2>conftest.er1
23006 grep -v '^ *+' conftest.er1 >conftest.err
23008 cat conftest.err >&5
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); } &&
23011 { ac_try='test -z "$ac_c_werror_flag"
23012 || test ! -s conftest.err'
23013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014 (eval $ac_try) 2>&5
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); }; } &&
23018 { ac_try='test -s conftest$ac_exeext'
23019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23020 (eval $ac_try) 2>&5
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); }; }; then
23024 ac_cv_func_shl_load=yes
23026 echo "$as_me: failed program was:" >&5
23027 sed 's/^/| /' conftest.$ac_ext >&5
23029 ac_cv_func_shl_load=no
23031 rm -f conftest.err conftest.$ac_objext \
23032 conftest$ac_exeext conftest.$ac_ext
23034 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23035 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23036 if test $ac_cv_func_shl_load = yes; then
23037 lt_cv_dlopen="shl_load"
23039 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23040 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23041 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23042 echo $ECHO_N "(cached) $ECHO_C" >&6
23044 ac_check_lib_save_LIBS=$LIBS
23046 cat >conftest.$ac_ext <<_ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h. */
23053 /* Override any gcc2 internal prototype to avoid an error. */
23057 /* We use char because int might match the return type of a gcc2
23058 builtin and then its argument prototype would still apply. */
23068 rm -f conftest.$ac_objext conftest$ac_exeext
23069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23070 (eval $ac_link) 2>conftest.er1
23072 grep -v '^ *+' conftest.er1 >conftest.err
23074 cat conftest.err >&5
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); } &&
23077 { ac_try='test -z "$ac_c_werror_flag"
23078 || test ! -s conftest.err'
23079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23080 (eval $ac_try) 2>&5
23082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083 (exit $ac_status); }; } &&
23084 { ac_try='test -s conftest$ac_exeext'
23085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086 (eval $ac_try) 2>&5
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); }; }; then
23090 ac_cv_lib_dld_shl_load=yes
23092 echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23095 ac_cv_lib_dld_shl_load=no
23097 rm -f conftest.err conftest.$ac_objext \
23098 conftest$ac_exeext conftest.$ac_ext
23099 LIBS=$ac_check_lib_save_LIBS
23101 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23102 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23103 if test $ac_cv_lib_dld_shl_load = yes; then
23104 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23106 echo "$as_me:$LINENO: checking for dlopen" >&5
23107 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23108 if test "${ac_cv_func_dlopen+set}" = set; then
23109 echo $ECHO_N "(cached) $ECHO_C" >&6
23111 cat >conftest.$ac_ext <<_ACEOF
23114 cat confdefs.h >>conftest.$ac_ext
23115 cat >>conftest.$ac_ext <<_ACEOF
23116 /* end confdefs.h. */
23117 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23119 #define dlopen innocuous_dlopen
23121 /* System header to define __stub macros and hopefully few prototypes,
23122 which can conflict with char dlopen (); below.
23123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23124 <limits.h> exists even on freestanding compilers. */
23127 # include <limits.h>
23129 # include <assert.h>
23134 /* Override any gcc2 internal prototype to avoid an error. */
23139 /* We use char because int might match the return type of a gcc2
23140 builtin and then its argument prototype would still apply. */
23142 /* The GNU C library defines this for functions which it implements
23143 to always fail with ENOSYS. Some functions are actually named
23144 something starting with __ and the normal name is an alias. */
23145 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23148 char (*f) () = dlopen;
23157 return f != dlopen;
23162 rm -f conftest.$ac_objext conftest$ac_exeext
23163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23164 (eval $ac_link) 2>conftest.er1
23166 grep -v '^ *+' conftest.er1 >conftest.err
23168 cat conftest.err >&5
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); } &&
23171 { ac_try='test -z "$ac_c_werror_flag"
23172 || test ! -s conftest.err'
23173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174 (eval $ac_try) 2>&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); }; } &&
23178 { ac_try='test -s conftest$ac_exeext'
23179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180 (eval $ac_try) 2>&5
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); }; }; then
23184 ac_cv_func_dlopen=yes
23186 echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23189 ac_cv_func_dlopen=no
23191 rm -f conftest.err conftest.$ac_objext \
23192 conftest$ac_exeext conftest.$ac_ext
23194 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23195 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23196 if test $ac_cv_func_dlopen = yes; then
23197 lt_cv_dlopen="dlopen"
23199 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23200 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23201 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23202 echo $ECHO_N "(cached) $ECHO_C" >&6
23204 ac_check_lib_save_LIBS=$LIBS
23206 cat >conftest.$ac_ext <<_ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h. */
23213 /* Override any gcc2 internal prototype to avoid an error. */
23217 /* We use char because int might match the return type of a gcc2
23218 builtin and then its argument prototype would still apply. */
23228 rm -f conftest.$ac_objext conftest$ac_exeext
23229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23230 (eval $ac_link) 2>conftest.er1
23232 grep -v '^ *+' conftest.er1 >conftest.err
23234 cat conftest.err >&5
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); } &&
23237 { ac_try='test -z "$ac_c_werror_flag"
23238 || test ! -s conftest.err'
23239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23240 (eval $ac_try) 2>&5
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); }; } &&
23244 { ac_try='test -s conftest$ac_exeext'
23245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23246 (eval $ac_try) 2>&5
23248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249 (exit $ac_status); }; }; then
23250 ac_cv_lib_dl_dlopen=yes
23252 echo "$as_me: failed program was:" >&5
23253 sed 's/^/| /' conftest.$ac_ext >&5
23255 ac_cv_lib_dl_dlopen=no
23257 rm -f conftest.err conftest.$ac_objext \
23258 conftest$ac_exeext conftest.$ac_ext
23259 LIBS=$ac_check_lib_save_LIBS
23261 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23262 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23263 if test $ac_cv_lib_dl_dlopen = yes; then
23264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23266 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23267 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23268 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23269 echo $ECHO_N "(cached) $ECHO_C" >&6
23271 ac_check_lib_save_LIBS=$LIBS
23272 LIBS="-lsvld $LIBS"
23273 cat >conftest.$ac_ext <<_ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h. */
23280 /* Override any gcc2 internal prototype to avoid an error. */
23284 /* We use char because int might match the return type of a gcc2
23285 builtin and then its argument prototype would still apply. */
23295 rm -f conftest.$ac_objext conftest$ac_exeext
23296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23297 (eval $ac_link) 2>conftest.er1
23299 grep -v '^ *+' conftest.er1 >conftest.err
23301 cat conftest.err >&5
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); } &&
23304 { ac_try='test -z "$ac_c_werror_flag"
23305 || test ! -s conftest.err'
23306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23307 (eval $ac_try) 2>&5
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); }; } &&
23311 { ac_try='test -s conftest$ac_exeext'
23312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23313 (eval $ac_try) 2>&5
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); }; }; then
23317 ac_cv_lib_svld_dlopen=yes
23319 echo "$as_me: failed program was:" >&5
23320 sed 's/^/| /' conftest.$ac_ext >&5
23322 ac_cv_lib_svld_dlopen=no
23324 rm -f conftest.err conftest.$ac_objext \
23325 conftest$ac_exeext conftest.$ac_ext
23326 LIBS=$ac_check_lib_save_LIBS
23328 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23329 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23330 if test $ac_cv_lib_svld_dlopen = yes; then
23331 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23333 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23334 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23335 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23336 echo $ECHO_N "(cached) $ECHO_C" >&6
23338 ac_check_lib_save_LIBS=$LIBS
23340 cat >conftest.$ac_ext <<_ACEOF
23343 cat confdefs.h >>conftest.$ac_ext
23344 cat >>conftest.$ac_ext <<_ACEOF
23345 /* end confdefs.h. */
23347 /* Override any gcc2 internal prototype to avoid an error. */
23351 /* We use char because int might match the return type of a gcc2
23352 builtin and then its argument prototype would still apply. */
23362 rm -f conftest.$ac_objext conftest$ac_exeext
23363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23364 (eval $ac_link) 2>conftest.er1
23366 grep -v '^ *+' conftest.er1 >conftest.err
23368 cat conftest.err >&5
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); } &&
23371 { ac_try='test -z "$ac_c_werror_flag"
23372 || test ! -s conftest.err'
23373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23374 (eval $ac_try) 2>&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); }; } &&
23378 { ac_try='test -s conftest$ac_exeext'
23379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; }; then
23384 ac_cv_lib_dld_dld_link=yes
23386 echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23389 ac_cv_lib_dld_dld_link=no
23391 rm -f conftest.err conftest.$ac_objext \
23392 conftest$ac_exeext conftest.$ac_ext
23393 LIBS=$ac_check_lib_save_LIBS
23395 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23396 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23397 if test $ac_cv_lib_dld_dld_link = yes; then
23398 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23419 if test "x$lt_cv_dlopen" != xno; then
23425 case $lt_cv_dlopen in
23427 save_CPPFLAGS="$CPPFLAGS"
23428 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23430 save_LDFLAGS="$LDFLAGS"
23431 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23434 LIBS="$lt_cv_dlopen_libs $LIBS"
23436 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23437 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23438 if test "${lt_cv_dlopen_self+set}" = set; then
23439 echo $ECHO_N "(cached) $ECHO_C" >&6
23441 if test "$cross_compiling" = yes; then :
23442 lt_cv_dlopen_self=cross
23444 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23445 lt_status=$lt_dlunknown
23446 cat > conftest.$ac_ext <<EOF
23447 #line 23447 "configure"
23448 #include "confdefs.h"
23457 # define LT_DLGLOBAL RTLD_GLOBAL
23460 # define LT_DLGLOBAL DL_GLOBAL
23462 # define LT_DLGLOBAL 0
23466 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23467 find out it does not work in some platform. */
23468 #ifndef LT_DLLAZY_OR_NOW
23470 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23473 # define LT_DLLAZY_OR_NOW DL_LAZY
23476 # define LT_DLLAZY_OR_NOW RTLD_NOW
23479 # define LT_DLLAZY_OR_NOW DL_NOW
23481 # define LT_DLLAZY_OR_NOW 0
23489 extern "C" void exit (int);
23492 void fnord() { int i=42;}
23495 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23496 int status = $lt_dlunknown;
23500 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23501 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23502 /* dlclose (self); */
23508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23509 (eval $ac_link) 2>&5
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23513 (./conftest; exit; ) 2>/dev/null
23515 case x$lt_status in
23516 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23517 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23518 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23521 # compilation failed
23522 lt_cv_dlopen_self=no
23529 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23530 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23532 if test "x$lt_cv_dlopen_self" = xyes; then
23533 LDFLAGS="$LDFLAGS $link_static_flag"
23534 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23535 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23536 if test "${lt_cv_dlopen_self_static+set}" = set; then
23537 echo $ECHO_N "(cached) $ECHO_C" >&6
23539 if test "$cross_compiling" = yes; then :
23540 lt_cv_dlopen_self_static=cross
23542 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23543 lt_status=$lt_dlunknown
23544 cat > conftest.$ac_ext <<EOF
23545 #line 23545 "configure"
23546 #include "confdefs.h"
23555 # define LT_DLGLOBAL RTLD_GLOBAL
23558 # define LT_DLGLOBAL DL_GLOBAL
23560 # define LT_DLGLOBAL 0
23564 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23565 find out it does not work in some platform. */
23566 #ifndef LT_DLLAZY_OR_NOW
23568 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23571 # define LT_DLLAZY_OR_NOW DL_LAZY
23574 # define LT_DLLAZY_OR_NOW RTLD_NOW
23577 # define LT_DLLAZY_OR_NOW DL_NOW
23579 # define LT_DLLAZY_OR_NOW 0
23587 extern "C" void exit (int);
23590 void fnord() { int i=42;}
23593 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23594 int status = $lt_dlunknown;
23598 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23599 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23600 /* dlclose (self); */
23606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23607 (eval $ac_link) 2>&5
23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23611 (./conftest; exit; ) 2>/dev/null
23613 case x$lt_status in
23614 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23615 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23616 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23619 # compilation failed
23620 lt_cv_dlopen_self_static=no
23627 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23628 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23631 CPPFLAGS="$save_CPPFLAGS"
23632 LDFLAGS="$save_LDFLAGS"
23637 case $lt_cv_dlopen_self in
23638 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23639 *) enable_dlopen_self=unknown ;;
23642 case $lt_cv_dlopen_self_static in
23643 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23644 *) enable_dlopen_self_static=unknown ;;
23649 # The else clause should only fire when bootstrapping the
23650 # libtool distribution, otherwise you forgot to ship ltmain.sh
23651 # with your package, and you will get complaints that there are
23652 # no rules to generate ltmain.sh.
23653 if test -f "$ltmain"; then
23654 # See if we are running on zsh, and set the options which allow our commands through
23655 # without removal of \ escapes.
23656 if test -n "${ZSH_VERSION+set}" ; then
23657 setopt NO_GLOB_SUBST
23659 # Now quote all the things that may contain metacharacters while being
23660 # careful not to overquote the AC_SUBSTed values. We take copies of the
23661 # variables and quote the copies for generation of the libtool script.
23662 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23664 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23665 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23666 deplibs_check_method reload_flag reload_cmds need_locks \
23667 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23668 lt_cv_sys_global_symbol_to_c_name_address \
23669 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23670 old_postinstall_cmds old_postuninstall_cmds \
23674 lt_prog_compiler_wl_GCJ \
23675 lt_prog_compiler_pic_GCJ \
23676 lt_prog_compiler_static_GCJ \
23677 lt_prog_compiler_no_builtin_flag_GCJ \
23678 export_dynamic_flag_spec_GCJ \
23679 thread_safe_flag_spec_GCJ \
23680 whole_archive_flag_spec_GCJ \
23681 enable_shared_with_static_runtimes_GCJ \
23682 old_archive_cmds_GCJ \
23683 old_archive_from_new_cmds_GCJ \
23684 predep_objects_GCJ \
23685 postdep_objects_GCJ \
23688 compiler_lib_search_path_GCJ \
23690 archive_expsym_cmds_GCJ \
23691 postinstall_cmds_GCJ \
23692 postuninstall_cmds_GCJ \
23693 old_archive_from_expsyms_cmds_GCJ \
23694 allow_undefined_flag_GCJ \
23695 no_undefined_flag_GCJ \
23696 export_symbols_cmds_GCJ \
23697 hardcode_libdir_flag_spec_GCJ \
23698 hardcode_libdir_flag_spec_ld_GCJ \
23699 hardcode_libdir_separator_GCJ \
23700 hardcode_automatic_GCJ \
23702 module_expsym_cmds_GCJ \
23703 lt_cv_prog_compiler_c_o_GCJ \
23704 exclude_expsyms_GCJ \
23705 include_expsyms_GCJ; do
23708 old_archive_cmds_GCJ | \
23709 old_archive_from_new_cmds_GCJ | \
23710 archive_cmds_GCJ | \
23711 archive_expsym_cmds_GCJ | \
23712 module_cmds_GCJ | \
23713 module_expsym_cmds_GCJ | \
23714 old_archive_from_expsyms_cmds_GCJ | \
23715 export_symbols_cmds_GCJ | \
23716 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23717 postinstall_cmds | postuninstall_cmds | \
23718 old_postinstall_cmds | old_postuninstall_cmds | \
23719 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23720 # Double-quote double-evaled strings.
23721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23730 *'\$0 --fallback-echo"')
23731 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23737 cat <<__EOF__ >> "$cfgfile"
23738 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23740 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23742 # Shell to use when invoking shell scripts.
23745 # Whether or not to build shared libraries.
23746 build_libtool_libs=$enable_shared
23748 # Whether or not to build static libraries.
23749 build_old_libs=$enable_static
23751 # Whether or not to add -lc for building shared libraries.
23752 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23754 # Whether or not to disallow shared libs when runtime libs are static
23755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23757 # Whether or not to optimize for fast installation.
23758 fast_install=$enable_fast_install
23761 host_alias=$host_alias
23764 # An echo program that does not interpret backslashes.
23769 AR_FLAGS=$lt_AR_FLAGS
23774 # A language-specific compiler.
23775 CC=$lt_compiler_GCJ
23777 # Is the compiler the GNU C compiler?
23783 # The linker used to build libraries.
23786 # Whether we need hard or soft links.
23789 # A BSD-compatible nm program.
23792 # A symbol stripping program
23795 # Used to examine libraries when file_magic_cmd begins "file"
23796 MAGIC_CMD=$MAGIC_CMD
23798 # Used on cygwin: DLL creation program.
23801 # Used on cygwin: object dumper.
23804 # Used on cygwin: assembler.
23807 # The name of the directory that contains temporary libtool files.
23810 # How to create reloadable object files.
23811 reload_flag=$lt_reload_flag
23812 reload_cmds=$lt_reload_cmds
23814 # How to pass a linker flag through the compiler.
23815 wl=$lt_lt_prog_compiler_wl_GCJ
23817 # Object file suffix (normally "o").
23818 objext="$ac_objext"
23820 # Old archive suffix (normally "a").
23823 # Shared library suffix (normally ".so").
23824 shrext_cmds='$shrext_cmds'
23826 # Executable file suffix (normally "").
23829 # Additional compiler flags for building library objects.
23830 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23833 # What is the maximum length of a command?
23834 max_cmd_len=$lt_cv_sys_max_cmd_len
23836 # Does compiler simultaneously support -c and -o options?
23837 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23839 # Must we lock files when doing compilation ?
23840 need_locks=$lt_need_locks
23842 # Do we need the lib prefix for modules?
23843 need_lib_prefix=$need_lib_prefix
23845 # Do we need a version for libraries?
23846 need_version=$need_version
23848 # Whether dlopen is supported.
23849 dlopen_support=$enable_dlopen
23851 # Whether dlopen of programs is supported.
23852 dlopen_self=$enable_dlopen_self
23854 # Whether dlopen of statically linked programs is supported.
23855 dlopen_self_static=$enable_dlopen_self_static
23857 # Compiler flag to prevent dynamic linking.
23858 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23860 # Compiler flag to turn off builtin functions.
23861 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23863 # Compiler flag to allow reflexive dlopens.
23864 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23866 # Compiler flag to generate shared objects directly from archives.
23867 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23869 # Compiler flag to generate thread-safe objects.
23870 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23872 # Library versioning type.
23873 version_type=$version_type
23875 # Format of library name prefix.
23876 libname_spec=$lt_libname_spec
23878 # List of archive names. First name is the real one, the rest are links.
23879 # The last name is the one that the linker finds with -lNAME.
23880 library_names_spec=$lt_library_names_spec
23882 # The coded name of the library, if different from the real name.
23883 soname_spec=$lt_soname_spec
23885 # Commands used to build and install an old-style archive.
23887 old_archive_cmds=$lt_old_archive_cmds_GCJ
23888 old_postinstall_cmds=$lt_old_postinstall_cmds
23889 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23891 # Create an old-style archive from a shared archive.
23892 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23894 # Create a temporary old-style archive to link instead of a shared archive.
23895 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23897 # Commands used to build and install a shared archive.
23898 archive_cmds=$lt_archive_cmds_GCJ
23899 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23900 postinstall_cmds=$lt_postinstall_cmds
23901 postuninstall_cmds=$lt_postuninstall_cmds
23903 # Commands used to build a loadable module (assumed same as above if empty)
23904 module_cmds=$lt_module_cmds_GCJ
23905 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23907 # Commands to strip libraries.
23908 old_striplib=$lt_old_striplib
23909 striplib=$lt_striplib
23911 # Dependencies to place before the objects being linked to create a
23913 predep_objects=$lt_predep_objects_GCJ
23915 # Dependencies to place after the objects being linked to create a
23917 postdep_objects=$lt_postdep_objects_GCJ
23919 # Dependencies to place before the objects being linked to create a
23921 predeps=$lt_predeps_GCJ
23923 # Dependencies to place after the objects being linked to create a
23925 postdeps=$lt_postdeps_GCJ
23927 # The library search path used internally by the compiler when linking
23928 # a shared library.
23929 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23931 # Method to check whether dependent libraries are shared objects.
23932 deplibs_check_method=$lt_deplibs_check_method
23934 # Command to use when deplibs_check_method == file_magic.
23935 file_magic_cmd=$lt_file_magic_cmd
23937 # Flag that allows shared libraries with undefined symbols to be built.
23938 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23940 # Flag that forces no undefined symbols.
23941 no_undefined_flag=$lt_no_undefined_flag_GCJ
23943 # Commands used to finish a libtool library installation in a directory.
23944 finish_cmds=$lt_finish_cmds
23946 # Same as above, but a single script fragment to be evaled but not shown.
23947 finish_eval=$lt_finish_eval
23949 # Take the output of nm and produce a listing of raw symbols and C names.
23950 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23952 # Transform the output of nm in a proper C declaration
23953 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23955 # Transform the output of nm in a C name address pair
23956 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23958 # This is the shared library runtime path variable.
23959 runpath_var=$runpath_var
23961 # This is the shared library path variable.
23962 shlibpath_var=$shlibpath_var
23964 # Is shlibpath searched before the hard-coded library search path?
23965 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23967 # How to hardcode a shared library path into an executable.
23968 hardcode_action=$hardcode_action_GCJ
23970 # Whether we should hardcode library paths into libraries.
23971 hardcode_into_libs=$hardcode_into_libs
23973 # Flag to hardcode \$libdir into a binary during linking.
23974 # This must work even if \$libdir does not exist.
23975 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23977 # If ld is used when linking, flag to hardcode \$libdir into
23978 # a binary during linking. This must work even if \$libdir does
23980 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23982 # Whether we need a single -rpath flag with a separated argument.
23983 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23985 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23986 # resulting binary.
23987 hardcode_direct=$hardcode_direct_GCJ
23989 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23990 # resulting binary.
23991 hardcode_minus_L=$hardcode_minus_L_GCJ
23993 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23994 # the resulting binary.
23995 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23997 # Set to yes if building a shared library automatically hardcodes DIR into the library
23998 # and all subsequent libraries and executables linked against it.
23999 hardcode_automatic=$hardcode_automatic_GCJ
24001 # Variables whose values should be saved in libtool wrapper scripts and
24002 # restored at relink time.
24003 variables_saved_for_relink="$variables_saved_for_relink"
24005 # Whether libtool must link a program against all its dependency libraries.
24006 link_all_deplibs=$link_all_deplibs_GCJ
24008 # Compile-time system search path for libraries
24009 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24011 # Run-time system search path for libraries
24012 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24014 # Fix the shell variable \$srcfile for the compiler.
24015 fix_srcfile_path="$fix_srcfile_path_GCJ"
24017 # Set to yes if exported symbols are required.
24018 always_export_symbols=$always_export_symbols_GCJ
24020 # The commands to list exported symbols.
24021 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24023 # The commands to extract the exported symbol list from a shared archive.
24024 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24026 # Symbols that should not be listed in the preloaded symbols.
24027 exclude_expsyms=$lt_exclude_expsyms_GCJ
24029 # Symbols that must always be exported.
24030 include_expsyms=$lt_include_expsyms_GCJ
24032 # ### END LIBTOOL TAG CONFIG: $tagname
24038 # If there is no Makefile yet, we rely on a make rule to execute
24039 # `config.status --recheck' to rerun these tests and create the
24040 # libtool script then.
24041 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24042 if test -f "$ltmain_in"; then
24043 test -f Makefile && make "$ltmain"
24049 ac_cpp='$CPP $CPPFLAGS'
24050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24063 ac_cpp='$CPP $CPPFLAGS'
24064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24069 # Source file extension for RC test sources.
24072 # Object file extension for compiled RC test sources.
24076 # Code to be used in simple compile tests
24077 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24079 # Code to be used in simple link tests
24080 lt_simple_link_test_code="$lt_simple_compile_test_code"
24082 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24084 # If no C compiler was specified, use CC.
24087 # Allow CC to be a program name with arguments.
24091 # Allow CC to be a program name with arguments.
24096 lt_cv_prog_compiler_c_o_RC=yes
24098 # The else clause should only fire when bootstrapping the
24099 # libtool distribution, otherwise you forgot to ship ltmain.sh
24100 # with your package, and you will get complaints that there are
24101 # no rules to generate ltmain.sh.
24102 if test -f "$ltmain"; then
24103 # See if we are running on zsh, and set the options which allow our commands through
24104 # without removal of \ escapes.
24105 if test -n "${ZSH_VERSION+set}" ; then
24106 setopt NO_GLOB_SUBST
24108 # Now quote all the things that may contain metacharacters while being
24109 # careful not to overquote the AC_SUBSTed values. We take copies of the
24110 # variables and quote the copies for generation of the libtool script.
24111 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24113 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24114 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24115 deplibs_check_method reload_flag reload_cmds need_locks \
24116 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24117 lt_cv_sys_global_symbol_to_c_name_address \
24118 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24119 old_postinstall_cmds old_postuninstall_cmds \
24123 lt_prog_compiler_wl_RC \
24124 lt_prog_compiler_pic_RC \
24125 lt_prog_compiler_static_RC \
24126 lt_prog_compiler_no_builtin_flag_RC \
24127 export_dynamic_flag_spec_RC \
24128 thread_safe_flag_spec_RC \
24129 whole_archive_flag_spec_RC \
24130 enable_shared_with_static_runtimes_RC \
24131 old_archive_cmds_RC \
24132 old_archive_from_new_cmds_RC \
24133 predep_objects_RC \
24134 postdep_objects_RC \
24137 compiler_lib_search_path_RC \
24139 archive_expsym_cmds_RC \
24140 postinstall_cmds_RC \
24141 postuninstall_cmds_RC \
24142 old_archive_from_expsyms_cmds_RC \
24143 allow_undefined_flag_RC \
24144 no_undefined_flag_RC \
24145 export_symbols_cmds_RC \
24146 hardcode_libdir_flag_spec_RC \
24147 hardcode_libdir_flag_spec_ld_RC \
24148 hardcode_libdir_separator_RC \
24149 hardcode_automatic_RC \
24151 module_expsym_cmds_RC \
24152 lt_cv_prog_compiler_c_o_RC \
24153 exclude_expsyms_RC \
24154 include_expsyms_RC; do
24157 old_archive_cmds_RC | \
24158 old_archive_from_new_cmds_RC | \
24159 archive_cmds_RC | \
24160 archive_expsym_cmds_RC | \
24162 module_expsym_cmds_RC | \
24163 old_archive_from_expsyms_cmds_RC | \
24164 export_symbols_cmds_RC | \
24165 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24166 postinstall_cmds | postuninstall_cmds | \
24167 old_postinstall_cmds | old_postuninstall_cmds | \
24168 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24169 # Double-quote double-evaled strings.
24170 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24173 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24179 *'\$0 --fallback-echo"')
24180 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24186 cat <<__EOF__ >> "$cfgfile"
24187 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24189 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24191 # Shell to use when invoking shell scripts.
24194 # Whether or not to build shared libraries.
24195 build_libtool_libs=$enable_shared
24197 # Whether or not to build static libraries.
24198 build_old_libs=$enable_static
24200 # Whether or not to add -lc for building shared libraries.
24201 build_libtool_need_lc=$archive_cmds_need_lc_RC
24203 # Whether or not to disallow shared libs when runtime libs are static
24204 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24206 # Whether or not to optimize for fast installation.
24207 fast_install=$enable_fast_install
24210 host_alias=$host_alias
24213 # An echo program that does not interpret backslashes.
24218 AR_FLAGS=$lt_AR_FLAGS
24223 # A language-specific compiler.
24226 # Is the compiler the GNU C compiler?
24232 # The linker used to build libraries.
24235 # Whether we need hard or soft links.
24238 # A BSD-compatible nm program.
24241 # A symbol stripping program
24244 # Used to examine libraries when file_magic_cmd begins "file"
24245 MAGIC_CMD=$MAGIC_CMD
24247 # Used on cygwin: DLL creation program.
24250 # Used on cygwin: object dumper.
24253 # Used on cygwin: assembler.
24256 # The name of the directory that contains temporary libtool files.
24259 # How to create reloadable object files.
24260 reload_flag=$lt_reload_flag
24261 reload_cmds=$lt_reload_cmds
24263 # How to pass a linker flag through the compiler.
24264 wl=$lt_lt_prog_compiler_wl_RC
24266 # Object file suffix (normally "o").
24267 objext="$ac_objext"
24269 # Old archive suffix (normally "a").
24272 # Shared library suffix (normally ".so").
24273 shrext_cmds='$shrext_cmds'
24275 # Executable file suffix (normally "").
24278 # Additional compiler flags for building library objects.
24279 pic_flag=$lt_lt_prog_compiler_pic_RC
24282 # What is the maximum length of a command?
24283 max_cmd_len=$lt_cv_sys_max_cmd_len
24285 # Does compiler simultaneously support -c and -o options?
24286 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24288 # Must we lock files when doing compilation ?
24289 need_locks=$lt_need_locks
24291 # Do we need the lib prefix for modules?
24292 need_lib_prefix=$need_lib_prefix
24294 # Do we need a version for libraries?
24295 need_version=$need_version
24297 # Whether dlopen is supported.
24298 dlopen_support=$enable_dlopen
24300 # Whether dlopen of programs is supported.
24301 dlopen_self=$enable_dlopen_self
24303 # Whether dlopen of statically linked programs is supported.
24304 dlopen_self_static=$enable_dlopen_self_static
24306 # Compiler flag to prevent dynamic linking.
24307 link_static_flag=$lt_lt_prog_compiler_static_RC
24309 # Compiler flag to turn off builtin functions.
24310 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24312 # Compiler flag to allow reflexive dlopens.
24313 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24315 # Compiler flag to generate shared objects directly from archives.
24316 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24318 # Compiler flag to generate thread-safe objects.
24319 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24321 # Library versioning type.
24322 version_type=$version_type
24324 # Format of library name prefix.
24325 libname_spec=$lt_libname_spec
24327 # List of archive names. First name is the real one, the rest are links.
24328 # The last name is the one that the linker finds with -lNAME.
24329 library_names_spec=$lt_library_names_spec
24331 # The coded name of the library, if different from the real name.
24332 soname_spec=$lt_soname_spec
24334 # Commands used to build and install an old-style archive.
24336 old_archive_cmds=$lt_old_archive_cmds_RC
24337 old_postinstall_cmds=$lt_old_postinstall_cmds
24338 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24340 # Create an old-style archive from a shared archive.
24341 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24343 # Create a temporary old-style archive to link instead of a shared archive.
24344 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24346 # Commands used to build and install a shared archive.
24347 archive_cmds=$lt_archive_cmds_RC
24348 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24349 postinstall_cmds=$lt_postinstall_cmds
24350 postuninstall_cmds=$lt_postuninstall_cmds
24352 # Commands used to build a loadable module (assumed same as above if empty)
24353 module_cmds=$lt_module_cmds_RC
24354 module_expsym_cmds=$lt_module_expsym_cmds_RC
24356 # Commands to strip libraries.
24357 old_striplib=$lt_old_striplib
24358 striplib=$lt_striplib
24360 # Dependencies to place before the objects being linked to create a
24362 predep_objects=$lt_predep_objects_RC
24364 # Dependencies to place after the objects being linked to create a
24366 postdep_objects=$lt_postdep_objects_RC
24368 # Dependencies to place before the objects being linked to create a
24370 predeps=$lt_predeps_RC
24372 # Dependencies to place after the objects being linked to create a
24374 postdeps=$lt_postdeps_RC
24376 # The library search path used internally by the compiler when linking
24377 # a shared library.
24378 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24380 # Method to check whether dependent libraries are shared objects.
24381 deplibs_check_method=$lt_deplibs_check_method
24383 # Command to use when deplibs_check_method == file_magic.
24384 file_magic_cmd=$lt_file_magic_cmd
24386 # Flag that allows shared libraries with undefined symbols to be built.
24387 allow_undefined_flag=$lt_allow_undefined_flag_RC
24389 # Flag that forces no undefined symbols.
24390 no_undefined_flag=$lt_no_undefined_flag_RC
24392 # Commands used to finish a libtool library installation in a directory.
24393 finish_cmds=$lt_finish_cmds
24395 # Same as above, but a single script fragment to be evaled but not shown.
24396 finish_eval=$lt_finish_eval
24398 # Take the output of nm and produce a listing of raw symbols and C names.
24399 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24401 # Transform the output of nm in a proper C declaration
24402 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24404 # Transform the output of nm in a C name address pair
24405 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24407 # This is the shared library runtime path variable.
24408 runpath_var=$runpath_var
24410 # This is the shared library path variable.
24411 shlibpath_var=$shlibpath_var
24413 # Is shlibpath searched before the hard-coded library search path?
24414 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24416 # How to hardcode a shared library path into an executable.
24417 hardcode_action=$hardcode_action_RC
24419 # Whether we should hardcode library paths into libraries.
24420 hardcode_into_libs=$hardcode_into_libs
24422 # Flag to hardcode \$libdir into a binary during linking.
24423 # This must work even if \$libdir does not exist.
24424 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24426 # If ld is used when linking, flag to hardcode \$libdir into
24427 # a binary during linking. This must work even if \$libdir does
24429 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24431 # Whether we need a single -rpath flag with a separated argument.
24432 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24434 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24435 # resulting binary.
24436 hardcode_direct=$hardcode_direct_RC
24438 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24439 # resulting binary.
24440 hardcode_minus_L=$hardcode_minus_L_RC
24442 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24443 # the resulting binary.
24444 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24446 # Set to yes if building a shared library automatically hardcodes DIR into the library
24447 # and all subsequent libraries and executables linked against it.
24448 hardcode_automatic=$hardcode_automatic_RC
24450 # Variables whose values should be saved in libtool wrapper scripts and
24451 # restored at relink time.
24452 variables_saved_for_relink="$variables_saved_for_relink"
24454 # Whether libtool must link a program against all its dependency libraries.
24455 link_all_deplibs=$link_all_deplibs_RC
24457 # Compile-time system search path for libraries
24458 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24460 # Run-time system search path for libraries
24461 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24463 # Fix the shell variable \$srcfile for the compiler.
24464 fix_srcfile_path="$fix_srcfile_path_RC"
24466 # Set to yes if exported symbols are required.
24467 always_export_symbols=$always_export_symbols_RC
24469 # The commands to list exported symbols.
24470 export_symbols_cmds=$lt_export_symbols_cmds_RC
24472 # The commands to extract the exported symbol list from a shared archive.
24473 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24475 # Symbols that should not be listed in the preloaded symbols.
24476 exclude_expsyms=$lt_exclude_expsyms_RC
24478 # Symbols that must always be exported.
24479 include_expsyms=$lt_include_expsyms_RC
24481 # ### END LIBTOOL TAG CONFIG: $tagname
24487 # If there is no Makefile yet, we rely on a make rule to execute
24488 # `config.status --recheck' to rerun these tests and create the
24489 # libtool script then.
24490 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24491 if test -f "$ltmain_in"; then
24492 test -f Makefile && make "$ltmain"
24498 ac_cpp='$CPP $CPPFLAGS'
24499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24508 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24509 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24510 { (exit 1); exit 1; }; }
24514 # Append the new tag name to the list of available tags.
24515 if test -n "$tagname" ; then
24516 available_tags="$available_tags $tagname"
24522 # Now substitute the updated list of available tags.
24523 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24524 mv "${ofile}T" "$ofile"
24528 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24529 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24530 { (exit 1); exit 1; }; }
24536 # This can be used to rebuild libtool when needed
24537 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24539 # Always use our own libtool.
24540 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24542 # Prevent multiple expansion
24564 etags_version=`$ETAGS --version 2>&1`
24565 case "$etags_version" in
24566 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24567 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24568 *) ETAGSFLAGS="" ;;
24570 ETAGSFLAGS=$ETAGSFLAGS
24573 echo "$as_me:$LINENO: checking tool compatibility" >&5
24574 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24587 if test "$GCC" != "yes" && test "$ICC" != "yes"
24589 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24590 echo "$as_me: error: gcc|icc required but not found" >&2;}
24591 { (exit 1); exit 1; }; }
24594 if test "$GXX" != "yes" && test "$IXX" != "yes"
24596 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24597 echo "$as_me: error: g++|icc required but not found" >&2;}
24598 { (exit 1); exit 1; }; }
24601 if test "$GCC" = "yes"
24603 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24604 if test "$gccmajor" -lt "3"
24606 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24607 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24608 { (exit 1); exit 1; }; }
24612 if test -z "$llvm_cv_gnu_make_command"
24614 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24615 echo "$as_me: error: GNU Make required but not found" >&2;}
24616 { (exit 1); exit 1; }; }
24619 echo "$as_me:$LINENO: result: ok" >&5
24620 echo "${ECHO_T}ok" >&6
24624 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24625 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24626 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24627 echo $ECHO_N "(cached) $ECHO_C" >&6
24629 ac_check_lib_save_LIBS=$LIBS
24631 cat >conftest.$ac_ext <<_ACEOF
24634 cat confdefs.h >>conftest.$ac_ext
24635 cat >>conftest.$ac_ext <<_ACEOF
24636 /* end confdefs.h. */
24638 /* Override any gcc2 internal prototype to avoid an error. */
24642 /* We use char because int might match the return type of a gcc2
24643 builtin and then its argument prototype would still apply. */
24653 rm -f conftest.$ac_objext conftest$ac_exeext
24654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24655 (eval $ac_link) 2>conftest.er1
24657 grep -v '^ *+' conftest.er1 >conftest.err
24659 cat conftest.err >&5
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); } &&
24662 { ac_try='test -z "$ac_c_werror_flag"
24663 || test ! -s conftest.err'
24664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665 (eval $ac_try) 2>&5
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); }; } &&
24669 { ac_try='test -s conftest$ac_exeext'
24670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671 (eval $ac_try) 2>&5
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); }; }; then
24675 ac_cv_lib_elf_elf_begin=yes
24677 echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24680 ac_cv_lib_elf_elf_begin=no
24682 rm -f conftest.err conftest.$ac_objext \
24683 conftest$ac_exeext conftest.$ac_ext
24684 LIBS=$ac_check_lib_save_LIBS
24686 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24687 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24688 if test $ac_cv_lib_elf_elf_begin = yes; then
24689 cat >>confdefs.h <<_ACEOF
24690 #define HAVE_LIBELF 1
24698 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24699 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24700 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24701 echo $ECHO_N "(cached) $ECHO_C" >&6
24703 ac_func_search_save_LIBS=$LIBS
24704 ac_cv_search_lt_dlopen=no
24705 cat >conftest.$ac_ext <<_ACEOF
24708 cat confdefs.h >>conftest.$ac_ext
24709 cat >>conftest.$ac_ext <<_ACEOF
24710 /* end confdefs.h. */
24712 /* Override any gcc2 internal prototype to avoid an error. */
24716 /* We use char because int might match the return type of a gcc2
24717 builtin and then its argument prototype would still apply. */
24727 rm -f conftest.$ac_objext conftest$ac_exeext
24728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24729 (eval $ac_link) 2>conftest.er1
24731 grep -v '^ *+' conftest.er1 >conftest.err
24733 cat conftest.err >&5
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); } &&
24736 { ac_try='test -z "$ac_c_werror_flag"
24737 || test ! -s conftest.err'
24738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24739 (eval $ac_try) 2>&5
24741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 (exit $ac_status); }; } &&
24743 { ac_try='test -s conftest$ac_exeext'
24744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24745 (eval $ac_try) 2>&5
24747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748 (exit $ac_status); }; }; then
24749 ac_cv_search_lt_dlopen="none required"
24751 echo "$as_me: failed program was:" >&5
24752 sed 's/^/| /' conftest.$ac_ext >&5
24755 rm -f conftest.err conftest.$ac_objext \
24756 conftest$ac_exeext conftest.$ac_ext
24757 if test "$ac_cv_search_lt_dlopen" = no; then
24758 for ac_lib in ltdl; do
24759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24760 cat >conftest.$ac_ext <<_ACEOF
24763 cat confdefs.h >>conftest.$ac_ext
24764 cat >>conftest.$ac_ext <<_ACEOF
24765 /* end confdefs.h. */
24767 /* Override any gcc2 internal prototype to avoid an error. */
24771 /* We use char because int might match the return type of a gcc2
24772 builtin and then its argument prototype would still apply. */
24782 rm -f conftest.$ac_objext conftest$ac_exeext
24783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24784 (eval $ac_link) 2>conftest.er1
24786 grep -v '^ *+' conftest.er1 >conftest.err
24788 cat conftest.err >&5
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); } &&
24791 { ac_try='test -z "$ac_c_werror_flag"
24792 || test ! -s conftest.err'
24793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24794 (eval $ac_try) 2>&5
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); }; } &&
24798 { ac_try='test -s conftest$ac_exeext'
24799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24800 (eval $ac_try) 2>&5
24802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803 (exit $ac_status); }; }; then
24804 ac_cv_search_lt_dlopen="-l$ac_lib"
24807 echo "$as_me: failed program was:" >&5
24808 sed 's/^/| /' conftest.$ac_ext >&5
24811 rm -f conftest.err conftest.$ac_objext \
24812 conftest$ac_exeext conftest.$ac_ext
24815 LIBS=$ac_func_search_save_LIBS
24817 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24818 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24819 if test "$ac_cv_search_lt_dlopen" != no; then
24820 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24822 cat >>confdefs.h <<\_ACEOF
24823 #define HAVE_LT_DLOPEN 1
24827 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24828 not be available" >&5
24829 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24830 not be available" >&2;}
24834 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24835 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24836 if test "${ac_cv_search_dlopen+set}" = set; then
24837 echo $ECHO_N "(cached) $ECHO_C" >&6
24839 ac_func_search_save_LIBS=$LIBS
24840 ac_cv_search_dlopen=no
24841 cat >conftest.$ac_ext <<_ACEOF
24844 cat confdefs.h >>conftest.$ac_ext
24845 cat >>conftest.$ac_ext <<_ACEOF
24846 /* end confdefs.h. */
24848 /* Override any gcc2 internal prototype to avoid an error. */
24852 /* We use char because int might match the return type of a gcc2
24853 builtin and then its argument prototype would still apply. */
24863 rm -f conftest.$ac_objext conftest$ac_exeext
24864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24865 (eval $ac_link) 2>conftest.er1
24867 grep -v '^ *+' conftest.er1 >conftest.err
24869 cat conftest.err >&5
24870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871 (exit $ac_status); } &&
24872 { ac_try='test -z "$ac_c_werror_flag"
24873 || test ! -s conftest.err'
24874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24875 (eval $ac_try) 2>&5
24877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); }; } &&
24879 { ac_try='test -s conftest$ac_exeext'
24880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881 (eval $ac_try) 2>&5
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); }; }; then
24885 ac_cv_search_dlopen="none required"
24887 echo "$as_me: failed program was:" >&5
24888 sed 's/^/| /' conftest.$ac_ext >&5
24891 rm -f conftest.err conftest.$ac_objext \
24892 conftest$ac_exeext conftest.$ac_ext
24893 if test "$ac_cv_search_dlopen" = no; then
24894 for ac_lib in dl; do
24895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24896 cat >conftest.$ac_ext <<_ACEOF
24899 cat confdefs.h >>conftest.$ac_ext
24900 cat >>conftest.$ac_ext <<_ACEOF
24901 /* end confdefs.h. */
24903 /* Override any gcc2 internal prototype to avoid an error. */
24907 /* We use char because int might match the return type of a gcc2
24908 builtin and then its argument prototype would still apply. */
24918 rm -f conftest.$ac_objext conftest$ac_exeext
24919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24920 (eval $ac_link) 2>conftest.er1
24922 grep -v '^ *+' conftest.er1 >conftest.err
24924 cat conftest.err >&5
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); } &&
24927 { ac_try='test -z "$ac_c_werror_flag"
24928 || test ! -s conftest.err'
24929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930 (eval $ac_try) 2>&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); }; } &&
24934 { ac_try='test -s conftest$ac_exeext'
24935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936 (eval $ac_try) 2>&5
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; }; then
24940 ac_cv_search_dlopen="-l$ac_lib"
24943 echo "$as_me: failed program was:" >&5
24944 sed 's/^/| /' conftest.$ac_ext >&5
24947 rm -f conftest.err conftest.$ac_objext \
24948 conftest$ac_exeext conftest.$ac_ext
24951 LIBS=$ac_func_search_save_LIBS
24953 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
24954 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
24955 if test "$ac_cv_search_dlopen" != no; then
24956 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
24958 cat >>confdefs.h <<\_ACEOF
24959 #define HAVE_DLOPEN 1
24963 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
24964 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
24968 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
24969 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
24970 if test "${ac_cv_search_mallinfo+set}" = set; then
24971 echo $ECHO_N "(cached) $ECHO_C" >&6
24973 ac_func_search_save_LIBS=$LIBS
24974 ac_cv_search_mallinfo=no
24975 cat >conftest.$ac_ext <<_ACEOF
24978 cat confdefs.h >>conftest.$ac_ext
24979 cat >>conftest.$ac_ext <<_ACEOF
24980 /* end confdefs.h. */
24982 /* Override any gcc2 internal prototype to avoid an error. */
24986 /* We use char because int might match the return type of a gcc2
24987 builtin and then its argument prototype would still apply. */
24997 rm -f conftest.$ac_objext conftest$ac_exeext
24998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24999 (eval $ac_link) 2>conftest.er1
25001 grep -v '^ *+' conftest.er1 >conftest.err
25003 cat conftest.err >&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } &&
25006 { ac_try='test -z "$ac_c_werror_flag"
25007 || test ! -s conftest.err'
25008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25009 (eval $ac_try) 2>&5
25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); }; } &&
25013 { ac_try='test -s conftest$ac_exeext'
25014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25015 (eval $ac_try) 2>&5
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); }; }; then
25019 ac_cv_search_mallinfo="none required"
25021 echo "$as_me: failed program was:" >&5
25022 sed 's/^/| /' conftest.$ac_ext >&5
25025 rm -f conftest.err conftest.$ac_objext \
25026 conftest$ac_exeext conftest.$ac_ext
25027 if test "$ac_cv_search_mallinfo" = no; then
25028 for ac_lib in malloc; do
25029 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25030 cat >conftest.$ac_ext <<_ACEOF
25033 cat confdefs.h >>conftest.$ac_ext
25034 cat >>conftest.$ac_ext <<_ACEOF
25035 /* end confdefs.h. */
25037 /* Override any gcc2 internal prototype to avoid an error. */
25041 /* We use char because int might match the return type of a gcc2
25042 builtin and then its argument prototype would still apply. */
25052 rm -f conftest.$ac_objext conftest$ac_exeext
25053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25054 (eval $ac_link) 2>conftest.er1
25056 grep -v '^ *+' conftest.er1 >conftest.err
25058 cat conftest.err >&5
25059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060 (exit $ac_status); } &&
25061 { ac_try='test -z "$ac_c_werror_flag"
25062 || test ! -s conftest.err'
25063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25064 (eval $ac_try) 2>&5
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); }; } &&
25068 { ac_try='test -s conftest$ac_exeext'
25069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25070 (eval $ac_try) 2>&5
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); }; }; then
25074 ac_cv_search_mallinfo="-l$ac_lib"
25077 echo "$as_me: failed program was:" >&5
25078 sed 's/^/| /' conftest.$ac_ext >&5
25081 rm -f conftest.err conftest.$ac_objext \
25082 conftest$ac_exeext conftest.$ac_ext
25085 LIBS=$ac_func_search_save_LIBS
25087 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25088 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25089 if test "$ac_cv_search_mallinfo" != no; then
25090 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25092 cat >>confdefs.h <<\_ACEOF
25093 #define HAVE_MALLINFO 1
25099 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25100 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25101 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25102 echo $ECHO_N "(cached) $ECHO_C" >&6
25104 ac_func_search_save_LIBS=$LIBS
25105 ac_cv_search_pthread_mutex_lock=no
25106 cat >conftest.$ac_ext <<_ACEOF
25109 cat confdefs.h >>conftest.$ac_ext
25110 cat >>conftest.$ac_ext <<_ACEOF
25111 /* end confdefs.h. */
25113 /* Override any gcc2 internal prototype to avoid an error. */
25117 /* We use char because int might match the return type of a gcc2
25118 builtin and then its argument prototype would still apply. */
25119 char pthread_mutex_lock ();
25123 pthread_mutex_lock ();
25128 rm -f conftest.$ac_objext conftest$ac_exeext
25129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25130 (eval $ac_link) 2>conftest.er1
25132 grep -v '^ *+' conftest.er1 >conftest.err
25134 cat conftest.err >&5
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); } &&
25137 { ac_try='test -z "$ac_c_werror_flag"
25138 || test ! -s conftest.err'
25139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25140 (eval $ac_try) 2>&5
25142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143 (exit $ac_status); }; } &&
25144 { ac_try='test -s conftest$ac_exeext'
25145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25146 (eval $ac_try) 2>&5
25148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); }; }; then
25150 ac_cv_search_pthread_mutex_lock="none required"
25152 echo "$as_me: failed program was:" >&5
25153 sed 's/^/| /' conftest.$ac_ext >&5
25156 rm -f conftest.err conftest.$ac_objext \
25157 conftest$ac_exeext conftest.$ac_ext
25158 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25159 for ac_lib in pthread; do
25160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25161 cat >conftest.$ac_ext <<_ACEOF
25164 cat confdefs.h >>conftest.$ac_ext
25165 cat >>conftest.$ac_ext <<_ACEOF
25166 /* end confdefs.h. */
25168 /* Override any gcc2 internal prototype to avoid an error. */
25172 /* We use char because int might match the return type of a gcc2
25173 builtin and then its argument prototype would still apply. */
25174 char pthread_mutex_lock ();
25178 pthread_mutex_lock ();
25183 rm -f conftest.$ac_objext conftest$ac_exeext
25184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25185 (eval $ac_link) 2>conftest.er1
25187 grep -v '^ *+' conftest.er1 >conftest.err
25189 cat conftest.err >&5
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); } &&
25192 { ac_try='test -z "$ac_c_werror_flag"
25193 || test ! -s conftest.err'
25194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195 (eval $ac_try) 2>&5
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; } &&
25199 { ac_try='test -s conftest$ac_exeext'
25200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201 (eval $ac_try) 2>&5
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); }; }; then
25205 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25208 echo "$as_me: failed program was:" >&5
25209 sed 's/^/| /' conftest.$ac_ext >&5
25212 rm -f conftest.err conftest.$ac_objext \
25213 conftest$ac_exeext conftest.$ac_ext
25216 LIBS=$ac_func_search_save_LIBS
25218 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25219 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25220 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25221 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25223 cat >>confdefs.h <<\_ACEOF
25224 #define HAVE_PTHREAD_MUTEX_LOCK 1
25231 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25232 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25233 if test "${ac_cv_header_stdc+set}" = set; then
25234 echo $ECHO_N "(cached) $ECHO_C" >&6
25236 cat >conftest.$ac_ext <<_ACEOF
25239 cat confdefs.h >>conftest.$ac_ext
25240 cat >>conftest.$ac_ext <<_ACEOF
25241 /* end confdefs.h. */
25242 #include <stdlib.h>
25243 #include <stdarg.h>
25244 #include <string.h>
25255 rm -f conftest.$ac_objext
25256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25257 (eval $ac_compile) 2>conftest.er1
25259 grep -v '^ *+' conftest.er1 >conftest.err
25261 cat conftest.err >&5
25262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263 (exit $ac_status); } &&
25264 { ac_try='test -z "$ac_c_werror_flag"
25265 || test ! -s conftest.err'
25266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267 (eval $ac_try) 2>&5
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); }; } &&
25271 { ac_try='test -s conftest.$ac_objext'
25272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273 (eval $ac_try) 2>&5
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); }; }; then
25277 ac_cv_header_stdc=yes
25279 echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25282 ac_cv_header_stdc=no
25284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25286 if test $ac_cv_header_stdc = yes; then
25287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25288 cat >conftest.$ac_ext <<_ACEOF
25291 cat confdefs.h >>conftest.$ac_ext
25292 cat >>conftest.$ac_ext <<_ACEOF
25293 /* end confdefs.h. */
25294 #include <string.h>
25297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25298 $EGREP "memchr" >/dev/null 2>&1; then
25301 ac_cv_header_stdc=no
25307 if test $ac_cv_header_stdc = yes; then
25308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25309 cat >conftest.$ac_ext <<_ACEOF
25312 cat confdefs.h >>conftest.$ac_ext
25313 cat >>conftest.$ac_ext <<_ACEOF
25314 /* end confdefs.h. */
25315 #include <stdlib.h>
25318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25319 $EGREP "free" >/dev/null 2>&1; then
25322 ac_cv_header_stdc=no
25328 if test $ac_cv_header_stdc = yes; then
25329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25330 if test "$cross_compiling" = yes; then
25333 cat >conftest.$ac_ext <<_ACEOF
25336 cat confdefs.h >>conftest.$ac_ext
25337 cat >>conftest.$ac_ext <<_ACEOF
25338 /* end confdefs.h. */
25340 #if ((' ' & 0x0FF) == 0x020)
25341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25344 # define ISLOWER(c) \
25345 (('a' <= (c) && (c) <= 'i') \
25346 || ('j' <= (c) && (c) <= 'r') \
25347 || ('s' <= (c) && (c) <= 'z'))
25348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25356 for (i = 0; i < 256; i++)
25357 if (XOR (islower (i), ISLOWER (i))
25358 || toupper (i) != TOUPPER (i))
25363 rm -f conftest$ac_exeext
25364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25365 (eval $ac_link) 2>&5
25367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25370 (eval $ac_try) 2>&5
25372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 (exit $ac_status); }; }; then
25376 echo "$as_me: program exited with status $ac_status" >&5
25377 echo "$as_me: failed program was:" >&5
25378 sed 's/^/| /' conftest.$ac_ext >&5
25380 ( exit $ac_status )
25381 ac_cv_header_stdc=no
25383 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25387 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25388 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25389 if test $ac_cv_header_stdc = yes; then
25391 cat >>confdefs.h <<\_ACEOF
25392 #define STDC_HEADERS 1
25398 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25399 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25400 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25403 cat >conftest.$ac_ext <<_ACEOF
25406 cat confdefs.h >>conftest.$ac_ext
25407 cat >>conftest.$ac_ext <<_ACEOF
25408 /* end confdefs.h. */
25409 #include <sys/types.h>
25410 #include <sys/wait.h>
25411 #ifndef WEXITSTATUS
25412 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25415 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25423 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25428 rm -f conftest.$ac_objext
25429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25430 (eval $ac_compile) 2>conftest.er1
25432 grep -v '^ *+' conftest.er1 >conftest.err
25434 cat conftest.err >&5
25435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); } &&
25437 { ac_try='test -z "$ac_c_werror_flag"
25438 || test ! -s conftest.err'
25439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25440 (eval $ac_try) 2>&5
25442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443 (exit $ac_status); }; } &&
25444 { ac_try='test -s conftest.$ac_objext'
25445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25446 (eval $ac_try) 2>&5
25448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449 (exit $ac_status); }; }; then
25450 ac_cv_header_sys_wait_h=yes
25452 echo "$as_me: failed program was:" >&5
25453 sed 's/^/| /' conftest.$ac_ext >&5
25455 ac_cv_header_sys_wait_h=no
25457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25459 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25460 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25461 if test $ac_cv_header_sys_wait_h = yes; then
25463 cat >>confdefs.h <<\_ACEOF
25464 #define HAVE_SYS_WAIT_H 1
25474 for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
25476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25478 echo "$as_me:$LINENO: checking for $ac_header" >&5
25479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25481 echo $ECHO_N "(cached) $ECHO_C" >&6
25483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25486 # Is the header compilable?
25487 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25489 cat >conftest.$ac_ext <<_ACEOF
25492 cat confdefs.h >>conftest.$ac_ext
25493 cat >>conftest.$ac_ext <<_ACEOF
25494 /* end confdefs.h. */
25495 $ac_includes_default
25496 #include <$ac_header>
25498 rm -f conftest.$ac_objext
25499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25500 (eval $ac_compile) 2>conftest.er1
25502 grep -v '^ *+' conftest.er1 >conftest.err
25504 cat conftest.err >&5
25505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506 (exit $ac_status); } &&
25507 { ac_try='test -z "$ac_c_werror_flag"
25508 || test ! -s conftest.err'
25509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25510 (eval $ac_try) 2>&5
25512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); }; } &&
25514 { ac_try='test -s conftest.$ac_objext'
25515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25516 (eval $ac_try) 2>&5
25518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519 (exit $ac_status); }; }; then
25520 ac_header_compiler=yes
25522 echo "$as_me: failed program was:" >&5
25523 sed 's/^/| /' conftest.$ac_ext >&5
25525 ac_header_compiler=no
25527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25529 echo "${ECHO_T}$ac_header_compiler" >&6
25531 # Is the header present?
25532 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25534 cat >conftest.$ac_ext <<_ACEOF
25537 cat confdefs.h >>conftest.$ac_ext
25538 cat >>conftest.$ac_ext <<_ACEOF
25539 /* end confdefs.h. */
25540 #include <$ac_header>
25542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25545 grep -v '^ *+' conftest.er1 >conftest.err
25547 cat conftest.err >&5
25548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549 (exit $ac_status); } >/dev/null; then
25550 if test -s conftest.err; then
25551 ac_cpp_err=$ac_c_preproc_warn_flag
25552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25559 if test -z "$ac_cpp_err"; then
25560 ac_header_preproc=yes
25562 echo "$as_me: failed program was:" >&5
25563 sed 's/^/| /' conftest.$ac_ext >&5
25565 ac_header_preproc=no
25567 rm -f conftest.err conftest.$ac_ext
25568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25569 echo "${ECHO_T}$ac_header_preproc" >&6
25571 # So? What about this header?
25572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25578 ac_header_preproc=yes
25581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25588 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25595 ## ----------------------------------- ##
25596 ## Report this to llvmbugs@cs.uiuc.edu ##
25597 ## ----------------------------------- ##
25600 sed "s/^/$as_me: WARNING: /" >&2
25603 echo "$as_me:$LINENO: checking for $ac_header" >&5
25604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25606 echo $ECHO_N "(cached) $ECHO_C" >&6
25608 eval "$as_ac_Header=\$ac_header_preproc"
25610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25615 cat >>confdefs.h <<_ACEOF
25616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25628 for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
25630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25632 echo "$as_me:$LINENO: checking for $ac_header" >&5
25633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25635 echo $ECHO_N "(cached) $ECHO_C" >&6
25637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25640 # Is the header compilable?
25641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25643 cat >conftest.$ac_ext <<_ACEOF
25646 cat confdefs.h >>conftest.$ac_ext
25647 cat >>conftest.$ac_ext <<_ACEOF
25648 /* end confdefs.h. */
25649 $ac_includes_default
25650 #include <$ac_header>
25652 rm -f conftest.$ac_objext
25653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25654 (eval $ac_compile) 2>conftest.er1
25656 grep -v '^ *+' conftest.er1 >conftest.err
25658 cat conftest.err >&5
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); } &&
25661 { ac_try='test -z "$ac_c_werror_flag"
25662 || test ! -s conftest.err'
25663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25664 (eval $ac_try) 2>&5
25666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667 (exit $ac_status); }; } &&
25668 { ac_try='test -s conftest.$ac_objext'
25669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670 (eval $ac_try) 2>&5
25672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673 (exit $ac_status); }; }; then
25674 ac_header_compiler=yes
25676 echo "$as_me: failed program was:" >&5
25677 sed 's/^/| /' conftest.$ac_ext >&5
25679 ac_header_compiler=no
25681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25683 echo "${ECHO_T}$ac_header_compiler" >&6
25685 # Is the header present?
25686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25688 cat >conftest.$ac_ext <<_ACEOF
25691 cat confdefs.h >>conftest.$ac_ext
25692 cat >>conftest.$ac_ext <<_ACEOF
25693 /* end confdefs.h. */
25694 #include <$ac_header>
25696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25699 grep -v '^ *+' conftest.er1 >conftest.err
25701 cat conftest.err >&5
25702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703 (exit $ac_status); } >/dev/null; then
25704 if test -s conftest.err; then
25705 ac_cpp_err=$ac_c_preproc_warn_flag
25706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25713 if test -z "$ac_cpp_err"; then
25714 ac_header_preproc=yes
25716 echo "$as_me: failed program was:" >&5
25717 sed 's/^/| /' conftest.$ac_ext >&5
25719 ac_header_preproc=no
25721 rm -f conftest.err conftest.$ac_ext
25722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25723 echo "${ECHO_T}$ac_header_preproc" >&6
25725 # So? What about this header?
25726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25732 ac_header_preproc=yes
25735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25749 ## ----------------------------------- ##
25750 ## Report this to llvmbugs@cs.uiuc.edu ##
25751 ## ----------------------------------- ##
25754 sed "s/^/$as_me: WARNING: /" >&2
25757 echo "$as_me:$LINENO: checking for $ac_header" >&5
25758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25760 echo $ECHO_N "(cached) $ECHO_C" >&6
25762 eval "$as_ac_Header=\$ac_header_preproc"
25764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25769 cat >>confdefs.h <<_ACEOF
25770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25780 for ac_header in malloc.h unistd.h windows.h
25782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25784 echo "$as_me:$LINENO: checking for $ac_header" >&5
25785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25787 echo $ECHO_N "(cached) $ECHO_C" >&6
25789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25792 # Is the header compilable?
25793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25795 cat >conftest.$ac_ext <<_ACEOF
25798 cat confdefs.h >>conftest.$ac_ext
25799 cat >>conftest.$ac_ext <<_ACEOF
25800 /* end confdefs.h. */
25801 $ac_includes_default
25802 #include <$ac_header>
25804 rm -f conftest.$ac_objext
25805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25806 (eval $ac_compile) 2>conftest.er1
25808 grep -v '^ *+' conftest.er1 >conftest.err
25810 cat conftest.err >&5
25811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812 (exit $ac_status); } &&
25813 { ac_try='test -z "$ac_c_werror_flag"
25814 || test ! -s conftest.err'
25815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25816 (eval $ac_try) 2>&5
25818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819 (exit $ac_status); }; } &&
25820 { ac_try='test -s conftest.$ac_objext'
25821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25822 (eval $ac_try) 2>&5
25824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825 (exit $ac_status); }; }; then
25826 ac_header_compiler=yes
25828 echo "$as_me: failed program was:" >&5
25829 sed 's/^/| /' conftest.$ac_ext >&5
25831 ac_header_compiler=no
25833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25835 echo "${ECHO_T}$ac_header_compiler" >&6
25837 # Is the header present?
25838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25840 cat >conftest.$ac_ext <<_ACEOF
25843 cat confdefs.h >>conftest.$ac_ext
25844 cat >>conftest.$ac_ext <<_ACEOF
25845 /* end confdefs.h. */
25846 #include <$ac_header>
25848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25851 grep -v '^ *+' conftest.er1 >conftest.err
25853 cat conftest.err >&5
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); } >/dev/null; then
25856 if test -s conftest.err; then
25857 ac_cpp_err=$ac_c_preproc_warn_flag
25858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25865 if test -z "$ac_cpp_err"; then
25866 ac_header_preproc=yes
25868 echo "$as_me: failed program was:" >&5
25869 sed 's/^/| /' conftest.$ac_ext >&5
25871 ac_header_preproc=no
25873 rm -f conftest.err conftest.$ac_ext
25874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25875 echo "${ECHO_T}$ac_header_preproc" >&6
25877 # So? What about this header?
25878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25884 ac_header_preproc=yes
25887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25901 ## ----------------------------------- ##
25902 ## Report this to llvmbugs@cs.uiuc.edu ##
25903 ## ----------------------------------- ##
25906 sed "s/^/$as_me: WARNING: /" >&2
25909 echo "$as_me:$LINENO: checking for $ac_header" >&5
25910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25912 echo $ECHO_N "(cached) $ECHO_C" >&6
25914 eval "$as_ac_Header=\$ac_header_preproc"
25916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25921 cat >>confdefs.h <<_ACEOF
25922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25929 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25930 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25931 if test "${ac_cv_header_time+set}" = set; then
25932 echo $ECHO_N "(cached) $ECHO_C" >&6
25934 cat >conftest.$ac_ext <<_ACEOF
25937 cat confdefs.h >>conftest.$ac_ext
25938 cat >>conftest.$ac_ext <<_ACEOF
25939 /* end confdefs.h. */
25940 #include <sys/types.h>
25941 #include <sys/time.h>
25947 if ((struct tm *) 0)
25953 rm -f conftest.$ac_objext
25954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25955 (eval $ac_compile) 2>conftest.er1
25957 grep -v '^ *+' conftest.er1 >conftest.err
25959 cat conftest.err >&5
25960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961 (exit $ac_status); } &&
25962 { ac_try='test -z "$ac_c_werror_flag"
25963 || test ! -s conftest.err'
25964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965 (eval $ac_try) 2>&5
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); }; } &&
25969 { ac_try='test -s conftest.$ac_objext'
25970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971 (eval $ac_try) 2>&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); }; }; then
25975 ac_cv_header_time=yes
25977 echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25980 ac_cv_header_time=no
25982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25984 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25985 echo "${ECHO_T}$ac_cv_header_time" >&6
25986 if test $ac_cv_header_time = yes; then
25988 cat >>confdefs.h <<\_ACEOF
25989 #define TIME_WITH_SYS_TIME 1
25994 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25995 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25996 if test "${ac_cv_header_mmap_anon+set}" = set; then
25997 echo $ECHO_N "(cached) $ECHO_C" >&6
26000 ac_cpp='$CPP $CPPFLAGS'
26001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26005 cat >conftest.$ac_ext <<_ACEOF
26008 cat confdefs.h >>conftest.$ac_ext
26009 cat >>conftest.$ac_ext <<_ACEOF
26010 /* end confdefs.h. */
26011 #include <sys/mman.h>
26012 #include <unistd.h>
26017 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26022 rm -f conftest.$ac_objext
26023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26024 (eval $ac_compile) 2>conftest.er1
26026 grep -v '^ *+' conftest.er1 >conftest.err
26028 cat conftest.err >&5
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); } &&
26031 { ac_try='test -z "$ac_c_werror_flag"
26032 || test ! -s conftest.err'
26033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26034 (eval $ac_try) 2>&5
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); }; } &&
26038 { ac_try='test -s conftest.$ac_objext'
26039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26040 (eval $ac_try) 2>&5
26042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); }; }; then
26044 ac_cv_header_mmap_anon=yes
26046 echo "$as_me: failed program was:" >&5
26047 sed 's/^/| /' conftest.$ac_ext >&5
26049 ac_cv_header_mmap_anon=no
26051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26053 ac_cpp='$CPP $CPPFLAGS'
26054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26060 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26061 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26062 if test "$ac_cv_header_mmap_anon" = yes; then
26064 cat >>confdefs.h <<\_ACEOF
26065 #define HAVE_MMAP_ANONYMOUS
26073 for ac_header in inttypes.h stdint.h
26075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26077 echo "$as_me:$LINENO: checking for $ac_header" >&5
26078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26080 echo $ECHO_N "(cached) $ECHO_C" >&6
26082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26085 # Is the header compilable?
26086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26088 cat >conftest.$ac_ext <<_ACEOF
26091 cat confdefs.h >>conftest.$ac_ext
26092 cat >>conftest.$ac_ext <<_ACEOF
26093 /* end confdefs.h. */
26094 $ac_includes_default
26095 #include <$ac_header>
26097 rm -f conftest.$ac_objext
26098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26099 (eval $ac_compile) 2>conftest.er1
26101 grep -v '^ *+' conftest.er1 >conftest.err
26103 cat conftest.err >&5
26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); } &&
26106 { ac_try='test -z "$ac_c_werror_flag"
26107 || test ! -s conftest.err'
26108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26109 (eval $ac_try) 2>&5
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); }; } &&
26113 { ac_try='test -s conftest.$ac_objext'
26114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26115 (eval $ac_try) 2>&5
26117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); }; }; then
26119 ac_header_compiler=yes
26121 echo "$as_me: failed program was:" >&5
26122 sed 's/^/| /' conftest.$ac_ext >&5
26124 ac_header_compiler=no
26126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26128 echo "${ECHO_T}$ac_header_compiler" >&6
26130 # Is the header present?
26131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26133 cat >conftest.$ac_ext <<_ACEOF
26136 cat confdefs.h >>conftest.$ac_ext
26137 cat >>conftest.$ac_ext <<_ACEOF
26138 /* end confdefs.h. */
26139 #include <$ac_header>
26141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26144 grep -v '^ *+' conftest.er1 >conftest.err
26146 cat conftest.err >&5
26147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148 (exit $ac_status); } >/dev/null; then
26149 if test -s conftest.err; then
26150 ac_cpp_err=$ac_c_preproc_warn_flag
26151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26158 if test -z "$ac_cpp_err"; then
26159 ac_header_preproc=yes
26161 echo "$as_me: failed program was:" >&5
26162 sed 's/^/| /' conftest.$ac_ext >&5
26164 ac_header_preproc=no
26166 rm -f conftest.err conftest.$ac_ext
26167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26168 echo "${ECHO_T}$ac_header_preproc" >&6
26170 # So? What about this header?
26171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26177 ac_header_preproc=yes
26180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26194 ## ----------------------------------- ##
26195 ## Report this to llvmbugs@cs.uiuc.edu ##
26196 ## ----------------------------------- ##
26199 sed "s/^/$as_me: WARNING: /" >&2
26202 echo "$as_me:$LINENO: checking for $ac_header" >&5
26203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26205 echo $ECHO_N "(cached) $ECHO_C" >&6
26207 eval "$as_ac_Header=\$ac_header_preproc"
26209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26214 cat >>confdefs.h <<_ACEOF
26215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26224 echo "$as_me:$LINENO: checking for pid_t" >&5
26225 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26226 if test "${ac_cv_type_pid_t+set}" = set; then
26227 echo $ECHO_N "(cached) $ECHO_C" >&6
26229 cat >conftest.$ac_ext <<_ACEOF
26232 cat confdefs.h >>conftest.$ac_ext
26233 cat >>conftest.$ac_ext <<_ACEOF
26234 /* end confdefs.h. */
26235 $ac_includes_default
26241 if (sizeof (pid_t))
26247 rm -f conftest.$ac_objext
26248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26249 (eval $ac_compile) 2>conftest.er1
26251 grep -v '^ *+' conftest.er1 >conftest.err
26253 cat conftest.err >&5
26254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255 (exit $ac_status); } &&
26256 { ac_try='test -z "$ac_c_werror_flag"
26257 || test ! -s conftest.err'
26258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26259 (eval $ac_try) 2>&5
26261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262 (exit $ac_status); }; } &&
26263 { ac_try='test -s conftest.$ac_objext'
26264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26265 (eval $ac_try) 2>&5
26267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268 (exit $ac_status); }; }; then
26269 ac_cv_type_pid_t=yes
26271 echo "$as_me: failed program was:" >&5
26272 sed 's/^/| /' conftest.$ac_ext >&5
26274 ac_cv_type_pid_t=no
26276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26278 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26279 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26280 if test $ac_cv_type_pid_t = yes; then
26284 cat >>confdefs.h <<_ACEOF
26290 echo "$as_me:$LINENO: checking for size_t" >&5
26291 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26292 if test "${ac_cv_type_size_t+set}" = set; then
26293 echo $ECHO_N "(cached) $ECHO_C" >&6
26295 cat >conftest.$ac_ext <<_ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h. */
26301 $ac_includes_default
26307 if (sizeof (size_t))
26313 rm -f conftest.$ac_objext
26314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26315 (eval $ac_compile) 2>conftest.er1
26317 grep -v '^ *+' conftest.er1 >conftest.err
26319 cat conftest.err >&5
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); } &&
26322 { ac_try='test -z "$ac_c_werror_flag"
26323 || test ! -s conftest.err'
26324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325 (eval $ac_try) 2>&5
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); }; } &&
26329 { ac_try='test -s conftest.$ac_objext'
26330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26331 (eval $ac_try) 2>&5
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); }; }; then
26335 ac_cv_type_size_t=yes
26337 echo "$as_me: failed program was:" >&5
26338 sed 's/^/| /' conftest.$ac_ext >&5
26340 ac_cv_type_size_t=no
26342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26344 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26345 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26346 if test $ac_cv_type_size_t = yes; then
26350 cat >>confdefs.h <<_ACEOF
26351 #define size_t unsigned
26356 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26357 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26358 if test "${ac_cv_type_signal+set}" = set; then
26359 echo $ECHO_N "(cached) $ECHO_C" >&6
26361 cat >conftest.$ac_ext <<_ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h. */
26367 #include <sys/types.h>
26368 #include <signal.h>
26373 extern "C" void (*signal (int, void (*)(int)))(int);
26375 void (*signal ()) ();
26386 rm -f conftest.$ac_objext
26387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26388 (eval $ac_compile) 2>conftest.er1
26390 grep -v '^ *+' conftest.er1 >conftest.err
26392 cat conftest.err >&5
26393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); } &&
26395 { ac_try='test -z "$ac_c_werror_flag"
26396 || test ! -s conftest.err'
26397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26398 (eval $ac_try) 2>&5
26400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401 (exit $ac_status); }; } &&
26402 { ac_try='test -s conftest.$ac_objext'
26403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26404 (eval $ac_try) 2>&5
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); }; }; then
26408 ac_cv_type_signal=void
26410 echo "$as_me: failed program was:" >&5
26411 sed 's/^/| /' conftest.$ac_ext >&5
26413 ac_cv_type_signal=int
26415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26417 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26418 echo "${ECHO_T}$ac_cv_type_signal" >&6
26420 cat >>confdefs.h <<_ACEOF
26421 #define RETSIGTYPE $ac_cv_type_signal
26425 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26426 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26427 if test "${ac_cv_struct_tm+set}" = set; then
26428 echo $ECHO_N "(cached) $ECHO_C" >&6
26430 cat >conftest.$ac_ext <<_ACEOF
26433 cat confdefs.h >>conftest.$ac_ext
26434 cat >>conftest.$ac_ext <<_ACEOF
26435 /* end confdefs.h. */
26436 #include <sys/types.h>
26442 struct tm *tp; tp->tm_sec;
26447 rm -f conftest.$ac_objext
26448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26449 (eval $ac_compile) 2>conftest.er1
26451 grep -v '^ *+' conftest.er1 >conftest.err
26453 cat conftest.err >&5
26454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455 (exit $ac_status); } &&
26456 { ac_try='test -z "$ac_c_werror_flag"
26457 || test ! -s conftest.err'
26458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26459 (eval $ac_try) 2>&5
26461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462 (exit $ac_status); }; } &&
26463 { ac_try='test -s conftest.$ac_objext'
26464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26465 (eval $ac_try) 2>&5
26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); }; }; then
26469 ac_cv_struct_tm=time.h
26471 echo "$as_me: failed program was:" >&5
26472 sed 's/^/| /' conftest.$ac_ext >&5
26474 ac_cv_struct_tm=sys/time.h
26476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26478 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26479 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26480 if test $ac_cv_struct_tm = sys/time.h; then
26482 cat >>confdefs.h <<\_ACEOF
26483 #define TM_IN_SYS_TIME 1
26488 echo "$as_me:$LINENO: checking for int64_t" >&5
26489 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26490 if test "${ac_cv_type_int64_t+set}" = set; then
26491 echo $ECHO_N "(cached) $ECHO_C" >&6
26493 cat >conftest.$ac_ext <<_ACEOF
26496 cat confdefs.h >>conftest.$ac_ext
26497 cat >>conftest.$ac_ext <<_ACEOF
26498 /* end confdefs.h. */
26499 $ac_includes_default
26505 if (sizeof (int64_t))
26511 rm -f conftest.$ac_objext
26512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26513 (eval $ac_compile) 2>conftest.er1
26515 grep -v '^ *+' conftest.er1 >conftest.err
26517 cat conftest.err >&5
26518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26519 (exit $ac_status); } &&
26520 { ac_try='test -z "$ac_c_werror_flag"
26521 || test ! -s conftest.err'
26522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26523 (eval $ac_try) 2>&5
26525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526 (exit $ac_status); }; } &&
26527 { ac_try='test -s conftest.$ac_objext'
26528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26529 (eval $ac_try) 2>&5
26531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532 (exit $ac_status); }; }; then
26533 ac_cv_type_int64_t=yes
26535 echo "$as_me: failed program was:" >&5
26536 sed 's/^/| /' conftest.$ac_ext >&5
26538 ac_cv_type_int64_t=no
26540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26542 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26543 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26544 if test $ac_cv_type_int64_t = yes; then
26546 cat >>confdefs.h <<_ACEOF
26547 #define HAVE_INT64_T 1
26552 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26553 echo "$as_me: error: Type int64_t required but not found" >&2;}
26554 { (exit 1); exit 1; }; }
26557 echo "$as_me:$LINENO: checking for uint64_t" >&5
26558 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26559 if test "${ac_cv_type_uint64_t+set}" = set; then
26560 echo $ECHO_N "(cached) $ECHO_C" >&6
26562 cat >conftest.$ac_ext <<_ACEOF
26565 cat confdefs.h >>conftest.$ac_ext
26566 cat >>conftest.$ac_ext <<_ACEOF
26567 /* end confdefs.h. */
26568 $ac_includes_default
26572 if ((uint64_t *) 0)
26574 if (sizeof (uint64_t))
26580 rm -f conftest.$ac_objext
26581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26582 (eval $ac_compile) 2>conftest.er1
26584 grep -v '^ *+' conftest.er1 >conftest.err
26586 cat conftest.err >&5
26587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588 (exit $ac_status); } &&
26589 { ac_try='test -z "$ac_c_werror_flag"
26590 || test ! -s conftest.err'
26591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26592 (eval $ac_try) 2>&5
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); }; } &&
26596 { ac_try='test -s conftest.$ac_objext'
26597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26598 (eval $ac_try) 2>&5
26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601 (exit $ac_status); }; }; then
26602 ac_cv_type_uint64_t=yes
26604 echo "$as_me: failed program was:" >&5
26605 sed 's/^/| /' conftest.$ac_ext >&5
26607 ac_cv_type_uint64_t=no
26609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26611 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26612 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26613 if test $ac_cv_type_uint64_t = yes; then
26615 cat >>confdefs.h <<_ACEOF
26616 #define HAVE_UINT64_T 1
26621 echo "$as_me:$LINENO: checking for u_int64_t" >&5
26622 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26623 if test "${ac_cv_type_u_int64_t+set}" = set; then
26624 echo $ECHO_N "(cached) $ECHO_C" >&6
26626 cat >conftest.$ac_ext <<_ACEOF
26629 cat confdefs.h >>conftest.$ac_ext
26630 cat >>conftest.$ac_ext <<_ACEOF
26631 /* end confdefs.h. */
26632 $ac_includes_default
26636 if ((u_int64_t *) 0)
26638 if (sizeof (u_int64_t))
26644 rm -f conftest.$ac_objext
26645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26646 (eval $ac_compile) 2>conftest.er1
26648 grep -v '^ *+' conftest.er1 >conftest.err
26650 cat conftest.err >&5
26651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652 (exit $ac_status); } &&
26653 { ac_try='test -z "$ac_c_werror_flag"
26654 || test ! -s conftest.err'
26655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26656 (eval $ac_try) 2>&5
26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); }; } &&
26660 { ac_try='test -s conftest.$ac_objext'
26661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662 (eval $ac_try) 2>&5
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); }; }; then
26666 ac_cv_type_u_int64_t=yes
26668 echo "$as_me: failed program was:" >&5
26669 sed 's/^/| /' conftest.$ac_ext >&5
26671 ac_cv_type_u_int64_t=no
26673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26675 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26676 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26677 if test $ac_cv_type_u_int64_t = yes; then
26679 cat >>confdefs.h <<_ACEOF
26680 #define HAVE_U_INT64_T 1
26685 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26686 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26687 { (exit 1); exit 1; }; }
26700 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
26702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26703 echo "$as_me:$LINENO: checking for $ac_func" >&5
26704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26705 if eval "test \"\${$as_ac_var+set}\" = set"; then
26706 echo $ECHO_N "(cached) $ECHO_C" >&6
26708 cat >conftest.$ac_ext <<_ACEOF
26711 cat confdefs.h >>conftest.$ac_ext
26712 cat >>conftest.$ac_ext <<_ACEOF
26713 /* end confdefs.h. */
26714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26716 #define $ac_func innocuous_$ac_func
26718 /* System header to define __stub macros and hopefully few prototypes,
26719 which can conflict with char $ac_func (); below.
26720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26721 <limits.h> exists even on freestanding compilers. */
26724 # include <limits.h>
26726 # include <assert.h>
26731 /* Override any gcc2 internal prototype to avoid an error. */
26736 /* We use char because int might match the return type of a gcc2
26737 builtin and then its argument prototype would still apply. */
26739 /* The GNU C library defines this for functions which it implements
26740 to always fail with ENOSYS. Some functions are actually named
26741 something starting with __ and the normal name is an alias. */
26742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26745 char (*f) () = $ac_func;
26754 return f != $ac_func;
26759 rm -f conftest.$ac_objext conftest$ac_exeext
26760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26761 (eval $ac_link) 2>conftest.er1
26763 grep -v '^ *+' conftest.er1 >conftest.err
26765 cat conftest.err >&5
26766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); } &&
26768 { ac_try='test -z "$ac_c_werror_flag"
26769 || test ! -s conftest.err'
26770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26771 (eval $ac_try) 2>&5
26773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774 (exit $ac_status); }; } &&
26775 { ac_try='test -s conftest$ac_exeext'
26776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26777 (eval $ac_try) 2>&5
26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); }; }; then
26781 eval "$as_ac_var=yes"
26783 echo "$as_me: failed program was:" >&5
26784 sed 's/^/| /' conftest.$ac_ext >&5
26786 eval "$as_ac_var=no"
26788 rm -f conftest.err conftest.$ac_objext \
26789 conftest$ac_exeext conftest.$ac_ext
26791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26793 if test `eval echo '${'$as_ac_var'}'` = yes; then
26794 cat >>confdefs.h <<_ACEOF
26795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26804 for ac_func in mkdtemp mkstemp mktemp
26806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26807 echo "$as_me:$LINENO: checking for $ac_func" >&5
26808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26809 if eval "test \"\${$as_ac_var+set}\" = set"; then
26810 echo $ECHO_N "(cached) $ECHO_C" >&6
26812 cat >conftest.$ac_ext <<_ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h. */
26818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26820 #define $ac_func innocuous_$ac_func
26822 /* System header to define __stub macros and hopefully few prototypes,
26823 which can conflict with char $ac_func (); below.
26824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26825 <limits.h> exists even on freestanding compilers. */
26828 # include <limits.h>
26830 # include <assert.h>
26835 /* Override any gcc2 internal prototype to avoid an error. */
26840 /* We use char because int might match the return type of a gcc2
26841 builtin and then its argument prototype would still apply. */
26843 /* The GNU C library defines this for functions which it implements
26844 to always fail with ENOSYS. Some functions are actually named
26845 something starting with __ and the normal name is an alias. */
26846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26849 char (*f) () = $ac_func;
26858 return f != $ac_func;
26863 rm -f conftest.$ac_objext conftest$ac_exeext
26864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26865 (eval $ac_link) 2>conftest.er1
26867 grep -v '^ *+' conftest.er1 >conftest.err
26869 cat conftest.err >&5
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); } &&
26872 { ac_try='test -z "$ac_c_werror_flag"
26873 || test ! -s conftest.err'
26874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26875 (eval $ac_try) 2>&5
26877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878 (exit $ac_status); }; } &&
26879 { ac_try='test -s conftest$ac_exeext'
26880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26881 (eval $ac_try) 2>&5
26883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884 (exit $ac_status); }; }; then
26885 eval "$as_ac_var=yes"
26887 echo "$as_me: failed program was:" >&5
26888 sed 's/^/| /' conftest.$ac_ext >&5
26890 eval "$as_ac_var=no"
26892 rm -f conftest.err conftest.$ac_objext \
26893 conftest$ac_exeext conftest.$ac_ext
26895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26897 if test `eval echo '${'$as_ac_var'}'` = yes; then
26898 cat >>confdefs.h <<_ACEOF
26899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26910 for ac_func in realpath strdup strtoq strtoll sysconf
26912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26913 echo "$as_me:$LINENO: checking for $ac_func" >&5
26914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26915 if eval "test \"\${$as_ac_var+set}\" = set"; then
26916 echo $ECHO_N "(cached) $ECHO_C" >&6
26918 cat >conftest.$ac_ext <<_ACEOF
26921 cat confdefs.h >>conftest.$ac_ext
26922 cat >>conftest.$ac_ext <<_ACEOF
26923 /* end confdefs.h. */
26924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26926 #define $ac_func innocuous_$ac_func
26928 /* System header to define __stub macros and hopefully few prototypes,
26929 which can conflict with char $ac_func (); below.
26930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26931 <limits.h> exists even on freestanding compilers. */
26934 # include <limits.h>
26936 # include <assert.h>
26941 /* Override any gcc2 internal prototype to avoid an error. */
26946 /* We use char because int might match the return type of a gcc2
26947 builtin and then its argument prototype would still apply. */
26949 /* The GNU C library defines this for functions which it implements
26950 to always fail with ENOSYS. Some functions are actually named
26951 something starting with __ and the normal name is an alias. */
26952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26955 char (*f) () = $ac_func;
26964 return f != $ac_func;
26969 rm -f conftest.$ac_objext conftest$ac_exeext
26970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26971 (eval $ac_link) 2>conftest.er1
26973 grep -v '^ *+' conftest.er1 >conftest.err
26975 cat conftest.err >&5
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); } &&
26978 { ac_try='test -z "$ac_c_werror_flag"
26979 || test ! -s conftest.err'
26980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26981 (eval $ac_try) 2>&5
26983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984 (exit $ac_status); }; } &&
26985 { ac_try='test -s conftest$ac_exeext'
26986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26987 (eval $ac_try) 2>&5
26989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990 (exit $ac_status); }; }; then
26991 eval "$as_ac_var=yes"
26993 echo "$as_me: failed program was:" >&5
26994 sed 's/^/| /' conftest.$ac_ext >&5
26996 eval "$as_ac_var=no"
26998 rm -f conftest.err conftest.$ac_objext \
26999 conftest$ac_exeext conftest.$ac_ext
27001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27003 if test `eval echo '${'$as_ac_var'}'` = yes; then
27004 cat >>confdefs.h <<_ACEOF
27005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27011 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27012 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27013 if test "${llvm_cv_c_printf_a+set}" = set; then
27014 echo $ECHO_N "(cached) $ECHO_C" >&6
27017 ac_cpp='$CPP $CPPFLAGS'
27018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27022 if test "$cross_compiling" = yes; then
27023 llvmac_cv_c_printf_a=no
27025 cat >conftest.$ac_ext <<_ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h. */
27034 #include <stdlib.h>
27040 volatile double A, B;
27044 sprintf(Buffer, "%a", A);
27048 if (A != 0x1.999999999999ap-4)
27055 rm -f conftest$ac_exeext
27056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27057 (eval $ac_link) 2>&5
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27062 (eval $ac_try) 2>&5
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); }; }; then
27066 llvm_cv_c_printf_a=yes
27068 echo "$as_me: program exited with status $ac_status" >&5
27069 echo "$as_me: failed program was:" >&5
27070 sed 's/^/| /' conftest.$ac_ext >&5
27072 ( exit $ac_status )
27073 llvmac_cv_c_printf_a=no
27075 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27078 ac_cpp='$CPP $CPPFLAGS'
27079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27084 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27085 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27086 if test "$llvm_cv_c_printf_a" = "yes"; then
27088 cat >>confdefs.h <<\_ACEOF
27089 #define HAVE_PRINTF_A 1
27094 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27095 # for constant arguments. Useless!
27096 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27097 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27098 if test "${ac_cv_working_alloca_h+set}" = set; then
27099 echo $ECHO_N "(cached) $ECHO_C" >&6
27101 cat >conftest.$ac_ext <<_ACEOF
27104 cat confdefs.h >>conftest.$ac_ext
27105 cat >>conftest.$ac_ext <<_ACEOF
27106 /* end confdefs.h. */
27107 #include <alloca.h>
27111 char *p = (char *) alloca (2 * sizeof (int));
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_working_alloca_h=yes
27140 echo "$as_me: failed program was:" >&5
27141 sed 's/^/| /' conftest.$ac_ext >&5
27143 ac_cv_working_alloca_h=no
27145 rm -f conftest.err conftest.$ac_objext \
27146 conftest$ac_exeext conftest.$ac_ext
27148 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27149 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27150 if test $ac_cv_working_alloca_h = yes; then
27152 cat >>confdefs.h <<\_ACEOF
27153 #define HAVE_ALLOCA_H 1
27158 echo "$as_me:$LINENO: checking for alloca" >&5
27159 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27160 if test "${ac_cv_func_alloca_works+set}" = set; then
27161 echo $ECHO_N "(cached) $ECHO_C" >&6
27163 cat >conftest.$ac_ext <<_ACEOF
27166 cat confdefs.h >>conftest.$ac_ext
27167 cat >>conftest.$ac_ext <<_ACEOF
27168 /* end confdefs.h. */
27170 # define alloca __builtin_alloca
27173 # include <malloc.h>
27174 # define alloca _alloca
27177 # include <alloca.h>
27182 # ifndef alloca /* predefined by HP cc +Olibcalls */
27193 char *p = (char *) alloca (1);
27198 rm -f conftest.$ac_objext conftest$ac_exeext
27199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27200 (eval $ac_link) 2>conftest.er1
27202 grep -v '^ *+' conftest.er1 >conftest.err
27204 cat conftest.err >&5
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); } &&
27207 { ac_try='test -z "$ac_c_werror_flag"
27208 || test ! -s conftest.err'
27209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27210 (eval $ac_try) 2>&5
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); }; } &&
27214 { ac_try='test -s conftest$ac_exeext'
27215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27216 (eval $ac_try) 2>&5
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); }; }; then
27220 ac_cv_func_alloca_works=yes
27222 echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27225 ac_cv_func_alloca_works=no
27227 rm -f conftest.err conftest.$ac_objext \
27228 conftest$ac_exeext conftest.$ac_ext
27230 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27231 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27233 if test $ac_cv_func_alloca_works = yes; then
27235 cat >>confdefs.h <<\_ACEOF
27236 #define HAVE_ALLOCA 1
27240 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27241 # that cause trouble. Some versions do not even contain alloca or
27242 # contain a buggy version. If you still want to use their alloca,
27243 # use ar to extract alloca.o from them instead of compiling alloca.c.
27245 ALLOCA=alloca.$ac_objext
27247 cat >>confdefs.h <<\_ACEOF
27252 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27253 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27254 if test "${ac_cv_os_cray+set}" = set; then
27255 echo $ECHO_N "(cached) $ECHO_C" >&6
27257 cat >conftest.$ac_ext <<_ACEOF
27260 cat confdefs.h >>conftest.$ac_ext
27261 cat >>conftest.$ac_ext <<_ACEOF
27262 /* end confdefs.h. */
27263 #if defined(CRAY) && ! defined(CRAY2)
27270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27271 $EGREP "webecray" >/dev/null 2>&1; then
27279 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27280 echo "${ECHO_T}$ac_cv_os_cray" >&6
27281 if test $ac_cv_os_cray = yes; then
27282 for ac_func in _getb67 GETB67 getb67; do
27283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27284 echo "$as_me:$LINENO: checking for $ac_func" >&5
27285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27286 if eval "test \"\${$as_ac_var+set}\" = set"; then
27287 echo $ECHO_N "(cached) $ECHO_C" >&6
27289 cat >conftest.$ac_ext <<_ACEOF
27292 cat confdefs.h >>conftest.$ac_ext
27293 cat >>conftest.$ac_ext <<_ACEOF
27294 /* end confdefs.h. */
27295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27297 #define $ac_func innocuous_$ac_func
27299 /* System header to define __stub macros and hopefully few prototypes,
27300 which can conflict with char $ac_func (); below.
27301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27302 <limits.h> exists even on freestanding compilers. */
27305 # include <limits.h>
27307 # include <assert.h>
27312 /* Override any gcc2 internal prototype to avoid an error. */
27317 /* We use char because int might match the return type of a gcc2
27318 builtin and then its argument prototype would still apply. */
27320 /* The GNU C library defines this for functions which it implements
27321 to always fail with ENOSYS. Some functions are actually named
27322 something starting with __ and the normal name is an alias. */
27323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27326 char (*f) () = $ac_func;
27335 return f != $ac_func;
27340 rm -f conftest.$ac_objext conftest$ac_exeext
27341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27342 (eval $ac_link) 2>conftest.er1
27344 grep -v '^ *+' conftest.er1 >conftest.err
27346 cat conftest.err >&5
27347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348 (exit $ac_status); } &&
27349 { ac_try='test -z "$ac_c_werror_flag"
27350 || test ! -s conftest.err'
27351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27352 (eval $ac_try) 2>&5
27354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355 (exit $ac_status); }; } &&
27356 { ac_try='test -s conftest$ac_exeext'
27357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27358 (eval $ac_try) 2>&5
27360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361 (exit $ac_status); }; }; then
27362 eval "$as_ac_var=yes"
27364 echo "$as_me: failed program was:" >&5
27365 sed 's/^/| /' conftest.$ac_ext >&5
27367 eval "$as_ac_var=no"
27369 rm -f conftest.err conftest.$ac_objext \
27370 conftest$ac_exeext conftest.$ac_ext
27372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27374 if test `eval echo '${'$as_ac_var'}'` = yes; then
27376 cat >>confdefs.h <<_ACEOF
27377 #define CRAY_STACKSEG_END $ac_func
27386 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27387 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27388 if test "${ac_cv_c_stack_direction+set}" = set; then
27389 echo $ECHO_N "(cached) $ECHO_C" >&6
27391 if test "$cross_compiling" = yes; then
27392 ac_cv_c_stack_direction=0
27394 cat >conftest.$ac_ext <<_ACEOF
27397 cat confdefs.h >>conftest.$ac_ext
27398 cat >>conftest.$ac_ext <<_ACEOF
27399 /* end confdefs.h. */
27401 find_stack_direction ()
27403 static char *addr = 0;
27408 return find_stack_direction ();
27411 return (&dummy > addr) ? 1 : -1;
27417 exit (find_stack_direction () < 0);
27420 rm -f conftest$ac_exeext
27421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27422 (eval $ac_link) 2>&5
27424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27427 (eval $ac_try) 2>&5
27429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430 (exit $ac_status); }; }; then
27431 ac_cv_c_stack_direction=1
27433 echo "$as_me: program exited with status $ac_status" >&5
27434 echo "$as_me: failed program was:" >&5
27435 sed 's/^/| /' conftest.$ac_ext >&5
27437 ( exit $ac_status )
27438 ac_cv_c_stack_direction=-1
27440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27443 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27444 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27446 cat >>confdefs.h <<_ACEOF
27447 #define STACK_DIRECTION $ac_cv_c_stack_direction
27454 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27455 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27456 if test "${ac_cv_func_rand48+set}" = set; then
27457 echo $ECHO_N "(cached) $ECHO_C" >&6
27460 ac_cpp='$CXXCPP $CPPFLAGS'
27461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27465 cat >conftest.$ac_ext <<_ACEOF
27468 cat confdefs.h >>conftest.$ac_ext
27469 cat >>conftest.$ac_ext <<_ACEOF
27470 /* end confdefs.h. */
27471 #include <stdlib.h>
27475 srand48(0);lrand48();drand48();
27480 rm -f conftest.$ac_objext
27481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27482 (eval $ac_compile) 2>conftest.er1
27484 grep -v '^ *+' conftest.er1 >conftest.err
27486 cat conftest.err >&5
27487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488 (exit $ac_status); } &&
27489 { ac_try='test -z "$ac_cxx_werror_flag"
27490 || test ! -s conftest.err'
27491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27492 (eval $ac_try) 2>&5
27494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495 (exit $ac_status); }; } &&
27496 { ac_try='test -s conftest.$ac_objext'
27497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27498 (eval $ac_try) 2>&5
27500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501 (exit $ac_status); }; }; then
27502 ac_cv_func_rand48=yes
27504 echo "$as_me: failed program was:" >&5
27505 sed 's/^/| /' conftest.$ac_ext >&5
27507 ac_cv_func_rand48=no
27509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27511 ac_cpp='$CPP $CPPFLAGS'
27512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27517 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27518 echo "${ECHO_T}$ac_cv_func_rand48" >&6
27520 if test "$ac_cv_func_rand48" = "yes" ; then
27522 cat >>confdefs.h <<\_ACEOF
27523 #define HAVE_RAND48 1
27529 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27530 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27531 if test "${ac_cv_cxx_namespaces+set}" = set; then
27532 echo $ECHO_N "(cached) $ECHO_C" >&6
27535 ac_cpp='$CXXCPP $CPPFLAGS'
27536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27540 cat >conftest.$ac_ext <<_ACEOF
27543 cat confdefs.h >>conftest.$ac_ext
27544 cat >>conftest.$ac_ext <<_ACEOF
27545 /* end confdefs.h. */
27546 namespace Outer { namespace Inner { int i = 0; }}
27550 using namespace Outer::Inner; return i;
27555 rm -f conftest.$ac_objext
27556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27557 (eval $ac_compile) 2>conftest.er1
27559 grep -v '^ *+' conftest.er1 >conftest.err
27561 cat conftest.err >&5
27562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563 (exit $ac_status); } &&
27564 { ac_try='test -z "$ac_cxx_werror_flag"
27565 || test ! -s conftest.err'
27566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27567 (eval $ac_try) 2>&5
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); }; } &&
27571 { ac_try='test -s conftest.$ac_objext'
27572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27573 (eval $ac_try) 2>&5
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); }; }; then
27577 ac_cv_cxx_namespaces=yes
27579 echo "$as_me: failed program was:" >&5
27580 sed 's/^/| /' conftest.$ac_ext >&5
27582 ac_cv_cxx_namespaces=no
27584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27586 ac_cpp='$CPP $CPPFLAGS'
27587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27593 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27594 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27595 if test "$ac_cv_cxx_namespaces" = yes; then
27597 cat >>confdefs.h <<\_ACEOF
27598 #define HAVE_NAMESPACES
27603 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27604 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27605 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
27606 echo $ECHO_N "(cached) $ECHO_C" >&6
27610 ac_cpp='$CXXCPP $CPPFLAGS'
27611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27615 cat >conftest.$ac_ext <<_ACEOF
27618 cat confdefs.h >>conftest.$ac_ext
27619 cat >>conftest.$ac_ext <<_ACEOF
27620 /* end confdefs.h. */
27621 #include <ext/hash_map>
27622 #ifdef HAVE_NAMESPACES
27623 using namespace std;
27628 hash_map<int, int> t;
27633 rm -f conftest.$ac_objext
27634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27635 (eval $ac_compile) 2>conftest.er1
27637 grep -v '^ *+' conftest.er1 >conftest.err
27639 cat conftest.err >&5
27640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641 (exit $ac_status); } &&
27642 { ac_try='test -z "$ac_cxx_werror_flag"
27643 || test ! -s conftest.err'
27644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645 (eval $ac_try) 2>&5
27647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648 (exit $ac_status); }; } &&
27649 { ac_try='test -s conftest.$ac_objext'
27650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27651 (eval $ac_try) 2>&5
27653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654 (exit $ac_status); }; }; then
27655 ac_cv_cxx_have_std_ext_hash_map=yes
27657 echo "$as_me: failed program was:" >&5
27658 sed 's/^/| /' conftest.$ac_ext >&5
27660 ac_cv_cxx_have_std_ext_hash_map=no
27662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27664 ac_cpp='$CPP $CPPFLAGS'
27665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27670 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27671 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
27672 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27675 cat >>confdefs.h <<\_ACEOF
27676 #define HAVE_STD_EXT_HASH_MAP 1
27681 cat >>confdefs.h <<\_ACEOF
27682 #define HAVE_STD_EXT_HASH_MAP 0
27687 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27688 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27689 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27690 echo $ECHO_N "(cached) $ECHO_C" >&6
27694 ac_cpp='$CXXCPP $CPPFLAGS'
27695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27699 cat >conftest.$ac_ext <<_ACEOF
27702 cat confdefs.h >>conftest.$ac_ext
27703 cat >>conftest.$ac_ext <<_ACEOF
27704 /* end confdefs.h. */
27705 #include <ext/hash_map>
27706 #ifdef HAVE_NAMESPACES
27707 using namespace __gnu_cxx;
27712 hash_map<int,int> t;
27717 rm -f conftest.$ac_objext
27718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27719 (eval $ac_compile) 2>conftest.er1
27721 grep -v '^ *+' conftest.er1 >conftest.err
27723 cat conftest.err >&5
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); } &&
27726 { ac_try='test -z "$ac_cxx_werror_flag"
27727 || test ! -s conftest.err'
27728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27729 (eval $ac_try) 2>&5
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); }; } &&
27733 { ac_try='test -s conftest.$ac_objext'
27734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27735 (eval $ac_try) 2>&5
27737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738 (exit $ac_status); }; }; then
27739 ac_cv_cxx_have_gnu_ext_hash_map=yes
27741 echo "$as_me: failed program was:" >&5
27742 sed 's/^/| /' conftest.$ac_ext >&5
27744 ac_cv_cxx_have_gnu_ext_hash_map=no
27746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27748 ac_cpp='$CPP $CPPFLAGS'
27749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27754 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27755 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
27756 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27759 cat >>confdefs.h <<\_ACEOF
27760 #define HAVE_GNU_EXT_HASH_MAP 1
27765 cat >>confdefs.h <<\_ACEOF
27766 #define HAVE_GNU_EXT_HASH_MAP 0
27771 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27772 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27773 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27774 echo $ECHO_N "(cached) $ECHO_C" >&6
27778 ac_cpp='$CXXCPP $CPPFLAGS'
27779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27783 cat >conftest.$ac_ext <<_ACEOF
27786 cat confdefs.h >>conftest.$ac_ext
27787 cat >>conftest.$ac_ext <<_ACEOF
27788 /* end confdefs.h. */
27789 #include <hash_map>
27793 hash_map<int,int> t;
27798 rm -f conftest.$ac_objext
27799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27800 (eval $ac_compile) 2>conftest.er1
27802 grep -v '^ *+' conftest.er1 >conftest.err
27804 cat conftest.err >&5
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); } &&
27807 { ac_try='test -z "$ac_cxx_werror_flag"
27808 || test ! -s conftest.err'
27809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27810 (eval $ac_try) 2>&5
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); }; } &&
27814 { ac_try='test -s conftest.$ac_objext'
27815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27816 (eval $ac_try) 2>&5
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); }; }; then
27820 ac_cv_cxx_have_global_hash_map=yes
27822 echo "$as_me: failed program was:" >&5
27823 sed 's/^/| /' conftest.$ac_ext >&5
27825 ac_cv_cxx_have_global_hash_map=no
27827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27829 ac_cpp='$CPP $CPPFLAGS'
27830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27835 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27836 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
27837 if test "$ac_cv_cxx_have_global_hash_map" = yes
27840 cat >>confdefs.h <<\_ACEOF
27841 #define HAVE_GLOBAL_HASH_MAP 1
27846 cat >>confdefs.h <<\_ACEOF
27847 #define HAVE_GLOBAL_HASH_MAP 0
27852 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27853 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27854 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
27855 echo $ECHO_N "(cached) $ECHO_C" >&6
27859 ac_cpp='$CXXCPP $CPPFLAGS'
27860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27864 cat >conftest.$ac_ext <<_ACEOF
27867 cat confdefs.h >>conftest.$ac_ext
27868 cat >>conftest.$ac_ext <<_ACEOF
27869 /* end confdefs.h. */
27870 #include <ext/hash_set>
27871 #ifdef HAVE_NAMESPACES
27872 using namespace std;
27882 rm -f conftest.$ac_objext
27883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27884 (eval $ac_compile) 2>conftest.er1
27886 grep -v '^ *+' conftest.er1 >conftest.err
27888 cat conftest.err >&5
27889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); } &&
27891 { ac_try='test -z "$ac_cxx_werror_flag"
27892 || test ! -s conftest.err'
27893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27894 (eval $ac_try) 2>&5
27896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897 (exit $ac_status); }; } &&
27898 { ac_try='test -s conftest.$ac_objext'
27899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27900 (eval $ac_try) 2>&5
27902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903 (exit $ac_status); }; }; then
27904 ac_cv_cxx_have_std_ext_hash_set=yes
27906 echo "$as_me: failed program was:" >&5
27907 sed 's/^/| /' conftest.$ac_ext >&5
27909 ac_cv_cxx_have_std_ext_hash_set=no
27911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27913 ac_cpp='$CPP $CPPFLAGS'
27914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27919 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27920 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
27921 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27924 cat >>confdefs.h <<\_ACEOF
27925 #define HAVE_STD_EXT_HASH_SET 1
27930 cat >>confdefs.h <<\_ACEOF
27931 #define HAVE_STD_EXT_HASH_SET 0
27936 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27937 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27938 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27939 echo $ECHO_N "(cached) $ECHO_C" >&6
27943 ac_cpp='$CXXCPP $CPPFLAGS'
27944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27948 cat >conftest.$ac_ext <<_ACEOF
27951 cat confdefs.h >>conftest.$ac_ext
27952 cat >>conftest.$ac_ext <<_ACEOF
27953 /* end confdefs.h. */
27954 #include <ext/hash_set>
27955 #ifdef HAVE_NAMESPACES
27956 using namespace __gnu_cxx;
27966 rm -f conftest.$ac_objext
27967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27968 (eval $ac_compile) 2>conftest.er1
27970 grep -v '^ *+' conftest.er1 >conftest.err
27972 cat conftest.err >&5
27973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974 (exit $ac_status); } &&
27975 { ac_try='test -z "$ac_cxx_werror_flag"
27976 || test ! -s conftest.err'
27977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27978 (eval $ac_try) 2>&5
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); }; } &&
27982 { ac_try='test -s conftest.$ac_objext'
27983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27984 (eval $ac_try) 2>&5
27986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987 (exit $ac_status); }; }; then
27988 ac_cv_cxx_have_gnu_ext_hash_set=yes
27990 echo "$as_me: failed program was:" >&5
27991 sed 's/^/| /' conftest.$ac_ext >&5
27993 ac_cv_cxx_have_gnu_ext_hash_set=no
27995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27997 ac_cpp='$CPP $CPPFLAGS'
27998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28003 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28004 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28005 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28008 cat >>confdefs.h <<\_ACEOF
28009 #define HAVE_GNU_EXT_HASH_SET 1
28014 cat >>confdefs.h <<\_ACEOF
28015 #define HAVE_GNU_EXT_HASH_SET 0
28020 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28021 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28022 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28023 echo $ECHO_N "(cached) $ECHO_C" >&6
28027 ac_cpp='$CXXCPP $CPPFLAGS'
28028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28032 cat >conftest.$ac_ext <<_ACEOF
28035 cat confdefs.h >>conftest.$ac_ext
28036 cat >>conftest.$ac_ext <<_ACEOF
28037 /* end confdefs.h. */
28038 #include <hash_set>
28042 hash_set<int> t; return 0;
28047 rm -f conftest.$ac_objext
28048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28049 (eval $ac_compile) 2>conftest.er1
28051 grep -v '^ *+' conftest.er1 >conftest.err
28053 cat conftest.err >&5
28054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055 (exit $ac_status); } &&
28056 { ac_try='test -z "$ac_cxx_werror_flag"
28057 || test ! -s conftest.err'
28058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28059 (eval $ac_try) 2>&5
28061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28062 (exit $ac_status); }; } &&
28063 { ac_try='test -s conftest.$ac_objext'
28064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28065 (eval $ac_try) 2>&5
28067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068 (exit $ac_status); }; }; then
28069 ac_cv_cxx_have_global_hash_set=yes
28071 echo "$as_me: failed program was:" >&5
28072 sed 's/^/| /' conftest.$ac_ext >&5
28074 ac_cv_cxx_have_global_hash_set=no
28076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28078 ac_cpp='$CPP $CPPFLAGS'
28079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28084 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28085 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28086 if test "$ac_cv_cxx_have_global_hash_set" = yes
28089 cat >>confdefs.h <<\_ACEOF
28090 #define HAVE_GLOBAL_HASH_SET 1
28095 cat >>confdefs.h <<\_ACEOF
28096 #define HAVE_GLOBAL_HASH_SET 0
28101 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28102 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28103 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28104 echo $ECHO_N "(cached) $ECHO_C" >&6
28108 ac_cpp='$CXXCPP $CPPFLAGS'
28109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28113 cat >conftest.$ac_ext <<_ACEOF
28116 cat confdefs.h >>conftest.$ac_ext
28117 cat >>conftest.$ac_ext <<_ACEOF
28118 /* end confdefs.h. */
28119 #include <iterator>
28120 #ifdef HAVE_NAMESPACES
28121 using namespace std;
28126 iterator<int,int,int> t; return 0;
28131 rm -f conftest.$ac_objext
28132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28133 (eval $ac_compile) 2>conftest.er1
28135 grep -v '^ *+' conftest.er1 >conftest.err
28137 cat conftest.err >&5
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); } &&
28140 { ac_try='test -z "$ac_cxx_werror_flag"
28141 || test ! -s conftest.err'
28142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28143 (eval $ac_try) 2>&5
28145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146 (exit $ac_status); }; } &&
28147 { ac_try='test -s conftest.$ac_objext'
28148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28149 (eval $ac_try) 2>&5
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); }; }; then
28153 ac_cv_cxx_have_std_iterator=yes
28155 echo "$as_me: failed program was:" >&5
28156 sed 's/^/| /' conftest.$ac_ext >&5
28158 ac_cv_cxx_have_std_iterator=no
28160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28162 ac_cpp='$CPP $CPPFLAGS'
28163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28169 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28170 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28171 if test "$ac_cv_cxx_have_std_iterator" = yes
28174 cat >>confdefs.h <<\_ACEOF
28175 #define HAVE_STD_ITERATOR 1
28180 cat >>confdefs.h <<\_ACEOF
28181 #define HAVE_STD_ITERATOR 0
28186 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28187 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28188 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28189 echo $ECHO_N "(cached) $ECHO_C" >&6
28193 ac_cpp='$CXXCPP $CPPFLAGS'
28194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28198 cat >conftest.$ac_ext <<_ACEOF
28201 cat confdefs.h >>conftest.$ac_ext
28202 cat >>conftest.$ac_ext <<_ACEOF
28203 /* end confdefs.h. */
28204 #include <iterator>
28205 #ifdef HAVE_NAMESPACES
28206 using namespace std;
28211 bidirectional_iterator<int,int> t; return 0;
28216 rm -f conftest.$ac_objext
28217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28218 (eval $ac_compile) 2>conftest.er1
28220 grep -v '^ *+' conftest.er1 >conftest.err
28222 cat conftest.err >&5
28223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224 (exit $ac_status); } &&
28225 { ac_try='test -z "$ac_cxx_werror_flag"
28226 || test ! -s conftest.err'
28227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28228 (eval $ac_try) 2>&5
28230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231 (exit $ac_status); }; } &&
28232 { ac_try='test -s conftest.$ac_objext'
28233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28234 (eval $ac_try) 2>&5
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); }; }; then
28238 ac_cv_cxx_have_bi_iterator=yes
28240 echo "$as_me: failed program was:" >&5
28241 sed 's/^/| /' conftest.$ac_ext >&5
28243 ac_cv_cxx_have_bi_iterator=no
28245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28247 ac_cpp='$CPP $CPPFLAGS'
28248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28254 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28255 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28256 if test "$ac_cv_cxx_have_bi_iterator" = yes
28259 cat >>confdefs.h <<\_ACEOF
28260 #define HAVE_BI_ITERATOR 1
28265 cat >>confdefs.h <<\_ACEOF
28266 #define HAVE_BI_ITERATOR 0
28271 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28272 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28273 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28274 echo $ECHO_N "(cached) $ECHO_C" >&6
28278 ac_cpp='$CXXCPP $CPPFLAGS'
28279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28283 cat >conftest.$ac_ext <<_ACEOF
28286 cat confdefs.h >>conftest.$ac_ext
28287 cat >>conftest.$ac_ext <<_ACEOF
28288 /* end confdefs.h. */
28289 #include <iterator>
28290 #ifdef HAVE_NAMESPACES
28291 using namespace std;
28296 forward_iterator<int,int> t; return 0;
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_cxx_have_fwd_iterator=yes
28325 echo "$as_me: failed program was:" >&5
28326 sed 's/^/| /' conftest.$ac_ext >&5
28328 ac_cv_cxx_have_fwd_iterator=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
28339 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28340 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28341 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28344 cat >>confdefs.h <<\_ACEOF
28345 #define HAVE_FWD_ITERATOR 1
28350 cat >>confdefs.h <<\_ACEOF
28351 #define HAVE_FWD_ITERATOR 0
28357 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28358 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28359 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28360 echo $ECHO_N "(cached) $ECHO_C" >&6
28363 ac_cpp='$CXXCPP $CPPFLAGS'
28364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28368 cat >conftest.$ac_ext <<_ACEOF
28371 cat confdefs.h >>conftest.$ac_ext
28372 cat >>conftest.$ac_ext <<_ACEOF
28373 /* end confdefs.h. */
28383 rm -f conftest.$ac_objext
28384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28385 (eval $ac_compile) 2>conftest.er1
28387 grep -v '^ *+' conftest.er1 >conftest.err
28389 cat conftest.err >&5
28390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391 (exit $ac_status); } &&
28392 { ac_try='test -z "$ac_cxx_werror_flag"
28393 || test ! -s conftest.err'
28394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28395 (eval $ac_try) 2>&5
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); }; } &&
28399 { ac_try='test -s conftest.$ac_objext'
28400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28401 (eval $ac_try) 2>&5
28403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); }; }; then
28405 ac_cv_func_isnan_in_math_h=yes
28407 echo "$as_me: failed program was:" >&5
28408 sed 's/^/| /' conftest.$ac_ext >&5
28410 ac_cv_func_isnan_in_math_h=no
28412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28414 ac_cpp='$CPP $CPPFLAGS'
28415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28420 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28421 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28424 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28426 cat >>confdefs.h <<\_ACEOF
28427 #define HAVE_ISNAN_IN_MATH_H 1
28432 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28433 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28434 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28435 echo $ECHO_N "(cached) $ECHO_C" >&6
28438 ac_cpp='$CXXCPP $CPPFLAGS'
28439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28443 cat >conftest.$ac_ext <<_ACEOF
28446 cat confdefs.h >>conftest.$ac_ext
28447 cat >>conftest.$ac_ext <<_ACEOF
28448 /* end confdefs.h. */
28458 rm -f conftest.$ac_objext
28459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28460 (eval $ac_compile) 2>conftest.er1
28462 grep -v '^ *+' conftest.er1 >conftest.err
28464 cat conftest.err >&5
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); } &&
28467 { ac_try='test -z "$ac_cxx_werror_flag"
28468 || test ! -s conftest.err'
28469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28470 (eval $ac_try) 2>&5
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473 (exit $ac_status); }; } &&
28474 { ac_try='test -s conftest.$ac_objext'
28475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28476 (eval $ac_try) 2>&5
28478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); }; }; then
28480 ac_cv_func_isnan_in_cmath=yes
28482 echo "$as_me: failed program was:" >&5
28483 sed 's/^/| /' conftest.$ac_ext >&5
28485 ac_cv_func_isnan_in_cmath=no
28487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28489 ac_cpp='$CPP $CPPFLAGS'
28490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28495 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28496 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28498 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28500 cat >>confdefs.h <<\_ACEOF
28501 #define HAVE_ISNAN_IN_CMATH 1
28506 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28507 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28508 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28509 echo $ECHO_N "(cached) $ECHO_C" >&6
28512 ac_cpp='$CXXCPP $CPPFLAGS'
28513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28517 cat >conftest.$ac_ext <<_ACEOF
28520 cat confdefs.h >>conftest.$ac_ext
28521 cat >>conftest.$ac_ext <<_ACEOF
28522 /* end confdefs.h. */
28527 float f; std::isnan(f);
28532 rm -f conftest.$ac_objext
28533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28534 (eval $ac_compile) 2>conftest.er1
28536 grep -v '^ *+' conftest.er1 >conftest.err
28538 cat conftest.err >&5
28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540 (exit $ac_status); } &&
28541 { ac_try='test -z "$ac_cxx_werror_flag"
28542 || test ! -s conftest.err'
28543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28544 (eval $ac_try) 2>&5
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); }; } &&
28548 { ac_try='test -s conftest.$ac_objext'
28549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28550 (eval $ac_try) 2>&5
28552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553 (exit $ac_status); }; }; then
28554 ac_cv_func_std_isnan_in_cmath=yes
28556 echo "$as_me: failed program was:" >&5
28557 sed 's/^/| /' conftest.$ac_ext >&5
28559 ac_cv_func_std_isnan_in_cmath=no
28561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28563 ac_cpp='$CPP $CPPFLAGS'
28564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28569 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28570 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
28572 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
28574 cat >>confdefs.h <<\_ACEOF
28575 #define HAVE_STD_ISNAN_IN_CMATH 1
28581 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28582 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28583 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28584 echo $ECHO_N "(cached) $ECHO_C" >&6
28587 ac_cpp='$CXXCPP $CPPFLAGS'
28588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28592 cat >conftest.$ac_ext <<_ACEOF
28595 cat confdefs.h >>conftest.$ac_ext
28596 cat >>conftest.$ac_ext <<_ACEOF
28597 /* end confdefs.h. */
28607 rm -f conftest.$ac_objext
28608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28609 (eval $ac_compile) 2>conftest.er1
28611 grep -v '^ *+' conftest.er1 >conftest.err
28613 cat conftest.err >&5
28614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615 (exit $ac_status); } &&
28616 { ac_try='test -z "$ac_cxx_werror_flag"
28617 || test ! -s conftest.err'
28618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28619 (eval $ac_try) 2>&5
28621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622 (exit $ac_status); }; } &&
28623 { ac_try='test -s conftest.$ac_objext'
28624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28625 (eval $ac_try) 2>&5
28627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); }; }; then
28629 ac_cv_func_isinf_in_math_h=yes
28631 echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28634 ac_cv_func_isinf_in_math_h=no
28636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28638 ac_cpp='$CPP $CPPFLAGS'
28639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28644 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28645 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
28647 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
28649 cat >>confdefs.h <<\_ACEOF
28650 #define HAVE_ISINF_IN_MATH_H 1
28655 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28656 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28657 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28658 echo $ECHO_N "(cached) $ECHO_C" >&6
28661 ac_cpp='$CXXCPP $CPPFLAGS'
28662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28666 cat >conftest.$ac_ext <<_ACEOF
28669 cat confdefs.h >>conftest.$ac_ext
28670 cat >>conftest.$ac_ext <<_ACEOF
28671 /* end confdefs.h. */
28681 rm -f conftest.$ac_objext
28682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28683 (eval $ac_compile) 2>conftest.er1
28685 grep -v '^ *+' conftest.er1 >conftest.err
28687 cat conftest.err >&5
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); } &&
28690 { ac_try='test -z "$ac_cxx_werror_flag"
28691 || test ! -s conftest.err'
28692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28693 (eval $ac_try) 2>&5
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); }; } &&
28697 { ac_try='test -s conftest.$ac_objext'
28698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28699 (eval $ac_try) 2>&5
28701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702 (exit $ac_status); }; }; then
28703 ac_cv_func_isinf_in_cmath=yes
28705 echo "$as_me: failed program was:" >&5
28706 sed 's/^/| /' conftest.$ac_ext >&5
28708 ac_cv_func_isinf_in_cmath=no
28710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28712 ac_cpp='$CPP $CPPFLAGS'
28713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28718 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28719 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
28721 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
28723 cat >>confdefs.h <<\_ACEOF
28724 #define HAVE_ISINF_IN_CMATH 1
28729 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28730 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28731 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28732 echo $ECHO_N "(cached) $ECHO_C" >&6
28735 ac_cpp='$CXXCPP $CPPFLAGS'
28736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28740 cat >conftest.$ac_ext <<_ACEOF
28743 cat confdefs.h >>conftest.$ac_ext
28744 cat >>conftest.$ac_ext <<_ACEOF
28745 /* end confdefs.h. */
28750 float f; std::isinf(f)}
28755 rm -f conftest.$ac_objext
28756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28757 (eval $ac_compile) 2>conftest.er1
28759 grep -v '^ *+' conftest.er1 >conftest.err
28761 cat conftest.err >&5
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); } &&
28764 { ac_try='test -z "$ac_cxx_werror_flag"
28765 || test ! -s conftest.err'
28766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28767 (eval $ac_try) 2>&5
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); }; } &&
28771 { ac_try='test -s conftest.$ac_objext'
28772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28773 (eval $ac_try) 2>&5
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); }; }; then
28777 ac_cv_func_std_isinf_in_cmath=yes
28779 echo "$as_me: failed program was:" >&5
28780 sed 's/^/| /' conftest.$ac_ext >&5
28782 ac_cv_func_std_isinf_in_cmath=no
28784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28786 ac_cpp='$CPP $CPPFLAGS'
28787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28792 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28793 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
28795 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
28797 cat >>confdefs.h <<\_ACEOF
28798 #define HAVE_STD_ISINF_IN_CMATH 1
28803 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28804 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28805 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28806 echo $ECHO_N "(cached) $ECHO_C" >&6
28809 ac_cpp='$CXXCPP $CPPFLAGS'
28810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28814 cat >conftest.$ac_ext <<_ACEOF
28817 cat confdefs.h >>conftest.$ac_ext
28818 cat >>conftest.$ac_ext <<_ACEOF
28819 /* end confdefs.h. */
28820 #include <ieeefp.h>
28824 float f; finite(f);
28829 rm -f conftest.$ac_objext
28830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28831 (eval $ac_compile) 2>conftest.er1
28833 grep -v '^ *+' conftest.er1 >conftest.err
28835 cat conftest.err >&5
28836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837 (exit $ac_status); } &&
28838 { ac_try='test -z "$ac_cxx_werror_flag"
28839 || test ! -s conftest.err'
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); }; } &&
28845 { ac_try='test -s conftest.$ac_objext'
28846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28847 (eval $ac_try) 2>&5
28849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850 (exit $ac_status); }; }; then
28851 ac_cv_func_finite_in_ieeefp_h=yes
28853 echo "$as_me: failed program was:" >&5
28854 sed 's/^/| /' conftest.$ac_ext >&5
28856 ac_cv_func_finite_in_ieeefp_h=no
28858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28860 ac_cpp='$CPP $CPPFLAGS'
28861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28866 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28867 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
28869 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
28871 cat >>confdefs.h <<\_ACEOF
28872 #define HAVE_FINITE_IN_IEEEFP_H 1
28881 for ac_header in stdlib.h unistd.h
28883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28885 echo "$as_me:$LINENO: checking for $ac_header" >&5
28886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28888 echo $ECHO_N "(cached) $ECHO_C" >&6
28890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28893 # Is the header compilable?
28894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28896 cat >conftest.$ac_ext <<_ACEOF
28899 cat confdefs.h >>conftest.$ac_ext
28900 cat >>conftest.$ac_ext <<_ACEOF
28901 /* end confdefs.h. */
28902 $ac_includes_default
28903 #include <$ac_header>
28905 rm -f conftest.$ac_objext
28906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28907 (eval $ac_compile) 2>conftest.er1
28909 grep -v '^ *+' conftest.er1 >conftest.err
28911 cat conftest.err >&5
28912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); } &&
28914 { ac_try='test -z "$ac_c_werror_flag"
28915 || test ! -s conftest.err'
28916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28917 (eval $ac_try) 2>&5
28919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920 (exit $ac_status); }; } &&
28921 { ac_try='test -s conftest.$ac_objext'
28922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28923 (eval $ac_try) 2>&5
28925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 (exit $ac_status); }; }; then
28927 ac_header_compiler=yes
28929 echo "$as_me: failed program was:" >&5
28930 sed 's/^/| /' conftest.$ac_ext >&5
28932 ac_header_compiler=no
28934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28936 echo "${ECHO_T}$ac_header_compiler" >&6
28938 # Is the header present?
28939 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28941 cat >conftest.$ac_ext <<_ACEOF
28944 cat confdefs.h >>conftest.$ac_ext
28945 cat >>conftest.$ac_ext <<_ACEOF
28946 /* end confdefs.h. */
28947 #include <$ac_header>
28949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28952 grep -v '^ *+' conftest.er1 >conftest.err
28954 cat conftest.err >&5
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); } >/dev/null; then
28957 if test -s conftest.err; then
28958 ac_cpp_err=$ac_c_preproc_warn_flag
28959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28966 if test -z "$ac_cpp_err"; then
28967 ac_header_preproc=yes
28969 echo "$as_me: failed program was:" >&5
28970 sed 's/^/| /' conftest.$ac_ext >&5
28972 ac_header_preproc=no
28974 rm -f conftest.err conftest.$ac_ext
28975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28976 echo "${ECHO_T}$ac_header_preproc" >&6
28978 # So? What about this header?
28979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28985 ac_header_preproc=yes
28988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28995 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29002 ## ----------------------------------- ##
29003 ## Report this to llvmbugs@cs.uiuc.edu ##
29004 ## ----------------------------------- ##
29007 sed "s/^/$as_me: WARNING: /" >&2
29010 echo "$as_me:$LINENO: checking for $ac_header" >&5
29011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29013 echo $ECHO_N "(cached) $ECHO_C" >&6
29015 eval "$as_ac_Header=\$ac_header_preproc"
29017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29022 cat >>confdefs.h <<_ACEOF
29023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29031 for ac_func in getpagesize
29033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29034 echo "$as_me:$LINENO: checking for $ac_func" >&5
29035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29036 if eval "test \"\${$as_ac_var+set}\" = set"; then
29037 echo $ECHO_N "(cached) $ECHO_C" >&6
29039 cat >conftest.$ac_ext <<_ACEOF
29042 cat confdefs.h >>conftest.$ac_ext
29043 cat >>conftest.$ac_ext <<_ACEOF
29044 /* end confdefs.h. */
29045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29047 #define $ac_func innocuous_$ac_func
29049 /* System header to define __stub macros and hopefully few prototypes,
29050 which can conflict with char $ac_func (); below.
29051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29052 <limits.h> exists even on freestanding compilers. */
29055 # include <limits.h>
29057 # include <assert.h>
29062 /* Override any gcc2 internal prototype to avoid an error. */
29067 /* We use char because int might match the return type of a gcc2
29068 builtin and then its argument prototype would still apply. */
29070 /* The GNU C library defines this for functions which it implements
29071 to always fail with ENOSYS. Some functions are actually named
29072 something starting with __ and the normal name is an alias. */
29073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29076 char (*f) () = $ac_func;
29085 return f != $ac_func;
29090 rm -f conftest.$ac_objext conftest$ac_exeext
29091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29092 (eval $ac_link) 2>conftest.er1
29094 grep -v '^ *+' conftest.er1 >conftest.err
29096 cat conftest.err >&5
29097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098 (exit $ac_status); } &&
29099 { ac_try='test -z "$ac_c_werror_flag"
29100 || test ! -s conftest.err'
29101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29102 (eval $ac_try) 2>&5
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); }; } &&
29106 { ac_try='test -s conftest$ac_exeext'
29107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29108 (eval $ac_try) 2>&5
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); }; }; then
29112 eval "$as_ac_var=yes"
29114 echo "$as_me: failed program was:" >&5
29115 sed 's/^/| /' conftest.$ac_ext >&5
29117 eval "$as_ac_var=no"
29119 rm -f conftest.err conftest.$ac_objext \
29120 conftest$ac_exeext conftest.$ac_ext
29122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29124 if test `eval echo '${'$as_ac_var'}'` = yes; then
29125 cat >>confdefs.h <<_ACEOF
29126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29132 echo "$as_me:$LINENO: checking for working mmap" >&5
29133 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29134 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29135 echo $ECHO_N "(cached) $ECHO_C" >&6
29137 if test "$cross_compiling" = yes; then
29138 ac_cv_func_mmap_fixed_mapped=no
29140 cat >conftest.$ac_ext <<_ACEOF
29143 cat confdefs.h >>conftest.$ac_ext
29144 cat >>conftest.$ac_ext <<_ACEOF
29145 /* end confdefs.h. */
29146 $ac_includes_default
29147 /* malloc might have been renamed as rpl_malloc. */
29150 /* Thanks to Mike Haertel and Jim Avera for this test.
29151 Here is a matrix of mmap possibilities:
29152 mmap private not fixed
29153 mmap private fixed at somewhere currently unmapped
29154 mmap private fixed at somewhere already mapped
29155 mmap shared not fixed
29156 mmap shared fixed at somewhere currently unmapped
29157 mmap shared fixed at somewhere already mapped
29158 For private mappings, we should verify that changes cannot be read()
29159 back from the file, nor mmap's back from the file at a different
29160 address. (There have been systems where private was not correctly
29161 implemented like the infamous i386 svr4.0, and systems where the
29162 VM page cache was not coherent with the file system buffer cache
29163 like early versions of FreeBSD and possibly contemporary NetBSD.)
29164 For shared mappings, we should conversely verify that changes get
29165 propagated back to all the places they're supposed to be.
29167 Grep wants private fixed already mapped.
29168 The main things grep needs to know about mmap are:
29169 * does it exist and is it safe to write into the mmap'd area
29170 * how to use it (BSD variants) */
29173 #include <sys/mman.h>
29175 #if !STDC_HEADERS && !HAVE_STDLIB_H
29179 /* This mess was copied from the GNU getpagesize.h. */
29180 #if !HAVE_GETPAGESIZE
29181 /* Assume that all systems that can run configure have sys/param.h. */
29182 # if !HAVE_SYS_PARAM_H
29183 # define HAVE_SYS_PARAM_H 1
29186 # ifdef _SC_PAGESIZE
29187 # define getpagesize() sysconf(_SC_PAGESIZE)
29188 # else /* no _SC_PAGESIZE */
29189 # if HAVE_SYS_PARAM_H
29190 # include <sys/param.h>
29191 # ifdef EXEC_PAGESIZE
29192 # define getpagesize() EXEC_PAGESIZE
29193 # else /* no EXEC_PAGESIZE */
29195 # define getpagesize() NBPG * CLSIZE
29198 # endif /* no CLSIZE */
29199 # else /* no NBPG */
29201 # define getpagesize() NBPC
29202 # else /* no NBPC */
29204 # define getpagesize() PAGESIZE
29205 # endif /* PAGESIZE */
29206 # endif /* no NBPC */
29207 # endif /* no NBPG */
29208 # endif /* no EXEC_PAGESIZE */
29209 # else /* no HAVE_SYS_PARAM_H */
29210 # define getpagesize() 8192 /* punt totally */
29211 # endif /* no HAVE_SYS_PARAM_H */
29212 # endif /* no _SC_PAGESIZE */
29214 #endif /* no HAVE_GETPAGESIZE */
29219 char *data, *data2, *data3;
29223 pagesize = getpagesize ();
29225 /* First, make a file with some known garbage in it. */
29226 data = (char *) malloc (pagesize);
29229 for (i = 0; i < pagesize; ++i)
29230 *(data + i) = rand ();
29232 fd = creat ("conftest.mmap", 0600);
29235 if (write (fd, data, pagesize) != pagesize)
29239 /* Next, try to mmap the file at a fixed address which already has
29240 something else allocated at it. If we can, also make sure that
29241 we see the same garbage. */
29242 fd = open ("conftest.mmap", O_RDWR);
29245 data2 = (char *) malloc (2 * pagesize);
29248 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29249 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29250 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29252 for (i = 0; i < pagesize; ++i)
29253 if (*(data + i) != *(data2 + i))
29256 /* Finally, make sure that changes to the mapped area do not
29257 percolate back to the file as seen by read(). (This is a bug on
29258 some variants of i386 svr4.0.) */
29259 for (i = 0; i < pagesize; ++i)
29260 *(data2 + i) = *(data2 + i) + 1;
29261 data3 = (char *) malloc (pagesize);
29264 if (read (fd, data3, pagesize) != pagesize)
29266 for (i = 0; i < pagesize; ++i)
29267 if (*(data + i) != *(data3 + i))
29273 rm -f conftest$ac_exeext
29274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29275 (eval $ac_link) 2>&5
29277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29280 (eval $ac_try) 2>&5
29282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283 (exit $ac_status); }; }; then
29284 ac_cv_func_mmap_fixed_mapped=yes
29286 echo "$as_me: program exited with status $ac_status" >&5
29287 echo "$as_me: failed program was:" >&5
29288 sed 's/^/| /' conftest.$ac_ext >&5
29290 ( exit $ac_status )
29291 ac_cv_func_mmap_fixed_mapped=no
29293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29296 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29297 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29298 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29300 cat >>confdefs.h <<\_ACEOF
29301 #define HAVE_MMAP 1
29305 rm -f conftest.mmap
29307 echo "$as_me:$LINENO: checking for mmap of files" >&5
29308 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29309 if test "${ac_cv_func_mmap_file+set}" = set; then
29310 echo $ECHO_N "(cached) $ECHO_C" >&6
29313 ac_cpp='$CPP $CPPFLAGS'
29314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29318 if test "$cross_compiling" = yes; then
29319 ac_cv_func_mmap_file=no
29321 cat >conftest.$ac_ext <<_ACEOF
29325 cat confdefs.h >>conftest.$ac_ext
29326 cat >>conftest.$ac_ext <<_ACEOF
29327 /* end confdefs.h. */
29329 #include <sys/types.h>
29330 #include <sys/mman.h>
29338 fd = creat ("foo",0777);
29339 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29341 return (fd != (int) MAP_FAILED);
29346 rm -f conftest$ac_exeext
29347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29348 (eval $ac_link) 2>&5
29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29353 (eval $ac_try) 2>&5
29355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29356 (exit $ac_status); }; }; then
29357 ac_cv_func_mmap_file=yes
29359 echo "$as_me: program exited with status $ac_status" >&5
29360 echo "$as_me: failed program was:" >&5
29361 sed 's/^/| /' conftest.$ac_ext >&5
29363 ( exit $ac_status )
29364 ac_cv_func_mmap_file=no
29366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29369 ac_cpp='$CPP $CPPFLAGS'
29370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29376 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29377 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29378 if test "$ac_cv_func_mmap_file" = yes; then
29380 cat >>confdefs.h <<\_ACEOF
29381 #define HAVE_MMAP_FILE
29388 echo "$as_me:$LINENO: checking for mprotect" >&5
29389 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29390 if test "${ac_cv_func_mprotect+set}" = set; then
29391 echo $ECHO_N "(cached) $ECHO_C" >&6
29393 cat >conftest.$ac_ext <<_ACEOF
29396 cat confdefs.h >>conftest.$ac_ext
29397 cat >>conftest.$ac_ext <<_ACEOF
29398 /* end confdefs.h. */
29399 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29401 #define mprotect innocuous_mprotect
29403 /* System header to define __stub macros and hopefully few prototypes,
29404 which can conflict with char mprotect (); below.
29405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29406 <limits.h> exists even on freestanding compilers. */
29409 # include <limits.h>
29411 # include <assert.h>
29416 /* Override any gcc2 internal prototype to avoid an error. */
29421 /* We use char because int might match the return type of a gcc2
29422 builtin and then its argument prototype would still apply. */
29424 /* The GNU C library defines this for functions which it implements
29425 to always fail with ENOSYS. Some functions are actually named
29426 something starting with __ and the normal name is an alias. */
29427 #if defined (__stub_mprotect) || defined (__stub___mprotect)
29430 char (*f) () = mprotect;
29439 return f != mprotect;
29444 rm -f conftest.$ac_objext conftest$ac_exeext
29445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29446 (eval $ac_link) 2>conftest.er1
29448 grep -v '^ *+' conftest.er1 >conftest.err
29450 cat conftest.err >&5
29451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29452 (exit $ac_status); } &&
29453 { ac_try='test -z "$ac_c_werror_flag"
29454 || test ! -s conftest.err'
29455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29456 (eval $ac_try) 2>&5
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); }; } &&
29460 { ac_try='test -s conftest$ac_exeext'
29461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29462 (eval $ac_try) 2>&5
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); }; }; then
29466 ac_cv_func_mprotect=yes
29468 echo "$as_me: failed program was:" >&5
29469 sed 's/^/| /' conftest.$ac_ext >&5
29471 ac_cv_func_mprotect=no
29473 rm -f conftest.err conftest.$ac_objext \
29474 conftest$ac_exeext conftest.$ac_ext
29476 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29477 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29478 if test $ac_cv_func_mprotect = yes; then
29481 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29482 echo "$as_me: error: Function mprotect() required but not found" >&2;}
29483 { (exit 1); exit 1; }; }
29487 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29489 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29490 echo "$as_me: WARNING: mmap() required but not found" >&2;}
29492 if test "$ac_cv_func_mmap_file" = "no"
29494 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29495 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29499 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
29500 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
29501 if test "${llvm_cv_llvmgcc+set}" = set; then
29502 echo $ECHO_N "(cached) $ECHO_C" >&6
29504 llvm_cv_llvmgcc='llvmgcc_not_found'
29505 if test -d "$LLVMGCCDIR" ; then
29506 if test -x "$LLVMGCCDIR/bin/gcc" ; then
29507 llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
29511 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
29512 echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
29514 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29515 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29516 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29517 echo $ECHO_N "(cached) $ECHO_C" >&6
29519 llvm_cv_llvmgcc_sanity="no"
29520 if test -x "$llvm_cv_llvmgcc" ; then
29521 cp /dev/null conftest.c
29522 "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29523 if test $? -eq 0 ; then
29524 llvm_cv_llvmgcc_sanity="yes"
29529 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29530 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29532 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29533 LLVMGCC="$llvm_cv_llvmgcc"
29535 llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
29536 LLVMCC1=$llvmcc1path
29538 llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
29539 LLVMCC1PLUS=$llvmcc1pluspath
29543 SHLIBEXT=$libltdl_cv_shlibext
29546 # Translate the various configuration directories and other basic
29547 # information into substitutions that will end up in Makefile.config.in
29548 # that these configured values can be used by the makefiles
29549 eval LLVM_PREFIX="${prefix}";
29550 eval LLVM_BINDIR="${prefix}/bin";
29551 eval LLVM_LIBDIR="${prefix}/lib";
29552 eval LLVM_DATADIR="${prefix}/share/llvm";
29553 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29554 eval LLVM_ETCDIR="${prefix}/etc/llvm";
29555 eval LLVM_INCLUDEDIR="${prefix}/include";
29556 eval LLVM_INFODIR="${prefix}/info";
29557 eval LLVM_MANDIR="${prefix}/man";
29558 LLVM_CONFIGTIME=`date`
29570 # Place the various directores into the config.h file as #defines so that we
29571 # can know about the installation paths within LLVM.
29573 cat >>confdefs.h <<_ACEOF
29574 #define LLVM_PREFIX "$LLVM_PREFIX"
29578 cat >>confdefs.h <<_ACEOF
29579 #define LLVM_BINDIR "$LLVM_BINDIR"
29583 cat >>confdefs.h <<_ACEOF
29584 #define LLVM_LIBDIR "$LLVM_LIBDIR"
29588 cat >>confdefs.h <<_ACEOF
29589 #define LLVM_DATADIR "$LLVM_DATADIR"
29593 cat >>confdefs.h <<_ACEOF
29594 #define LLVM_DATADIR "$LLVM_DOCSDIR"
29598 cat >>confdefs.h <<_ACEOF
29599 #define LLVM_ETCDIR "$LLVM_ETCDIR"
29603 cat >>confdefs.h <<_ACEOF
29604 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29608 cat >>confdefs.h <<_ACEOF
29609 #define LLVM_INFODIR "$LLVM_INFODIR"
29613 cat >>confdefs.h <<_ACEOF
29614 #define LLVM_MANDIR "$LLVM_MANDIR"
29618 cat >>confdefs.h <<_ACEOF
29619 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29624 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29627 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29629 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29631 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29633 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29635 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29638 ac_config_files="$ac_config_files Makefile.config"
29641 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29644 ac_config_files="$ac_config_files docs/doxygen.cfg"
29647 ac_config_commands="$ac_config_commands Makefile"
29650 ac_config_commands="$ac_config_commands Makefile.common"
29653 ac_config_commands="$ac_config_commands examples/Makefile"
29656 ac_config_commands="$ac_config_commands lib/Makefile"
29659 ac_config_commands="$ac_config_commands runtime/Makefile"
29662 ac_config_commands="$ac_config_commands test/Makefile"
29665 ac_config_commands="$ac_config_commands test/Makefile.tests"
29668 ac_config_commands="$ac_config_commands tools/Makefile"
29671 ac_config_commands="$ac_config_commands utils/Makefile"
29674 ac_config_commands="$ac_config_commands projects/Makefile"
29678 cat >confcache <<\_ACEOF
29679 # This file is a shell script that caches the results of configure
29680 # tests run on this system so they can be shared between configure
29681 # scripts and configure runs, see configure's option --config-cache.
29682 # It is not useful on other systems. If it contains results you don't
29683 # want to keep, you may remove or edit it.
29685 # config.status only pays attention to the cache file if you give it
29686 # the --recheck option to rerun configure.
29688 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29689 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29690 # following values.
29694 # The following way of writing the cache mishandles newlines in values,
29695 # but we know of no workaround that is simple, portable, and efficient.
29696 # So, don't put newlines in cache variables' values.
29697 # Ultrix sh set writes to stderr and can't be redirected directly,
29698 # and sets the high bit in the cache file unless we assign to the vars.
29701 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29703 # `set' does not quote correctly, so add quotes (double-quote
29704 # substitution turns \\\\ into \\, and sed turns \\ into \).
29707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29710 # `set' quotes correctly as required by POSIX, so do not add quotes.
29712 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29719 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29721 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29723 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29724 if test -w $cache_file; then
29725 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29726 cat confcache >$cache_file
29728 echo "not updating unwritable cache $cache_file"
29733 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29734 # Let make expand exec_prefix.
29735 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29737 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29738 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29739 # trailing colons and then remove the whole line if VPATH becomes empty
29740 # (actually we leave an empty line to preserve line numbers).
29741 if test "x$srcdir" = x.; then
29742 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29743 s/:*\$(srcdir):*/:/;
29744 s/:*\${srcdir}:*/:/;
29746 s/^\([^=]*=[ ]*\):*/\1/;
29752 DEFS=-DHAVE_CONFIG_H
29756 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29757 # 1. Remove the extension, and $U if already installed.
29758 ac_i=`echo "$ac_i" |
29759 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29761 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29762 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29764 LIBOBJS=$ac_libobjs
29766 LTLIBOBJS=$ac_ltlibobjs
29769 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29770 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29771 Usually this means the macro was only invoked conditionally." >&5
29772 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29773 Usually this means the macro was only invoked conditionally." >&2;}
29774 { (exit 1); exit 1; }; }
29776 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29777 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29778 Usually this means the macro was only invoked conditionally." >&5
29779 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29780 Usually this means the macro was only invoked conditionally." >&2;}
29781 { (exit 1); exit 1; }; }
29784 : ${CONFIG_STATUS=./config.status}
29785 ac_clean_files_save=$ac_clean_files
29786 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29787 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29788 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29789 cat >$CONFIG_STATUS <<_ACEOF
29791 # Generated by $as_me.
29792 # Run this file to recreate the current configuration.
29793 # Compiler output produced by configure, useful for debugging
29794 # configure, is in config.log if it exists.
29797 ac_cs_recheck=false
29799 SHELL=\${CONFIG_SHELL-$SHELL}
29802 cat >>$CONFIG_STATUS <<\_ACEOF
29803 ## --------------------- ##
29804 ## M4sh Initialization. ##
29805 ## --------------------- ##
29807 # Be Bourne compatible
29808 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29811 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29812 # is contrary to our usage. Disable this feature.
29813 alias -g '${1+"$@"}'='"$@"'
29814 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29817 DUALCASE=1; export DUALCASE # for MKS sh
29819 # Support unset when possible.
29820 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29827 # Work around bugs in pre-3.0 UWIN ksh.
29828 $as_unset ENV MAIL MAILPATH
29835 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29836 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29837 LC_TELEPHONE LC_TIME
29839 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29840 eval $as_var=C; export $as_var
29846 # Required to use basename.
29847 if expr a : '\(a\)' >/dev/null 2>&1; then
29853 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29854 as_basename=basename
29860 # Name of the executable.
29861 as_me=`$as_basename "$0" ||
29862 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29863 X"$0" : 'X\(//\)$' \| \
29864 X"$0" : 'X\(/\)$' \| \
29865 . : '\(.\)' 2>/dev/null ||
29867 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29868 /^X\/\(\/\/\)$/{ s//\1/; q; }
29869 /^X\/\(\/\).*/{ s//\1/; q; }
29873 # PATH needs CR, and LINENO needs CR and PATH.
29874 # Avoid depending upon Character Ranges.
29875 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29876 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29877 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29878 as_cr_digits='0123456789'
29879 as_cr_alnum=$as_cr_Letters$as_cr_digits
29881 # The user is always right.
29882 if test "${PATH_SEPARATOR+set}" != set; then
29883 echo "#! /bin/sh" >conf$$.sh
29884 echo "exit 0" >>conf$$.sh
29886 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29895 as_lineno_1=$LINENO
29896 as_lineno_2=$LINENO
29897 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29898 test "x$as_lineno_1" != "x$as_lineno_2" &&
29899 test "x$as_lineno_3" = "x$as_lineno_2" || {
29900 # Find who we are. Look in the path if we contain no path at all
29903 *[\\/]* ) as_myself=$0 ;;
29904 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29905 for as_dir in $PATH
29908 test -z "$as_dir" && as_dir=.
29909 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29914 # We did not find ourselves, most probably we were run as `sh COMMAND'
29915 # in which case we are not to be found in the path.
29916 if test "x$as_myself" = x; then
29919 if test ! -f "$as_myself"; then
29920 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29921 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29922 { (exit 1); exit 1; }; }
29924 case $CONFIG_SHELL in
29926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29927 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29930 test -z "$as_dir" && as_dir=.
29931 for as_base in sh bash ksh sh5; do
29934 if ("$as_dir/$as_base" -c '
29935 as_lineno_1=$LINENO
29936 as_lineno_2=$LINENO
29937 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29938 test "x$as_lineno_1" != "x$as_lineno_2" &&
29939 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29940 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29941 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29942 CONFIG_SHELL=$as_dir/$as_base
29943 export CONFIG_SHELL
29944 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29952 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29953 # uniformly replaced by the line number. The first 'sed' inserts a
29954 # line-number line before each line; the second 'sed' does the real
29955 # work. The second script uses 'N' to pair each line-number line
29956 # with the numbered line, and appends trailing '-' during
29957 # substitution so that $LINENO is not a special case at line end.
29958 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29959 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29960 sed '=' <$as_myself |
29965 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29968 s,^['$as_cr_digits']*\n,,
29969 ' >$as_me.lineno &&
29970 chmod +x $as_me.lineno ||
29971 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29972 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29973 { (exit 1); exit 1; }; }
29975 # Don't try to exec as it changes $[0], causing all sort of problems
29976 # (the dirname of $[0] is not the place where we might find the
29977 # original and so on. Autoconf is especially sensible to this).
29979 # Exit status is that of the last command.
29984 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29985 *c*,-n*) ECHO_N= ECHO_C='
29987 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29988 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29991 if expr a : '\(a\)' >/dev/null 2>&1; then
29997 rm -f conf$$ conf$$.exe conf$$.file
29999 if ln -s conf$$.file conf$$ 2>/dev/null; then
30000 # We could just check for DJGPP; but this test a) works b) is more generic
30001 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30002 if test -f conf$$.exe; then
30003 # Don't use ln at all; we don't have any links
30008 elif ln conf$$.file conf$$ 2>/dev/null; then
30013 rm -f conf$$ conf$$.exe conf$$.file
30015 if mkdir -p . 2>/dev/null; then
30018 test -d ./-p && rmdir ./-p
30022 as_executable_p="test -f"
30024 # Sed expression to map a string onto a valid CPP name.
30025 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30027 # Sed expression to map a string onto a valid variable name.
30028 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30032 # We need space, tab and new line, in precisely that order.
30042 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30043 # report actual input values of CONFIG_FILES etc. instead of their
30044 # values after options handling. Logging --version etc. is OK.
30048 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30049 ## Running $as_me. ##
30054 This file was extended by llvm $as_me 1.4, which was
30055 generated by GNU Autoconf 2.59. Invocation command line was
30057 CONFIG_FILES = $CONFIG_FILES
30058 CONFIG_HEADERS = $CONFIG_HEADERS
30059 CONFIG_LINKS = $CONFIG_LINKS
30060 CONFIG_COMMANDS = $CONFIG_COMMANDS
30064 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30068 # Files that config.status was made for.
30069 if test -n "$ac_config_files"; then
30070 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30073 if test -n "$ac_config_headers"; then
30074 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30077 if test -n "$ac_config_links"; then
30078 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30081 if test -n "$ac_config_commands"; then
30082 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30085 cat >>$CONFIG_STATUS <<\_ACEOF
30088 \`$as_me' instantiates files from templates according to the
30089 current configuration.
30091 Usage: $0 [OPTIONS] [FILE]...
30093 -h, --help print this help, then exit
30094 -V, --version print version number, then exit
30095 -q, --quiet do not print progress messages
30096 -d, --debug don't remove temporary files
30097 --recheck update $as_me by reconfiguring in the same conditions
30098 --file=FILE[:TEMPLATE]
30099 instantiate the configuration file FILE
30100 --header=FILE[:TEMPLATE]
30101 instantiate the configuration header FILE
30103 Configuration files:
30106 Configuration headers:
30109 Configuration links:
30112 Configuration commands:
30115 Report bugs to <bug-autoconf@gnu.org>."
30118 cat >>$CONFIG_STATUS <<_ACEOF
30120 llvm config.status 1.4
30121 configured by $0, generated by GNU Autoconf 2.59,
30122 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30124 Copyright (C) 2003 Free Software Foundation, Inc.
30125 This config.status script is free software; the Free Software Foundation
30126 gives unlimited permission to copy, distribute and modify it."
30131 cat >>$CONFIG_STATUS <<\_ACEOF
30132 # If no file are specified by the user, then we need to provide default
30133 # value. By we need to know if files were specified by the user.
30139 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30140 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30148 *) # This is not an option, so the user has probably given explicit
30151 ac_need_defaults=false;;
30155 # Handling of the options.
30157 cat >>$CONFIG_STATUS <<\_ACEOF
30158 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30160 --version | --vers* | -V )
30161 echo "$ac_cs_version"; exit 0 ;;
30163 # Conflict between --help and --header
30164 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30165 Try \`$0 --help' for more information." >&5
30166 echo "$as_me: error: ambiguous option: $1
30167 Try \`$0 --help' for more information." >&2;}
30168 { (exit 1); exit 1; }; };;
30169 --help | --hel | -h )
30170 echo "$ac_cs_usage"; exit 0 ;;
30171 --debug | --d* | -d )
30173 --file | --fil | --fi | --f )
30175 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30176 ac_need_defaults=false;;
30177 --header | --heade | --head | --hea )
30179 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30180 ac_need_defaults=false;;
30181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30182 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30185 # This is an error.
30186 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30187 Try \`$0 --help' for more information." >&5
30188 echo "$as_me: error: unrecognized option: $1
30189 Try \`$0 --help' for more information." >&2;}
30190 { (exit 1); exit 1; }; } ;;
30192 *) ac_config_targets="$ac_config_targets $1" ;;
30198 ac_configure_extra_args=
30200 if $ac_cs_silent; then
30202 ac_configure_extra_args="$ac_configure_extra_args --silent"
30206 cat >>$CONFIG_STATUS <<_ACEOF
30207 if \$ac_cs_recheck; then
30208 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30209 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30214 cat >>$CONFIG_STATUS <<_ACEOF
30216 # INIT-COMMANDS section.
30219 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30220 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30221 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30222 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30223 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30224 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30225 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30226 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30227 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30228 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30234 cat >>$CONFIG_STATUS <<\_ACEOF
30235 for ac_config_target in $ac_config_targets
30237 case "$ac_config_target" in
30238 # Handling of arguments.
30239 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30240 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30241 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30242 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30243 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30244 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30245 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
30246 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30247 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30248 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30249 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30250 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30251 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30252 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30253 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30254 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30255 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30256 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30257 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30258 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30259 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30260 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30261 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30262 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30263 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30264 { (exit 1); exit 1; }; };;
30268 # If the user did not use the arguments to specify the items to instantiate,
30269 # then the envvar interface is used. Set only those that are not.
30270 # We use the long form for the default assignment because of an extremely
30271 # bizarre bug on SunOS 4.1.3.
30272 if $ac_need_defaults; then
30273 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30274 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30275 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30276 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30279 # Have a temporary directory for convenience. Make it in the build tree
30280 # simply because there is no reason to put it here, and in addition,
30281 # creating and moving files from /tmp can sometimes cause problems.
30282 # Create a temporary directory, and hook for its removal unless debugging.
30285 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30286 trap '{ (exit 1); exit 1; }' 1 2 13 15
30289 # Create a (secure) tmp directory for tmp files.
30292 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30293 test -n "$tmp" && test -d "$tmp"
30296 tmp=./confstat$$-$RANDOM
30297 (umask 077 && mkdir $tmp)
30300 echo "$me: cannot create a temporary directory in ." >&2
30301 { (exit 1); exit 1; }
30306 cat >>$CONFIG_STATUS <<_ACEOF
30309 # CONFIG_FILES section.
30312 # No need to generate the scripts if there are no CONFIG_FILES.
30313 # This happens for instance when ./config.status config.h
30314 if test -n "\$CONFIG_FILES"; then
30315 # Protect against being on the right side of a sed subst in config.status.
30316 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30317 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30318 s,@SHELL@,$SHELL,;t t
30319 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30320 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30321 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30322 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30323 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30324 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30325 s,@exec_prefix@,$exec_prefix,;t t
30326 s,@prefix@,$prefix,;t t
30327 s,@program_transform_name@,$program_transform_name,;t t
30328 s,@bindir@,$bindir,;t t
30329 s,@sbindir@,$sbindir,;t t
30330 s,@libexecdir@,$libexecdir,;t t
30331 s,@datadir@,$datadir,;t t
30332 s,@sysconfdir@,$sysconfdir,;t t
30333 s,@sharedstatedir@,$sharedstatedir,;t t
30334 s,@localstatedir@,$localstatedir,;t t
30335 s,@libdir@,$libdir,;t t
30336 s,@includedir@,$includedir,;t t
30337 s,@oldincludedir@,$oldincludedir,;t t
30338 s,@infodir@,$infodir,;t t
30339 s,@mandir@,$mandir,;t t
30340 s,@build_alias@,$build_alias,;t t
30341 s,@host_alias@,$host_alias,;t t
30342 s,@target_alias@,$target_alias,;t t
30343 s,@DEFS@,$DEFS,;t t
30344 s,@ECHO_C@,$ECHO_C,;t t
30345 s,@ECHO_N@,$ECHO_N,;t t
30346 s,@ECHO_T@,$ECHO_T,;t t
30347 s,@LIBS@,$LIBS,;t t
30348 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30349 s,@subdirs@,$subdirs,;t t
30350 s,@build@,$build,;t t
30351 s,@build_cpu@,$build_cpu,;t t
30352 s,@build_vendor@,$build_vendor,;t t
30353 s,@build_os@,$build_os,;t t
30354 s,@host@,$host,;t t
30355 s,@host_cpu@,$host_cpu,;t t
30356 s,@host_vendor@,$host_vendor,;t t
30357 s,@host_os@,$host_os,;t t
30358 s,@target@,$target,;t t
30359 s,@target_cpu@,$target_cpu,;t t
30360 s,@target_vendor@,$target_vendor,;t t
30361 s,@target_os@,$target_os,;t t
30363 s,@ARCH@,$ARCH,;t t
30364 s,@ENDIAN@,$ENDIAN,;t t
30366 s,@CFLAGS@,$CFLAGS,;t t
30367 s,@LDFLAGS@,$LDFLAGS,;t t
30368 s,@CPPFLAGS@,$CPPFLAGS,;t t
30369 s,@ac_ct_CC@,$ac_ct_CC,;t t
30370 s,@EXEEXT@,$EXEEXT,;t t
30371 s,@OBJEXT@,$OBJEXT,;t t
30372 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30374 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30375 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30378 s,@CXXFLAGS@,$CXXFLAGS,;t t
30379 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30381 s,@LEXLIB@,$LEXLIB,;t t
30382 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30383 s,@FLEX@,$FLEX,;t t
30384 s,@YACC@,$YACC,;t t
30385 s,@BISON@,$BISON,;t t
30386 s,@ifGNUmake@,$ifGNUmake,;t t
30387 s,@LN_S@,$LN_S,;t t
30390 s,@DATE@,$DATE,;t t
30391 s,@FIND@,$FIND,;t t
30392 s,@GREP@,$GREP,;t t
30393 s,@MKDIR@,$MKDIR,;t t
30396 s,@RANLIB@,$RANLIB,;t t
30397 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30401 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30402 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30403 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30404 s,@BZIP2@,$BZIP2,;t t
30406 s,@DOXYGEN@,$DOXYGEN,;t t
30407 s,@ETAGS@,$ETAGS,;t t
30408 s,@GROFF@,$GROFF,;t t
30409 s,@GZIP@,$GZIP,;t t
30410 s,@POD2HTML@,$POD2HTML,;t t
30411 s,@POD2MAN@,$POD2MAN,;t t
30412 s,@RUNTEST@,$RUNTEST,;t t
30413 s,@TCLSH@,$TCLSH,;t t
30415 s,@EGREP@,$EGREP,;t t
30416 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30417 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30418 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30419 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30420 s,@LIBADD_DL@,$LIBADD_DL,;t t
30421 s,@ECHO@,$ECHO,;t t
30423 s,@ac_ct_AR@,$ac_ct_AR,;t t
30424 s,@STRIP@,$STRIP,;t t
30425 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30426 s,@CXXCPP@,$CXXCPP,;t t
30428 s,@FFLAGS@,$FFLAGS,;t t
30429 s,@ac_ct_F77@,$ac_ct_F77,;t t
30430 s,@LIBTOOL@,$LIBTOOL,;t t
30431 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30432 s,@ALLOCA@,$ALLOCA,;t t
30433 s,@MMAP_FILE@,$MMAP_FILE,;t t
30434 s,@LLVMGCC@,$LLVMGCC,;t t
30435 s,@LLVMCC1@,$LLVMCC1,;t t
30436 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30437 s,@SHLIBEXT@,$SHLIBEXT,;t t
30438 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30439 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30440 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30441 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30442 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30443 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30444 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30445 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30446 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30447 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30448 s,@LIBOBJS@,$LIBOBJS,;t t
30449 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30454 cat >>$CONFIG_STATUS <<\_ACEOF
30455 # Split the substitutions into bite-sized pieces for seds with
30456 # small command number limits, like on Digital OSF/1 and HP-UX.
30457 ac_max_sed_lines=48
30458 ac_sed_frag=1 # Number of current file.
30459 ac_beg=1 # First line for current file.
30460 ac_end=$ac_max_sed_lines # Line after last line for current file.
30463 while $ac_more_lines; do
30464 if test $ac_beg -gt 1; then
30465 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30467 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30469 if test ! -s $tmp/subs.frag; then
30470 ac_more_lines=false
30472 # The purpose of the label and of the branching condition is to
30473 # speed up the sed processing (if there are no `@' at all, there
30474 # is no need to browse any of the substitutions).
30475 # These are the two extra sed commands mentioned above.
30477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30478 if test -z "$ac_sed_cmds"; then
30479 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30481 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30483 ac_sed_frag=`expr $ac_sed_frag + 1`
30485 ac_end=`expr $ac_end + $ac_max_sed_lines`
30488 if test -z "$ac_sed_cmds"; then
30491 fi # test -n "$CONFIG_FILES"
30494 cat >>$CONFIG_STATUS <<\_ACEOF
30495 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30496 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30498 - | *:- | *:-:* ) # input from stdin
30500 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30501 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30502 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30503 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30504 * ) ac_file_in=$ac_file.in ;;
30507 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30508 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30510 X"$ac_file" : 'X\(//\)[^/]' \| \
30511 X"$ac_file" : 'X\(//\)$' \| \
30512 X"$ac_file" : 'X\(/\)' \| \
30513 . : '\(.\)' 2>/dev/null ||
30515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30517 /^X\(\/\/\)$/{ s//\1/; q; }
30518 /^X\(\/\).*/{ s//\1/; q; }
30520 { if $as_mkdir_p; then
30525 while test ! -d "$as_dir"; do
30526 as_dirs="$as_dir $as_dirs"
30527 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30528 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30529 X"$as_dir" : 'X\(//\)[^/]' \| \
30530 X"$as_dir" : 'X\(//\)$' \| \
30531 X"$as_dir" : 'X\(/\)' \| \
30532 . : '\(.\)' 2>/dev/null ||
30534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30536 /^X\(\/\/\)$/{ s//\1/; q; }
30537 /^X\(\/\).*/{ s//\1/; q; }
30540 test ! -n "$as_dirs" || mkdir $as_dirs
30541 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30542 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30543 { (exit 1); exit 1; }; }; }
30547 if test "$ac_dir" != .; then
30548 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30549 # A "../" for each directory in $ac_dir_suffix.
30550 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30552 ac_dir_suffix= ac_top_builddir=
30556 .) # No --srcdir option. We are building in place.
30558 if test -z "$ac_top_builddir"; then
30561 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30563 [\\/]* | ?:[\\/]* ) # Absolute path.
30564 ac_srcdir=$srcdir$ac_dir_suffix;
30565 ac_top_srcdir=$srcdir ;;
30566 *) # Relative path.
30567 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30568 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30571 # Do not use `cd foo && pwd` to compute absolute paths, because
30572 # the directories may not exist.
30574 .) ac_abs_builddir="$ac_dir";;
30577 .) ac_abs_builddir=`pwd`;;
30578 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30579 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30582 case $ac_abs_builddir in
30583 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30585 case ${ac_top_builddir}. in
30586 .) ac_abs_top_builddir=$ac_abs_builddir;;
30587 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30588 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30591 case $ac_abs_builddir in
30592 .) ac_abs_srcdir=$ac_srcdir;;
30595 .) ac_abs_srcdir=$ac_abs_builddir;;
30596 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30597 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30600 case $ac_abs_builddir in
30601 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30603 case $ac_top_srcdir in
30604 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30605 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30606 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30612 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30613 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30616 if test x"$ac_file" != x-; then
30617 { echo "$as_me:$LINENO: creating $ac_file" >&5
30618 echo "$as_me: creating $ac_file" >&6;}
30621 # Let's still pretend it is `configure' which instantiates (i.e., don't
30622 # use $as_me), people would be surprised to read:
30623 # /* config.h. Generated by config.status. */
30624 if test x"$ac_file" = x-; then
30627 configure_input="$ac_file. "
30629 configure_input=$configure_input"Generated from `echo $ac_file_in |
30630 sed 's,.*/,,'` by configure."
30632 # First look for the input files in the build tree, otherwise in the
30634 ac_file_inputs=`IFS=:
30635 for f in $ac_file_in; do
30637 -) echo $tmp/stdin ;;
30639 # Absolute (can't be DOS-style, as IFS=:)
30640 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30641 echo "$as_me: error: cannot find input file: $f" >&2;}
30642 { (exit 1); exit 1; }; }
30645 if test -f "$f"; then
30648 elif test -f "$srcdir/$f"; then
30653 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30654 echo "$as_me: error: cannot find input file: $f" >&2;}
30655 { (exit 1); exit 1; }; }
30658 done` || { (exit 1); exit 1; }
30660 cat >>$CONFIG_STATUS <<_ACEOF
30664 cat >>$CONFIG_STATUS <<\_ACEOF
30666 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30667 s,@configure_input@,$configure_input,;t t
30668 s,@srcdir@,$ac_srcdir,;t t
30669 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30670 s,@top_srcdir@,$ac_top_srcdir,;t t
30671 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30672 s,@builddir@,$ac_builddir,;t t
30673 s,@abs_builddir@,$ac_abs_builddir,;t t
30674 s,@top_builddir@,$ac_top_builddir,;t t
30675 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30676 s,@INSTALL@,$ac_INSTALL,;t t
30677 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30679 if test x"$ac_file" != x-; then
30680 mv $tmp/out $ac_file
30688 cat >>$CONFIG_STATUS <<\_ACEOF
30691 # CONFIG_HEADER section.
30694 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30695 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30697 # ac_d sets the value in "#define NAME VALUE" lines.
30698 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30699 ac_dB='[ ].*$,\1#\2'
30702 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30703 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30704 ac_uB='$,\1#\2define\3'
30708 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30709 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30711 - | *:- | *:-:* ) # input from stdin
30713 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30714 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30715 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30716 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30717 * ) ac_file_in=$ac_file.in ;;
30720 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30721 echo "$as_me: creating $ac_file" >&6;}
30723 # First look for the input files in the build tree, otherwise in the
30725 ac_file_inputs=`IFS=:
30726 for f in $ac_file_in; do
30728 -) echo $tmp/stdin ;;
30730 # Absolute (can't be DOS-style, as IFS=:)
30731 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30732 echo "$as_me: error: cannot find input file: $f" >&2;}
30733 { (exit 1); exit 1; }; }
30734 # Do quote $f, to prevent DOS paths from being IFS'd.
30737 if test -f "$f"; then
30740 elif test -f "$srcdir/$f"; then
30745 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30746 echo "$as_me: error: cannot find input file: $f" >&2;}
30747 { (exit 1); exit 1; }; }
30750 done` || { (exit 1); exit 1; }
30751 # Remove the trailing spaces.
30752 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30756 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30757 # `conftest.undefs', that substitutes the proper values into
30758 # config.h.in to produce config.h. The first handles `#define'
30759 # templates, and the second `#undef' templates.
30760 # And first: Protect against being on the right side of a sed subst in
30761 # config.status. Protect against being in an unquoted here document
30762 # in config.status.
30763 rm -f conftest.defines conftest.undefs
30764 # Using a here document instead of a string reduces the quoting nightmare.
30765 # Putting comments in sed scripts is not portable.
30767 # `end' is used to avoid that the second main sed command (meant for
30768 # 0-ary CPP macros) applies to n-ary macro definitions.
30769 # See the Autoconf documentation for `clear'.
30770 cat >confdef2sed.sed <<\_ACEOF
30775 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30777 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30780 # If some macros were called several times there might be several times
30781 # the same #defines, which is useless. Nevertheless, we may not want to
30782 # sort them, since we want the *last* AC-DEFINE to be honored.
30783 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30784 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30785 rm -f confdef2sed.sed
30787 # This sed command replaces #undef with comments. This is necessary, for
30788 # example, in the case of _POSIX_SOURCE, which is predefined and required
30789 # on some systems where configure will not decide to define it.
30790 cat >>conftest.undefs <<\_ACEOF
30791 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30794 # Break up conftest.defines because some shells have a limit on the size
30795 # of here documents, and old seds have small limits too (100 cmds).
30796 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30797 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30798 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30799 echo ' :' >>$CONFIG_STATUS
30800 rm -f conftest.tail
30801 while grep . conftest.defines >/dev/null
30803 # Write a limited-size here document to $tmp/defines.sed.
30804 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30805 # Speed up: don't consider the non `#define' lines.
30806 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30807 # Work around the forget-to-reset-the-flag bug.
30808 echo 't clr' >>$CONFIG_STATUS
30809 echo ': clr' >>$CONFIG_STATUS
30810 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30812 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30814 mv $tmp/out $tmp/in
30816 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30817 rm -f conftest.defines
30818 mv conftest.tail conftest.defines
30820 rm -f conftest.defines
30821 echo ' fi # grep' >>$CONFIG_STATUS
30822 echo >>$CONFIG_STATUS
30824 # Break up conftest.undefs because some shells have a limit on the size
30825 # of here documents, and old seds have small limits too (100 cmds).
30826 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30827 rm -f conftest.tail
30828 while grep . conftest.undefs >/dev/null
30830 # Write a limited-size here document to $tmp/undefs.sed.
30831 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30832 # Speed up: don't consider the non `#undef'
30833 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30834 # Work around the forget-to-reset-the-flag bug.
30835 echo 't clr' >>$CONFIG_STATUS
30836 echo ': clr' >>$CONFIG_STATUS
30837 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30839 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30841 mv $tmp/out $tmp/in
30843 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30844 rm -f conftest.undefs
30845 mv conftest.tail conftest.undefs
30847 rm -f conftest.undefs
30849 cat >>$CONFIG_STATUS <<\_ACEOF
30850 # Let's still pretend it is `configure' which instantiates (i.e., don't
30851 # use $as_me), people would be surprised to read:
30852 # /* config.h. Generated by config.status. */
30853 if test x"$ac_file" = x-; then
30854 echo "/* Generated by configure. */" >$tmp/config.h
30856 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30858 cat $tmp/in >>$tmp/config.h
30860 if test x"$ac_file" != x-; then
30861 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30862 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30863 echo "$as_me: $ac_file is unchanged" >&6;}
30865 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30866 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30867 X"$ac_file" : 'X\(//\)[^/]' \| \
30868 X"$ac_file" : 'X\(//\)$' \| \
30869 X"$ac_file" : 'X\(/\)' \| \
30870 . : '\(.\)' 2>/dev/null ||
30872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30874 /^X\(\/\/\)$/{ s//\1/; q; }
30875 /^X\(\/\).*/{ s//\1/; q; }
30877 { if $as_mkdir_p; then
30882 while test ! -d "$as_dir"; do
30883 as_dirs="$as_dir $as_dirs"
30884 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30886 X"$as_dir" : 'X\(//\)[^/]' \| \
30887 X"$as_dir" : 'X\(//\)$' \| \
30888 X"$as_dir" : 'X\(/\)' \| \
30889 . : '\(.\)' 2>/dev/null ||
30891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30893 /^X\(\/\/\)$/{ s//\1/; q; }
30894 /^X\(\/\).*/{ s//\1/; q; }
30897 test ! -n "$as_dirs" || mkdir $as_dirs
30898 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30899 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30900 { (exit 1); exit 1; }; }; }
30903 mv $tmp/config.h $ac_file
30907 rm -f $tmp/config.h
30911 cat >>$CONFIG_STATUS <<\_ACEOF
30914 # CONFIG_LINKS section.
30917 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30918 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30919 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30921 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30922 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30924 if test ! -r $srcdir/$ac_source; then
30925 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30926 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30927 { (exit 1); exit 1; }; }
30931 # Make relative symlinks.
30932 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30933 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30934 X"$ac_dest" : 'X\(//\)[^/]' \| \
30935 X"$ac_dest" : 'X\(//\)$' \| \
30936 X"$ac_dest" : 'X\(/\)' \| \
30937 . : '\(.\)' 2>/dev/null ||
30939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30941 /^X\(\/\/\)$/{ s//\1/; q; }
30942 /^X\(\/\).*/{ s//\1/; q; }
30944 { if $as_mkdir_p; then
30945 mkdir -p "$ac_dest_dir"
30947 as_dir="$ac_dest_dir"
30949 while test ! -d "$as_dir"; do
30950 as_dirs="$as_dir $as_dirs"
30951 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30952 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30953 X"$as_dir" : 'X\(//\)[^/]' \| \
30954 X"$as_dir" : 'X\(//\)$' \| \
30955 X"$as_dir" : 'X\(/\)' \| \
30956 . : '\(.\)' 2>/dev/null ||
30958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30959 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30960 /^X\(\/\/\)$/{ s//\1/; q; }
30961 /^X\(\/\).*/{ s//\1/; q; }
30964 test ! -n "$as_dirs" || mkdir $as_dirs
30965 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30966 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30967 { (exit 1); exit 1; }; }; }
30971 if test "$ac_dest_dir" != .; then
30972 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30973 # A "../" for each directory in $ac_dir_suffix.
30974 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30976 ac_dir_suffix= ac_top_builddir=
30980 .) # No --srcdir option. We are building in place.
30982 if test -z "$ac_top_builddir"; then
30985 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30987 [\\/]* | ?:[\\/]* ) # Absolute path.
30988 ac_srcdir=$srcdir$ac_dir_suffix;
30989 ac_top_srcdir=$srcdir ;;
30990 *) # Relative path.
30991 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30992 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30995 # Do not use `cd foo && pwd` to compute absolute paths, because
30996 # the directories may not exist.
30998 .) ac_abs_builddir="$ac_dest_dir";;
31000 case "$ac_dest_dir" in
31001 .) ac_abs_builddir=`pwd`;;
31002 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
31003 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
31006 case $ac_abs_builddir in
31007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31009 case ${ac_top_builddir}. in
31010 .) ac_abs_top_builddir=$ac_abs_builddir;;
31011 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31012 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31015 case $ac_abs_builddir in
31016 .) ac_abs_srcdir=$ac_srcdir;;
31019 .) ac_abs_srcdir=$ac_abs_builddir;;
31020 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31021 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31024 case $ac_abs_builddir in
31025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31027 case $ac_top_srcdir in
31028 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31029 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31030 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31036 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
31037 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
31040 # Try a symlink, then a hard link, then a copy.
31041 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
31042 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
31043 cp -p $srcdir/$ac_source $ac_dest ||
31044 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
31045 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
31046 { (exit 1); exit 1; }; }
31049 cat >>$CONFIG_STATUS <<\_ACEOF
31052 # CONFIG_COMMANDS section.
31054 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31055 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31056 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31057 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31058 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31059 X"$ac_dest" : 'X\(//\)[^/]' \| \
31060 X"$ac_dest" : 'X\(//\)$' \| \
31061 X"$ac_dest" : 'X\(/\)' \| \
31062 . : '\(.\)' 2>/dev/null ||
31064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31066 /^X\(\/\/\)$/{ s//\1/; q; }
31067 /^X\(\/\).*/{ s//\1/; q; }
31069 { if $as_mkdir_p; then
31074 while test ! -d "$as_dir"; do
31075 as_dirs="$as_dir $as_dirs"
31076 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31077 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31078 X"$as_dir" : 'X\(//\)[^/]' \| \
31079 X"$as_dir" : 'X\(//\)$' \| \
31080 X"$as_dir" : 'X\(/\)' \| \
31081 . : '\(.\)' 2>/dev/null ||
31083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31084 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31085 /^X\(\/\/\)$/{ s//\1/; q; }
31086 /^X\(\/\).*/{ s//\1/; q; }
31089 test ! -n "$as_dirs" || mkdir $as_dirs
31090 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31091 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31092 { (exit 1); exit 1; }; }; }
31096 if test "$ac_dir" != .; then
31097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31098 # A "../" for each directory in $ac_dir_suffix.
31099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31101 ac_dir_suffix= ac_top_builddir=
31105 .) # No --srcdir option. We are building in place.
31107 if test -z "$ac_top_builddir"; then
31110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31112 [\\/]* | ?:[\\/]* ) # Absolute path.
31113 ac_srcdir=$srcdir$ac_dir_suffix;
31114 ac_top_srcdir=$srcdir ;;
31115 *) # Relative path.
31116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31117 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31120 # Do not use `cd foo && pwd` to compute absolute paths, because
31121 # the directories may not exist.
31123 .) ac_abs_builddir="$ac_dir";;
31126 .) ac_abs_builddir=`pwd`;;
31127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31128 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31131 case $ac_abs_builddir in
31132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31134 case ${ac_top_builddir}. in
31135 .) ac_abs_top_builddir=$ac_abs_builddir;;
31136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31140 case $ac_abs_builddir in
31141 .) ac_abs_srcdir=$ac_srcdir;;
31144 .) ac_abs_srcdir=$ac_abs_builddir;;
31145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31149 case $ac_abs_builddir in
31150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31152 case $ac_top_srcdir in
31153 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31160 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31161 echo "$as_me: executing $ac_dest commands" >&6;}
31163 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31164 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31165 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31166 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31167 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31168 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31169 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31170 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31171 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31172 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31177 cat >>$CONFIG_STATUS <<\_ACEOF
31179 { (exit 0); exit 0; }
31181 chmod +x $CONFIG_STATUS
31182 ac_clean_files=$ac_clean_files_save
31185 # configure is writing to config.log, and then calls config.status.
31186 # config.status does its own redirection, appending to config.log.
31187 # Unfortunately, on DOS this fails, as config.log is still kept open
31188 # by configure, so config.status won't be able to write to it; its
31189 # output is simply discarded. So we exec the FD to /dev/null,
31190 # effectively closing config.log, so it can be properly (re)opened and
31191 # appended to by config.status. When coming back to configure, we
31192 # need to make the FD available again.
31193 if test "$no_create" != yes; then
31195 ac_config_status_args=
31196 test "$silent" = yes &&
31197 ac_config_status_args="$ac_config_status_args --quiet"
31199 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31201 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31202 # would make configure fail if this is the last instruction.
31203 $ac_cs_success || { (exit 1); exit 1; }
31207 # CONFIG_SUBDIRS section.
31209 if test "$no_recursion" != yes; then
31211 # Remove --cache-file and --srcdir arguments so they do not pile up.
31212 ac_sub_configure_args=
31214 for ac_arg in $ac_configure_args; do
31215 if test -n "$ac_prev"; then
31220 -cache-file | --cache-file | --cache-fil | --cache-fi \
31221 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31222 ac_prev=cache_file ;;
31223 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31224 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31227 --config-cache | -C)
31229 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31231 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31233 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31235 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31237 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31241 # Always prepend --prefix to ensure using the same prefix
31242 # in subdir configurations.
31243 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31246 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31248 # Do not complain, so a configure script can configure whichever
31249 # parts of a large source tree are present.
31250 test -d $srcdir/$ac_dir || continue
31252 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31253 echo "$as_me: configuring in $ac_dir" >&6;}
31254 { if $as_mkdir_p; then
31259 while test ! -d "$as_dir"; do
31260 as_dirs="$as_dir $as_dirs"
31261 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31263 X"$as_dir" : 'X\(//\)[^/]' \| \
31264 X"$as_dir" : 'X\(//\)$' \| \
31265 X"$as_dir" : 'X\(/\)' \| \
31266 . : '\(.\)' 2>/dev/null ||
31268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31269 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31270 /^X\(\/\/\)$/{ s//\1/; q; }
31271 /^X\(\/\).*/{ s//\1/; q; }
31274 test ! -n "$as_dirs" || mkdir $as_dirs
31275 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31276 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31277 { (exit 1); exit 1; }; }; }
31281 if test "$ac_dir" != .; then
31282 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31283 # A "../" for each directory in $ac_dir_suffix.
31284 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31286 ac_dir_suffix= ac_top_builddir=
31290 .) # No --srcdir option. We are building in place.
31292 if test -z "$ac_top_builddir"; then
31295 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31297 [\\/]* | ?:[\\/]* ) # Absolute path.
31298 ac_srcdir=$srcdir$ac_dir_suffix;
31299 ac_top_srcdir=$srcdir ;;
31300 *) # Relative path.
31301 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31302 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31305 # Do not use `cd foo && pwd` to compute absolute paths, because
31306 # the directories may not exist.
31308 .) ac_abs_builddir="$ac_dir";;
31311 .) ac_abs_builddir=`pwd`;;
31312 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31313 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31316 case $ac_abs_builddir in
31317 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31319 case ${ac_top_builddir}. in
31320 .) ac_abs_top_builddir=$ac_abs_builddir;;
31321 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31322 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31325 case $ac_abs_builddir in
31326 .) ac_abs_srcdir=$ac_srcdir;;
31329 .) ac_abs_srcdir=$ac_abs_builddir;;
31330 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31331 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31334 case $ac_abs_builddir in
31335 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31337 case $ac_top_srcdir in
31338 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31339 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31340 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31347 # Check for guested configure; otherwise get Cygnus style configure.
31348 if test -f $ac_srcdir/configure.gnu; then
31349 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31350 elif test -f $ac_srcdir/configure; then
31351 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31352 elif test -f $ac_srcdir/configure.in; then
31353 ac_sub_configure=$ac_configure
31355 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31356 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31360 # The recursion is here.
31361 if test -n "$ac_sub_configure"; then
31362 # Make the cache file name correct relative to the subdirectory.
31363 case $cache_file in
31364 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31365 *) # Relative path.
31366 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31369 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31370 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31371 # The eval makes quoting arguments work.
31372 eval $ac_sub_configure $ac_sub_configure_args \
31373 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31374 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31375 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31376 { (exit 1); exit 1; }; }
31384 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31385 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
31386 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
31387 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
31388 echo "$as_me: WARNING: ***** appear to be working." >&2;}
31389 { echo "$as_me:$LINENO: WARNING: ***** " >&5
31390 echo "$as_me: WARNING: ***** " >&2;}
31391 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
31392 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
31393 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
31394 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
31395 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
31396 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}