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 LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ifGNUmake FIND GREP MKDIR MV RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA DOT ETAGS PYTHON QMTEST RUNTEST 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-shared[=PKGS]
1040 build shared libraries [default=yes]
1041 --enable-static[=PKGS]
1042 build static libraries [default=yes]
1043 --enable-fast-install[=PKGS]
1044 optimize for fast installation [default=yes]
1045 --disable-libtool-lock avoid locking (might break parallel builds)
1048 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1049 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1050 --with-llvmgccdir Location of LLVM GCC front-end
1051 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1052 --with-pic try to use only PIC/non-PIC objects [default=use
1055 include additional configurations [automatic]
1057 Some influential environment variables:
1058 CC C compiler command
1059 CFLAGS C compiler flags
1060 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1061 nonstandard directory <lib dir>
1062 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063 headers in a nonstandard directory <include dir>
1065 CXX C++ compiler command
1066 CXXFLAGS C++ compiler flags
1067 CXXCPP C++ preprocessor
1068 F77 Fortran 77 compiler command
1069 FFLAGS Fortran 77 compiler flags
1071 Use these variables to override the choices made by `configure' or to help
1072 it to find libraries and programs with nonstandard names/locations.
1074 Report bugs to <llvmbugs@cs.uiuc.edu>.
1078 if test "$ac_init_help" = "recursive"; then
1079 # If there are subdirs, report their specific --help.
1081 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1082 test -d $ac_dir || continue
1085 if test "$ac_dir" != .; then
1086 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1087 # A "../" for each directory in $ac_dir_suffix.
1088 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090 ac_dir_suffix= ac_top_builddir=
1094 .) # No --srcdir option. We are building in place.
1096 if test -z "$ac_top_builddir"; then
1099 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101 [\\/]* | ?:[\\/]* ) # Absolute path.
1102 ac_srcdir=$srcdir$ac_dir_suffix;
1103 ac_top_srcdir=$srcdir ;;
1105 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1106 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109 # Do not use `cd foo && pwd` to compute absolute paths, because
1110 # the directories may not exist.
1112 .) ac_abs_builddir="$ac_dir";;
1115 .) ac_abs_builddir=`pwd`;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1117 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1120 case $ac_abs_builddir in
1121 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1123 case ${ac_top_builddir}. in
1124 .) ac_abs_top_builddir=$ac_abs_builddir;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1129 case $ac_abs_builddir in
1130 .) ac_abs_srcdir=$ac_srcdir;;
1133 .) ac_abs_srcdir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1135 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1138 case $ac_abs_builddir in
1139 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1141 case $ac_top_srcdir in
1142 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149 # Check for guested configure; otherwise get Cygnus style configure.
1150 if test -f $ac_srcdir/configure.gnu; then
1152 $SHELL $ac_srcdir/configure.gnu --help=recursive
1153 elif test -f $ac_srcdir/configure; then
1155 $SHELL $ac_srcdir/configure --help=recursive
1156 elif test -f $ac_srcdir/configure.ac ||
1157 test -f $ac_srcdir/configure.in; then
1159 $ac_configure --help
1161 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1167 test -n "$ac_init_help" && exit 0
1168 if $ac_init_version; then
1171 generated by GNU Autoconf 2.59
1173 Copyright (C) 2003 Free Software Foundation, Inc.
1174 This configure script is free software; the Free Software Foundation
1175 gives unlimited permission to copy, distribute and modify it.
1183 This file contains any messages produced by compilers while
1184 running configure, to aid debugging if configure makes a mistake.
1186 It was created by llvm $as_me 1.4, which was
1187 generated by GNU Autoconf 2.59. Invocation command line was
1198 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1199 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1200 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1201 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1202 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1204 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1205 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1207 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1208 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1209 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1210 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1211 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1212 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1213 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1221 test -z "$as_dir" && as_dir=.
1222 echo "PATH: $as_dir"
1237 # Keep a trace of the command line.
1238 # Strip out --no-create and --no-recursion so they do not pile up.
1239 # Strip out --silent because we don't want to record it for future runs.
1240 # Also quote any args containing shell meta-characters.
1241 # Make two passes to allow for proper duplicate-argument suppression.
1246 ac_must_keep_next=false
1252 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1254 | -silent | --silent | --silen | --sile | --sil)
1256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1257 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1262 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1263 if test $ac_must_keep_next = true; then
1264 ac_must_keep_next=false # Got value, back to normal.
1267 *=* | --config-cache | -C | -disable-* | --disable-* \
1268 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1269 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1270 | -with-* | --with-* | -without-* | --without-* | --x)
1271 case "$ac_configure_args0 " in
1272 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1275 -* ) ac_must_keep_next=true ;;
1278 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1279 # Get rid of the leading space.
1285 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1286 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1288 # When interrupted or exit'd, cleanup temporary files, and complete
1289 # config.log. We remove comments because anyway the quotes in there
1290 # would cause problems or look ugly.
1291 # WARNING: Be sure not to use single quotes in there, as some shells,
1292 # such as our DU 5.0 friend, will then `close' the trap.
1293 trap 'exit_status=$?
1294 # Save into config.log some information that might help in debugging.
1299 ## ---------------- ##
1300 ## Cache variables. ##
1301 ## ---------------- ##
1304 # The following way of writing the cache mishandles newlines in values,
1307 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1310 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1315 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1322 ## ----------------- ##
1323 ## Output variables. ##
1324 ## ----------------- ##
1327 for ac_var in $ac_subst_vars
1329 eval ac_val=$`echo $ac_var`
1330 echo "$ac_var='"'"'$ac_val'"'"'"
1334 if test -n "$ac_subst_files"; then
1341 for ac_var in $ac_subst_files
1343 eval ac_val=$`echo $ac_var`
1344 echo "$ac_var='"'"'$ac_val'"'"'"
1349 if test -s confdefs.h; then
1356 sed "/^$/d" confdefs.h | sort
1359 test "$ac_signal" != 0 &&
1360 echo "$as_me: caught signal $ac_signal"
1361 echo "$as_me: exit $exit_status"
1363 rm -f core *.core &&
1364 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1367 for ac_signal in 1 2 13 15; do
1368 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1372 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1373 rm -rf conftest* confdefs.h
1374 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1377 # Predefined preprocessor variables.
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_NAME "$PACKAGE_NAME"
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_STRING "$PACKAGE_STRING"
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1404 # Let the site file select an alternate cache file if it wants to.
1405 # Prefer explicitly selected file to automatically selected ones.
1406 if test -z "$CONFIG_SITE"; then
1407 if test "x$prefix" != xNONE; then
1408 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1410 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1413 for ac_site_file in $CONFIG_SITE; do
1414 if test -r "$ac_site_file"; then
1415 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1416 echo "$as_me: loading site script $ac_site_file" >&6;}
1417 sed 's/^/| /' "$ac_site_file" >&5
1422 if test -r "$cache_file"; then
1423 # Some versions of bash will fail to source /dev/null (special
1424 # files actually), so we avoid doing that.
1425 if test -f "$cache_file"; then
1426 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1427 echo "$as_me: loading cache $cache_file" >&6;}
1429 [\\/]* | ?:[\\/]* ) . $cache_file;;
1430 *) . ./$cache_file;;
1434 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1435 echo "$as_me: creating cache $cache_file" >&6;}
1439 # Check that the precious variables saved in the cache have kept the same
1441 ac_cache_corrupted=false
1442 for ac_var in `(set) 2>&1 |
1443 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1444 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1445 eval ac_new_set=\$ac_env_${ac_var}_set
1446 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1447 eval ac_new_val="\$ac_env_${ac_var}_value"
1448 case $ac_old_set,$ac_new_set in
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1454 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1456 ac_cache_corrupted=: ;;
1459 if test "x$ac_old_val" != "x$ac_new_val"; then
1460 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1461 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1462 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1463 echo "$as_me: former value: $ac_old_val" >&2;}
1464 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1465 echo "$as_me: current value: $ac_new_val" >&2;}
1466 ac_cache_corrupted=:
1469 # Pass precious variables to config.status.
1470 if test "$ac_new_set" = set; then
1472 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1473 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1474 *) ac_arg=$ac_var=$ac_new_val ;;
1476 case " $ac_configure_args " in
1477 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1478 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1482 if $ac_cache_corrupted; then
1483 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1484 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1485 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1486 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1487 { (exit 1); exit 1; }; }
1491 ac_cpp='$CPP $CPPFLAGS'
1492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1532 for ac_dir in autoconf $srcdir/autoconf; do
1533 if test -f $ac_dir/install-sh; then
1535 ac_install_sh="$ac_aux_dir/install-sh -c"
1537 elif test -f $ac_dir/install.sh; then
1539 ac_install_sh="$ac_aux_dir/install.sh -c"
1541 elif test -f $ac_dir/shtool; then
1543 ac_install_sh="$ac_aux_dir/shtool install -c"
1547 if test -z "$ac_aux_dir"; then
1548 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1549 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1550 { (exit 1); exit 1; }; }
1552 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1553 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1554 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1557 if test ${srcdir} != "." ; then
1558 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1559 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1560 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1561 { (exit 1); exit 1; }; }
1565 for i in `ls ${srcdir}/projects`
1567 if test -d ${srcdir}/projects/${i} ; then
1572 subdirs="$subdirs projects/sample"
1576 subdirs="$subdirs projects/Stacker"
1580 subdirs="$subdirs projects/llvm-test"
1584 subdirs="$subdirs projects/llvm-reopt"
1588 subdirs="$subdirs projects/llvm-gcc"
1592 subdirs="$subdirs projects/Java"
1596 subdirs="$subdirs projects/llvm-tv"
1600 subdirs="$subdirs projects/llvm-fefw"
1604 subdirs="$subdirs projects/poolalloc"
1607 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1608 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1615 # Make sure we can run config.sub.
1616 $ac_config_sub sun4 >/dev/null 2>&1 ||
1617 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1618 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1619 { (exit 1); exit 1; }; }
1621 echo "$as_me:$LINENO: checking build system type" >&5
1622 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1623 if test "${ac_cv_build+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 ac_cv_build_alias=$build_alias
1627 test -z "$ac_cv_build_alias" &&
1628 ac_cv_build_alias=`$ac_config_guess`
1629 test -z "$ac_cv_build_alias" &&
1630 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1631 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1632 { (exit 1); exit 1; }; }
1633 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1634 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1635 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1636 { (exit 1); exit 1; }; }
1639 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1640 echo "${ECHO_T}$ac_cv_build" >&6
1642 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647 echo "$as_me:$LINENO: checking host system type" >&5
1648 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1649 if test "${ac_cv_host+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 ac_cv_host_alias=$host_alias
1653 test -z "$ac_cv_host_alias" &&
1654 ac_cv_host_alias=$ac_cv_build_alias
1655 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1656 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1657 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1658 { (exit 1); exit 1; }; }
1661 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1662 echo "${ECHO_T}$ac_cv_host" >&6
1664 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669 echo "$as_me:$LINENO: checking target system type" >&5
1670 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1671 if test "${ac_cv_target+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 ac_cv_target_alias=$target_alias
1675 test "x$ac_cv_target_alias" = "x" &&
1676 ac_cv_target_alias=$ac_cv_host_alias
1677 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1678 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1679 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1680 { (exit 1); exit 1; }; }
1683 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1684 echo "${ECHO_T}$ac_cv_target" >&6
1685 target=$ac_cv_target
1686 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1691 # The aliases save the names the user supplied, while $host etc.
1692 # will get canonicalized.
1693 test -n "$target_alias" &&
1694 test "$program_prefix$program_suffix$program_transform_name" = \
1696 program_prefix=${target_alias}-
1698 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1699 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1700 if test "${llvm_cv_platform_type+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1704 *-*-aix*) llvm_cv_platform_type="AIX" ;;
1705 *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1706 *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1707 *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1708 *-*-interix*) llvm_cv_platform_type="Interix" ;;
1709 *-*-linux*) llvm_cv_platform_type="Linux" ;;
1710 *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1711 *-*-win32*) llvm_cv_platform_type="Win32" ;;
1712 *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1713 *) llvm_cv_platform_type="Unknown" ;;
1716 echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1717 echo "${ECHO_T}$llvm_cv_platform_type" >&6
1719 if test "$llvm_cv_platform_type" = "Unknown" ; then
1720 { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1721 echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
1722 { (exit 1); exit 1; }; }
1725 OS=$llvm_cv_platform_type
1728 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
1732 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1737 echo "$as_me:$LINENO: checking target architecture" >&5
1738 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1739 if test "${llvm_cv_target_arch+set}" = set; then
1740 echo $ECHO_N "(cached) $ECHO_C" >&6
1743 i*86-*) llvm_cv_target_arch="x86" ;;
1744 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1745 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1746 *) llvm_cv_target_arch="Unknown" ;;
1749 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1750 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1752 if test "$llvm_cv_target_arch" = "Unknown" ; then
1753 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1754 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1757 ARCH=$llvm_cv_target_arch
1761 ac_cpp='$CPP $CPPFLAGS'
1762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1765 if test -n "$ac_tool_prefix"; then
1766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1767 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_CC+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 if test -n "$CC"; then
1774 ac_cv_prog_CC="$CC" # Let the user override the test.
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 test -z "$as_dir" && as_dir=.
1781 for ac_exec_ext in '' $ac_executable_extensions; do
1782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793 if test -n "$CC"; then
1794 echo "$as_me:$LINENO: result: $CC" >&5
1795 echo "${ECHO_T}$CC" >&6
1797 echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1802 if test -z "$ac_cv_prog_CC"; then
1804 # Extract the first word of "gcc", so it can be a program name with args.
1805 set dummy gcc; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 if test -n "$ac_ct_CC"; then
1812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 test -z "$as_dir" && as_dir=.
1819 for ac_exec_ext in '' $ac_executable_extensions; do
1820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821 ac_cv_prog_ac_ct_CC="gcc"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1831 if test -n "$ac_ct_CC"; then
1832 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1833 echo "${ECHO_T}$ac_ct_CC" >&6
1835 echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1844 if test -z "$CC"; then
1845 if test -n "$ac_tool_prefix"; then
1846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1847 set dummy ${ac_tool_prefix}cc; ac_word=$2
1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850 if test "${ac_cv_prog_CC+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 if test -n "$CC"; then
1854 ac_cv_prog_CC="$CC" # Let the user override the test.
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863 ac_cv_prog_CC="${ac_tool_prefix}cc"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 if test -n "$CC"; then
1874 echo "$as_me:$LINENO: result: $CC" >&5
1875 echo "${ECHO_T}$CC" >&6
1877 echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1882 if test -z "$ac_cv_prog_CC"; then
1884 # Extract the first word of "cc", so it can be a program name with args.
1885 set dummy cc; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 if test -n "$ac_ct_CC"; then
1892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 ac_cv_prog_ac_ct_CC="cc"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1911 if test -n "$ac_ct_CC"; then
1912 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1913 echo "${ECHO_T}$ac_ct_CC" >&6
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1925 if test -z "$CC"; then
1926 # Extract the first word of "cc", so it can be a program name with args.
1927 set dummy cc; ac_word=$2
1928 echo "$as_me:$LINENO: checking for $ac_word" >&5
1929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930 if test "${ac_cv_prog_CC+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 if test -n "$CC"; then
1934 ac_cv_prog_CC="$CC" # Let the user override the test.
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1945 ac_prog_rejected=yes
1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955 if test $ac_prog_rejected = yes; then
1956 # We found a bogon in the path, so make sure we never use it.
1957 set dummy $ac_cv_prog_CC
1959 if test $# != 0; then
1960 # We chose a different compiler from the bogus one.
1961 # However, it has the same basename, so the bogon will be chosen
1962 # first if we set CC to just the basename; use the full file name.
1964 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1970 if test -n "$CC"; then
1971 echo "$as_me:$LINENO: result: $CC" >&5
1972 echo "${ECHO_T}$CC" >&6
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1979 if test -z "$CC"; then
1980 if test -n "$ac_tool_prefix"; then
1983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_CC+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 if test -n "$CC"; then
1991 ac_cv_prog_CC="$CC" # Let the user override the test.
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 if test -n "$CC"; then
2011 echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6
2014 echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2018 test -n "$CC" && break
2021 if test -z "$CC"; then
2025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2026 set dummy $ac_prog; ac_word=$2
2027 echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 if test -n "$ac_ct_CC"; then
2033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042 ac_cv_prog_ac_ct_CC="$ac_prog"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2052 if test -n "$ac_ct_CC"; then
2053 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2054 echo "${ECHO_T}$ac_ct_CC" >&6
2056 echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2060 test -n "$ac_ct_CC" && break
2069 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&2;}
2073 { (exit 1); exit 1; }; }
2075 # Provide some information about the compiler.
2076 echo "$as_me:$LINENO:" \
2077 "checking for C compiler version" >&5
2078 ac_compiler=`set X $ac_compile; echo $2`
2079 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2080 (eval $ac_compiler --version </dev/null >&5) 2>&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }
2084 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2085 (eval $ac_compiler -v </dev/null >&5) 2>&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }
2089 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2090 (eval $ac_compiler -V </dev/null >&5) 2>&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }
2095 cat >conftest.$ac_ext <<_ACEOF
2098 cat confdefs.h >>conftest.$ac_ext
2099 cat >>conftest.$ac_ext <<_ACEOF
2100 /* end confdefs.h. */
2110 ac_clean_files_save=$ac_clean_files
2111 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2112 # Try to create an executable without -o first, disregard a.out.
2113 # It will help us diagnose broken compilers, and finding out an intuition
2115 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2116 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2117 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2118 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2119 (eval $ac_link_default) 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; then
2123 # Find the output, starting from the most likely. This scheme is
2124 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2127 # Be careful to initialize this variable, since it used to be cached.
2128 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2130 # b.out is created by i960 compilers.
2131 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2133 test -f "$ac_file" || continue
2135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2138 # This is the source file.
2141 # We found the default executable, but exeext='' is most
2145 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2146 # FIXME: I believe we export ac_cv_exeext for Libtool,
2147 # but it would be cool to find out if it's true. Does anybody
2148 # maintain Libtool? --akim.
2156 echo "$as_me: failed program was:" >&5
2157 sed 's/^/| /' conftest.$ac_ext >&5
2159 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2160 See \`config.log' for more details." >&5
2161 echo "$as_me: error: C compiler cannot create executables
2162 See \`config.log' for more details." >&2;}
2163 { (exit 77); exit 77; }; }
2166 ac_exeext=$ac_cv_exeext
2167 echo "$as_me:$LINENO: result: $ac_file" >&5
2168 echo "${ECHO_T}$ac_file" >&6
2170 # Check the compiler produces executables we can run. If not, either
2171 # the compiler is broken, or we cross compile.
2172 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2173 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2174 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2175 # If not cross compiling, check that we can run a simple program.
2176 if test "$cross_compiling" != yes; then
2177 if { ac_try='./$ac_file'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2185 if test "$cross_compiling" = maybe; then
2188 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2189 If you meant to cross compile, use \`--host'.
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: cannot run C compiled programs.
2192 If you meant to cross compile, use \`--host'.
2193 See \`config.log' for more details." >&2;}
2194 { (exit 1); exit 1; }; }
2198 echo "$as_me:$LINENO: result: yes" >&5
2199 echo "${ECHO_T}yes" >&6
2201 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2202 ac_clean_files=$ac_clean_files_save
2203 # Check the compiler produces executables we can run. If not, either
2204 # the compiler is broken, or we cross compile.
2205 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2206 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2207 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2208 echo "${ECHO_T}$cross_compiling" >&6
2210 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2211 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2213 (eval $ac_link) 2>&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; then
2217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2218 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2219 # work properly (i.e., refer to `conftest.exe'), while it won't with
2221 for ac_file in conftest.exe conftest conftest.*; do
2222 test -f "$ac_file" || continue
2224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2232 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2235 See \`config.log' for more details." >&2;}
2236 { (exit 1); exit 1; }; }
2239 rm -f conftest$ac_cv_exeext
2240 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2241 echo "${ECHO_T}$ac_cv_exeext" >&6
2243 rm -f conftest.$ac_ext
2244 EXEEXT=$ac_cv_exeext
2246 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2247 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2248 if test "${ac_cv_objext+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 cat >conftest.$ac_ext <<_ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h. */
2266 rm -f conftest.o conftest.obj
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; then
2272 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2283 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2286 See \`config.log' for more details." >&2;}
2287 { (exit 1); exit 1; }; }
2290 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2292 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2293 echo "${ECHO_T}$ac_cv_objext" >&6
2294 OBJEXT=$ac_cv_objext
2296 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2297 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2298 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 cat >conftest.$ac_ext <<_ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h. */
2319 rm -f conftest.$ac_objext
2320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321 (eval $ac_compile) 2>conftest.er1
2323 grep -v '^ *+' conftest.er1 >conftest.err
2325 cat conftest.err >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); } &&
2328 { ac_try='test -z "$ac_c_werror_flag"
2329 || test ! -s conftest.err'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; } &&
2335 { ac_try='test -s conftest.$ac_objext'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; }; then
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2349 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2352 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2353 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2354 GCC=`test $ac_compiler_gnu = yes && echo yes`
2355 ac_test_CFLAGS=${CFLAGS+set}
2356 ac_save_CFLAGS=$CFLAGS
2358 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2359 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2360 if test "${ac_cv_prog_cc_g+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 cat >conftest.$ac_ext <<_ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380 (eval $ac_compile) 2>conftest.er1
2382 grep -v '^ *+' conftest.er1 >conftest.err
2384 cat conftest.err >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } &&
2387 { ac_try='test -z "$ac_c_werror_flag"
2388 || test ! -s conftest.err'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; } &&
2394 { ac_try='test -s conftest.$ac_objext'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2409 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2410 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2411 if test "$ac_test_CFLAGS" = set; then
2412 CFLAGS=$ac_save_CFLAGS
2413 elif test $ac_cv_prog_cc_g = yes; then
2414 if test "$GCC" = yes; then
2420 if test "$GCC" = yes; then
2426 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2427 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2428 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 ac_cv_prog_cc_stdc=no
2433 cat >conftest.$ac_ext <<_ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2441 #include <sys/types.h>
2442 #include <sys/stat.h>
2443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2444 struct buf { int x; };
2445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2446 static char *e (p, i)
2452 static char *f (char * (*g) (char **, int), char **p, ...)
2457 s = g (p, va_arg (v,int));
2462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2463 function prototypes and stuff, but not '\xHH' hex character constants.
2464 These don't provoke an error unfortunately, instead are silently treated
2465 as 'x'. The following induces an error, until -std1 is added to get
2466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2467 array size at least. It's necessary to write '\x00'==0 to get something
2468 that's true only with -std1. */
2469 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2471 int test (int i, double x);
2472 struct s1 {int (*f) (int a);};
2473 struct s2 {int (*f) (double a);};
2474 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2480 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2485 # Don't try gcc -ansi; that turns off useful extensions and
2486 # breaks some systems' header files.
2487 # AIX -qlanglvl=ansi
2488 # Ultrix and OSF/1 -std1
2489 # HP-UX 10.20 and later -Ae
2490 # HP-UX older versions -Aa -D_HPUX_SOURCE
2491 # SVR4 -Xc -D__EXTENSIONS__
2492 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2494 CC="$ac_save_CC $ac_arg"
2495 rm -f conftest.$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>conftest.er1
2499 grep -v '^ *+' conftest.er1 >conftest.err
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try='test -z "$ac_c_werror_flag"
2505 || test ! -s conftest.err'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; } &&
2511 { ac_try='test -s conftest.$ac_objext'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; }; then
2517 ac_cv_prog_cc_stdc=$ac_arg
2520 echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2524 rm -f conftest.err conftest.$ac_objext
2526 rm -f conftest.$ac_ext conftest.$ac_objext
2531 case "x$ac_cv_prog_cc_stdc" in
2533 echo "$as_me:$LINENO: result: none needed" >&5
2534 echo "${ECHO_T}none needed" >&6 ;;
2536 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2537 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2538 CC="$CC $ac_cv_prog_cc_stdc" ;;
2541 # Some people use a C++ compiler to compile C. Since we use `exit',
2542 # in C++ we need to declare it. In case someone uses the same compiler
2543 # for both compiling C and C++ we need to have the C++ compiler decide
2544 # the declaration of exit, since it's the most demanding environment.
2545 cat >conftest.$ac_ext <<_ACEOF
2550 rm -f conftest.$ac_objext
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552 (eval $ac_compile) 2>conftest.er1
2554 grep -v '^ *+' conftest.er1 >conftest.err
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
2559 { ac_try='test -z "$ac_c_werror_flag"
2560 || test ! -s conftest.err'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; } &&
2566 { ac_try='test -s conftest.$ac_objext'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2572 for ac_declaration in \
2574 'extern "C" void std::exit (int) throw (); using std::exit;' \
2575 'extern "C" void std::exit (int); using std::exit;' \
2576 'extern "C" void exit (int) throw ();' \
2577 'extern "C" void exit (int);' \
2580 cat >conftest.$ac_ext <<_ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598 (eval $ac_compile) 2>conftest.er1
2600 grep -v '^ *+' conftest.er1 >conftest.err
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag"
2606 || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 cat >conftest.$ac_ext <<_ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>conftest.er1
2645 grep -v '^ *+' conftest.er1 >conftest.err
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -z "$ac_c_werror_flag"
2651 || test ! -s conftest.err'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2672 if test -n "$ac_declaration"; then
2673 echo '#ifdef __cplusplus' >>confdefs.h
2674 echo $ac_declaration >>confdefs.h
2675 echo '#endif' >>confdefs.h
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 ac_cpp='$CPP $CPPFLAGS'
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2692 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2693 if test "${ac_cv_c_bigendian+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 # See if sys/param.h defines the BYTE_ORDER macro.
2697 cat >conftest.$ac_ext <<_ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2703 #include <sys/types.h>
2704 #include <sys/param.h>
2709 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2721 grep -v '^ *+' conftest.er1 >conftest.err
2723 cat conftest.err >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -z "$ac_c_werror_flag"
2727 || test ! -s conftest.err'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; } &&
2733 { ac_try='test -s conftest.$ac_objext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2739 # It does; now see whether it defined to BIG_ENDIAN or not.
2740 cat >conftest.$ac_ext <<_ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2746 #include <sys/types.h>
2747 #include <sys/param.h>
2752 #if BYTE_ORDER != BIG_ENDIAN
2760 rm -f conftest.$ac_objext
2761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2762 (eval $ac_compile) 2>conftest.er1
2764 grep -v '^ *+' conftest.er1 >conftest.err
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } &&
2769 { ac_try='test -z "$ac_c_werror_flag"
2770 || test ! -s conftest.err'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; } &&
2776 { ac_try='test -s conftest.$ac_objext'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2782 ac_cv_c_bigendian=yes
2784 echo "$as_me: failed program was:" >&5
2785 sed 's/^/| /' conftest.$ac_ext >&5
2787 ac_cv_c_bigendian=no
2789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2791 echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2794 # It does not; compile a test program.
2795 if test "$cross_compiling" = yes; then
2796 # try to guess the endianness by grepping values into an object file
2797 ac_cv_c_bigendian=unknown
2798 cat >conftest.$ac_ext <<_ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2804 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2805 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2806 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2807 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2808 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2809 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2813 _ascii (); _ebcdic ();
2818 rm -f conftest.$ac_objext
2819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2820 (eval $ac_compile) 2>conftest.er1
2822 grep -v '^ *+' conftest.er1 >conftest.err
2824 cat conftest.err >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } &&
2827 { ac_try='test -z "$ac_c_werror_flag"
2828 || test ! -s conftest.err'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2840 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2841 ac_cv_c_bigendian=yes
2843 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2844 if test "$ac_cv_c_bigendian" = unknown; then
2845 ac_cv_c_bigendian=no
2847 # finding both strings is unlikely to happen, but who knows?
2848 ac_cv_c_bigendian=unknown
2852 echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2858 cat >conftest.$ac_ext <<_ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2867 /* Are we little or big endian? From Harbison&Steele. */
2871 char c[sizeof (long)];
2874 exit (u.c[sizeof (long) - 1] == 1);
2877 rm -f conftest$ac_exeext
2878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2879 (eval $ac_link) 2>&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
2888 ac_cv_c_bigendian=no
2890 echo "$as_me: program exited with status $ac_status" >&5
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2895 ac_cv_c_bigendian=yes
2897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2903 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2904 case $ac_cv_c_bigendian in
2912 { { echo "$as_me:$LINENO: error: unknown endianness
2913 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2914 echo "$as_me: error: unknown endianness
2915 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2916 { (exit 1); exit 1; }; } ;;
2921 # Check whether --enable-optimized or --disable-optimized was given.
2922 if test "${enable_optimized+set}" = set; then
2923 enableval="$enable_optimized"
2928 if test ${enableval} = "no" ; then
2932 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2936 # Check whether --enable-jit or --disable-jit was given.
2937 if test "${enable_jit+set}" = set; then
2938 enableval="$enable_jit"
2943 if test ${enableval} = "no"
2948 case "$llvm_cv_target_arch" in
2949 x86) JIT=TARGET_HAS_JIT=1
2951 Sparc) JIT=TARGET_HAS_JIT=1
2953 PowerPC) JIT=TARGET_HAS_JIT=1
2961 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2962 if test "${with_llvmgccdir+set}" = set; then
2963 withval="$with_llvmgccdir"
2968 if test "x$LLVMGCCDIR" = x ; then
2969 case "$llvm_cv_platform_type" in
2971 if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2972 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2977 if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
2978 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2987 ac_cpp='$CPP $CPPFLAGS'
2988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2991 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2992 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2993 # On Suns, sometimes $CPP names a directory.
2994 if test -n "$CPP" && test -d "$CPP"; then
2997 if test -z "$CPP"; then
2998 if test "${ac_cv_prog_CPP+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 # Double quotes because CPP needs to be expanded
3002 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3005 for ac_c_preproc_warn_flag in '' yes
3007 # Use a header file that comes with gcc, so configuring glibc
3008 # with a fresh cross-compiler works.
3009 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3010 # <limits.h> exists even on freestanding compilers.
3011 # On the NeXT, cc -E runs the code through the compiler's parser,
3012 # not just through cpp. "Syntax error" is here to catch this case.
3013 cat >conftest.$ac_ext <<_ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3020 # include <limits.h>
3022 # include <assert.h>
3026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3029 grep -v '^ *+' conftest.er1 >conftest.err
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } >/dev/null; then
3034 if test -s conftest.err; then
3035 ac_cpp_err=$ac_c_preproc_warn_flag
3036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3043 if test -z "$ac_cpp_err"; then
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 # Broken: fails on valid input.
3052 rm -f conftest.err conftest.$ac_ext
3054 # OK, works on sane cases. Now check whether non-existent headers
3055 # can be detected and how.
3056 cat >conftest.$ac_ext <<_ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062 #include <ac_nonexistent.h>
3064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3067 grep -v '^ *+' conftest.er1 >conftest.err
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } >/dev/null; then
3072 if test -s conftest.err; then
3073 ac_cpp_err=$ac_c_preproc_warn_flag
3074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3081 if test -z "$ac_cpp_err"; then
3082 # Broken: success on invalid input.
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3088 # Passes both tests.
3092 rm -f conftest.err conftest.$ac_ext
3095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3096 rm -f conftest.err conftest.$ac_ext
3097 if $ac_preproc_ok; then
3109 echo "$as_me:$LINENO: result: $CPP" >&5
3110 echo "${ECHO_T}$CPP" >&6
3112 for ac_c_preproc_warn_flag in '' yes
3114 # Use a header file that comes with gcc, so configuring glibc
3115 # with a fresh cross-compiler works.
3116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3117 # <limits.h> exists even on freestanding compilers.
3118 # On the NeXT, cc -E runs the code through the compiler's parser,
3119 # not just through cpp. "Syntax error" is here to catch this case.
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3127 # include <limits.h>
3129 # include <assert.h>
3133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3136 grep -v '^ *+' conftest.er1 >conftest.err
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev/null; then
3141 if test -s conftest.err; then
3142 ac_cpp_err=$ac_c_preproc_warn_flag
3143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3150 if test -z "$ac_cpp_err"; then
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 # Broken: fails on valid input.
3159 rm -f conftest.err conftest.$ac_ext
3161 # OK, works on sane cases. Now check whether non-existent headers
3162 # can be detected and how.
3163 cat >conftest.$ac_ext <<_ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3169 #include <ac_nonexistent.h>
3171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } >/dev/null; then
3179 if test -s conftest.err; then
3180 ac_cpp_err=$ac_c_preproc_warn_flag
3181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3188 if test -z "$ac_cpp_err"; then
3189 # Broken: success on invalid input.
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3195 # Passes both tests.
3199 rm -f conftest.err conftest.$ac_ext
3202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3203 rm -f conftest.err conftest.$ac_ext
3204 if $ac_preproc_ok; then
3207 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3208 See \`config.log' for more details." >&5
3209 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3210 See \`config.log' for more details." >&2;}
3211 { (exit 1); exit 1; }; }
3215 ac_cpp='$CPP $CPPFLAGS'
3216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221 ac_cpp='$CPP $CPPFLAGS'
3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225 if test -n "$ac_tool_prefix"; then
3228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3230 echo "$as_me:$LINENO: checking for $ac_word" >&5
3231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3232 if test "${ac_cv_prog_CC+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 if test -n "$CC"; then
3236 ac_cv_prog_CC="$CC" # Let the user override the test.
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 if test -n "$CC"; then
3256 echo "$as_me:$LINENO: result: $CC" >&5
3257 echo "${ECHO_T}$CC" >&6
3259 echo "$as_me:$LINENO: result: no" >&5
3260 echo "${ECHO_T}no" >&6
3263 test -n "$CC" && break
3266 if test -z "$CC"; then
3270 # Extract the first word of "$ac_prog", so it can be a program name with args.
3271 set dummy $ac_prog; ac_word=$2
3272 echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 if test -n "$ac_ct_CC"; then
3278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_prog_ac_ct_CC="$ac_prog"
3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3297 if test -n "$ac_ct_CC"; then
3298 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3299 echo "${ECHO_T}$ac_ct_CC" >&6
3301 echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3305 test -n "$ac_ct_CC" && break
3312 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3313 See \`config.log' for more details." >&5
3314 echo "$as_me: error: no acceptable C compiler found in \$PATH
3315 See \`config.log' for more details." >&2;}
3316 { (exit 1); exit 1; }; }
3318 # Provide some information about the compiler.
3319 echo "$as_me:$LINENO:" \
3320 "checking for C compiler version" >&5
3321 ac_compiler=`set X $ac_compile; echo $2`
3322 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3323 (eval $ac_compiler --version </dev/null >&5) 2>&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }
3327 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3328 (eval $ac_compiler -v </dev/null >&5) 2>&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }
3332 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3333 (eval $ac_compiler -V </dev/null >&5) 2>&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }
3338 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3339 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3340 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 cat >conftest.$ac_ext <<_ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3361 rm -f conftest.$ac_objext
3362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3363 (eval $ac_compile) 2>conftest.er1
3365 grep -v '^ *+' conftest.er1 >conftest.err
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } &&
3370 { ac_try='test -z "$ac_c_werror_flag"
3371 || test ! -s conftest.err'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; } &&
3377 { ac_try='test -s conftest.$ac_objext'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3385 echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3391 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3394 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3395 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3396 GCC=`test $ac_compiler_gnu = yes && echo yes`
3397 ac_test_CFLAGS=${CFLAGS+set}
3398 ac_save_CFLAGS=$CFLAGS
3400 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3401 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3402 if test "${ac_cv_prog_cc_g+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 cat >conftest.$ac_ext <<_ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3420 rm -f conftest.$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>conftest.er1
3424 grep -v '^ *+' conftest.er1 >conftest.err
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
3429 { ac_try='test -z "$ac_c_werror_flag"
3430 || test ! -s conftest.err'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; } &&
3436 { ac_try='test -s conftest.$ac_objext'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3451 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3452 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3453 if test "$ac_test_CFLAGS" = set; then
3454 CFLAGS=$ac_save_CFLAGS
3455 elif test $ac_cv_prog_cc_g = yes; then
3456 if test "$GCC" = yes; then
3462 if test "$GCC" = yes; then
3468 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3469 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3470 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 ac_cv_prog_cc_stdc=no
3475 cat >conftest.$ac_ext <<_ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3483 #include <sys/types.h>
3484 #include <sys/stat.h>
3485 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3486 struct buf { int x; };
3487 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3488 static char *e (p, i)
3494 static char *f (char * (*g) (char **, int), char **p, ...)
3499 s = g (p, va_arg (v,int));
3504 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3505 function prototypes and stuff, but not '\xHH' hex character constants.
3506 These don't provoke an error unfortunately, instead are silently treated
3507 as 'x'. The following induces an error, until -std1 is added to get
3508 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3509 array size at least. It's necessary to write '\x00'==0 to get something
3510 that's true only with -std1. */
3511 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3513 int test (int i, double x);
3514 struct s1 {int (*f) (int a);};
3515 struct s2 {int (*f) (double a);};
3516 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3522 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3527 # Don't try gcc -ansi; that turns off useful extensions and
3528 # breaks some systems' header files.
3529 # AIX -qlanglvl=ansi
3530 # Ultrix and OSF/1 -std1
3531 # HP-UX 10.20 and later -Ae
3532 # HP-UX older versions -Aa -D_HPUX_SOURCE
3533 # SVR4 -Xc -D__EXTENSIONS__
3534 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3536 CC="$ac_save_CC $ac_arg"
3537 rm -f conftest.$ac_objext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3539 (eval $ac_compile) 2>conftest.er1
3541 grep -v '^ *+' conftest.er1 >conftest.err
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_c_werror_flag"
3547 || test ! -s conftest.err'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; } &&
3553 { ac_try='test -s conftest.$ac_objext'
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3559 ac_cv_prog_cc_stdc=$ac_arg
3562 echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3566 rm -f conftest.err conftest.$ac_objext
3568 rm -f conftest.$ac_ext conftest.$ac_objext
3573 case "x$ac_cv_prog_cc_stdc" in
3575 echo "$as_me:$LINENO: result: none needed" >&5
3576 echo "${ECHO_T}none needed" >&6 ;;
3578 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3579 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3580 CC="$CC $ac_cv_prog_cc_stdc" ;;
3583 # Some people use a C++ compiler to compile C. Since we use `exit',
3584 # in C++ we need to declare it. In case someone uses the same compiler
3585 # for both compiling C and C++ we need to have the C++ compiler decide
3586 # the declaration of exit, since it's the most demanding environment.
3587 cat >conftest.$ac_ext <<_ACEOF
3592 rm -f conftest.$ac_objext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>conftest.er1
3596 grep -v '^ *+' conftest.er1 >conftest.err
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try='test -z "$ac_c_werror_flag"
3602 || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3614 for ac_declaration in \
3616 'extern "C" void std::exit (int) throw (); using std::exit;' \
3617 'extern "C" void std::exit (int); using std::exit;' \
3618 'extern "C" void exit (int) throw ();' \
3619 'extern "C" void exit (int);' \
3622 cat >conftest.$ac_ext <<_ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h. */
3638 rm -f conftest.$ac_objext
3639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3640 (eval $ac_compile) 2>conftest.er1
3642 grep -v '^ *+' conftest.er1 >conftest.err
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } &&
3647 { ac_try='test -z "$ac_c_werror_flag"
3648 || test ! -s conftest.err'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; } &&
3654 { ac_try='test -s conftest.$ac_objext'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; }; then
3662 echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3668 cat >conftest.$ac_ext <<_ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3683 rm -f conftest.$ac_objext
3684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3685 (eval $ac_compile) 2>conftest.er1
3687 grep -v '^ *+' conftest.er1 >conftest.err
3689 cat conftest.err >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } &&
3692 { ac_try='test -z "$ac_c_werror_flag"
3693 || test ! -s conftest.err'
3694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; } &&
3699 { ac_try='test -s conftest.$ac_objext'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; }; then
3707 echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3714 if test -n "$ac_declaration"; then
3715 echo '#ifdef __cplusplus' >>confdefs.h
3716 echo $ac_declaration >>confdefs.h
3717 echo '#endif' >>confdefs.h
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3727 ac_cpp='$CPP $CPPFLAGS'
3728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733 ac_cpp='$CXXCPP $CPPFLAGS'
3734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3737 if test -n "$ac_tool_prefix"; then
3738 for ac_prog in $CCC g++
3740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3742 echo "$as_me:$LINENO: checking for $ac_word" >&5
3743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3744 if test "${ac_cv_prog_CXX+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 if test -n "$CXX"; then
3748 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 if test -n "$CXX"; then
3768 echo "$as_me:$LINENO: result: $CXX" >&5
3769 echo "${ECHO_T}$CXX" >&6
3771 echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6
3775 test -n "$CXX" && break
3778 if test -z "$CXX"; then
3780 for ac_prog in $CCC g++
3782 # Extract the first word of "$ac_prog", so it can be a program name with args.
3783 set dummy $ac_prog; ac_word=$2
3784 echo "$as_me:$LINENO: checking for $ac_word" >&5
3785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3786 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 if test -n "$ac_ct_CXX"; then
3790 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799 ac_cv_prog_ac_ct_CXX="$ac_prog"
3800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3809 if test -n "$ac_ct_CXX"; then
3810 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3811 echo "${ECHO_T}$ac_ct_CXX" >&6
3813 echo "$as_me:$LINENO: result: no" >&5
3814 echo "${ECHO_T}no" >&6
3817 test -n "$ac_ct_CXX" && break
3819 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3825 # Provide some information about the compiler.
3826 echo "$as_me:$LINENO:" \
3827 "checking for C++ compiler version" >&5
3828 ac_compiler=`set X $ac_compile; echo $2`
3829 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3830 (eval $ac_compiler --version </dev/null >&5) 2>&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }
3834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3835 (eval $ac_compiler -v </dev/null >&5) 2>&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }
3839 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3840 (eval $ac_compiler -V </dev/null >&5) 2>&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }
3845 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3846 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3847 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 cat >conftest.$ac_ext <<_ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3868 rm -f conftest.$ac_objext
3869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3870 (eval $ac_compile) 2>conftest.er1
3872 grep -v '^ *+' conftest.er1 >conftest.err
3874 cat conftest.err >&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } &&
3877 { ac_try='test -z "$ac_cxx_werror_flag"
3878 || test ! -s conftest.err'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; } &&
3884 { ac_try='test -s conftest.$ac_objext'
3885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; }; then
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3898 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3901 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3902 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3903 GXX=`test $ac_compiler_gnu = yes && echo yes`
3904 ac_test_CXXFLAGS=${CXXFLAGS+set}
3905 ac_save_CXXFLAGS=$CXXFLAGS
3907 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3908 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3909 if test "${ac_cv_prog_cxx_g+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 cat >conftest.$ac_ext <<_ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3927 rm -f conftest.$ac_objext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>conftest.er1
3931 grep -v '^ *+' conftest.er1 >conftest.err
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } &&
3936 { ac_try='test -z "$ac_cxx_werror_flag"
3937 || test ! -s conftest.err'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; } &&
3943 { ac_try='test -s conftest.$ac_objext'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3949 ac_cv_prog_cxx_g=yes
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3958 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3959 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3960 if test "$ac_test_CXXFLAGS" = set; then
3961 CXXFLAGS=$ac_save_CXXFLAGS
3962 elif test $ac_cv_prog_cxx_g = yes; then
3963 if test "$GXX" = yes; then
3969 if test "$GXX" = yes; then
3975 for ac_declaration in \
3977 'extern "C" void std::exit (int) throw (); using std::exit;' \
3978 'extern "C" void std::exit (int); using std::exit;' \
3979 'extern "C" void exit (int) throw ();' \
3980 'extern "C" void exit (int);' \
3983 cat >conftest.$ac_ext <<_ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3999 rm -f conftest.$ac_objext
4000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4001 (eval $ac_compile) 2>conftest.er1
4003 grep -v '^ *+' conftest.er1 >conftest.err
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } &&
4008 { ac_try='test -z "$ac_cxx_werror_flag"
4009 || test ! -s conftest.err'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; } &&
4015 { ac_try='test -s conftest.$ac_objext'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4023 echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4029 cat >conftest.$ac_ext <<_ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4044 rm -f conftest.$ac_objext
4045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4046 (eval $ac_compile) 2>conftest.er1
4048 grep -v '^ *+' conftest.er1 >conftest.err
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } &&
4053 { ac_try='test -z "$ac_cxx_werror_flag"
4054 || test ! -s conftest.err'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; } &&
4060 { ac_try='test -s conftest.$ac_objext'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; }; then
4068 echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4075 if test -n "$ac_declaration"; then
4076 echo '#ifdef __cplusplus' >>confdefs.h
4077 echo $ac_declaration >>confdefs.h
4078 echo '#endif' >>confdefs.h
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087 echo "$as_me:$LINENO: checking " >&5
4088 echo $ECHO_N "checking ... $ECHO_C" >&6
4089 if test "${ac_cv_has_flex+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 for ac_prog in flex lex
4094 # Extract the first word of "$ac_prog", so it can be a program name with args.
4095 set dummy $ac_prog; ac_word=$2
4096 echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4098 if test "${ac_cv_prog_LEX+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 if test -n "$LEX"; then
4102 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_LEX="$ac_prog"
4112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 if test -n "$LEX"; then
4122 echo "$as_me:$LINENO: result: $LEX" >&5
4123 echo "${ECHO_T}$LEX" >&6
4125 echo "$as_me:$LINENO: result: no" >&5
4126 echo "${ECHO_T}no" >&6
4129 test -n "$LEX" && break
4131 test -n "$LEX" || LEX=":"
4133 if test -z "$LEXLIB"
4135 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4136 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4137 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 ac_check_lib_save_LIBS=$LIBS
4142 cat >conftest.$ac_ext <<_ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4149 /* Override any gcc2 internal prototype to avoid an error. */
4153 /* We use char because int might match the return type of a gcc2
4154 builtin and then its argument prototype would still apply. */
4164 rm -f conftest.$ac_objext conftest$ac_exeext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4166 (eval $ac_link) 2>conftest.er1
4168 grep -v '^ *+' conftest.er1 >conftest.err
4170 cat conftest.err >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
4173 { ac_try='test -z "$ac_c_werror_flag"
4174 || test ! -s conftest.err'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; } &&
4180 { ac_try='test -s conftest$ac_exeext'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4186 ac_cv_lib_fl_yywrap=yes
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4191 ac_cv_lib_fl_yywrap=no
4193 rm -f conftest.err conftest.$ac_objext \
4194 conftest$ac_exeext conftest.$ac_ext
4195 LIBS=$ac_check_lib_save_LIBS
4197 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4198 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4199 if test $ac_cv_lib_fl_yywrap = yes; then
4202 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4203 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4204 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 ac_check_lib_save_LIBS=$LIBS
4209 cat >conftest.$ac_ext <<_ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4216 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4231 rm -f conftest.$ac_objext conftest$ac_exeext
4232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4233 (eval $ac_link) 2>conftest.er1
4235 grep -v '^ *+' conftest.er1 >conftest.err
4237 cat conftest.err >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } &&
4240 { ac_try='test -z "$ac_c_werror_flag"
4241 || test ! -s conftest.err'
4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; } &&
4247 { ac_try='test -s conftest$ac_exeext'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4253 ac_cv_lib_l_yywrap=yes
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4258 ac_cv_lib_l_yywrap=no
4260 rm -f conftest.err conftest.$ac_objext \
4261 conftest$ac_exeext conftest.$ac_ext
4262 LIBS=$ac_check_lib_save_LIBS
4264 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4265 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4266 if test $ac_cv_lib_l_yywrap = yes; then
4274 if test "x$LEX" != "x:"; then
4275 echo "$as_me:$LINENO: checking lex output file root" >&5
4276 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4277 if test "${ac_cv_prog_lex_root+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 # The minimal lex program is just a single line: %%. But some broken lexes
4281 # (Solaris, I think it was) want two %% lines, so accommodate them.
4282 cat >conftest.l <<_ACEOF
4286 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4287 (eval $LEX conftest.l) 2>&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }
4291 if test -f lex.yy.c; then
4292 ac_cv_prog_lex_root=lex.yy
4293 elif test -f lexyy.c; then
4294 ac_cv_prog_lex_root=lexyy
4296 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4297 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4298 { (exit 1); exit 1; }; }
4301 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4302 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4304 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4306 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4307 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4308 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 # POSIX says lex can declare yytext either as a pointer or an array; the
4312 # default is implementation-dependent. Figure out which it is, since
4313 # not all implementations provide the %pointer and %array declarations.
4314 ac_cv_prog_lex_yytext_pointer=no
4315 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4317 LIBS="$LIBS $LEXLIB"
4318 cat >conftest.$ac_ext <<_ACEOF
4319 `cat $LEX_OUTPUT_ROOT.c`
4321 rm -f conftest.$ac_objext conftest$ac_exeext
4322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4323 (eval $ac_link) 2>conftest.er1
4325 grep -v '^ *+' conftest.er1 >conftest.err
4327 cat conftest.err >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } &&
4330 { ac_try='test -z "$ac_c_werror_flag"
4331 || test ! -s conftest.err'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; } &&
4337 { ac_try='test -s conftest$ac_exeext'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4343 ac_cv_prog_lex_yytext_pointer=yes
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4349 rm -f conftest.err conftest.$ac_objext \
4350 conftest$ac_exeext conftest.$ac_ext
4352 rm -f "${LEX_OUTPUT_ROOT}.c"
4355 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4356 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4357 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4359 cat >>confdefs.h <<\_ACEOF
4360 #define YYTEXT_POINTER 1
4368 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4369 echo "${ECHO_T}$ac_cv_has_flex" >&6
4370 if test "$LEX" != "flex"; then
4371 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4372 echo "$as_me: error: flex not found but required" >&2;}
4373 { (exit 1); exit 1; }; }
4379 echo "$as_me:$LINENO: checking " >&5
4380 echo $ECHO_N "checking ... $ECHO_C" >&6
4381 if test "${llvm_cv_has_bison+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 for ac_prog in 'bison -y' byacc
4386 # Extract the first word of "$ac_prog", so it can be a program name with args.
4387 set dummy $ac_prog; ac_word=$2
4388 echo "$as_me:$LINENO: checking for $ac_word" >&5
4389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4390 if test "${ac_cv_prog_YACC+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 if test -n "$YACC"; then
4394 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403 ac_cv_prog_YACC="$ac_prog"
4404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 YACC=$ac_cv_prog_YACC
4413 if test -n "$YACC"; then
4414 echo "$as_me:$LINENO: result: $YACC" >&5
4415 echo "${ECHO_T}$YACC" >&6
4417 echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6
4421 test -n "$YACC" && break
4423 test -n "$YACC" || YACC="yacc"
4427 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4428 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4429 if test "$YACC" != "bison -y"; then
4430 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4431 echo "$as_me: error: bison not found but required" >&2;}
4432 { (exit 1); exit 1; }; }
4441 # Check whether --enable-shared or --disable-shared was given.
4442 if test "${enable_shared+set}" = set; then
4443 enableval="$enable_shared"
4444 p=${PACKAGE-default}
4446 yes) enable_shared=yes ;;
4447 no) enable_shared=no ;;
4450 # Look at the argument we got. We use all the common list separators.
4451 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4452 for pkg in $enableval; do
4454 if test "X$pkg" = "X$p"; then
4465 # Check whether --enable-static or --disable-static was given.
4466 if test "${enable_static+set}" = set; then
4467 enableval="$enable_static"
4468 p=${PACKAGE-default}
4470 yes) enable_static=yes ;;
4471 no) enable_static=no ;;
4474 # Look at the argument we got. We use all the common list separators.
4475 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4476 for pkg in $enableval; do
4478 if test "X$pkg" = "X$p"; then
4489 # Check whether --enable-fast-install or --disable-fast-install was given.
4490 if test "${enable_fast_install+set}" = set; then
4491 enableval="$enable_fast_install"
4492 p=${PACKAGE-default}
4494 yes) enable_fast_install=yes ;;
4495 no) enable_fast_install=no ;;
4497 enable_fast_install=no
4498 # Look at the argument we got. We use all the common list separators.
4499 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4500 for pkg in $enableval; do
4502 if test "X$pkg" = "X$p"; then
4503 enable_fast_install=yes
4510 enable_fast_install=yes
4513 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4514 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4515 if test "${lt_cv_path_SED+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 # Loop through the user's path and test for sed and gsed.
4519 # Then use that list of sed's as ones to test for truncation.
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 test -z "$as_dir" && as_dir=.
4525 for lt_ac_prog in sed gsed; do
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4528 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4535 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4536 # along with /bin/sed that truncates output.
4537 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4538 test ! -f $lt_ac_sed && break
4539 cat /dev/null > conftest.in
4541 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4542 # Check for GNU sed and select it if it is found.
4543 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4544 lt_cv_path_SED=$lt_ac_sed
4548 cat conftest.in conftest.in >conftest.tmp
4549 mv conftest.tmp conftest.in
4550 cp conftest.in conftest.nl
4552 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4553 cmp -s conftest.out conftest.nl || break
4554 # 10000 chars as input seems more than enough
4555 test $lt_ac_count -gt 10 && break
4556 lt_ac_count=`expr $lt_ac_count + 1`
4557 if test $lt_ac_count -gt $lt_ac_max; then
4558 lt_ac_max=$lt_ac_count
4559 lt_cv_path_SED=$lt_ac_sed
4567 echo "$as_me:$LINENO: result: $SED" >&5
4568 echo "${ECHO_T}$SED" >&6
4570 echo "$as_me:$LINENO: checking for egrep" >&5
4571 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4572 if test "${ac_cv_prog_egrep+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4576 then ac_cv_prog_egrep='grep -E'
4577 else ac_cv_prog_egrep='egrep'
4580 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4581 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4582 EGREP=$ac_cv_prog_egrep
4586 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4587 if test "${with_gnu_ld+set}" = set; then
4588 withval="$with_gnu_ld"
4589 test "$withval" = no || with_gnu_ld=yes
4594 if test "$GCC" = yes; then
4595 # Check if gcc -print-prog-name=ld gives a path.
4596 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4597 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4600 # gcc leaves a trailing carriage return which upsets mingw
4601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4603 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4606 # Accept absolute paths.
4608 re_direlt='/[^/][^/]*/\.\./'
4609 # Canonicalize the pathname of ld
4610 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4611 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4612 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4614 test -z "$LD" && LD="$ac_prog"
4617 # If it fails, then pretend we aren't using GCC.
4621 # If it is relative, then search for the first ld in PATH.
4625 elif test "$with_gnu_ld" = yes; then
4626 echo "$as_me:$LINENO: checking for GNU ld" >&5
4627 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4629 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4630 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4632 if test "${lt_cv_path_LD+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 if test -z "$LD"; then
4636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4637 for ac_dir in $PATH; do
4639 test -z "$ac_dir" && ac_dir=.
4640 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4641 lt_cv_path_LD="$ac_dir/$ac_prog"
4642 # Check to see if the program is GNU ld. I'd rather use --version,
4643 # but apparently some GNU ld's only accept -v.
4644 # Break only if it was the GNU/non-GNU ld that we prefer.
4645 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4646 *GNU* | *'with BFD'*)
4647 test "$with_gnu_ld" != no && break
4650 test "$with_gnu_ld" != yes && break
4657 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4662 if test -n "$LD"; then
4663 echo "$as_me:$LINENO: result: $LD" >&5
4664 echo "${ECHO_T}$LD" >&6
4666 echo "$as_me:$LINENO: result: no" >&5
4667 echo "${ECHO_T}no" >&6
4669 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4670 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4671 { (exit 1); exit 1; }; }
4672 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4673 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4674 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4678 case `$LD -v 2>&1 </dev/null` in
4679 *GNU* | *'with BFD'*)
4680 lt_cv_prog_gnu_ld=yes
4683 lt_cv_prog_gnu_ld=no
4687 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4688 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4689 with_gnu_ld=$lt_cv_prog_gnu_ld
4692 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4693 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4694 if test "${lt_cv_ld_reload_flag+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 lt_cv_ld_reload_flag='-r'
4699 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4700 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4701 reload_flag=$lt_cv_ld_reload_flag
4702 case $reload_flag in
4704 *) reload_flag=" $reload_flag" ;;
4706 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4709 if test "$GCC" = yes; then
4710 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4712 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4717 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4718 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4719 if test "${lt_cv_path_NM+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 if test -n "$NM"; then
4723 # Let the user override the test.
4726 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4727 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4729 test -z "$ac_dir" && ac_dir=.
4730 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4731 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4732 # Check to see if the nm accepts a BSD-compat flag.
4733 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4734 # nm: unknown option "B" ignored
4735 # Tru64's nm complains that /dev/null is an invalid object file
4736 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4737 */dev/null* | *'Invalid file or object type'*)
4738 lt_cv_path_NM="$tmp_nm -B"
4742 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4744 lt_cv_path_NM="$tmp_nm -p"
4748 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4749 continue # so that we can try to find one that supports BSD flags
4756 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4759 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4760 echo "${ECHO_T}$lt_cv_path_NM" >&6
4763 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4764 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4766 if test "$LN_S" = "ln -s"; then
4767 echo "$as_me:$LINENO: result: yes" >&5
4768 echo "${ECHO_T}yes" >&6
4770 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4771 echo "${ECHO_T}no, using $LN_S" >&6
4774 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4775 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4776 if test "${lt_cv_deplibs_check_method+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 lt_cv_file_magic_cmd='$MAGIC_CMD'
4780 lt_cv_file_magic_test_file=
4781 lt_cv_deplibs_check_method='unknown'
4782 # Need to set the preceding variable on all platforms that support
4783 # interlibrary dependencies.
4784 # 'none' -- dependencies not supported.
4785 # `unknown' -- same as none, but documents that we really don't know.
4786 # 'pass_all' -- all dependencies passed with no checks.
4787 # 'test_compile' -- check by making test program.
4788 # 'file_magic [[regex]]' -- check by looking for files in library path
4789 # which responds to the $file_magic_cmd with a given extended regex.
4790 # If you have `file' or equivalent on your system and you're not sure
4791 # whether `pass_all' will *always* work, you probably want this one.
4795 lt_cv_deplibs_check_method=pass_all
4799 lt_cv_deplibs_check_method=pass_all
4803 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4804 lt_cv_file_magic_cmd='/usr/bin/file -L'
4805 lt_cv_file_magic_test_file=/shlib/libc.so
4809 # func_win32_libid is a shell function defined in ltmain.sh
4810 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4811 lt_cv_file_magic_cmd='func_win32_libid'
4815 # Base MSYS/MinGW do not provide the 'file' command needed by
4816 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4817 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4818 lt_cv_file_magic_cmd='$OBJDUMP -f'
4821 darwin* | rhapsody*)
4822 lt_cv_deplibs_check_method=pass_all
4825 freebsd* | kfreebsd*-gnu)
4826 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4829 # Not sure whether the presence of OpenBSD here was a mistake.
4830 # Let's accept both of them until this is cleared up.
4831 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4832 lt_cv_file_magic_cmd=/usr/bin/file
4833 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4837 lt_cv_deplibs_check_method=pass_all
4842 lt_cv_deplibs_check_method=pass_all
4845 hpux10.20* | hpux11*)
4846 lt_cv_file_magic_cmd=/usr/bin/file
4849 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4850 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4853 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]'
4854 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4857 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4858 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4863 irix5* | irix6* | nonstopux*)
4865 *-32|*"-32 ") libmagic=32-bit;;
4866 *-n32|*"-n32 ") libmagic=N32;;
4867 *-64|*"-64 ") libmagic=64-bit;;
4868 *) libmagic=never-match;;
4870 lt_cv_deplibs_check_method=pass_all
4873 # This must be Linux ELF.
4875 lt_cv_deplibs_check_method=pass_all
4879 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4880 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4882 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4887 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4888 lt_cv_file_magic_cmd=/usr/bin/file
4889 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4893 lt_cv_deplibs_check_method=unknown
4897 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4898 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4900 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4904 osf3* | osf4* | osf5*)
4905 lt_cv_deplibs_check_method=pass_all
4909 lt_cv_deplibs_check_method=pass_all
4913 lt_cv_deplibs_check_method=pass_all
4916 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4917 case $host_vendor in
4919 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]'
4920 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4923 lt_cv_deplibs_check_method=pass_all
4926 lt_cv_file_magic_cmd='/bin/file'
4927 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4930 lt_cv_file_magic_cmd='/bin/file'
4931 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4932 lt_cv_file_magic_test_file=/lib/libc.so
4935 lt_cv_deplibs_check_method=pass_all
4940 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4941 lt_cv_deplibs_check_method=pass_all
4946 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4947 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4948 file_magic_cmd=$lt_cv_file_magic_cmd
4949 deplibs_check_method=$lt_cv_deplibs_check_method
4950 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4955 # If no C compiler was specified, use CC.
4958 # Allow CC to be a program name with arguments.
4961 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4962 if test "${enable_libtool_lock+set}" = set; then
4963 enableval="$enable_libtool_lock"
4966 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4968 # Some flags need to be propagated to the compiler or linker for good
4972 # Find out which ABI we are using.
4973 echo 'int i;' > conftest.$ac_ext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975 (eval $ac_compile) 2>&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; then
4979 case `/usr/bin/file conftest.$ac_objext` in
4991 # Find out which ABI we are using.
4992 echo '#line 4992 "configure"' > conftest.$ac_ext
4993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994 (eval $ac_compile) 2>&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; then
4998 if test "$lt_cv_prog_gnu_ld" = yes; then
4999 case `/usr/bin/file conftest.$ac_objext` in
5001 LD="${LD-ld} -melf32bsmip"
5004 LD="${LD-ld} -melf32bmipn32"
5007 LD="${LD-ld} -melf64bmip"
5011 case `/usr/bin/file conftest.$ac_objext` in
5027 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5028 # Find out which ABI we are using.
5029 echo 'int i;' > conftest.$ac_ext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5031 (eval $ac_compile) 2>&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; then
5035 case "`/usr/bin/file conftest.o`" in
5039 LD="${LD-ld} -m elf_i386"
5041 ppc64-*linux*|powerpc64-*linux*)
5042 LD="${LD-ld} -m elf32ppclinux"
5045 LD="${LD-ld} -m elf_s390"
5048 LD="${LD-ld} -m elf32_sparc"
5055 LD="${LD-ld} -m elf_x86_64"
5057 ppc*-*linux*|powerpc*-*linux*)
5058 LD="${LD-ld} -m elf64ppc"
5061 LD="${LD-ld} -m elf64_s390"
5064 LD="${LD-ld} -m elf64_sparc"
5074 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5075 SAVE_CFLAGS="$CFLAGS"
5076 CFLAGS="$CFLAGS -belf"
5077 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5078 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5079 if test "${lt_cv_cc_needs_belf+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 ac_cpp='$CPP $CPPFLAGS'
5084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088 cat >conftest.$ac_ext <<_ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098 (eval $ac_link) 2>conftest.er1
5100 grep -v '^ *+' conftest.er1 >conftest.err
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -z "$ac_c_werror_flag"
5106 || test ! -s conftest.err'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; } &&
5112 { ac_try='test -s conftest$ac_exeext'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 lt_cv_cc_needs_belf=yes
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5123 lt_cv_cc_needs_belf=no
5125 rm -f conftest.err conftest.$ac_objext \
5126 conftest$ac_exeext conftest.$ac_ext
5128 ac_cpp='$CPP $CPPFLAGS'
5129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5134 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5135 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5136 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5137 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5138 CFLAGS="$SAVE_CFLAGS"
5144 need_locks="$enable_libtool_lock"
5148 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5149 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5150 if test "${ac_cv_header_stdc+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 cat >conftest.$ac_ext <<_ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5172 rm -f conftest.$ac_objext
5173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5174 (eval $ac_compile) 2>conftest.er1
5176 grep -v '^ *+' conftest.er1 >conftest.err
5178 cat conftest.err >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } &&
5181 { ac_try='test -z "$ac_c_werror_flag"
5182 || test ! -s conftest.err'
5183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }; } &&
5188 { ac_try='test -s conftest.$ac_objext'
5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; }; then
5194 ac_cv_header_stdc=yes
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5199 ac_cv_header_stdc=no
5201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5203 if test $ac_cv_header_stdc = yes; then
5204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5205 cat >conftest.$ac_ext <<_ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5215 $EGREP "memchr" >/dev/null 2>&1; then
5218 ac_cv_header_stdc=no
5224 if test $ac_cv_header_stdc = yes; then
5225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5226 cat >conftest.$ac_ext <<_ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5236 $EGREP "free" >/dev/null 2>&1; then
5239 ac_cv_header_stdc=no
5245 if test $ac_cv_header_stdc = yes; then
5246 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5247 if test "$cross_compiling" = yes; then
5250 cat >conftest.$ac_ext <<_ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5257 #if ((' ' & 0x0FF) == 0x020)
5258 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5259 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5261 # define ISLOWER(c) \
5262 (('a' <= (c) && (c) <= 'i') \
5263 || ('j' <= (c) && (c) <= 'r') \
5264 || ('s' <= (c) && (c) <= 'z'))
5265 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5268 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5273 for (i = 0; i < 256; i++)
5274 if (XOR (islower (i), ISLOWER (i))
5275 || toupper (i) != TOUPPER (i))
5280 rm -f conftest$ac_exeext
5281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5282 (eval $ac_link) 2>&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; }; then
5293 echo "$as_me: program exited with status $ac_status" >&5
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5298 ac_cv_header_stdc=no
5300 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5304 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5305 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5306 if test $ac_cv_header_stdc = yes; then
5308 cat >>confdefs.h <<\_ACEOF
5309 #define STDC_HEADERS 1
5314 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5324 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5325 inttypes.h stdint.h unistd.h
5327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5328 echo "$as_me:$LINENO: checking for $ac_header" >&5
5329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 cat >conftest.$ac_ext <<_ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5339 $ac_includes_default
5341 #include <$ac_header>
5343 rm -f conftest.$ac_objext
5344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5345 (eval $ac_compile) 2>conftest.er1
5347 grep -v '^ *+' conftest.er1 >conftest.err
5349 cat conftest.err >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } &&
5352 { ac_try='test -z "$ac_c_werror_flag"
5353 || test ! -s conftest.err'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; } &&
5359 { ac_try='test -s conftest.$ac_objext'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; }; then
5365 eval "$as_ac_Header=yes"
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5370 eval "$as_ac_Header=no"
5372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5377 cat >>confdefs.h <<_ACEOF
5378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5387 for ac_header in dlfcn.h
5389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5391 echo "$as_me:$LINENO: checking for $ac_header" >&5
5392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5399 # Is the header compilable?
5400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5402 cat >conftest.$ac_ext <<_ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5408 $ac_includes_default
5409 #include <$ac_header>
5411 rm -f conftest.$ac_objext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413 (eval $ac_compile) 2>conftest.er1
5415 grep -v '^ *+' conftest.er1 >conftest.err
5417 cat conftest.err >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } &&
5420 { ac_try='test -z "$ac_c_werror_flag"
5421 || test ! -s conftest.err'
5422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }; } &&
5427 { ac_try='test -s conftest.$ac_objext'
5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; }; then
5433 ac_header_compiler=yes
5435 echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5438 ac_header_compiler=no
5440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5442 echo "${ECHO_T}$ac_header_compiler" >&6
5444 # Is the header present?
5445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5447 cat >conftest.$ac_ext <<_ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 #include <$ac_header>
5455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5458 grep -v '^ *+' conftest.er1 >conftest.err
5460 cat conftest.err >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } >/dev/null; then
5463 if test -s conftest.err; then
5464 ac_cpp_err=$ac_c_preproc_warn_flag
5465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5472 if test -z "$ac_cpp_err"; then
5473 ac_header_preproc=yes
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5478 ac_header_preproc=no
5480 rm -f conftest.err conftest.$ac_ext
5481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5482 echo "${ECHO_T}$ac_header_preproc" >&6
5484 # So? What about this header?
5485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5491 ac_header_preproc=yes
5494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5508 ## ----------------------------------- ##
5509 ## Report this to llvmbugs@cs.uiuc.edu ##
5510 ## ----------------------------------- ##
5513 sed "s/^/$as_me: WARNING: /" >&2
5516 echo "$as_me:$LINENO: checking for $ac_header" >&5
5517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 eval "$as_ac_Header=\$ac_header_preproc"
5523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5528 cat >>confdefs.h <<_ACEOF
5529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5538 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5539 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5540 (test "X$CXX" != "Xg++"))) ; then
5542 ac_cpp='$CXXCPP $CPPFLAGS'
5543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5546 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5547 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5548 if test -z "$CXXCPP"; then
5549 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 # Double quotes because CXXCPP needs to be expanded
5553 for CXXCPP in "$CXX -E" "/lib/cpp"
5556 for ac_cxx_preproc_warn_flag in '' yes
5558 # Use a header file that comes with gcc, so configuring glibc
5559 # with a fresh cross-compiler works.
5560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5561 # <limits.h> exists even on freestanding compilers.
5562 # On the NeXT, cc -E runs the code through the compiler's parser,
5563 # not just through cpp. "Syntax error" is here to catch this case.
5564 cat >conftest.$ac_ext <<_ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5571 # include <limits.h>
5573 # include <assert.h>
5577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5580 grep -v '^ *+' conftest.er1 >conftest.err
5582 cat conftest.err >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } >/dev/null; then
5585 if test -s conftest.err; then
5586 ac_cpp_err=$ac_cxx_preproc_warn_flag
5587 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5594 if test -z "$ac_cpp_err"; then
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5600 # Broken: fails on valid input.
5603 rm -f conftest.err conftest.$ac_ext
5605 # OK, works on sane cases. Now check whether non-existent headers
5606 # can be detected and how.
5607 cat >conftest.$ac_ext <<_ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 #include <ac_nonexistent.h>
5615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5618 grep -v '^ *+' conftest.er1 >conftest.err
5620 cat conftest.err >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } >/dev/null; then
5623 if test -s conftest.err; then
5624 ac_cpp_err=$ac_cxx_preproc_warn_flag
5625 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5632 if test -z "$ac_cpp_err"; then
5633 # Broken: success on invalid input.
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5639 # Passes both tests.
5643 rm -f conftest.err conftest.$ac_ext
5646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5647 rm -f conftest.err conftest.$ac_ext
5648 if $ac_preproc_ok; then
5653 ac_cv_prog_CXXCPP=$CXXCPP
5656 CXXCPP=$ac_cv_prog_CXXCPP
5658 ac_cv_prog_CXXCPP=$CXXCPP
5660 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5661 echo "${ECHO_T}$CXXCPP" >&6
5663 for ac_cxx_preproc_warn_flag in '' yes
5665 # Use a header file that comes with gcc, so configuring glibc
5666 # with a fresh cross-compiler works.
5667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5668 # <limits.h> exists even on freestanding compilers.
5669 # On the NeXT, cc -E runs the code through the compiler's parser,
5670 # not just through cpp. "Syntax error" is here to catch this case.
5671 cat >conftest.$ac_ext <<_ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5678 # include <limits.h>
5680 # include <assert.h>
5684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5687 grep -v '^ *+' conftest.er1 >conftest.err
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } >/dev/null; then
5692 if test -s conftest.err; then
5693 ac_cpp_err=$ac_cxx_preproc_warn_flag
5694 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5701 if test -z "$ac_cpp_err"; then
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5707 # Broken: fails on valid input.
5710 rm -f conftest.err conftest.$ac_ext
5712 # OK, works on sane cases. Now check whether non-existent headers
5713 # can be detected and how.
5714 cat >conftest.$ac_ext <<_ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5720 #include <ac_nonexistent.h>
5722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5725 grep -v '^ *+' conftest.er1 >conftest.err
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } >/dev/null; then
5730 if test -s conftest.err; then
5731 ac_cpp_err=$ac_cxx_preproc_warn_flag
5732 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5739 if test -z "$ac_cpp_err"; then
5740 # Broken: success on invalid input.
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5746 # Passes both tests.
5750 rm -f conftest.err conftest.$ac_ext
5753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5754 rm -f conftest.err conftest.$ac_ext
5755 if $ac_preproc_ok; then
5758 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5759 See \`config.log' for more details." >&5
5760 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5761 See \`config.log' for more details." >&2;}
5762 { (exit 1); exit 1; }; }
5766 ac_cpp='$CXXCPP $CPPFLAGS'
5767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5775 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5776 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5777 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5778 if test -n "$ac_tool_prefix"; then
5779 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5781 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5782 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5783 echo "$as_me:$LINENO: checking for $ac_word" >&5
5784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5785 if test "${ac_cv_prog_F77+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 if test -n "$F77"; then
5789 ac_cv_prog_F77="$F77" # Let the user override the test.
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 if test -n "$F77"; then
5809 echo "$as_me:$LINENO: result: $F77" >&5
5810 echo "${ECHO_T}$F77" >&6
5812 echo "$as_me:$LINENO: result: no" >&5
5813 echo "${ECHO_T}no" >&6
5816 test -n "$F77" && break
5819 if test -z "$F77"; then
5821 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5823 # Extract the first word of "$ac_prog", so it can be a program name with args.
5824 set dummy $ac_prog; ac_word=$2
5825 echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5827 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 if test -n "$ac_ct_F77"; then
5831 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840 ac_cv_prog_ac_ct_F77="$ac_prog"
5841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5850 if test -n "$ac_ct_F77"; then
5851 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5852 echo "${ECHO_T}$ac_ct_F77" >&6
5854 echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6
5858 test -n "$ac_ct_F77" && break
5865 # Provide some information about the compiler.
5866 echo "$as_me:5866:" \
5867 "checking for Fortran 77 compiler version" >&5
5868 ac_compiler=`set X $ac_compile; echo $2`
5869 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5870 (eval $ac_compiler --version </dev/null >&5) 2>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }
5874 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5875 (eval $ac_compiler -v </dev/null >&5) 2>&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }
5879 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5880 (eval $ac_compiler -V </dev/null >&5) 2>&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }
5886 # If we don't use `.F' as extension, the preprocessor is not run on the
5887 # input file. (Note that this only needs to work for GNU compilers.)
5890 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5891 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5892 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 cat >conftest.$ac_ext <<_ACEOF
5903 rm -f conftest.$ac_objext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5905 (eval $ac_compile) 2>conftest.er1
5907 grep -v '^ *+' conftest.er1 >conftest.err
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_f77_werror_flag"
5913 || test ! -s conftest.err'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try='test -s conftest.$ac_objext'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5933 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5936 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5937 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5939 ac_test_FFLAGS=${FFLAGS+set}
5940 ac_save_FFLAGS=$FFLAGS
5942 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5943 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5944 if test "${ac_cv_prog_f77_g+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 cat >conftest.$ac_ext <<_ACEOF
5953 rm -f conftest.$ac_objext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955 (eval $ac_compile) 2>conftest.er1
5957 grep -v '^ *+' conftest.er1 >conftest.err
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try='test -z "$ac_f77_werror_flag"
5963 || test ! -s conftest.err'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; } &&
5969 { ac_try='test -s conftest.$ac_objext'
5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; }; then
5975 ac_cv_prog_f77_g=yes
5977 echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5985 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5986 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5987 if test "$ac_test_FFLAGS" = set; then
5988 FFLAGS=$ac_save_FFLAGS
5989 elif test $ac_cv_prog_f77_g = yes; then
5990 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5996 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6003 G77=`test $ac_compiler_gnu = yes && echo yes`
6005 ac_cpp='$CPP $CPPFLAGS'
6006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6012 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6014 # find the maximum length of command line arguments
6015 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6016 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6017 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 # On DJGPP, this test can blow up pretty badly due to problems in libc
6026 # (any single argument exceeding 2000 bytes causes a buffer overrun
6027 # during glob expansion). Even if it were fixed, the result of this
6028 # check would be larger than it should be.
6029 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6033 # Under GNU Hurd, this test is not required because there is
6034 # no limit to the length of command line arguments.
6035 # Libtool will interpret -1 as no limit whatsoever
6036 lt_cv_sys_max_cmd_len=-1;
6040 # On Win9x/ME, this test blows up -- it succeeds, but takes
6041 # about 5 minutes as the teststring grows exponentially.
6042 # Worse, since 9x/ME are not pre-emptively multitasking,
6043 # you end up with a "frozen" computer, even though with patience
6044 # the test eventually succeeds (with a max line length of 256k).
6045 # Instead, let's just punt: use the minimum linelength reported by
6046 # all of the supported platforms: 8192 (on NT/2K/XP).
6047 lt_cv_sys_max_cmd_len=8192;
6051 # On AmigaOS with pdksh, this test takes hours, literally.
6052 # So we just punt and use a minimum line length of 8192.
6053 lt_cv_sys_max_cmd_len=8192;
6056 netbsd* | freebsd* | openbsd* | darwin* )
6057 # This has been around since 386BSD, at least. Likely further.
6058 if test -x /sbin/sysctl; then
6059 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6060 elif test -x /usr/sbin/sysctl; then
6061 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6063 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6065 # And add a safety zone
6066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6070 # If test is not a shell built-in, we'll probably end up computing a
6071 # maximum length that is only half of the actual maximum length, but
6073 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6074 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6075 = "XX$teststring") >/dev/null 2>&1 &&
6076 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6077 lt_cv_sys_max_cmd_len=$new_result &&
6078 test $i != 17 # 1/2 MB should be enough
6081 teststring=$teststring$teststring
6084 # Add a significant safety factor because C++ compilers can tack on massive
6085 # amounts of additional arguments before passing them to the linker.
6086 # It appears as though 1/2 is a usable value.
6087 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6093 if test -n $lt_cv_sys_max_cmd_len ; then
6094 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6095 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6097 echo "$as_me:$LINENO: result: none" >&5
6098 echo "${ECHO_T}none" >&6
6104 # Check for command to grab the raw symbol name followed by C symbol from nm.
6105 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6106 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6107 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 # These are sane defaults that work on at least a few old systems.
6112 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6114 # Character class describing NM global symbol codes.
6115 symcode='[BCDEGRST]'
6117 # Regexp to match symbols that can be accessed directly from C.
6118 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6120 # Transform the above into a raw symbol and a C symbol.
6121 symxfrm='\1 \2\3 \3'
6123 # Transform an extracted symbol line into a proper C declaration
6124 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6126 # Transform an extracted symbol line into symbol name and symbol address
6127 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'"
6129 # Define system-specific variables.
6134 cygwin* | mingw* | pw32*)
6135 symcode='[ABCDGISTW]'
6137 hpux*) # Its linker distinguishes data from code symbols
6138 if test "$host_cpu" = ia64; then
6139 symcode='[ABCDEGRST]'
6141 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6142 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'"
6145 if test "$host_cpu" = ia64; then
6146 symcode='[ABCDGIRSTW]'
6147 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6148 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'"
6152 symcode='[BCDEGRST]'
6155 symcode='[BCDEGQRST]'
6165 # Handle CRLF in mingw tool chain
6169 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6173 # If we're using GNU nm, then use its standard symbol codes.
6174 case `$NM -V 2>&1` in
6175 *GNU* | *'with BFD'*)
6176 symcode='[ABCDGIRSTW]' ;;
6179 # Try without a prefix undercore, then with it.
6180 for ac_symprfx in "" "_"; do
6182 # Write the raw and C identifiers.
6183 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6185 # Check to see that the pipe works correctly.
6189 cat > conftest.$ac_ext <<EOF
6194 void nm_test_func(){}
6198 int main(){nm_test_var='a';nm_test_func();return(0);}
6201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6202 (eval $ac_compile) 2>&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; then
6206 # Now try to grab the symbols.
6208 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6209 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } && test -s "$nlist"; then
6213 # Try sorting and uniquifying the output.
6214 if sort "$nlist" | uniq > "$nlist"T; then
6215 mv -f "$nlist"T "$nlist"
6220 # Make sure that we snagged all the symbols we need.
6221 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6222 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6223 cat <<EOF > conftest.$ac_ext
6229 # Now generate the symbol file.
6230 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6232 cat <<EOF >> conftest.$ac_ext
6233 #if defined (__STDC__) && __STDC__
6234 # define lt_ptr_t void *
6236 # define lt_ptr_t char *
6240 /* The mapping between symbol names and symbols. */
6245 lt_preloaded_symbols[] =
6248 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6249 cat <<\EOF >> conftest.$ac_ext
6257 # Now try linking the two files.
6258 mv conftest.$ac_objext conftstm.$ac_objext
6259 lt_save_LIBS="$LIBS"
6260 lt_save_CFLAGS="$CFLAGS"
6261 LIBS="conftstm.$ac_objext"
6262 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6264 (eval $ac_link) 2>&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6270 LIBS="$lt_save_LIBS"
6271 CFLAGS="$lt_save_CFLAGS"
6273 echo "cannot find nm_test_func in $nlist" >&5
6276 echo "cannot find nm_test_var in $nlist" >&5
6279 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6282 echo "$progname: failed program was:" >&5
6283 cat conftest.$ac_ext >&5
6285 rm -f conftest* conftst*
6287 # Do not use the global_symbol_pipe unless it works.
6288 if test "$pipe_works" = yes; then
6291 lt_cv_sys_global_symbol_pipe=
6297 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6298 lt_cv_sys_global_symbol_to_cdecl=
6300 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6301 echo "$as_me:$LINENO: result: failed" >&5
6302 echo "${ECHO_T}failed" >&6
6304 echo "$as_me:$LINENO: result: ok" >&5
6305 echo "${ECHO_T}ok" >&6
6308 echo "$as_me:$LINENO: checking for objdir" >&5
6309 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6310 if test "${lt_cv_objdir+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 rm -f .libs 2>/dev/null
6314 mkdir .libs 2>/dev/null
6315 if test -d .libs; then
6318 # MS-DOS does not allow filenames that begin with a dot.
6321 rmdir .libs 2>/dev/null
6323 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6324 echo "${ECHO_T}$lt_cv_objdir" >&6
6325 objdir=$lt_cv_objdir
6333 # AIX sometimes has problems with the GCC collect2 program. For some
6334 # reason, if we set the COLLECT_NAMES environment variable, the problems
6335 # vanish in a puff of smoke.
6336 if test "X${COLLECT_NAMES+set}" != Xset; then
6338 export COLLECT_NAMES
6343 # Sed substitution that helps us do robust quoting. It backslashifies
6344 # metacharacters that are still active within double-quoted strings.
6345 Xsed='sed -e s/^X//'
6346 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6348 # Same as above, but do not quote variable references.
6349 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6351 # Sed substitution to delay expansion of an escaped shell variable in a
6352 # double_quote_subst'ed string.
6353 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6355 # Sed substitution to avoid accidental globbing in evaled expressions
6356 no_glob_subst='s/\*/\\\*/g'
6363 can_build_shared=yes
6365 # All known linkers require a `.a' archive for static linking (except M$VC,
6366 # which needs '.lib').
6368 ltmain="$ac_aux_dir/ltmain.sh"
6369 ofile="$default_ofile"
6370 with_gnu_ld="$lt_cv_prog_gnu_ld"
6372 if test -n "$ac_tool_prefix"; then
6373 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6374 set dummy ${ac_tool_prefix}ar; ac_word=$2
6375 echo "$as_me:$LINENO: checking for $ac_word" >&5
6376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6377 if test "${ac_cv_prog_AR+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 if test -n "$AR"; then
6381 ac_cv_prog_AR="$AR" # Let the user override the test.
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6390 ac_cv_prog_AR="${ac_tool_prefix}ar"
6391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 if test -n "$AR"; then
6401 echo "$as_me:$LINENO: result: $AR" >&5
6402 echo "${ECHO_T}$AR" >&6
6404 echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6
6409 if test -z "$ac_cv_prog_AR"; then
6411 # Extract the first word of "ar", so it can be a program name with args.
6412 set dummy ar; ac_word=$2
6413 echo "$as_me:$LINENO: checking for $ac_word" >&5
6414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6415 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 if test -n "$ac_ct_AR"; then
6419 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_prog_ac_ct_AR="ar"
6429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6438 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6439 if test -n "$ac_ct_AR"; then
6440 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6441 echo "${ECHO_T}$ac_ct_AR" >&6
6443 echo "$as_me:$LINENO: result: no" >&5
6444 echo "${ECHO_T}no" >&6
6452 if test -n "$ac_tool_prefix"; then
6453 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6454 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6455 echo "$as_me:$LINENO: checking for $ac_word" >&5
6456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6457 if test "${ac_cv_prog_RANLIB+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 if test -n "$RANLIB"; then
6461 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6470 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 RANLIB=$ac_cv_prog_RANLIB
6480 if test -n "$RANLIB"; then
6481 echo "$as_me:$LINENO: result: $RANLIB" >&5
6482 echo "${ECHO_T}$RANLIB" >&6
6484 echo "$as_me:$LINENO: result: no" >&5
6485 echo "${ECHO_T}no" >&6
6489 if test -z "$ac_cv_prog_RANLIB"; then
6490 ac_ct_RANLIB=$RANLIB
6491 # Extract the first word of "ranlib", so it can be a program name with args.
6492 set dummy ranlib; ac_word=$2
6493 echo "$as_me:$LINENO: checking for $ac_word" >&5
6494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6495 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 if test -n "$ac_ct_RANLIB"; then
6499 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508 ac_cv_prog_ac_ct_RANLIB="ranlib"
6509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6518 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6519 if test -n "$ac_ct_RANLIB"; then
6520 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6521 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6523 echo "$as_me:$LINENO: result: no" >&5
6524 echo "${ECHO_T}no" >&6
6527 RANLIB=$ac_ct_RANLIB
6529 RANLIB="$ac_cv_prog_RANLIB"
6532 if test -n "$ac_tool_prefix"; then
6533 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6534 set dummy ${ac_tool_prefix}strip; ac_word=$2
6535 echo "$as_me:$LINENO: checking for $ac_word" >&5
6536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6537 if test "${ac_cv_prog_STRIP+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 if test -n "$STRIP"; then
6541 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6550 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 STRIP=$ac_cv_prog_STRIP
6560 if test -n "$STRIP"; then
6561 echo "$as_me:$LINENO: result: $STRIP" >&5
6562 echo "${ECHO_T}$STRIP" >&6
6564 echo "$as_me:$LINENO: result: no" >&5
6565 echo "${ECHO_T}no" >&6
6569 if test -z "$ac_cv_prog_STRIP"; then
6571 # Extract the first word of "strip", so it can be a program name with args.
6572 set dummy strip; ac_word=$2
6573 echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6575 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 if test -n "$ac_ct_STRIP"; then
6579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588 ac_cv_prog_ac_ct_STRIP="strip"
6589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6598 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6599 if test -n "$ac_ct_STRIP"; then
6600 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6601 echo "${ECHO_T}$ac_ct_STRIP" >&6
6603 echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6
6609 STRIP="$ac_cv_prog_STRIP"
6614 old_CFLAGS="$CFLAGS"
6616 # Set sane defaults for various variables
6617 test -z "$AR" && AR=ar
6618 test -z "$AR_FLAGS" && AR_FLAGS=cru
6619 test -z "$AS" && AS=as
6620 test -z "$CC" && CC=cc
6621 test -z "$LTCC" && LTCC=$CC
6622 test -z "$DLLTOOL" && DLLTOOL=dlltool
6623 test -z "$LD" && LD=ld
6624 test -z "$LN_S" && LN_S="ln -s"
6625 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6626 test -z "$NM" && NM=nm
6627 test -z "$SED" && SED=sed
6628 test -z "$OBJDUMP" && OBJDUMP=objdump
6629 test -z "$RANLIB" && RANLIB=:
6630 test -z "$STRIP" && STRIP=:
6631 test -z "$ac_objext" && ac_objext=o
6633 # Determine commands to create old-style static archives.
6634 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6635 old_postinstall_cmds='chmod 644 $oldlib'
6636 old_postuninstall_cmds=
6638 if test -n "$RANLIB"; then
6641 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6644 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6647 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6650 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6652 # Only perform the check for file, if the check method requires it
6653 case $deplibs_check_method in
6655 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6656 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6657 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6658 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6666 lt_save_MAGIC_CMD="$MAGIC_CMD"
6667 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6668 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6669 for ac_dir in $ac_dummy; do
6671 test -z "$ac_dir" && ac_dir=.
6672 if test -f $ac_dir/${ac_tool_prefix}file; then
6673 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6674 if test -n "$file_magic_test_file"; then
6675 case $deplibs_check_method in
6677 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6678 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6679 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6680 $EGREP "$file_magic_regex" > /dev/null; then
6685 *** Warning: the command libtool uses to detect shared libraries,
6686 *** $file_magic_cmd, produces output that libtool cannot recognize.
6687 *** The result is that libtool may fail to recognize shared libraries
6688 *** as such. This will affect the creation of libtool libraries that
6689 *** depend on shared libraries, but programs linked with such libtool
6690 *** libraries will work regardless of this problem. Nevertheless, you
6691 *** may want to report the problem to your system manager and/or to
6692 *** bug-libtool@gnu.org
6702 MAGIC_CMD="$lt_save_MAGIC_CMD"
6707 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6708 if test -n "$MAGIC_CMD"; then
6709 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6710 echo "${ECHO_T}$MAGIC_CMD" >&6
6712 echo "$as_me:$LINENO: result: no" >&5
6713 echo "${ECHO_T}no" >&6
6716 if test -z "$lt_cv_path_MAGIC_CMD"; then
6717 if test -n "$ac_tool_prefix"; then
6718 echo "$as_me:$LINENO: checking for file" >&5
6719 echo $ECHO_N "checking for file... $ECHO_C" >&6
6720 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6728 lt_save_MAGIC_CMD="$MAGIC_CMD"
6729 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6730 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6731 for ac_dir in $ac_dummy; do
6733 test -z "$ac_dir" && ac_dir=.
6734 if test -f $ac_dir/file; then
6735 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6736 if test -n "$file_magic_test_file"; then
6737 case $deplibs_check_method in
6739 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6740 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6741 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6742 $EGREP "$file_magic_regex" > /dev/null; then
6747 *** Warning: the command libtool uses to detect shared libraries,
6748 *** $file_magic_cmd, produces output that libtool cannot recognize.
6749 *** The result is that libtool may fail to recognize shared libraries
6750 *** as such. This will affect the creation of libtool libraries that
6751 *** depend on shared libraries, but programs linked with such libtool
6752 *** libraries will work regardless of this problem. Nevertheless, you
6753 *** may want to report the problem to your system manager and/or to
6754 *** bug-libtool@gnu.org
6764 MAGIC_CMD="$lt_save_MAGIC_CMD"
6769 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6770 if test -n "$MAGIC_CMD"; then
6771 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6772 echo "${ECHO_T}$MAGIC_CMD" >&6
6774 echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6
6790 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6791 if test "${enable_libtool_lock+set}" = set; then
6792 enableval="$enable_libtool_lock"
6795 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6798 # Check whether --with-pic or --without-pic was given.
6799 if test "${with_pic+set}" = set; then
6805 test -z "$pic_mode" && pic_mode=default
6807 # Use C for the default configuration in the libtool script
6811 ac_cpp='$CPP $CPPFLAGS'
6812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6817 # Source file extension for C test sources.
6820 # Object file extension for compiled C test sources.
6824 # Code to be used in simple compile tests
6825 lt_simple_compile_test_code="int some_variable = 0;\n"
6827 # Code to be used in simple link tests
6828 lt_simple_link_test_code='int main(){return(0);}\n'
6831 # If no C compiler was specified, use CC.
6834 # Allow CC to be a program name with arguments.
6839 # Check for any special shared library compilation flags.
6842 if test "$GCC" = no; then
6845 lt_prog_cc_shlib='-belf'
6849 if test -n "$lt_prog_cc_shlib"; then
6850 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6851 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6852 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6854 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6855 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6856 lt_cv_prog_cc_can_build_shared=no
6862 # Check to make sure the static flag actually works.
6864 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6865 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6866 if test "${lt_prog_compiler_static_works+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 lt_prog_compiler_static_works=no
6870 save_LDFLAGS="$LDFLAGS"
6871 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6872 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6873 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6874 # The compiler can only warn and ignore the option if not recognized
6875 # So say no if there are warnings
6876 if test -s conftest.err; then
6877 # Append any errors to the config.log.
6878 cat conftest.err 1>&5
6880 lt_prog_compiler_static_works=yes
6884 LDFLAGS="$save_LDFLAGS"
6887 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6888 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6890 if test x"$lt_prog_compiler_static_works" = xyes; then
6893 lt_prog_compiler_static=
6899 lt_prog_compiler_no_builtin_flag=
6901 if test "$GCC" = yes; then
6902 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6905 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6906 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6907 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 lt_cv_prog_compiler_rtti_exceptions=no
6911 ac_outfile=conftest.$ac_objext
6912 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6913 lt_compiler_flag="-fno-rtti -fno-exceptions"
6914 # Insert the option either (1) after the last *FLAGS variable, or
6915 # (2) before a word containing "conftest.", or (3) at the end.
6916 # Note that $ac_compile itself does not contain backslashes and begins
6917 # with a dollar sign (not a hyphen), so the echo should work correctly.
6918 # The option is referenced via a variable to avoid confusing sed.
6919 lt_compile=`echo "$ac_compile" | $SED \
6920 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6922 -e 's:$: $lt_compiler_flag:'`
6923 (eval echo "\"\$as_me:6923: $lt_compile\"" >&5)
6924 (eval "$lt_compile" 2>conftest.err)
6926 cat conftest.err >&5
6927 echo "$as_me:6927: \$? = $ac_status" >&5
6928 if (exit $ac_status) && test -s "$ac_outfile"; then
6929 # The compiler can only warn and ignore the option if not recognized
6930 # So say no if there are warnings
6931 if test ! -s conftest.err; then
6932 lt_cv_prog_compiler_rtti_exceptions=yes
6938 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6939 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6941 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6942 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6949 lt_prog_compiler_wl=
6950 lt_prog_compiler_pic=
6951 lt_prog_compiler_static=
6953 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6954 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6956 if test "$GCC" = yes; then
6957 lt_prog_compiler_wl='-Wl,'
6958 lt_prog_compiler_static='-static'
6962 # All AIX code is PIC.
6963 if test "$host_cpu" = ia64; then
6964 # AIX 5 now supports IA64 processor
6965 lt_prog_compiler_static='-Bstatic'
6970 # FIXME: we need at least 68020 code to build shared libraries, but
6971 # adding the `-m68020' flag to GCC prevents building anything better,
6973 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6976 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6977 # PIC is the default for these OSes.
6980 mingw* | pw32* | os2*)
6981 # This hack is so that the source file can tell whether it is being
6982 # built for inclusion in a dll (and should export symbols for example).
6983 lt_prog_compiler_pic='-DDLL_EXPORT'
6986 darwin* | rhapsody*)
6987 # PIC is the default on this platform
6988 # Common symbols not allowed in MH_DYLIB files
6989 lt_prog_compiler_pic='-fno-common'
6993 # Just because we use GCC doesn't mean we suddenly get shared libraries
6994 # on systems that don't support them.
6995 lt_prog_compiler_can_build_shared=no
7000 if test -d /usr/nec; then
7001 lt_prog_compiler_pic=-Kconform_pic
7006 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7013 lt_prog_compiler_pic='-fPIC'
7019 lt_prog_compiler_pic='-fPIC'
7023 # PORTME Check for flag to pass linker flags through the system compiler.
7026 lt_prog_compiler_wl='-Wl,'
7027 if test "$host_cpu" = ia64; then
7028 # AIX 5 now supports IA64 processor
7029 lt_prog_compiler_static='-Bstatic'
7031 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7035 # PIC is the default on this platform
7036 # Common symbols not allowed in MH_DYLIB files
7037 case "$cc_basename" in
7039 lt_prog_compiler_pic='-qnocommon'
7040 lt_prog_compiler_wl='-Wl,'
7045 mingw* | pw32* | os2*)
7046 # This hack is so that the source file can tell whether it is being
7047 # built for inclusion in a dll (and should export symbols for example).
7048 lt_prog_compiler_pic='-DDLL_EXPORT'
7051 hpux9* | hpux10* | hpux11*)
7052 lt_prog_compiler_wl='-Wl,'
7053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7060 lt_prog_compiler_pic='+Z'
7063 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7064 lt_prog_compiler_static='${wl}-a ${wl}archive'
7067 irix5* | irix6* | nonstopux*)
7068 lt_prog_compiler_wl='-Wl,'
7069 # PIC (with -KPIC) is the default.
7070 lt_prog_compiler_static='-non_shared'
7074 lt_prog_compiler_pic='-KPIC'
7075 lt_prog_compiler_static='-Bstatic'
7081 lt_prog_compiler_wl='-Wl,'
7082 lt_prog_compiler_pic='-KPIC'
7083 lt_prog_compiler_static='-static'
7086 lt_prog_compiler_wl='-Wl,'
7087 # All Alpha code is PIC.
7088 lt_prog_compiler_static='-non_shared'
7093 osf3* | osf4* | osf5*)
7094 lt_prog_compiler_wl='-Wl,'
7095 # All OSF/1 code is PIC.
7096 lt_prog_compiler_static='-non_shared'
7100 lt_prog_compiler_pic='-Kpic'
7101 lt_prog_compiler_static='-dn'
7105 lt_prog_compiler_wl='-Wl,'
7106 lt_prog_compiler_pic='-KPIC'
7107 lt_prog_compiler_static='-Bstatic'
7111 lt_prog_compiler_wl='-Qoption ld '
7112 lt_prog_compiler_pic='-PIC'
7113 lt_prog_compiler_static='-Bstatic'
7116 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7117 lt_prog_compiler_wl='-Wl,'
7118 lt_prog_compiler_pic='-KPIC'
7119 lt_prog_compiler_static='-Bstatic'
7123 if test -d /usr/nec ;then
7124 lt_prog_compiler_pic='-Kconform_pic'
7125 lt_prog_compiler_static='-Bstatic'
7130 lt_prog_compiler_pic='-pic'
7131 lt_prog_compiler_static='-Bstatic'
7135 lt_prog_compiler_can_build_shared=no
7140 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7141 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7144 # Check to make sure the PIC flag actually works.
7146 if test -n "$lt_prog_compiler_pic"; then
7148 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7149 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7150 if test "${lt_prog_compiler_pic_works+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 lt_prog_compiler_pic_works=no
7154 ac_outfile=conftest.$ac_objext
7155 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7156 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7157 # Insert the option either (1) after the last *FLAGS variable, or
7158 # (2) before a word containing "conftest.", or (3) at the end.
7159 # Note that $ac_compile itself does not contain backslashes and begins
7160 # with a dollar sign (not a hyphen), so the echo should work correctly.
7161 # The option is referenced via a variable to avoid confusing sed.
7162 lt_compile=`echo "$ac_compile" | $SED \
7163 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7165 -e 's:$: $lt_compiler_flag:'`
7166 (eval echo "\"\$as_me:7166: $lt_compile\"" >&5)
7167 (eval "$lt_compile" 2>conftest.err)
7169 cat conftest.err >&5
7170 echo "$as_me:7170: \$? = $ac_status" >&5
7171 if (exit $ac_status) && test -s "$ac_outfile"; then
7172 # The compiler can only warn and ignore the option if not recognized
7173 # So say no if there are warnings
7174 if test ! -s conftest.err; then
7175 lt_prog_compiler_pic_works=yes
7181 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7182 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7184 if test x"$lt_prog_compiler_pic_works" = xyes; then
7185 case $lt_prog_compiler_pic in
7187 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7190 lt_prog_compiler_pic=
7191 lt_prog_compiler_can_build_shared=no
7196 # For platforms which do not support PIC, -DPIC is meaningless:
7198 lt_prog_compiler_pic=
7201 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7205 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7206 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7207 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 lt_cv_prog_compiler_c_o=no
7211 $rm -r conftest 2>/dev/null
7215 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7217 lt_compiler_flag="-o out/conftest2.$ac_objext"
7218 # Insert the option either (1) after the last *FLAGS variable, or
7219 # (2) before a word containing "conftest.", or (3) at the end.
7220 # Note that $ac_compile itself does not contain backslashes and begins
7221 # with a dollar sign (not a hyphen), so the echo should work correctly.
7222 lt_compile=`echo "$ac_compile" | $SED \
7223 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7225 -e 's:$: $lt_compiler_flag:'`
7226 (eval echo "\"\$as_me:7226: $lt_compile\"" >&5)
7227 (eval "$lt_compile" 2>out/conftest.err)
7229 cat out/conftest.err >&5
7230 echo "$as_me:7230: \$? = $ac_status" >&5
7231 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7233 # The compiler can only warn and ignore the option if not recognized
7234 # So say no if there are warnings
7235 if test ! -s out/conftest.err; then
7236 lt_cv_prog_compiler_c_o=yes
7241 # SGI C++ compiler will create directory out/ii_files/ for
7242 # template instantiation
7243 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7244 $rm out/* && rmdir out
7250 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7251 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7254 hard_links="nottested"
7255 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7256 # do not overwrite the value of need_locks provided by the user
7257 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7258 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7261 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7263 ln conftest.a conftest.b 2>&5 || hard_links=no
7264 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7265 echo "$as_me:$LINENO: result: $hard_links" >&5
7266 echo "${ECHO_T}$hard_links" >&6
7267 if test "$hard_links" = no; then
7268 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7269 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7276 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7277 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7280 allow_undefined_flag=
7281 enable_shared_with_static_runtimes=no
7283 archive_expsym_cmds=
7284 old_archive_From_new_cmds=
7285 old_archive_from_expsyms_cmds=
7286 export_dynamic_flag_spec=
7287 whole_archive_flag_spec=
7288 thread_safe_flag_spec=
7289 hardcode_libdir_flag_spec=
7290 hardcode_libdir_flag_spec_ld=
7291 hardcode_libdir_separator=
7294 hardcode_shlibpath_var=unsupported
7295 link_all_deplibs=unknown
7296 hardcode_automatic=no
7299 always_export_symbols=no
7300 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7301 # include_expsyms should be a list of space-separated symbols to be *always*
7302 # included in the symbol list
7304 # exclude_expsyms can be an extended regexp of symbols to exclude
7305 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7306 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7307 # as well as any symbol that contains `d'.
7308 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7309 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7310 # platforms (ab)use it in PIC code, but their linkers get confused if
7311 # the symbol is explicitly referenced. Since portable code cannot
7312 # rely on this symbol name, it's probably fine to never include it in
7313 # preloaded symbol tables.
7314 extract_expsyms_cmds=
7317 cygwin* | mingw* | pw32*)
7318 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7319 # When not using gcc, we currently assume that we are using
7320 # Microsoft Visual C++.
7321 if test "$GCC" != yes; then
7331 if test "$with_gnu_ld" = yes; then
7332 # If archive_cmds runs LD, not CC, wlarc should be empty
7335 # See if GNU ld supports shared libraries.
7337 aix3* | aix4* | aix5*)
7338 # On AIX/PPC, the GNU linker is very broken
7339 if test "$host_cpu" != ia64; then
7343 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7344 *** to be unable to reliably create shared libraries on AIX.
7345 *** Therefore, libtool is disabling shared libraries support. If you
7346 *** really care for shared libraries, you may want to modify your PATH
7347 *** so that a non-GNU linker is found, and then restart.
7354 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)'
7355 hardcode_libdir_flag_spec='-L$libdir'
7356 hardcode_minus_L=yes
7358 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7359 # that the semantics of dynamic libraries on AmigaOS, at least up
7360 # to version 4, is to share data among multiple programs linked
7361 # with the same dynamic library. Since this doesn't match the
7362 # behavior of shared libraries on other platforms, we can't use
7368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7369 allow_undefined_flag=unsupported
7370 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7371 # support --undefined. This deserves some investigation. FIXME
7372 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7378 cygwin* | mingw* | pw32*)
7379 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7380 # as there is no search path for DLLs.
7381 hardcode_libdir_flag_spec='-L$libdir'
7382 allow_undefined_flag=unsupported
7383 always_export_symbols=no
7384 enable_shared_with_static_runtimes=yes
7385 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7387 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7389 # If the export-symbols file already is a .def file (1st line
7390 # is EXPORTS), use it as is; otherwise, prepend...
7391 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7392 cp $export_symbols $output_objdir/$soname.def;
7394 echo EXPORTS > $output_objdir/$soname.def;
7395 cat $export_symbols >> $output_objdir/$soname.def;
7397 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7404 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7405 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7414 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7418 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7419 *** create shared libraries on Solaris systems. Therefore, libtool
7420 *** is disabling shared libraries support. We urge you to upgrade GNU
7421 *** binutils to release 2.9.1 or newer. Another option is to modify
7422 *** your PATH or compiler configuration so that the native linker is
7423 *** used, and then restart.
7426 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7428 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7435 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7438 hardcode_shlibpath_var=no
7442 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7443 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7444 archive_cmds="$tmp_archive_cmds"
7445 supports_anon_versioning=no
7446 case `$LD -v 2>/dev/null` in
7447 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7448 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7449 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7450 *\ 2.11.*) ;; # other 2.11 versions
7451 *) supports_anon_versioning=yes ;;
7453 if test $supports_anon_versioning = yes; then
7454 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7456 $echo "local: *; };" >> $output_objdir/$libname.ver~
7457 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7459 archive_expsym_cmds="$tmp_archive_cmds"
7467 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7476 if test "$ld_shlibs" = yes; then
7477 runpath_var=LD_RUN_PATH
7478 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7479 export_dynamic_flag_spec='${wl}--export-dynamic'
7480 # ancient GNU ld didn't support --whole-archive et. al.
7481 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7482 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7484 whole_archive_flag_spec=
7488 # PORTME fill in a description of your system's linker (not GNU ld)
7491 allow_undefined_flag=unsupported
7492 always_export_symbols=yes
7493 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'
7494 # Note: this linker hardcodes the directories in LIBPATH if there
7495 # are no directories specified by -L.
7496 hardcode_minus_L=yes
7497 if test "$GCC" = yes && test -z "$link_static_flag"; then
7498 # Neither direct hardcoding nor static linking is supported with a
7500 hardcode_direct=unsupported
7505 if test "$host_cpu" = ia64; then
7506 # On IA64, the linker does run time linking by default, so we don't
7507 # have to do anything special.
7508 aix_use_runtimelinking=no
7509 exp_sym_flag='-Bexport'
7512 # If we're using GNU nm, then we don't want the "-C" option.
7513 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7514 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7515 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'
7517 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'
7519 aix_use_runtimelinking=no
7521 # Test if we are trying to use run time linking or normal
7522 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7523 # need to do runtime linking.
7524 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7525 for ld_flag in $LDFLAGS; do
7526 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7527 aix_use_runtimelinking=yes
7533 exp_sym_flag='-bexport'
7534 no_entry_flag='-bnoentry'
7537 # When large executables or shared objects are built, AIX ld can
7538 # have problems creating the table of contents. If linking a library
7539 # or program results in "error TOC overflow" add -mminimal-toc to
7540 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7541 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7545 hardcode_libdir_separator=':'
7546 link_all_deplibs=yes
7548 if test "$GCC" = yes; then
7549 case $host_os in aix4.012|aix4.012.*)
7550 # We only want to do this on AIX 4.2 and lower, the check
7551 # below for broken collect2 doesn't work under 4.3+
7552 collect2name=`${CC} -print-prog-name=collect2`
7553 if test -f "$collect2name" && \
7554 strings "$collect2name" | grep resolve_lib_name >/dev/null
7556 # We have reworked collect2
7559 # We have old collect2
7560 hardcode_direct=unsupported
7561 # It fails to find uninstalled libraries when the uninstalled
7562 # path is not listed in the libpath. Setting hardcode_minus_L
7563 # to unsupported forces relinking
7564 hardcode_minus_L=yes
7565 hardcode_libdir_flag_spec='-L$libdir'
7566 hardcode_libdir_separator=
7569 shared_flag='-shared'
7572 if test "$host_cpu" = ia64; then
7573 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7574 # chokes on -Wl,-G. The following line is correct:
7577 if test "$aix_use_runtimelinking" = yes; then
7578 shared_flag='${wl}-G'
7580 shared_flag='${wl}-bM:SRE'
7585 # It seems that -bexpall does not export symbols beginning with
7586 # underscore (_), so it is better to generate a list of symbols to export.
7587 always_export_symbols=yes
7588 if test "$aix_use_runtimelinking" = yes; then
7589 # Warning - without using the other runtime loading flags (-brtl),
7590 # -berok will link without error, but may produce a broken library.
7591 allow_undefined_flag='-berok'
7592 # Determine the default libpath from the value encoded in an empty executable.
7593 cat >conftest.$ac_ext <<_ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7608 rm -f conftest.$ac_objext conftest$ac_exeext
7609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7610 (eval $ac_link) 2>conftest.er1
7612 grep -v '^ *+' conftest.er1 >conftest.err
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } &&
7617 { ac_try='test -z "$ac_c_werror_flag"
7618 || test ! -s conftest.err'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; } &&
7624 { ac_try='test -s conftest$ac_exeext'
7625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); }; }; then
7631 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7633 # Check for a 64-bit object if we didn't find anything.
7634 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; }
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7641 rm -f conftest.err conftest.$ac_objext \
7642 conftest$ac_exeext conftest.$ac_ext
7643 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7645 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7646 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"
7648 if test "$host_cpu" = ia64; then
7649 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7650 allow_undefined_flag="-z nodefs"
7651 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"
7653 # Determine the default libpath from the value encoded in an empty executable.
7654 cat >conftest.$ac_ext <<_ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7669 rm -f conftest.$ac_objext conftest$ac_exeext
7670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7671 (eval $ac_link) 2>conftest.er1
7673 grep -v '^ *+' conftest.er1 >conftest.err
7675 cat conftest.err >&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } &&
7678 { ac_try='test -z "$ac_c_werror_flag"
7679 || test ! -s conftest.err'
7680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); }; } &&
7685 { ac_try='test -s conftest$ac_exeext'
7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7692 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7694 # Check for a 64-bit object if we didn't find anything.
7695 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; }
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7702 rm -f conftest.err conftest.$ac_objext \
7703 conftest$ac_exeext conftest.$ac_ext
7704 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7706 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7707 # Warning - without using the other run time loading flags,
7708 # -berok will link without error, but may produce a broken library.
7709 no_undefined_flag=' ${wl}-bernotok'
7710 allow_undefined_flag=' ${wl}-berok'
7711 # -bexpall does not export symbols beginning with underscore (_)
7712 always_export_symbols=yes
7713 # Exported symbols can be pulled into shared objects from archives
7714 whole_archive_flag_spec=' '
7715 archive_cmds_need_lc=yes
7716 # This is similar to how AIX traditionally builds it's shared libraries.
7717 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'
7723 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)'
7724 hardcode_libdir_flag_spec='-L$libdir'
7725 hardcode_minus_L=yes
7726 # see comment about different semantics on the GNU ld section
7731 export_dynamic_flag_spec=-rdynamic
7734 cygwin* | mingw* | pw32*)
7735 # When not using gcc, we currently assume that we are using
7736 # Microsoft Visual C++.
7737 # hardcode_libdir_flag_spec is actually meaningless, as there is
7738 # no search path for DLLs.
7739 hardcode_libdir_flag_spec=' '
7740 allow_undefined_flag=unsupported
7741 # Tell ltmain to make .lib files, not .a files.
7743 # Tell ltmain to make .dll files, not .so files.
7745 # FIXME: Setting linknames here is a bad hack.
7746 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7747 # The linker will automatically build a .lib file if we build a DLL.
7748 old_archive_From_new_cmds='true'
7749 # FIXME: Should let the user specify the lib program.
7750 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7751 fix_srcfile_path='`cygpath -w "$srcfile"`'
7752 enable_shared_with_static_runtimes=yes
7755 darwin* | rhapsody*)
7757 rhapsody* | darwin1.[012])
7758 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7761 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7762 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7764 case ${MACOSX_DEPLOYMENT_TARGET} in
7766 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7769 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7775 archive_cmds_need_lc=no
7777 hardcode_automatic=yes
7778 hardcode_shlibpath_var=unsupported
7779 whole_archive_flag_spec=''
7780 link_all_deplibs=yes
7781 if test "$GCC" = yes ; then
7782 output_verbose_link_cmd='echo'
7783 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7784 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7785 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7786 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}'
7787 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}'
7789 case "$cc_basename" in
7791 output_verbose_link_cmd='echo'
7792 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7793 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7794 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7795 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}'
7796 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}'
7806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7807 hardcode_libdir_flag_spec='-L$libdir'
7808 hardcode_shlibpath_var=no
7815 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7816 # support. Future versions do this automatically, but an explicit c++rt0.o
7817 # does not break anything, and helps significantly (at the cost of a little
7820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7821 hardcode_libdir_flag_spec='-R$libdir'
7823 hardcode_shlibpath_var=no
7826 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7828 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7830 hardcode_minus_L=yes
7831 hardcode_shlibpath_var=no
7834 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7835 freebsd* | kfreebsd*-gnu)
7836 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7837 hardcode_libdir_flag_spec='-R$libdir'
7839 hardcode_shlibpath_var=no
7843 if test "$GCC" = yes; then
7844 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'
7846 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'
7848 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7849 hardcode_libdir_separator=:
7852 # hardcode_minus_L: Not really in the search PATH,
7853 # but as the default location of the library.
7854 hardcode_minus_L=yes
7855 export_dynamic_flag_spec='${wl}-E'
7859 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7862 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7865 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7871 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7874 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7878 if test "$with_gnu_ld" = no; then
7881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7882 hardcode_libdir_flag_spec_ld='+b $libdir'
7883 hardcode_libdir_separator=:
7885 hardcode_shlibpath_var=no
7888 hardcode_libdir_flag_spec='-L$libdir'
7890 hardcode_shlibpath_var=no
7892 # hardcode_minus_L: Not really in the search PATH,
7893 # but as the default location of the library.
7894 hardcode_minus_L=yes
7897 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7898 hardcode_libdir_separator=:
7900 export_dynamic_flag_spec='${wl}-E'
7902 # hardcode_minus_L: Not really in the search PATH,
7903 # but as the default location of the library.
7904 hardcode_minus_L=yes
7910 irix5* | irix6* | nonstopux*)
7911 if test "$GCC" = yes; then
7912 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'
7914 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'
7915 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7918 hardcode_libdir_separator=:
7919 link_all_deplibs=yes
7923 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7926 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7928 hardcode_libdir_flag_spec='-R$libdir'
7930 hardcode_shlibpath_var=no
7934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7936 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7937 hardcode_libdir_separator=:
7938 hardcode_shlibpath_var=no
7943 hardcode_shlibpath_var=no
7944 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7945 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7946 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7947 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7948 export_dynamic_flag_spec='${wl}-E'
7951 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7953 hardcode_libdir_flag_spec='-R$libdir'
7956 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7957 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7964 hardcode_libdir_flag_spec='-L$libdir'
7965 hardcode_minus_L=yes
7966 allow_undefined_flag=unsupported
7967 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'
7968 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7972 if test "$GCC" = yes; then
7973 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7974 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'
7976 allow_undefined_flag=' -expect_unresolved \*'
7977 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'
7979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7980 hardcode_libdir_separator=:
7983 osf4* | osf5*) # as osf3* with the addition of -msym flag
7984 if test "$GCC" = yes; then
7985 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7986 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'
7987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7989 allow_undefined_flag=' -expect_unresolved \*'
7990 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'
7991 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7992 $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'
7994 # Both c and cxx compiler support -rpath directly
7995 hardcode_libdir_flag_spec='-rpath $libdir'
7997 hardcode_libdir_separator=:
8001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8002 hardcode_shlibpath_var=no
8003 export_dynamic_flag_spec='${wl}-Bexport'
8004 runpath_var=LD_RUN_PATH
8005 hardcode_runpath_var=yes
8009 no_undefined_flag=' -z text'
8010 if test "$GCC" = yes; then
8011 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8012 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8013 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8015 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8016 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8017 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8019 hardcode_libdir_flag_spec='-R$libdir'
8020 hardcode_shlibpath_var=no
8022 solaris2.[0-5] | solaris2.[0-5].*) ;;
8023 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8024 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8026 link_all_deplibs=yes
8030 if test "x$host_vendor" = xsequent; then
8031 # Use $CC to link under sequent, because it throws in some extra .o
8032 # files that make .init and .fini sections work.
8033 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8035 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8037 hardcode_libdir_flag_spec='-L$libdir'
8039 hardcode_minus_L=yes
8040 hardcode_shlibpath_var=no
8044 case $host_vendor in
8046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8047 hardcode_direct=yes # is this really true???
8050 ## LD is ld it makes a PLAMLIB
8051 ## CC just makes a GrossModule.
8052 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8053 reload_cmds='$CC -r -o $output$reload_objs'
8057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8058 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8061 runpath_var='LD_RUN_PATH'
8062 hardcode_shlibpath_var=no
8066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8067 hardcode_shlibpath_var=no
8068 export_dynamic_flag_spec='-Bexport'
8072 if test -d /usr/nec; then
8073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8074 hardcode_shlibpath_var=no
8075 runpath_var=LD_RUN_PATH
8076 hardcode_runpath_var=yes
8082 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8085 hardcode_shlibpath_var=no
8086 hardcode_runpath_var=yes
8087 runpath_var=LD_RUN_PATH
8090 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8091 no_undefined_flag='${wl}-z ${wl}text'
8092 if test "$GCC" = yes; then
8093 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8095 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8097 runpath_var='LD_RUN_PATH'
8098 hardcode_shlibpath_var=no
8102 no_undefined_flag=' -z text'
8103 # $CC -shared without GNU ld will not create a library from C++
8104 # object files and a static libstdc++, better avoid it by now
8105 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8106 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8107 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8108 hardcode_libdir_flag_spec=
8109 hardcode_shlibpath_var=no
8110 runpath_var='LD_RUN_PATH'
8114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8115 hardcode_libdir_flag_spec='-L$libdir'
8116 hardcode_shlibpath_var=no
8125 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8126 echo "${ECHO_T}$ld_shlibs" >&6
8127 test "$ld_shlibs" = no && can_build_shared=no
8129 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8130 if test "$GCC" = yes; then
8131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8135 # Do we need to explicitly link libc?
8137 case "x$archive_cmds_need_lc" in
8139 # Assume -lc should be added
8140 archive_cmds_need_lc=yes
8142 if test "$enable_shared" = yes && test "$GCC" = yes; then
8143 case $archive_cmds in
8145 # FIXME: we may have to deal with multi-command sequences.
8148 # Test whether the compiler implicitly links with -lc since on some
8149 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8150 # to ld, don't add -lc before -lgcc.
8151 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8152 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8157 (eval $ac_compile) 2>&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } 2>conftest.err; then
8163 libobjs=conftest.$ac_objext
8165 wl=$lt_prog_compiler_wl
8171 lt_save_allow_undefined_flag=$allow_undefined_flag
8172 allow_undefined_flag=
8173 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8174 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }
8179 archive_cmds_need_lc=no
8181 archive_cmds_need_lc=yes
8183 allow_undefined_flag=$lt_save_allow_undefined_flag
8185 cat conftest.err 1>&5
8188 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8189 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8196 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8197 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8199 libname_spec='lib$name'
8207 shlibpath_overrides_runpath=unknown
8209 dynamic_linker="$host_os ld.so"
8210 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8211 if test "$GCC" = yes; then
8212 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8213 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8214 # if the path contains ";" then we assume it to be the separator
8215 # otherwise default to the standard path separator (i.e. ":") - it is
8216 # assumed that no part of a normal pathname contains ";" but that should
8217 # okay in the real world where ";" in dirpaths is itself problematic.
8218 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8223 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8225 need_lib_prefix=unknown
8226 hardcode_into_libs=no
8228 # when you set need_version to no, make sure it does not cause -set_version
8229 # flags to be left without arguments
8230 need_version=unknown
8235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8236 shlibpath_var=LIBPATH
8238 # AIX 3 has no versioning support, so we append a major version to the name.
8239 soname_spec='${libname}${release}${shared_ext}$major'
8246 hardcode_into_libs=yes
8247 if test "$host_cpu" = ia64; then
8248 # AIX 5 supports IA64
8249 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8250 shlibpath_var=LD_LIBRARY_PATH
8252 # With GCC up to 2.95.x, collect2 would create an import file
8253 # for dependence libraries. The import file would start with
8254 # the line `#! .'. This would cause the generated library to
8255 # depend on `.', always an invalid library. This was fixed in
8256 # development snapshots of GCC prior to 3.0.
8258 aix4 | aix4.[01] | aix4.[01].*)
8259 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8261 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8268 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8269 # soname into executable. Probably we can add versioning support to
8270 # collect2, so additional links can be useful in future.
8271 if test "$aix_use_runtimelinking" = yes; then
8272 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8273 # instead of lib<name>.a to let people know that these are not
8274 # typical AIX shared libraries.
8275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8277 # We preserve .a as extension for shared libraries through AIX4.2
8278 # and later when we are not doing run time linking.
8279 library_names_spec='${libname}${release}.a $libname.a'
8280 soname_spec='${libname}${release}${shared_ext}$major'
8282 shlibpath_var=LIBPATH
8287 library_names_spec='$libname.ixlibrary $libname.a'
8288 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8289 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'
8293 library_names_spec='${libname}${shared_ext}'
8294 dynamic_linker="$host_os ld.so"
8295 shlibpath_var=LIBRARY_PATH
8301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8302 soname_spec='${libname}${release}${shared_ext}$major'
8303 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8304 shlibpath_var=LD_LIBRARY_PATH
8305 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8306 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8307 # the default ld.so.conf also contains /usr/contrib/lib and
8308 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8309 # libtool to hard-code these into programs
8312 cygwin* | mingw* | pw32*)
8313 version_type=windows
8318 case $GCC,$host_os in
8319 yes,cygwin* | yes,mingw* | yes,pw32*)
8320 library_names_spec='$libname.dll.a'
8321 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8322 postinstall_cmds='base_file=`basename \${file}`~
8323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8324 dldir=$destdir/`dirname \$dlpath`~
8325 test -d \$dldir || mkdir -p \$dldir~
8326 $install_prog $dir/$dlname \$dldir/$dlname'
8327 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8328 dlpath=$dir/\$dldll~
8330 shlibpath_overrides_runpath=yes
8334 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8335 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8336 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8339 # MinGW DLLs use traditional 'lib' prefix
8340 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8341 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8342 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8343 # It is most probably a Windows format PATH printed by
8344 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8345 # path with ; separators, and with drive letters. We can handle the
8346 # drive letters (cygwin fileutils understands them), so leave them,
8347 # especially as we might pass files found there to a mingw objdump,
8348 # which wouldn't understand a cygwinified path. Ahh.
8349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8355 # pw32 DLLs use 'pw' prefix rather than 'lib'
8356 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8362 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8365 dynamic_linker='Win32 ld.exe'
8366 # FIXME: first we should search . and the directory the executable is in
8370 darwin* | rhapsody*)
8371 dynamic_linker="$host_os dyld"
8375 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8376 soname_spec='${libname}${release}${major}$shared_ext'
8377 shlibpath_overrides_runpath=yes
8378 shlibpath_var=DYLD_LIBRARY_PATH
8379 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8380 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8381 if test "$GCC" = yes; then
8382 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"`
8384 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8386 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8394 soname_spec='${libname}${release}${shared_ext}$major'
8395 shlibpath_var=LD_LIBRARY_PATH
8406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8407 soname_spec='${libname}${release}${shared_ext}$major'
8408 shlibpath_var=LD_LIBRARY_PATH
8409 shlibpath_overrides_runpath=no
8410 hardcode_into_libs=yes
8411 dynamic_linker='GNU ld.so'
8415 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8416 version_type=freebsd-$objformat
8417 case $version_type in
8419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8428 shlibpath_var=LD_LIBRARY_PATH
8431 shlibpath_overrides_runpath=yes
8433 freebsd3.01* | freebsdelf3.01*)
8434 shlibpath_overrides_runpath=yes
8435 hardcode_into_libs=yes
8438 shlibpath_overrides_runpath=no
8439 hardcode_into_libs=yes
8448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8449 soname_spec='${libname}${release}${shared_ext}$major'
8450 shlibpath_var=LD_LIBRARY_PATH
8451 hardcode_into_libs=yes
8454 hpux9* | hpux10* | hpux11*)
8455 # Give a soname corresponding to the major version so that dld.sl refuses to
8456 # link against other versions.
8463 hardcode_into_libs=yes
8464 dynamic_linker="$host_os dld.so"
8465 shlibpath_var=LD_LIBRARY_PATH
8466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8468 soname_spec='${libname}${release}${shared_ext}$major'
8469 if test "X$HPUX_IA64_MODE" = X32; then
8470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8472 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8478 hardcode_into_libs=yes
8479 dynamic_linker="$host_os dld.sl"
8480 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8483 soname_spec='${libname}${release}${shared_ext}$major'
8484 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8489 dynamic_linker="$host_os dld.sl"
8490 shlibpath_var=SHLIB_PATH
8491 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8493 soname_spec='${libname}${release}${shared_ext}$major'
8496 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8497 postinstall_cmds='chmod 555 $lib'
8500 irix5* | irix6* | nonstopux*)
8502 nonstopux*) version_type=nonstopux ;;
8504 if test "$lt_cv_prog_gnu_ld" = yes; then
8512 soname_spec='${libname}${release}${shared_ext}$major'
8513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8515 irix5* | nonstopux*)
8519 case $LD in # libtool.m4 will add one of these switches to LD
8520 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8521 libsuff= shlibsuff= libmagic=32-bit;;
8522 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8523 libsuff=32 shlibsuff=N32 libmagic=N32;;
8524 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8525 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8526 *) libsuff= shlibsuff= libmagic=never-match;;
8530 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8531 shlibpath_overrides_runpath=no
8532 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8533 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8534 hardcode_into_libs=yes
8537 # No shared lib support for Linux oldld, aout, or coff.
8538 linux*oldld* | linux*aout* | linux*coff*)
8542 # This must be Linux ELF.
8547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8548 soname_spec='${libname}${release}${shared_ext}$major'
8549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8550 shlibpath_var=LD_LIBRARY_PATH
8551 shlibpath_overrides_runpath=no
8552 # This implies no fast_install, which is unacceptable.
8553 # Some rework will be needed to allow for fast_install
8554 # before this can be enabled.
8555 hardcode_into_libs=yes
8557 # Append ld.so.conf contents to the search path
8558 if test -f /etc/ld.so.conf; then
8559 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8560 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8563 # We used to test for /lib/ld.so.1 and disable shared libraries on
8564 # powerpc, because MkLinux only supported shared libraries with the
8565 # GNU dynamic linker. Since this was broken with cross compilers,
8566 # most powerpc-linux boxes support dynamic linking these days and
8567 # people can always --disable-shared, the test was removed, and we
8568 # assume the GNU/Linux dynamic linker is in use.
8569 dynamic_linker='GNU/Linux ld.so'
8576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8577 soname_spec='${libname}${release}${shared_ext}$major'
8578 shlibpath_var=LD_LIBRARY_PATH
8579 shlibpath_overrides_runpath=no
8580 hardcode_into_libs=yes
8581 dynamic_linker='GNU ld.so'
8588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8591 dynamic_linker='NetBSD (a.out) ld.so'
8593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8594 soname_spec='${libname}${release}${shared_ext}$major'
8595 dynamic_linker='NetBSD ld.elf_so'
8597 shlibpath_var=LD_LIBRARY_PATH
8598 shlibpath_overrides_runpath=yes
8599 hardcode_into_libs=yes
8604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8605 shlibpath_var=LD_LIBRARY_PATH
8606 shlibpath_overrides_runpath=yes
8613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8614 soname_spec='${libname}${release}${shared_ext}$major'
8615 shlibpath_var=LD_LIBRARY_PATH
8616 shlibpath_overrides_runpath=yes
8623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8625 shlibpath_var=LD_LIBRARY_PATH
8626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8628 openbsd2.[89] | openbsd2.[89].*)
8629 shlibpath_overrides_runpath=no
8632 shlibpath_overrides_runpath=yes
8636 shlibpath_overrides_runpath=yes
8641 libname_spec='$name'
8644 library_names_spec='$libname${shared_ext} $libname.a'
8645 dynamic_linker='OS/2 ld.exe'
8646 shlibpath_var=LIBPATH
8649 osf3* | osf4* | osf5*)
8653 soname_spec='${libname}${release}${shared_ext}$major'
8654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8655 shlibpath_var=LD_LIBRARY_PATH
8656 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8657 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8662 soname_spec='${libname}${release}${shared_ext}$major'
8663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8664 shlibpath_var=LD_LIBRARY_PATH
8671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8672 soname_spec='${libname}${release}${shared_ext}$major'
8673 shlibpath_var=LD_LIBRARY_PATH
8674 shlibpath_overrides_runpath=yes
8675 hardcode_into_libs=yes
8676 # ldd complains unless libraries are executable
8677 postinstall_cmds='chmod +x $lib'
8682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8683 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8684 shlibpath_var=LD_LIBRARY_PATH
8685 shlibpath_overrides_runpath=yes
8686 if test "$with_gnu_ld" = yes; then
8692 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8695 soname_spec='${libname}${release}${shared_ext}$major'
8696 shlibpath_var=LD_LIBRARY_PATH
8697 case $host_vendor in
8699 shlibpath_overrides_runpath=no
8701 export_dynamic_flag_spec='${wl}-Blargedynsym'
8702 runpath_var=LD_RUN_PATH
8710 shlibpath_overrides_runpath=no
8711 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8717 if test -d /usr/nec ;then
8719 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8720 soname_spec='$libname${shared_ext}.$major'
8721 shlibpath_var=LD_LIBRARY_PATH
8727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8728 soname_spec='${libname}${release}${shared_ext}$major'
8729 shlibpath_var=LD_LIBRARY_PATH
8736 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8737 echo "${ECHO_T}$dynamic_linker" >&6
8738 test "$dynamic_linker" = no && can_build_shared=no
8740 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8741 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8743 if test -n "$hardcode_libdir_flag_spec" || \
8744 test -n "$runpath_var" || \
8745 test "X$hardcode_automatic" = "Xyes" ; then
8747 # We can hardcode non-existant directories.
8748 if test "$hardcode_direct" != no &&
8749 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8750 # have to relink, otherwise we might link with an installed library
8751 # when we should be linking with a yet-to-be-installed one
8752 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8753 test "$hardcode_minus_L" != no; then
8754 # Linking always hardcodes the temporary library directory.
8755 hardcode_action=relink
8757 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8758 hardcode_action=immediate
8761 # We cannot hardcode anything, or else we can only hardcode existing
8763 hardcode_action=unsupported
8765 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8766 echo "${ECHO_T}$hardcode_action" >&6
8768 if test "$hardcode_action" = relink; then
8769 # Fast installation is not supported
8770 enable_fast_install=no
8771 elif test "$shlibpath_overrides_runpath" = yes ||
8772 test "$enable_shared" = no; then
8773 # Fast installation is not necessary
8774 enable_fast_install=needless
8779 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8780 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8781 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8782 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8783 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8784 echo "$as_me:$LINENO: result: yes" >&5
8785 echo "${ECHO_T}yes" >&6
8787 # FIXME - insert some real tests, host_os isn't really good enough
8790 if test -n "$STRIP" ; then
8791 striplib="$STRIP -x"
8792 echo "$as_me:$LINENO: result: yes" >&5
8793 echo "${ECHO_T}yes" >&6
8795 echo "$as_me:$LINENO: result: no" >&5
8796 echo "${ECHO_T}no" >&6
8800 echo "$as_me:$LINENO: result: no" >&5
8801 echo "${ECHO_T}no" >&6
8806 if test "x$enable_dlopen" != xyes; then
8807 enable_dlopen=unknown
8808 enable_dlopen_self=unknown
8809 enable_dlopen_self_static=unknown
8816 lt_cv_dlopen="load_add_on"
8818 lt_cv_dlopen_self=yes
8822 lt_cv_dlopen="LoadLibrary"
8827 lt_cv_dlopen="dlopen"
8832 # if libdl is installed we need to link against it
8833 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8834 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8835 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8838 ac_check_lib_save_LIBS=$LIBS
8840 cat >conftest.$ac_ext <<_ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8847 /* Override any gcc2 internal prototype to avoid an error. */
8851 /* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */
8862 rm -f conftest.$ac_objext conftest$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864 (eval $ac_link) 2>conftest.er1
8866 grep -v '^ *+' conftest.er1 >conftest.err
8868 cat conftest.err >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } &&
8871 { ac_try='test -z "$ac_c_werror_flag"
8872 || test ! -s conftest.err'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; } &&
8878 { ac_try='test -s conftest$ac_exeext'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; }; then
8884 ac_cv_lib_dl_dlopen=yes
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8889 ac_cv_lib_dl_dlopen=no
8891 rm -f conftest.err conftest.$ac_objext \
8892 conftest$ac_exeext conftest.$ac_ext
8893 LIBS=$ac_check_lib_save_LIBS
8895 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8896 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8897 if test $ac_cv_lib_dl_dlopen = yes; then
8898 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8903 lt_cv_dlopen_self=yes
8910 echo "$as_me:$LINENO: checking for shl_load" >&5
8911 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8912 if test "${ac_cv_func_shl_load+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 cat >conftest.$ac_ext <<_ACEOF
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h. */
8921 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8923 #define shl_load innocuous_shl_load
8925 /* System header to define __stub macros and hopefully few prototypes,
8926 which can conflict with char shl_load (); below.
8927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8928 <limits.h> exists even on freestanding compilers. */
8931 # include <limits.h>
8933 # include <assert.h>
8938 /* Override any gcc2 internal prototype to avoid an error. */
8943 /* We use char because int might match the return type of a gcc2
8944 builtin and then its argument prototype would still apply. */
8946 /* The GNU C library defines this for functions which it implements
8947 to always fail with ENOSYS. Some functions are actually named
8948 something starting with __ and the normal name is an alias. */
8949 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8952 char (*f) () = shl_load;
8961 return f != shl_load;
8966 rm -f conftest.$ac_objext conftest$ac_exeext
8967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968 (eval $ac_link) 2>conftest.er1
8970 grep -v '^ *+' conftest.er1 >conftest.err
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } &&
8975 { ac_try='test -z "$ac_c_werror_flag"
8976 || test ! -s conftest.err'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest$ac_exeext'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; }; then
8988 ac_cv_func_shl_load=yes
8990 echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8993 ac_cv_func_shl_load=no
8995 rm -f conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8998 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8999 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9000 if test $ac_cv_func_shl_load = yes; then
9001 lt_cv_dlopen="shl_load"
9003 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9004 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9005 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9008 ac_check_lib_save_LIBS=$LIBS
9010 cat >conftest.$ac_ext <<_ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h. */
9017 /* Override any gcc2 internal prototype to avoid an error. */
9021 /* We use char because int might match the return type of a gcc2
9022 builtin and then its argument prototype would still apply. */
9032 rm -f conftest.$ac_objext conftest$ac_exeext
9033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9034 (eval $ac_link) 2>conftest.er1
9036 grep -v '^ *+' conftest.er1 >conftest.err
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try='test -z "$ac_c_werror_flag"
9042 || test ! -s conftest.err'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; } &&
9048 { ac_try='test -s conftest$ac_exeext'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
9054 ac_cv_lib_dld_shl_load=yes
9056 echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9059 ac_cv_lib_dld_shl_load=no
9061 rm -f conftest.err conftest.$ac_objext \
9062 conftest$ac_exeext conftest.$ac_ext
9063 LIBS=$ac_check_lib_save_LIBS
9065 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9066 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9067 if test $ac_cv_lib_dld_shl_load = yes; then
9068 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9070 echo "$as_me:$LINENO: checking for dlopen" >&5
9071 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9072 if test "${ac_cv_func_dlopen+set}" = set; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9075 cat >conftest.$ac_ext <<_ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9081 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9083 #define dlopen innocuous_dlopen
9085 /* System header to define __stub macros and hopefully few prototypes,
9086 which can conflict with char dlopen (); below.
9087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9088 <limits.h> exists even on freestanding compilers. */
9091 # include <limits.h>
9093 # include <assert.h>
9098 /* Override any gcc2 internal prototype to avoid an error. */
9103 /* We use char because int might match the return type of a gcc2
9104 builtin and then its argument prototype would still apply. */
9106 /* The GNU C library defines this for functions which it implements
9107 to always fail with ENOSYS. Some functions are actually named
9108 something starting with __ and the normal name is an alias. */
9109 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9112 char (*f) () = dlopen;
9126 rm -f conftest.$ac_objext conftest$ac_exeext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128 (eval $ac_link) 2>conftest.er1
9130 grep -v '^ *+' conftest.er1 >conftest.err
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } &&
9135 { ac_try='test -z "$ac_c_werror_flag"
9136 || test ! -s conftest.err'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; } &&
9142 { ac_try='test -s conftest$ac_exeext'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; }; then
9148 ac_cv_func_dlopen=yes
9150 echo "$as_me: failed program was:" >&5
9151 sed 's/^/| /' conftest.$ac_ext >&5
9153 ac_cv_func_dlopen=no
9155 rm -f conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
9158 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9159 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9160 if test $ac_cv_func_dlopen = yes; then
9161 lt_cv_dlopen="dlopen"
9163 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9164 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9165 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9168 ac_check_lib_save_LIBS=$LIBS
9170 cat >conftest.$ac_ext <<_ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9177 /* Override any gcc2 internal prototype to avoid an error. */
9181 /* We use char because int might match the return type of a gcc2
9182 builtin and then its argument prototype would still apply. */
9192 rm -f conftest.$ac_objext conftest$ac_exeext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9194 (eval $ac_link) 2>conftest.er1
9196 grep -v '^ *+' conftest.er1 >conftest.err
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
9201 { ac_try='test -z "$ac_c_werror_flag"
9202 || test ! -s conftest.err'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try='test -s conftest$ac_exeext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_cv_lib_dl_dlopen=yes
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9219 ac_cv_lib_dl_dlopen=no
9221 rm -f conftest.err conftest.$ac_objext \
9222 conftest$ac_exeext conftest.$ac_ext
9223 LIBS=$ac_check_lib_save_LIBS
9225 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9226 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9227 if test $ac_cv_lib_dl_dlopen = yes; then
9228 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9230 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9231 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9232 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 ac_check_lib_save_LIBS=$LIBS
9237 cat >conftest.$ac_ext <<_ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9244 /* Override any gcc2 internal prototype to avoid an error. */
9248 /* We use char because int might match the return type of a gcc2
9249 builtin and then its argument prototype would still apply. */
9259 rm -f conftest.$ac_objext conftest$ac_exeext
9260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9261 (eval $ac_link) 2>conftest.er1
9263 grep -v '^ *+' conftest.er1 >conftest.err
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } &&
9268 { ac_try='test -z "$ac_c_werror_flag"
9269 || test ! -s conftest.err'
9270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); }; } &&
9275 { ac_try='test -s conftest$ac_exeext'
9276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); }; }; then
9281 ac_cv_lib_svld_dlopen=yes
9283 echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9286 ac_cv_lib_svld_dlopen=no
9288 rm -f conftest.err conftest.$ac_objext \
9289 conftest$ac_exeext conftest.$ac_ext
9290 LIBS=$ac_check_lib_save_LIBS
9292 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9293 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9294 if test $ac_cv_lib_svld_dlopen = yes; then
9295 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9297 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9298 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9299 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 ac_check_lib_save_LIBS=$LIBS
9304 cat >conftest.$ac_ext <<_ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9311 /* Override any gcc2 internal prototype to avoid an error. */
9315 /* We use char because int might match the return type of a gcc2
9316 builtin and then its argument prototype would still apply. */
9326 rm -f conftest.$ac_objext conftest$ac_exeext
9327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9328 (eval $ac_link) 2>conftest.er1
9330 grep -v '^ *+' conftest.er1 >conftest.err
9332 cat conftest.err >&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } &&
9335 { ac_try='test -z "$ac_c_werror_flag"
9336 || test ! -s conftest.err'
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; } &&
9342 { ac_try='test -s conftest$ac_exeext'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; }; then
9348 ac_cv_lib_dld_dld_link=yes
9350 echo "$as_me: failed program was:" >&5
9351 sed 's/^/| /' conftest.$ac_ext >&5
9353 ac_cv_lib_dld_dld_link=no
9355 rm -f conftest.err conftest.$ac_objext \
9356 conftest$ac_exeext conftest.$ac_ext
9357 LIBS=$ac_check_lib_save_LIBS
9359 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9360 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9361 if test $ac_cv_lib_dld_dld_link = yes; then
9362 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9383 if test "x$lt_cv_dlopen" != xno; then
9389 case $lt_cv_dlopen in
9391 save_CPPFLAGS="$CPPFLAGS"
9392 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9394 save_LDFLAGS="$LDFLAGS"
9395 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9398 LIBS="$lt_cv_dlopen_libs $LIBS"
9400 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9401 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9402 if test "${lt_cv_dlopen_self+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9405 if test "$cross_compiling" = yes; then :
9406 lt_cv_dlopen_self=cross
9408 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9409 lt_status=$lt_dlunknown
9410 cat > conftest.$ac_ext <<EOF
9411 #line 9411 "configure"
9412 #include "confdefs.h"
9421 # define LT_DLGLOBAL RTLD_GLOBAL
9424 # define LT_DLGLOBAL DL_GLOBAL
9426 # define LT_DLGLOBAL 0
9430 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9431 find out it does not work in some platform. */
9432 #ifndef LT_DLLAZY_OR_NOW
9434 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9437 # define LT_DLLAZY_OR_NOW DL_LAZY
9440 # define LT_DLLAZY_OR_NOW RTLD_NOW
9443 # define LT_DLLAZY_OR_NOW DL_NOW
9445 # define LT_DLLAZY_OR_NOW 0
9453 extern "C" void exit (int);
9456 void fnord() { int i=42;}
9459 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9460 int status = $lt_dlunknown;
9464 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9465 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9466 /* dlclose (self); */
9472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9473 (eval $ac_link) 2>&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9477 (./conftest; exit; ) 2>/dev/null
9480 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9481 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9482 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9485 # compilation failed
9486 lt_cv_dlopen_self=no
9493 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9494 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9496 if test "x$lt_cv_dlopen_self" = xyes; then
9497 LDFLAGS="$LDFLAGS $link_static_flag"
9498 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9499 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9500 if test "${lt_cv_dlopen_self_static+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 if test "$cross_compiling" = yes; then :
9504 lt_cv_dlopen_self_static=cross
9506 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9507 lt_status=$lt_dlunknown
9508 cat > conftest.$ac_ext <<EOF
9509 #line 9509 "configure"
9510 #include "confdefs.h"
9519 # define LT_DLGLOBAL RTLD_GLOBAL
9522 # define LT_DLGLOBAL DL_GLOBAL
9524 # define LT_DLGLOBAL 0
9528 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9529 find out it does not work in some platform. */
9530 #ifndef LT_DLLAZY_OR_NOW
9532 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9535 # define LT_DLLAZY_OR_NOW DL_LAZY
9538 # define LT_DLLAZY_OR_NOW RTLD_NOW
9541 # define LT_DLLAZY_OR_NOW DL_NOW
9543 # define LT_DLLAZY_OR_NOW 0
9551 extern "C" void exit (int);
9554 void fnord() { int i=42;}
9557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9558 int status = $lt_dlunknown;
9562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9563 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9564 /* dlclose (self); */
9570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9571 (eval $ac_link) 2>&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9575 (./conftest; exit; ) 2>/dev/null
9578 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9579 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9580 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9583 # compilation failed
9584 lt_cv_dlopen_self_static=no
9591 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9592 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9595 CPPFLAGS="$save_CPPFLAGS"
9596 LDFLAGS="$save_LDFLAGS"
9601 case $lt_cv_dlopen_self in
9602 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9603 *) enable_dlopen_self=unknown ;;
9606 case $lt_cv_dlopen_self_static in
9607 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9608 *) enable_dlopen_self_static=unknown ;;
9613 # Report which librarie types wil actually be built
9614 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9615 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9616 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9617 echo "${ECHO_T}$can_build_shared" >&6
9619 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9620 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9621 test "$can_build_shared" = "no" && enable_shared=no
9623 # On AIX, shared libraries and static libraries use the same namespace, and
9624 # are all built from PIC.
9627 test "$enable_shared" = yes && enable_static=no
9628 if test -n "$RANLIB"; then
9629 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9630 postinstall_cmds='$RANLIB $lib'
9635 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9636 test "$enable_shared" = yes && enable_static=no
9640 echo "$as_me:$LINENO: result: $enable_shared" >&5
9641 echo "${ECHO_T}$enable_shared" >&6
9643 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9644 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9645 # Make sure either enable_shared or enable_static is yes.
9646 test "$enable_shared" = yes || enable_static=yes
9647 echo "$as_me:$LINENO: result: $enable_static" >&5
9648 echo "${ECHO_T}$enable_static" >&6
9650 # The else clause should only fire when bootstrapping the
9651 # libtool distribution, otherwise you forgot to ship ltmain.sh
9652 # with your package, and you will get complaints that there are
9653 # no rules to generate ltmain.sh.
9654 if test -f "$ltmain"; then
9655 # See if we are running on zsh, and set the options which allow our commands through
9656 # without removal of \ escapes.
9657 if test -n "${ZSH_VERSION+set}" ; then
9658 setopt NO_GLOB_SUBST
9660 # Now quote all the things that may contain metacharacters while being
9661 # careful not to overquote the AC_SUBSTed values. We take copies of the
9662 # variables and quote the copies for generation of the libtool script.
9663 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9665 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9666 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9667 deplibs_check_method reload_flag reload_cmds need_locks \
9668 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9669 lt_cv_sys_global_symbol_to_c_name_address \
9670 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9671 old_postinstall_cmds old_postuninstall_cmds \
9675 lt_prog_compiler_wl \
9676 lt_prog_compiler_pic \
9677 lt_prog_compiler_static \
9678 lt_prog_compiler_no_builtin_flag \
9679 export_dynamic_flag_spec \
9680 thread_safe_flag_spec \
9681 whole_archive_flag_spec \
9682 enable_shared_with_static_runtimes \
9684 old_archive_from_new_cmds \
9689 compiler_lib_search_path \
9691 archive_expsym_cmds \
9693 postuninstall_cmds \
9694 old_archive_from_expsyms_cmds \
9695 allow_undefined_flag \
9697 export_symbols_cmds \
9698 hardcode_libdir_flag_spec \
9699 hardcode_libdir_flag_spec_ld \
9700 hardcode_libdir_separator \
9701 hardcode_automatic \
9703 module_expsym_cmds \
9704 lt_cv_prog_compiler_c_o \
9709 old_archive_cmds | \
9710 old_archive_from_new_cmds | \
9712 archive_expsym_cmds | \
9714 module_expsym_cmds | \
9715 old_archive_from_expsyms_cmds | \
9716 export_symbols_cmds | \
9717 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9718 postinstall_cmds | postuninstall_cmds | \
9719 old_postinstall_cmds | old_postuninstall_cmds | \
9720 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9721 # Double-quote double-evaled strings.
9722 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9725 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9731 *'\$0 --fallback-echo"')
9732 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9737 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9739 { echo "$as_me:$LINENO: creating $ofile" >&5
9740 echo "$as_me: creating $ofile" >&6;}
9742 cat <<__EOF__ >> "$cfgfile"
9745 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9746 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9747 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9749 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9750 # Free Software Foundation, Inc.
9752 # This file is part of GNU Libtool:
9753 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9755 # This program is free software; you can redistribute it and/or modify
9756 # it under the terms of the GNU General Public License as published by
9757 # the Free Software Foundation; either version 2 of the License, or
9758 # (at your option) any later version.
9760 # This program is distributed in the hope that it will be useful, but
9761 # WITHOUT ANY WARRANTY; without even the implied warranty of
9762 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9763 # General Public License for more details.
9765 # You should have received a copy of the GNU General Public License
9766 # along with this program; if not, write to the Free Software
9767 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9769 # As a special exception to the GNU General Public License, if you
9770 # distribute this file as part of a program that contains a
9771 # configuration script generated by Autoconf, you may include it under
9772 # the same distribution terms that you use for the rest of that program.
9774 # A sed program that does not truncate output.
9777 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9778 Xsed="$SED -e s/^X//"
9780 # The HP-UX ksh and POSIX shell print the target directory to stdout
9782 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9784 # The names of the tagged configurations supported by this script.
9787 # ### BEGIN LIBTOOL CONFIG
9789 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9791 # Shell to use when invoking shell scripts.
9794 # Whether or not to build shared libraries.
9795 build_libtool_libs=$enable_shared
9797 # Whether or not to build static libraries.
9798 build_old_libs=$enable_static
9800 # Whether or not to add -lc for building shared libraries.
9801 build_libtool_need_lc=$archive_cmds_need_lc
9803 # Whether or not to disallow shared libs when runtime libs are static
9804 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9806 # Whether or not to optimize for fast installation.
9807 fast_install=$enable_fast_install
9810 host_alias=$host_alias
9813 # An echo program that does not interpret backslashes.
9818 AR_FLAGS=$lt_AR_FLAGS
9823 # A language-specific compiler.
9826 # Is the compiler the GNU C compiler?
9832 # The linker used to build libraries.
9835 # Whether we need hard or soft links.
9838 # A BSD-compatible nm program.
9841 # A symbol stripping program
9844 # Used to examine libraries when file_magic_cmd begins "file"
9845 MAGIC_CMD=$MAGIC_CMD
9847 # Used on cygwin: DLL creation program.
9850 # Used on cygwin: object dumper.
9853 # Used on cygwin: assembler.
9856 # The name of the directory that contains temporary libtool files.
9859 # How to create reloadable object files.
9860 reload_flag=$lt_reload_flag
9861 reload_cmds=$lt_reload_cmds
9863 # How to pass a linker flag through the compiler.
9864 wl=$lt_lt_prog_compiler_wl
9866 # Object file suffix (normally "o").
9869 # Old archive suffix (normally "a").
9872 # Shared library suffix (normally ".so").
9873 shrext_cmds='$shrext_cmds'
9875 # Executable file suffix (normally "").
9878 # Additional compiler flags for building library objects.
9879 pic_flag=$lt_lt_prog_compiler_pic
9882 # What is the maximum length of a command?
9883 max_cmd_len=$lt_cv_sys_max_cmd_len
9885 # Does compiler simultaneously support -c and -o options?
9886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9888 # Must we lock files when doing compilation ?
9889 need_locks=$lt_need_locks
9891 # Do we need the lib prefix for modules?
9892 need_lib_prefix=$need_lib_prefix
9894 # Do we need a version for libraries?
9895 need_version=$need_version
9897 # Whether dlopen is supported.
9898 dlopen_support=$enable_dlopen
9900 # Whether dlopen of programs is supported.
9901 dlopen_self=$enable_dlopen_self
9903 # Whether dlopen of statically linked programs is supported.
9904 dlopen_self_static=$enable_dlopen_self_static
9906 # Compiler flag to prevent dynamic linking.
9907 link_static_flag=$lt_lt_prog_compiler_static
9909 # Compiler flag to turn off builtin functions.
9910 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9912 # Compiler flag to allow reflexive dlopens.
9913 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9915 # Compiler flag to generate shared objects directly from archives.
9916 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9918 # Compiler flag to generate thread-safe objects.
9919 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9921 # Library versioning type.
9922 version_type=$version_type
9924 # Format of library name prefix.
9925 libname_spec=$lt_libname_spec
9927 # List of archive names. First name is the real one, the rest are links.
9928 # The last name is the one that the linker finds with -lNAME.
9929 library_names_spec=$lt_library_names_spec
9931 # The coded name of the library, if different from the real name.
9932 soname_spec=$lt_soname_spec
9934 # Commands used to build and install an old-style archive.
9936 old_archive_cmds=$lt_old_archive_cmds
9937 old_postinstall_cmds=$lt_old_postinstall_cmds
9938 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9940 # Create an old-style archive from a shared archive.
9941 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9943 # Create a temporary old-style archive to link instead of a shared archive.
9944 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9946 # Commands used to build and install a shared archive.
9947 archive_cmds=$lt_archive_cmds
9948 archive_expsym_cmds=$lt_archive_expsym_cmds
9949 postinstall_cmds=$lt_postinstall_cmds
9950 postuninstall_cmds=$lt_postuninstall_cmds
9952 # Commands used to build a loadable module (assumed same as above if empty)
9953 module_cmds=$lt_module_cmds
9954 module_expsym_cmds=$lt_module_expsym_cmds
9956 # Commands to strip libraries.
9957 old_striplib=$lt_old_striplib
9958 striplib=$lt_striplib
9960 # Dependencies to place before the objects being linked to create a
9962 predep_objects=$lt_predep_objects
9964 # Dependencies to place after the objects being linked to create a
9966 postdep_objects=$lt_postdep_objects
9968 # Dependencies to place before the objects being linked to create a
9972 # Dependencies to place after the objects being linked to create a
9974 postdeps=$lt_postdeps
9976 # The library search path used internally by the compiler when linking
9978 compiler_lib_search_path=$lt_compiler_lib_search_path
9980 # Method to check whether dependent libraries are shared objects.
9981 deplibs_check_method=$lt_deplibs_check_method
9983 # Command to use when deplibs_check_method == file_magic.
9984 file_magic_cmd=$lt_file_magic_cmd
9986 # Flag that allows shared libraries with undefined symbols to be built.
9987 allow_undefined_flag=$lt_allow_undefined_flag
9989 # Flag that forces no undefined symbols.
9990 no_undefined_flag=$lt_no_undefined_flag
9992 # Commands used to finish a libtool library installation in a directory.
9993 finish_cmds=$lt_finish_cmds
9995 # Same as above, but a single script fragment to be evaled but not shown.
9996 finish_eval=$lt_finish_eval
9998 # Take the output of nm and produce a listing of raw symbols and C names.
9999 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10001 # Transform the output of nm in a proper C declaration
10002 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10004 # Transform the output of nm in a C name address pair
10005 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10007 # This is the shared library runtime path variable.
10008 runpath_var=$runpath_var
10010 # This is the shared library path variable.
10011 shlibpath_var=$shlibpath_var
10013 # Is shlibpath searched before the hard-coded library search path?
10014 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10016 # How to hardcode a shared library path into an executable.
10017 hardcode_action=$hardcode_action
10019 # Whether we should hardcode library paths into libraries.
10020 hardcode_into_libs=$hardcode_into_libs
10022 # Flag to hardcode \$libdir into a binary during linking.
10023 # This must work even if \$libdir does not exist.
10024 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10026 # If ld is used when linking, flag to hardcode \$libdir into
10027 # a binary during linking. This must work even if \$libdir does
10029 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10031 # Whether we need a single -rpath flag with a separated argument.
10032 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10034 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10035 # resulting binary.
10036 hardcode_direct=$hardcode_direct
10038 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10039 # resulting binary.
10040 hardcode_minus_L=$hardcode_minus_L
10042 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10043 # the resulting binary.
10044 hardcode_shlibpath_var=$hardcode_shlibpath_var
10046 # Set to yes if building a shared library automatically hardcodes DIR into the library
10047 # and all subsequent libraries and executables linked against it.
10048 hardcode_automatic=$hardcode_automatic
10050 # Variables whose values should be saved in libtool wrapper scripts and
10051 # restored at relink time.
10052 variables_saved_for_relink="$variables_saved_for_relink"
10054 # Whether libtool must link a program against all its dependency libraries.
10055 link_all_deplibs=$link_all_deplibs
10057 # Compile-time system search path for libraries
10058 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10060 # Run-time system search path for libraries
10061 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10063 # Fix the shell variable \$srcfile for the compiler.
10064 fix_srcfile_path="$fix_srcfile_path"
10066 # Set to yes if exported symbols are required.
10067 always_export_symbols=$always_export_symbols
10069 # The commands to list exported symbols.
10070 export_symbols_cmds=$lt_export_symbols_cmds
10072 # The commands to extract the exported symbol list from a shared archive.
10073 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10075 # Symbols that should not be listed in the preloaded symbols.
10076 exclude_expsyms=$lt_exclude_expsyms
10078 # Symbols that must always be exported.
10079 include_expsyms=$lt_include_expsyms
10081 # ### END LIBTOOL CONFIG
10088 cat <<\EOF >> "$cfgfile"
10090 # AIX sometimes has problems with the GCC collect2 program. For some
10091 # reason, if we set the COLLECT_NAMES environment variable, the problems
10092 # vanish in a puff of smoke.
10093 if test "X${COLLECT_NAMES+set}" != Xset; then
10095 export COLLECT_NAMES
10101 # We use sed instead of cat because bash on DJGPP gets confused if
10102 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10103 # text mode, it properly converts lines to CR/LF. This bash problem
10104 # is reportedly fixed, but why not run on old versions too?
10105 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10107 mv -f "$cfgfile" "$ofile" || \
10108 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10112 # If there is no Makefile yet, we rely on a make rule to execute
10113 # `config.status --recheck' to rerun these tests and create the
10114 # libtool script then.
10115 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10116 if test -f "$ltmain_in"; then
10117 test -f Makefile && make "$ltmain"
10123 ac_cpp='$CPP $CPPFLAGS'
10124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10131 # Check whether --with-tags or --without-tags was given.
10132 if test "${with_tags+set}" = set; then
10133 withval="$with_tags"
10134 tagnames="$withval"
10137 if test -f "$ltmain" && test -n "$tagnames"; then
10138 if test ! -f "${ofile}"; then
10139 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10140 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10143 if test -z "$LTCC"; then
10144 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10145 if test -z "$LTCC"; then
10146 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10147 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10149 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10150 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10154 # Extract list of available tagged configurations in $ofile.
10155 # Note that this assumes the entire list is on one line.
10156 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10158 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10159 for tagname in $tagnames; do
10161 # Check whether tagname contains only valid characters
10162 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10164 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10165 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10166 { (exit 1); exit 1; }; }
10170 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10172 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10173 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10174 { (exit 1); exit 1; }; }
10177 # Update the list of available tags.
10178 if test -n "$tagname"; then
10179 echo appending configuration tag "$tagname" to $ofile
10183 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10184 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10185 (test "X$CXX" != "Xg++"))) ; then
10187 ac_cpp='$CXXCPP $CPPFLAGS'
10188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10195 archive_cmds_need_lc_CXX=no
10196 allow_undefined_flag_CXX=
10197 always_export_symbols_CXX=no
10198 archive_expsym_cmds_CXX=
10199 export_dynamic_flag_spec_CXX=
10200 hardcode_direct_CXX=no
10201 hardcode_libdir_flag_spec_CXX=
10202 hardcode_libdir_flag_spec_ld_CXX=
10203 hardcode_libdir_separator_CXX=
10204 hardcode_minus_L_CXX=no
10205 hardcode_automatic_CXX=no
10207 module_expsym_cmds_CXX=
10208 link_all_deplibs_CXX=unknown
10209 old_archive_cmds_CXX=$old_archive_cmds
10210 no_undefined_flag_CXX=
10211 whole_archive_flag_spec_CXX=
10212 enable_shared_with_static_runtimes_CXX=no
10214 # Dependencies to place before and after the object being linked:
10215 predep_objects_CXX=
10216 postdep_objects_CXX=
10219 compiler_lib_search_path_CXX=
10221 # Source file extension for C++ test sources.
10224 # Object file extension for compiled C++ test sources.
10228 # Code to be used in simple compile tests
10229 lt_simple_compile_test_code="int some_variable = 0;\n"
10231 # Code to be used in simple link tests
10232 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10234 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10236 # If no C compiler was specified, use CC.
10239 # Allow CC to be a program name with arguments.
10243 # Allow CC to be a program name with arguments.
10248 lt_save_with_gnu_ld=$with_gnu_ld
10249 lt_save_path_LD=$lt_cv_path_LD
10250 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10251 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10253 unset lt_cv_prog_gnu_ld
10255 if test -n "${lt_cv_path_LDCXX+set}"; then
10256 lt_cv_path_LD=$lt_cv_path_LDCXX
10258 unset lt_cv_path_LD
10260 test -z "${LDCXX+set}" || LD=$LDCXX
10264 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10266 # We don't want -fno-exception wen compiling C++ code, so set the
10267 # no_builtin_flag separately
10268 if test "$GXX" = yes; then
10269 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10271 lt_prog_compiler_no_builtin_flag_CXX=
10274 if test "$GXX" = yes; then
10275 # Set up default GNU C++ configuration
10278 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10279 if test "${with_gnu_ld+set}" = set; then
10280 withval="$with_gnu_ld"
10281 test "$withval" = no || with_gnu_ld=yes
10286 if test "$GCC" = yes; then
10287 # Check if gcc -print-prog-name=ld gives a path.
10288 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10289 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10292 # gcc leaves a trailing carriage return which upsets mingw
10293 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10295 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10298 # Accept absolute paths.
10300 re_direlt='/[^/][^/]*/\.\./'
10301 # Canonicalize the pathname of ld
10302 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10303 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10304 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10306 test -z "$LD" && LD="$ac_prog"
10309 # If it fails, then pretend we aren't using GCC.
10313 # If it is relative, then search for the first ld in PATH.
10314 with_gnu_ld=unknown
10317 elif test "$with_gnu_ld" = yes; then
10318 echo "$as_me:$LINENO: checking for GNU ld" >&5
10319 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10321 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10322 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10324 if test "${lt_cv_path_LD+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 if test -z "$LD"; then
10328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10329 for ac_dir in $PATH; do
10331 test -z "$ac_dir" && ac_dir=.
10332 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10333 lt_cv_path_LD="$ac_dir/$ac_prog"
10334 # Check to see if the program is GNU ld. I'd rather use --version,
10335 # but apparently some GNU ld's only accept -v.
10336 # Break only if it was the GNU/non-GNU ld that we prefer.
10337 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10338 *GNU* | *'with BFD'*)
10339 test "$with_gnu_ld" != no && break
10342 test "$with_gnu_ld" != yes && break
10349 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10353 LD="$lt_cv_path_LD"
10354 if test -n "$LD"; then
10355 echo "$as_me:$LINENO: result: $LD" >&5
10356 echo "${ECHO_T}$LD" >&6
10358 echo "$as_me:$LINENO: result: no" >&5
10359 echo "${ECHO_T}no" >&6
10361 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10362 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10363 { (exit 1); exit 1; }; }
10364 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10365 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10366 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
10369 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10370 case `$LD -v 2>&1 </dev/null` in
10371 *GNU* | *'with BFD'*)
10372 lt_cv_prog_gnu_ld=yes
10375 lt_cv_prog_gnu_ld=no
10379 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10380 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10381 with_gnu_ld=$lt_cv_prog_gnu_ld
10385 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10386 # archiving commands below assume that GNU ld is being used.
10387 if test "$with_gnu_ld" = yes; then
10388 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10389 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'
10391 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10392 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10394 # If archive_cmds runs LD, not CC, wlarc should be empty
10395 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10396 # investigate it a little bit more. (MM)
10399 # ancient GNU ld didn't support --whole-archive et. al.
10400 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10401 grep 'no-whole-archive' > /dev/null; then
10402 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10404 whole_archive_flag_spec_CXX=
10410 # A generic and very simple default shared library creation
10411 # command for GNU C++ for the case where it uses the native
10412 # linker, instead of GNU ld. If possible, this setting should
10413 # overridden to take advantage of the native linker features on
10414 # the platform it is being used on.
10415 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10418 # Commands to make compiler produce verbose output that lists
10419 # what "hidden" libraries, object files and flags are used when
10420 # linking a shared library.
10421 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10429 # PORTME: fill in a description of your system's C++ link characteristics
10430 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10431 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10435 # FIXME: insert proper C++ library support
10439 if test "$host_cpu" = ia64; then
10440 # On IA64, the linker does run time linking by default, so we don't
10441 # have to do anything special.
10442 aix_use_runtimelinking=no
10443 exp_sym_flag='-Bexport'
10446 aix_use_runtimelinking=no
10448 # Test if we are trying to use run time linking or normal
10449 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10450 # need to do runtime linking.
10451 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10452 for ld_flag in $LDFLAGS; do
10455 aix_use_runtimelinking=yes
10462 exp_sym_flag='-bexport'
10463 no_entry_flag='-bnoentry'
10466 # When large executables or shared objects are built, AIX ld can
10467 # have problems creating the table of contents. If linking a library
10468 # or program results in "error TOC overflow" add -mminimal-toc to
10469 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10470 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10472 archive_cmds_CXX=''
10473 hardcode_direct_CXX=yes
10474 hardcode_libdir_separator_CXX=':'
10475 link_all_deplibs_CXX=yes
10477 if test "$GXX" = yes; then
10478 case $host_os in aix4.012|aix4.012.*)
10479 # We only want to do this on AIX 4.2 and lower, the check
10480 # below for broken collect2 doesn't work under 4.3+
10481 collect2name=`${CC} -print-prog-name=collect2`
10482 if test -f "$collect2name" && \
10483 strings "$collect2name" | grep resolve_lib_name >/dev/null
10485 # We have reworked collect2
10486 hardcode_direct_CXX=yes
10488 # We have old collect2
10489 hardcode_direct_CXX=unsupported
10490 # It fails to find uninstalled libraries when the uninstalled
10491 # path is not listed in the libpath. Setting hardcode_minus_L
10492 # to unsupported forces relinking
10493 hardcode_minus_L_CXX=yes
10494 hardcode_libdir_flag_spec_CXX='-L$libdir'
10495 hardcode_libdir_separator_CXX=
10498 shared_flag='-shared'
10501 if test "$host_cpu" = ia64; then
10502 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10503 # chokes on -Wl,-G. The following line is correct:
10506 if test "$aix_use_runtimelinking" = yes; then
10507 shared_flag='${wl}-G'
10509 shared_flag='${wl}-bM:SRE'
10514 # It seems that -bexpall does not export symbols beginning with
10515 # underscore (_), so it is better to generate a list of symbols to export.
10516 always_export_symbols_CXX=yes
10517 if test "$aix_use_runtimelinking" = yes; then
10518 # Warning - without using the other runtime loading flags (-brtl),
10519 # -berok will link without error, but may produce a broken library.
10520 allow_undefined_flag_CXX='-berok'
10521 # Determine the default libpath from the value encoded in an empty executable.
10522 cat >conftest.$ac_ext <<_ACEOF
10525 cat confdefs.h >>conftest.$ac_ext
10526 cat >>conftest.$ac_ext <<_ACEOF
10527 /* end confdefs.h. */
10537 rm -f conftest.$ac_objext conftest$ac_exeext
10538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10539 (eval $ac_link) 2>conftest.er1
10541 grep -v '^ *+' conftest.er1 >conftest.err
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try='test -z "$ac_cxx_werror_flag"
10547 || test ! -s conftest.err'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try='test -s conftest$ac_exeext'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10560 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10562 # Check for a 64-bit object if we didn't find anything.
10563 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; }
10566 echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10570 rm -f conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10572 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10574 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10576 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"
10578 if test "$host_cpu" = ia64; then
10579 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10580 allow_undefined_flag_CXX="-z nodefs"
10581 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"
10583 # Determine the default libpath from the value encoded in an empty executable.
10584 cat >conftest.$ac_ext <<_ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10601 (eval $ac_link) 2>conftest.er1
10603 grep -v '^ *+' conftest.er1 >conftest.err
10605 cat conftest.err >&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } &&
10608 { ac_try='test -z "$ac_cxx_werror_flag"
10609 || test ! -s conftest.err'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; } &&
10615 { ac_try='test -s conftest$ac_exeext'
10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10622 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10624 # Check for a 64-bit object if we didn't find anything.
10625 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; }
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10632 rm -f conftest.err conftest.$ac_objext \
10633 conftest$ac_exeext conftest.$ac_ext
10634 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10636 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10637 # Warning - without using the other run time loading flags,
10638 # -berok will link without error, but may produce a broken library.
10639 no_undefined_flag_CXX=' ${wl}-bernotok'
10640 allow_undefined_flag_CXX=' ${wl}-berok'
10641 # -bexpall does not export symbols beginning with underscore (_)
10642 always_export_symbols_CXX=yes
10643 # Exported symbols can be pulled into shared objects from archives
10644 whole_archive_flag_spec_CXX=' '
10645 archive_cmds_need_lc_CXX=yes
10646 # This is similar to how AIX traditionally builds it's shared libraries.
10647 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'
10652 case $cc_basename in
10654 # FIXME: insert proper C++ library support
10661 cygwin* | mingw* | pw32*)
10662 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10663 # as there is no search path for DLLs.
10664 hardcode_libdir_flag_spec_CXX='-L$libdir'
10665 allow_undefined_flag_CXX=unsupported
10666 always_export_symbols_CXX=no
10667 enable_shared_with_static_runtimes_CXX=yes
10669 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10670 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'
10671 # If the export-symbols file already is a .def file (1st line
10672 # is EXPORTS), use it as is; otherwise, prepend...
10673 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10674 cp $export_symbols $output_objdir/$soname.def;
10676 echo EXPORTS > $output_objdir/$soname.def;
10677 cat $export_symbols >> $output_objdir/$soname.def;
10679 $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'
10684 darwin* | rhapsody*)
10686 rhapsody* | darwin1.[012])
10687 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10690 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10691 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10693 case ${MACOSX_DEPLOYMENT_TARGET} in
10695 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10698 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10704 archive_cmds_need_lc_CXX=no
10705 hardcode_direct_CXX=no
10706 hardcode_automatic_CXX=yes
10707 hardcode_shlibpath_var_CXX=unsupported
10708 whole_archive_flag_spec_CXX=''
10709 link_all_deplibs_CXX=yes
10711 if test "$GXX" = yes ; then
10712 lt_int_apple_cc_single_mod=no
10713 output_verbose_link_cmd='echo'
10714 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10715 lt_int_apple_cc_single_mod=yes
10717 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10718 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10720 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'
10722 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10723 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10724 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10725 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}'
10727 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}'
10729 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}'
10731 case "$cc_basename" in
10733 output_verbose_link_cmd='echo'
10734 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'
10735 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10736 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10737 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}'
10738 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}'
10748 case $cc_basename in
10750 # FIXME: insert proper C++ library support
10754 # Green Hills C++ Compiler
10755 # FIXME: insert proper C++ library support
10759 # FIXME: insert proper C++ library support
10765 # C++ shared libraries reported to be fairly broken before switch to ELF
10769 archive_cmds_need_lc_CXX=no
10771 freebsd* | kfreebsd*-gnu)
10772 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10779 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10780 hardcode_libdir_separator_CXX=:
10781 export_dynamic_flag_spec_CXX='${wl}-E'
10782 hardcode_direct_CXX=yes
10783 hardcode_minus_L_CXX=yes # Not in the search PATH,
10784 # but as the default
10785 # location of the library.
10787 case $cc_basename in
10789 # FIXME: insert proper C++ library support
10793 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'
10794 # Commands to make compiler produce verbose output that lists
10795 # what "hidden" libraries, object files and flags are used when
10796 # linking a shared library.
10798 # There doesn't appear to be a way to prevent this compiler from
10799 # explicitly linking system object files so we need to strip them
10800 # from the output so that they don't get included in the library
10802 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'
10805 if test "$GXX" = yes; then
10806 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'
10808 # FIXME: insert proper C++ library support
10815 if test $with_gnu_ld = no; then
10816 case "$host_cpu" in
10818 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10819 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10820 hardcode_libdir_separator_CXX=:
10823 hardcode_libdir_flag_spec_CXX='-L$libdir'
10826 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10827 hardcode_libdir_separator_CXX=:
10828 export_dynamic_flag_spec_CXX='${wl}-E'
10832 case "$host_cpu" in
10834 hardcode_direct_CXX=no
10835 hardcode_shlibpath_var_CXX=no
10838 hardcode_direct_CXX=no
10839 hardcode_shlibpath_var_CXX=no
10840 hardcode_minus_L_CXX=yes # Not in the search PATH,
10841 # but as the default
10842 # location of the library.
10845 hardcode_direct_CXX=yes
10846 hardcode_minus_L_CXX=yes # Not in the search PATH,
10847 # but as the default
10848 # location of the library.
10852 case $cc_basename in
10854 # FIXME: insert proper C++ library support
10858 case "$host_cpu" in
10860 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10863 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10866 # Commands to make compiler produce verbose output that lists
10867 # what "hidden" libraries, object files and flags are used when
10868 # linking a shared library.
10870 # There doesn't appear to be a way to prevent this compiler from
10871 # explicitly linking system object files so we need to strip them
10872 # from the output so that they don't get included in the library
10874 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'
10877 if test "$GXX" = yes; then
10878 if test $with_gnu_ld = no; then
10879 case "$host_cpu" in
10881 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10884 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'
10889 # FIXME: insert proper C++ library support
10896 case $cc_basename in
10899 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'
10901 # Archives containing C++ object files must be created using
10902 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10903 # necessary to make sure instantiated templates are included
10905 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10908 if test "$GXX" = yes; then
10909 if test "$with_gnu_ld" = no; then
10910 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'
10912 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'
10915 link_all_deplibs_CXX=yes
10918 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10919 hardcode_libdir_separator_CXX=:
10922 case $cc_basename in
10924 # Kuck and Associates, Inc. (KAI) C++ Compiler
10926 # KCC will only create a shared library if the output file
10927 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10928 # to its proper name (with version) after linking.
10929 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'
10930 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'
10931 # Commands to make compiler produce verbose output that lists
10932 # what "hidden" libraries, object files and flags are used when
10933 # linking a shared library.
10935 # There doesn't appear to be a way to prevent this compiler from
10936 # explicitly linking system object files so we need to strip them
10937 # from the output so that they don't get included in the library
10939 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'
10941 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10942 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10944 # Archives containing C++ object files must be created using
10945 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10946 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10951 # version 8.0 and above of icpc choke on multiply defined symbols
10952 # if we add $predep_objects and $postdep_objects, however 7.1 and
10953 # earlier do not add the objects themselves.
10954 case `$CC -V 2>&1` in
10956 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10957 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'
10959 *) # Version 8.0 or newer
10960 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10961 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10964 archive_cmds_need_lc_CXX=no
10965 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10966 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10967 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10972 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'
10974 runpath_var=LD_RUN_PATH
10975 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10976 hardcode_libdir_separator_CXX=:
10978 # Commands to make compiler produce verbose output that lists
10979 # what "hidden" libraries, object files and flags are used when
10980 # linking a shared library.
10982 # There doesn't appear to be a way to prevent this compiler from
10983 # explicitly linking system object files so we need to strip them
10984 # from the output so that they don't get included in the library
10986 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'
10991 # FIXME: insert proper C++ library support
10995 # FIXME: insert proper C++ library support
10999 case $cc_basename in
11001 # FIXME: insert proper C++ library support
11005 # FIXME: insert proper C++ library support
11011 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11012 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11014 hardcode_libdir_flag_spec_CXX='-R$libdir'
11015 hardcode_direct_CXX=yes
11016 hardcode_shlibpath_var_CXX=no
11018 # Workaround some broken pre-1.5 toolchains
11019 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11022 # C++ shared libraries are fairly broken
11026 hardcode_direct_CXX=yes
11027 hardcode_shlibpath_var_CXX=no
11028 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11029 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11030 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11031 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11032 export_dynamic_flag_spec_CXX='${wl}-E'
11033 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11035 output_verbose_link_cmd='echo'
11038 case $cc_basename in
11040 # Kuck and Associates, Inc. (KAI) C++ Compiler
11042 # KCC will only create a shared library if the output file
11043 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11044 # to its proper name (with version) after linking.
11045 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'
11047 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11048 hardcode_libdir_separator_CXX=:
11050 # Archives containing C++ object files must be created using
11051 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11052 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11056 # Rational C++ 2.4.1
11057 # FIXME: insert proper C++ library support
11061 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11062 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'
11064 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11065 hardcode_libdir_separator_CXX=:
11067 # Commands to make compiler produce verbose output that lists
11068 # what "hidden" libraries, object files and flags are used when
11069 # linking a shared library.
11071 # There doesn't appear to be a way to prevent this compiler from
11072 # explicitly linking system object files so we need to strip them
11073 # from the output so that they don't get included in the library
11075 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'
11078 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11079 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11080 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'
11082 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11083 hardcode_libdir_separator_CXX=:
11085 # Commands to make compiler produce verbose output that lists
11086 # what "hidden" libraries, object files and flags are used when
11087 # linking a shared library.
11088 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11091 # FIXME: insert proper C++ library support
11098 case $cc_basename in
11100 # Kuck and Associates, Inc. (KAI) C++ Compiler
11102 # KCC will only create a shared library if the output file
11103 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11104 # to its proper name (with version) after linking.
11105 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'
11107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11108 hardcode_libdir_separator_CXX=:
11110 # Archives containing C++ object files must be created using
11111 # the KAI C++ compiler.
11112 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11115 # Rational C++ 2.4.1
11116 # FIXME: insert proper C++ library support
11120 allow_undefined_flag_CXX=' -expect_unresolved \*'
11121 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'
11122 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11123 echo "-hidden">> $lib.exp~
11124 $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~
11127 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11128 hardcode_libdir_separator_CXX=:
11130 # Commands to make compiler produce verbose output that lists
11131 # what "hidden" libraries, object files and flags are used when
11132 # linking a shared library.
11134 # There doesn't appear to be a way to prevent this compiler from
11135 # explicitly linking system object files so we need to strip them
11136 # from the output so that they don't get included in the library
11138 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'
11141 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11142 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11143 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'
11145 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11146 hardcode_libdir_separator_CXX=:
11148 # Commands to make compiler produce verbose output that lists
11149 # what "hidden" libraries, object files and flags are used when
11150 # linking a shared library.
11151 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11154 # FIXME: insert proper C++ library support
11161 # FIXME: insert proper C++ library support
11165 archive_cmds_need_lc_CXX=no
11166 case $cc_basename in
11168 # FIXME: insert proper C++ library support
11172 # FIXME: insert proper C++ library support
11178 case $cc_basename in
11181 # FIXME: insert proper C++ library support
11186 # FIXME: insert proper C++ library support
11190 # FIXME: insert proper C++ library support
11196 case $cc_basename in
11198 # Sun C++ 4.2, 5.x and Centerline C++
11199 no_undefined_flag_CXX=' -zdefs'
11200 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11201 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11202 $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'
11204 hardcode_libdir_flag_spec_CXX='-R$libdir'
11205 hardcode_shlibpath_var_CXX=no
11207 solaris2.0-5 | solaris2.0-5.*) ;;
11209 # The C++ compiler is used as linker so we must use $wl
11210 # flag to pass the commands to the underlying system
11212 # Supported since Solaris 2.6 (maybe 2.5.1?)
11213 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11216 link_all_deplibs_CXX=yes
11218 # Commands to make compiler produce verbose output that lists
11219 # what "hidden" libraries, object files and flags are used when
11220 # linking a shared library.
11222 # There doesn't appear to be a way to prevent this compiler from
11223 # explicitly linking system object files so we need to strip them
11224 # from the output so that they don't get included in the library
11226 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'
11228 # Archives containing C++ object files must be created using
11229 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11230 # necessary to make sure instantiated templates are included
11232 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11235 # Green Hills C++ Compiler
11236 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11238 # The C++ compiler must be used to create the archive.
11239 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11242 # GNU C++ compiler with Solaris linker
11243 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11244 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11245 if $CC --version | grep -v '^2\.7' > /dev/null; then
11246 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11247 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11248 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11250 # Commands to make compiler produce verbose output that lists
11251 # what "hidden" libraries, object files and flags are used when
11252 # linking a shared library.
11253 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11255 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11257 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11258 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11259 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11261 # Commands to make compiler produce verbose output that lists
11262 # what "hidden" libraries, object files and flags are used when
11263 # linking a shared library.
11264 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11267 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11272 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11273 archive_cmds_need_lc_CXX=no
11276 case $cc_basename in
11278 # NonStop-UX NCC 3.20
11279 # FIXME: insert proper C++ library support
11283 # FIXME: insert proper C++ library support
11289 # FIXME: insert proper C++ library support
11293 # FIXME: insert proper C++ library support
11297 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11298 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11299 test "$ld_shlibs_CXX" = no && can_build_shared=no
11305 cat > conftest.$ac_ext <<EOF
11309 Foo (void) { a = 0; }
11315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11316 (eval $ac_compile) 2>&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; then
11320 # Parse the compiler output and extract the necessary
11321 # objects, libraries and library flags.
11323 # Sentinel used to keep track of whether or not we are before
11324 # the conftest object file.
11325 pre_test_object_deps_done=no
11327 # The `*' in the case matches for architectures that use `case' in
11328 # $output_verbose_cmd can trigger glob expansion during the loop
11329 # eval without this substitution.
11330 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11332 for p in `eval $output_verbose_link_cmd`; do
11336 # Some compilers place space between "-{L,R}" and the path.
11337 # Remove the space.
11338 if test $p = "-L" \
11339 || test $p = "-R"; then
11346 if test "$pre_test_object_deps_done" = no; then
11349 # Internal compiler library paths should come after those
11350 # provided the user. The postdeps already come after the
11351 # user supplied libs so there is no need to process them.
11352 if test -z "$compiler_lib_search_path_CXX"; then
11353 compiler_lib_search_path_CXX="${prev}${p}"
11355 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11358 # The "-l" case would never come before the object being
11359 # linked, so don't bother handling this case.
11362 if test -z "$postdeps_CXX"; then
11363 postdeps_CXX="${prev}${p}"
11365 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11371 # This assumes that the test object file only shows up
11372 # once in the compiler output.
11373 if test "$p" = "conftest.$objext"; then
11374 pre_test_object_deps_done=yes
11378 if test "$pre_test_object_deps_done" = no; then
11379 if test -z "$predep_objects_CXX"; then
11380 predep_objects_CXX="$p"
11382 predep_objects_CXX="$predep_objects_CXX $p"
11385 if test -z "$postdep_objects_CXX"; then
11386 postdep_objects_CXX="$p"
11388 postdep_objects_CXX="$postdep_objects_CXX $p"
11393 *) ;; # Ignore the rest.
11401 echo "libtool.m4: error: problem compiling CXX test program"
11404 $rm -f confest.$objext
11406 case " $postdeps_CXX " in
11407 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11410 lt_prog_compiler_wl_CXX=
11411 lt_prog_compiler_pic_CXX=
11412 lt_prog_compiler_static_CXX=
11414 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11415 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11417 # C++ specific cases for pic, static, wl, etc.
11418 if test "$GXX" = yes; then
11419 lt_prog_compiler_wl_CXX='-Wl,'
11420 lt_prog_compiler_static_CXX='-static'
11424 # All AIX code is PIC.
11425 if test "$host_cpu" = ia64; then
11426 # AIX 5 now supports IA64 processor
11427 lt_prog_compiler_static_CXX='-Bstatic'
11431 # FIXME: we need at least 68020 code to build shared libraries, but
11432 # adding the `-m68020' flag to GCC prevents building anything better,
11434 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11436 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11437 # PIC is the default for these OSes.
11439 mingw* | os2* | pw32*)
11440 # This hack is so that the source file can tell whether it is being
11441 # built for inclusion in a dll (and should export symbols for example).
11442 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11444 darwin* | rhapsody*)
11445 # PIC is the default on this platform
11446 # Common symbols not allowed in MH_DYLIB files
11447 lt_prog_compiler_pic_CXX='-fno-common'
11450 # DJGPP does not support shared libraries at all
11451 lt_prog_compiler_pic_CXX=
11454 if test -d /usr/nec; then
11455 lt_prog_compiler_pic_CXX=-Kconform_pic
11459 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11460 # not for PA HP-UX.
11461 case "$host_cpu" in
11465 lt_prog_compiler_pic_CXX='-fPIC'
11470 lt_prog_compiler_pic_CXX='-fPIC'
11476 # All AIX code is PIC.
11477 if test "$host_cpu" = ia64; then
11478 # AIX 5 now supports IA64 processor
11479 lt_prog_compiler_static_CXX='-Bstatic'
11481 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11485 case $cc_basename in
11487 # Green Hills C++ Compiler
11488 # _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"
11493 # PIC is the default on this platform
11494 # Common symbols not allowed in MH_DYLIB files
11495 case "$cc_basename" in
11497 lt_prog_compiler_pic_CXX='-qnocommon'
11498 lt_prog_compiler_wl_CXX='-Wl,'
11503 case $cc_basename in
11505 lt_prog_compiler_pic_CXX='-KPIC'
11508 # Green Hills C++ Compiler
11509 lt_prog_compiler_pic_CXX='-pic'
11515 freebsd* | kfreebsd*-gnu)
11516 # FreeBSD uses GNU C++
11518 hpux9* | hpux10* | hpux11*)
11519 case $cc_basename in
11521 lt_prog_compiler_wl_CXX='-Wl,'
11522 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11523 if test "$host_cpu" != ia64; then
11524 lt_prog_compiler_pic_CXX='+Z'
11528 lt_prog_compiler_wl_CXX='-Wl,'
11529 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11530 case "$host_cpu" in
11535 lt_prog_compiler_pic_CXX='+Z'
11543 irix5* | irix6* | nonstopux*)
11544 case $cc_basename in
11546 lt_prog_compiler_wl_CXX='-Wl,'
11547 lt_prog_compiler_static_CXX='-non_shared'
11548 # CC pic flag -KPIC is the default.
11555 case $cc_basename in
11558 lt_prog_compiler_wl_CXX='--backend -Wl,'
11559 lt_prog_compiler_pic_CXX='-fPIC'
11563 lt_prog_compiler_wl_CXX='-Wl,'
11564 lt_prog_compiler_pic_CXX='-KPIC'
11565 lt_prog_compiler_static_CXX='-static'
11569 # Make sure the PIC flag is empty. It appears that all Alpha
11570 # Linux and Compaq Tru64 Unix objects are PIC.
11571 lt_prog_compiler_pic_CXX=
11572 lt_prog_compiler_static_CXX='-non_shared'
11583 case $cc_basename in
11585 lt_prog_compiler_pic_CXX='-W c,exportall'
11593 osf3* | osf4* | osf5*)
11594 case $cc_basename in
11596 lt_prog_compiler_wl_CXX='--backend -Wl,'
11599 # Rational C++ 2.4.1
11600 lt_prog_compiler_pic_CXX='-pic'
11603 # Digital/Compaq C++
11604 lt_prog_compiler_wl_CXX='-Wl,'
11605 # Make sure the PIC flag is empty. It appears that all Alpha
11606 # Linux and Compaq Tru64 Unix objects are PIC.
11607 lt_prog_compiler_pic_CXX=
11608 lt_prog_compiler_static_CXX='-non_shared'
11617 case $cc_basename in
11619 lt_prog_compiler_pic_CXX='-fPIC'
11626 case $cc_basename in
11628 # Sun C++ 4.2, 5.x and Centerline C++
11629 lt_prog_compiler_pic_CXX='-KPIC'
11630 lt_prog_compiler_static_CXX='-Bstatic'
11631 lt_prog_compiler_wl_CXX='-Qoption ld '
11634 # Green Hills C++ Compiler
11635 lt_prog_compiler_pic_CXX='-PIC'
11642 case $cc_basename in
11645 lt_prog_compiler_pic_CXX='-pic'
11646 lt_prog_compiler_static_CXX='-Bstatic'
11650 lt_prog_compiler_pic_CXX='-pic'
11657 case $cc_basename in
11659 # NonStop-UX NCC 3.20
11660 lt_prog_compiler_pic_CXX='-KPIC'
11671 lt_prog_compiler_can_build_shared_CXX=no
11676 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11677 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11680 # Check to make sure the PIC flag actually works.
11682 if test -n "$lt_prog_compiler_pic_CXX"; then
11684 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11685 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11686 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11689 lt_prog_compiler_pic_works_CXX=no
11690 ac_outfile=conftest.$ac_objext
11691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11692 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11693 # Insert the option either (1) after the last *FLAGS variable, or
11694 # (2) before a word containing "conftest.", or (3) at the end.
11695 # Note that $ac_compile itself does not contain backslashes and begins
11696 # with a dollar sign (not a hyphen), so the echo should work correctly.
11697 # The option is referenced via a variable to avoid confusing sed.
11698 lt_compile=`echo "$ac_compile" | $SED \
11699 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11701 -e 's:$: $lt_compiler_flag:'`
11702 (eval echo "\"\$as_me:11702: $lt_compile\"" >&5)
11703 (eval "$lt_compile" 2>conftest.err)
11705 cat conftest.err >&5
11706 echo "$as_me:11706: \$? = $ac_status" >&5
11707 if (exit $ac_status) && test -s "$ac_outfile"; then
11708 # The compiler can only warn and ignore the option if not recognized
11709 # So say no if there are warnings
11710 if test ! -s conftest.err; then
11711 lt_prog_compiler_pic_works_CXX=yes
11717 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11718 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11720 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11721 case $lt_prog_compiler_pic_CXX in
11723 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11726 lt_prog_compiler_pic_CXX=
11727 lt_prog_compiler_can_build_shared_CXX=no
11732 # For platforms which do not support PIC, -DPIC is meaningless:
11734 lt_prog_compiler_pic_CXX=
11737 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11741 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11742 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11743 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 lt_cv_prog_compiler_c_o_CXX=no
11747 $rm -r conftest 2>/dev/null
11751 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11753 lt_compiler_flag="-o out/conftest2.$ac_objext"
11754 # Insert the option either (1) after the last *FLAGS variable, or
11755 # (2) before a word containing "conftest.", or (3) at the end.
11756 # Note that $ac_compile itself does not contain backslashes and begins
11757 # with a dollar sign (not a hyphen), so the echo should work correctly.
11758 lt_compile=`echo "$ac_compile" | $SED \
11759 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11761 -e 's:$: $lt_compiler_flag:'`
11762 (eval echo "\"\$as_me:11762: $lt_compile\"" >&5)
11763 (eval "$lt_compile" 2>out/conftest.err)
11765 cat out/conftest.err >&5
11766 echo "$as_me:11766: \$? = $ac_status" >&5
11767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11769 # The compiler can only warn and ignore the option if not recognized
11770 # So say no if there are warnings
11771 if test ! -s out/conftest.err; then
11772 lt_cv_prog_compiler_c_o_CXX=yes
11777 # SGI C++ compiler will create directory out/ii_files/ for
11778 # template instantiation
11779 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11780 $rm out/* && rmdir out
11786 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11787 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11790 hard_links="nottested"
11791 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11792 # do not overwrite the value of need_locks provided by the user
11793 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11794 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11797 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11799 ln conftest.a conftest.b 2>&5 || hard_links=no
11800 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11801 echo "$as_me:$LINENO: result: $hard_links" >&5
11802 echo "${ECHO_T}$hard_links" >&6
11803 if test "$hard_links" = no; then
11804 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11805 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11812 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11813 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11815 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11818 # If we're using GNU nm, then we don't want the "-C" option.
11819 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11820 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11821 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'
11823 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'
11827 export_symbols_cmds_CXX="$ltdll_cmds"
11830 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11833 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11837 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11838 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11839 test "$ld_shlibs_CXX" = no && can_build_shared=no
11841 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11842 if test "$GCC" = yes; then
11843 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11847 # Do we need to explicitly link libc?
11849 case "x$archive_cmds_need_lc_CXX" in
11851 # Assume -lc should be added
11852 archive_cmds_need_lc_CXX=yes
11854 if test "$enable_shared" = yes && test "$GCC" = yes; then
11855 case $archive_cmds_CXX in
11857 # FIXME: we may have to deal with multi-command sequences.
11860 # Test whether the compiler implicitly links with -lc since on some
11861 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11862 # to ld, don't add -lc before -lgcc.
11863 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11864 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11866 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11869 (eval $ac_compile) 2>&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } 2>conftest.err; then
11875 libobjs=conftest.$ac_objext
11877 wl=$lt_prog_compiler_wl_CXX
11883 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11884 allow_undefined_flag_CXX=
11885 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11886 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }
11891 archive_cmds_need_lc_CXX=no
11893 archive_cmds_need_lc_CXX=yes
11895 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11897 cat conftest.err 1>&5
11900 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11901 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11908 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11909 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11910 library_names_spec=
11911 libname_spec='lib$name'
11915 postuninstall_cmds=
11919 shlibpath_overrides_runpath=unknown
11921 dynamic_linker="$host_os ld.so"
11922 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11923 if test "$GCC" = yes; then
11924 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11925 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11926 # if the path contains ";" then we assume it to be the separator
11927 # otherwise default to the standard path separator (i.e. ":") - it is
11928 # assumed that no part of a normal pathname contains ";" but that should
11929 # okay in the real world where ";" in dirpaths is itself problematic.
11930 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11932 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11935 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11937 need_lib_prefix=unknown
11938 hardcode_into_libs=no
11940 # when you set need_version to no, make sure it does not cause -set_version
11941 # flags to be left without arguments
11942 need_version=unknown
11947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11948 shlibpath_var=LIBPATH
11950 # AIX 3 has no versioning support, so we append a major version to the name.
11951 soname_spec='${libname}${release}${shared_ext}$major'
11958 hardcode_into_libs=yes
11959 if test "$host_cpu" = ia64; then
11960 # AIX 5 supports IA64
11961 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11962 shlibpath_var=LD_LIBRARY_PATH
11964 # With GCC up to 2.95.x, collect2 would create an import file
11965 # for dependence libraries. The import file would start with
11966 # the line `#! .'. This would cause the generated library to
11967 # depend on `.', always an invalid library. This was fixed in
11968 # development snapshots of GCC prior to 3.0.
11970 aix4 | aix4.[01] | aix4.[01].*)
11971 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11973 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11976 can_build_shared=no
11980 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11981 # soname into executable. Probably we can add versioning support to
11982 # collect2, so additional links can be useful in future.
11983 if test "$aix_use_runtimelinking" = yes; then
11984 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11985 # instead of lib<name>.a to let people know that these are not
11986 # typical AIX shared libraries.
11987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11989 # We preserve .a as extension for shared libraries through AIX4.2
11990 # and later when we are not doing run time linking.
11991 library_names_spec='${libname}${release}.a $libname.a'
11992 soname_spec='${libname}${release}${shared_ext}$major'
11994 shlibpath_var=LIBPATH
11999 library_names_spec='$libname.ixlibrary $libname.a'
12000 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12001 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'
12005 library_names_spec='${libname}${shared_ext}'
12006 dynamic_linker="$host_os ld.so"
12007 shlibpath_var=LIBRARY_PATH
12013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12014 soname_spec='${libname}${release}${shared_ext}$major'
12015 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12016 shlibpath_var=LD_LIBRARY_PATH
12017 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12018 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12019 # the default ld.so.conf also contains /usr/contrib/lib and
12020 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12021 # libtool to hard-code these into programs
12024 cygwin* | mingw* | pw32*)
12025 version_type=windows
12030 case $GCC,$host_os in
12031 yes,cygwin* | yes,mingw* | yes,pw32*)
12032 library_names_spec='$libname.dll.a'
12033 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12034 postinstall_cmds='base_file=`basename \${file}`~
12035 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12036 dldir=$destdir/`dirname \$dlpath`~
12037 test -d \$dldir || mkdir -p \$dldir~
12038 $install_prog $dir/$dlname \$dldir/$dlname'
12039 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12040 dlpath=$dir/\$dldll~
12042 shlibpath_overrides_runpath=yes
12046 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12047 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12048 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12051 # MinGW DLLs use traditional 'lib' prefix
12052 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12053 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12054 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12055 # It is most probably a Windows format PATH printed by
12056 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12057 # path with ; separators, and with drive letters. We can handle the
12058 # drive letters (cygwin fileutils understands them), so leave them,
12059 # especially as we might pass files found there to a mingw objdump,
12060 # which wouldn't understand a cygwinified path. Ahh.
12061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12063 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12067 # pw32 DLLs use 'pw' prefix rather than 'lib'
12068 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12074 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12077 dynamic_linker='Win32 ld.exe'
12078 # FIXME: first we should search . and the directory the executable is in
12082 darwin* | rhapsody*)
12083 dynamic_linker="$host_os dyld"
12084 version_type=darwin
12087 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12088 soname_spec='${libname}${release}${major}$shared_ext'
12089 shlibpath_overrides_runpath=yes
12090 shlibpath_var=DYLD_LIBRARY_PATH
12091 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12092 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12093 if test "$GCC" = yes; then
12094 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"`
12096 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12098 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12106 soname_spec='${libname}${release}${shared_ext}$major'
12107 shlibpath_var=LD_LIBRARY_PATH
12118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12119 soname_spec='${libname}${release}${shared_ext}$major'
12120 shlibpath_var=LD_LIBRARY_PATH
12121 shlibpath_overrides_runpath=no
12122 hardcode_into_libs=yes
12123 dynamic_linker='GNU ld.so'
12127 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12128 version_type=freebsd-$objformat
12129 case $version_type in
12131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12140 shlibpath_var=LD_LIBRARY_PATH
12143 shlibpath_overrides_runpath=yes
12145 freebsd3.01* | freebsdelf3.01*)
12146 shlibpath_overrides_runpath=yes
12147 hardcode_into_libs=yes
12150 shlibpath_overrides_runpath=no
12151 hardcode_into_libs=yes
12160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12161 soname_spec='${libname}${release}${shared_ext}$major'
12162 shlibpath_var=LD_LIBRARY_PATH
12163 hardcode_into_libs=yes
12166 hpux9* | hpux10* | hpux11*)
12167 # Give a soname corresponding to the major version so that dld.sl refuses to
12168 # link against other versions.
12172 case "$host_cpu" in
12175 hardcode_into_libs=yes
12176 dynamic_linker="$host_os dld.so"
12177 shlibpath_var=LD_LIBRARY_PATH
12178 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12180 soname_spec='${libname}${release}${shared_ext}$major'
12181 if test "X$HPUX_IA64_MODE" = X32; then
12182 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12184 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12190 hardcode_into_libs=yes
12191 dynamic_linker="$host_os dld.sl"
12192 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12193 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12195 soname_spec='${libname}${release}${shared_ext}$major'
12196 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12201 dynamic_linker="$host_os dld.sl"
12202 shlibpath_var=SHLIB_PATH
12203 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12205 soname_spec='${libname}${release}${shared_ext}$major'
12208 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12209 postinstall_cmds='chmod 555 $lib'
12212 irix5* | irix6* | nonstopux*)
12214 nonstopux*) version_type=nonstopux ;;
12216 if test "$lt_cv_prog_gnu_ld" = yes; then
12224 soname_spec='${libname}${release}${shared_ext}$major'
12225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12227 irix5* | nonstopux*)
12228 libsuff= shlibsuff=
12231 case $LD in # libtool.m4 will add one of these switches to LD
12232 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12233 libsuff= shlibsuff= libmagic=32-bit;;
12234 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12235 libsuff=32 shlibsuff=N32 libmagic=N32;;
12236 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12237 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12238 *) libsuff= shlibsuff= libmagic=never-match;;
12242 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12243 shlibpath_overrides_runpath=no
12244 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12245 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12246 hardcode_into_libs=yes
12249 # No shared lib support for Linux oldld, aout, or coff.
12250 linux*oldld* | linux*aout* | linux*coff*)
12254 # This must be Linux ELF.
12259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12260 soname_spec='${libname}${release}${shared_ext}$major'
12261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12262 shlibpath_var=LD_LIBRARY_PATH
12263 shlibpath_overrides_runpath=no
12264 # This implies no fast_install, which is unacceptable.
12265 # Some rework will be needed to allow for fast_install
12266 # before this can be enabled.
12267 hardcode_into_libs=yes
12269 # Append ld.so.conf contents to the search path
12270 if test -f /etc/ld.so.conf; then
12271 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12272 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12275 # We used to test for /lib/ld.so.1 and disable shared libraries on
12276 # powerpc, because MkLinux only supported shared libraries with the
12277 # GNU dynamic linker. Since this was broken with cross compilers,
12278 # most powerpc-linux boxes support dynamic linking these days and
12279 # people can always --disable-shared, the test was removed, and we
12280 # assume the GNU/Linux dynamic linker is in use.
12281 dynamic_linker='GNU/Linux ld.so'
12288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12289 soname_spec='${libname}${release}${shared_ext}$major'
12290 shlibpath_var=LD_LIBRARY_PATH
12291 shlibpath_overrides_runpath=no
12292 hardcode_into_libs=yes
12293 dynamic_linker='GNU ld.so'
12300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12303 dynamic_linker='NetBSD (a.out) ld.so'
12305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12306 soname_spec='${libname}${release}${shared_ext}$major'
12307 dynamic_linker='NetBSD ld.elf_so'
12309 shlibpath_var=LD_LIBRARY_PATH
12310 shlibpath_overrides_runpath=yes
12311 hardcode_into_libs=yes
12316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12317 shlibpath_var=LD_LIBRARY_PATH
12318 shlibpath_overrides_runpath=yes
12325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12326 soname_spec='${libname}${release}${shared_ext}$major'
12327 shlibpath_var=LD_LIBRARY_PATH
12328 shlibpath_overrides_runpath=yes
12335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12337 shlibpath_var=LD_LIBRARY_PATH
12338 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12340 openbsd2.[89] | openbsd2.[89].*)
12341 shlibpath_overrides_runpath=no
12344 shlibpath_overrides_runpath=yes
12348 shlibpath_overrides_runpath=yes
12353 libname_spec='$name'
12356 library_names_spec='$libname${shared_ext} $libname.a'
12357 dynamic_linker='OS/2 ld.exe'
12358 shlibpath_var=LIBPATH
12361 osf3* | osf4* | osf5*)
12365 soname_spec='${libname}${release}${shared_ext}$major'
12366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12367 shlibpath_var=LD_LIBRARY_PATH
12368 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12369 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12374 soname_spec='${libname}${release}${shared_ext}$major'
12375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12376 shlibpath_var=LD_LIBRARY_PATH
12383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384 soname_spec='${libname}${release}${shared_ext}$major'
12385 shlibpath_var=LD_LIBRARY_PATH
12386 shlibpath_overrides_runpath=yes
12387 hardcode_into_libs=yes
12388 # ldd complains unless libraries are executable
12389 postinstall_cmds='chmod +x $lib'
12394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12395 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12396 shlibpath_var=LD_LIBRARY_PATH
12397 shlibpath_overrides_runpath=yes
12398 if test "$with_gnu_ld" = yes; then
12404 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12407 soname_spec='${libname}${release}${shared_ext}$major'
12408 shlibpath_var=LD_LIBRARY_PATH
12409 case $host_vendor in
12411 shlibpath_overrides_runpath=no
12413 export_dynamic_flag_spec='${wl}-Blargedynsym'
12414 runpath_var=LD_RUN_PATH
12422 shlibpath_overrides_runpath=no
12423 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12429 if test -d /usr/nec ;then
12431 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12432 soname_spec='$libname${shared_ext}.$major'
12433 shlibpath_var=LD_LIBRARY_PATH
12439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12440 soname_spec='${libname}${release}${shared_ext}$major'
12441 shlibpath_var=LD_LIBRARY_PATH
12448 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12449 echo "${ECHO_T}$dynamic_linker" >&6
12450 test "$dynamic_linker" = no && can_build_shared=no
12452 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12453 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12454 hardcode_action_CXX=
12455 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12456 test -n "$runpath_var_CXX" || \
12457 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12459 # We can hardcode non-existant directories.
12460 if test "$hardcode_direct_CXX" != no &&
12461 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12462 # have to relink, otherwise we might link with an installed library
12463 # when we should be linking with a yet-to-be-installed one
12464 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12465 test "$hardcode_minus_L_CXX" != no; then
12466 # Linking always hardcodes the temporary library directory.
12467 hardcode_action_CXX=relink
12469 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12470 hardcode_action_CXX=immediate
12473 # We cannot hardcode anything, or else we can only hardcode existing
12475 hardcode_action_CXX=unsupported
12477 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12478 echo "${ECHO_T}$hardcode_action_CXX" >&6
12480 if test "$hardcode_action_CXX" = relink; then
12481 # Fast installation is not supported
12482 enable_fast_install=no
12483 elif test "$shlibpath_overrides_runpath" = yes ||
12484 test "$enable_shared" = no; then
12485 # Fast installation is not necessary
12486 enable_fast_install=needless
12491 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12492 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12493 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12494 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12495 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12496 echo "$as_me:$LINENO: result: yes" >&5
12497 echo "${ECHO_T}yes" >&6
12499 # FIXME - insert some real tests, host_os isn't really good enough
12502 if test -n "$STRIP" ; then
12503 striplib="$STRIP -x"
12504 echo "$as_me:$LINENO: result: yes" >&5
12505 echo "${ECHO_T}yes" >&6
12507 echo "$as_me:$LINENO: result: no" >&5
12508 echo "${ECHO_T}no" >&6
12512 echo "$as_me:$LINENO: result: no" >&5
12513 echo "${ECHO_T}no" >&6
12518 if test "x$enable_dlopen" != xyes; then
12519 enable_dlopen=unknown
12520 enable_dlopen_self=unknown
12521 enable_dlopen_self_static=unknown
12528 lt_cv_dlopen="load_add_on"
12530 lt_cv_dlopen_self=yes
12534 lt_cv_dlopen="LoadLibrary"
12539 lt_cv_dlopen="dlopen"
12544 # if libdl is installed we need to link against it
12545 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12546 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12547 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12550 ac_check_lib_save_LIBS=$LIBS
12552 cat >conftest.$ac_ext <<_ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12559 /* Override any gcc2 internal prototype to avoid an error. */
12563 /* We use char because int might match the return type of a gcc2
12564 builtin and then its argument prototype would still apply. */
12574 rm -f conftest.$ac_objext conftest$ac_exeext
12575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12576 (eval $ac_link) 2>conftest.er1
12578 grep -v '^ *+' conftest.er1 >conftest.err
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
12583 { ac_try='test -z "$ac_cxx_werror_flag"
12584 || test ! -s conftest.err'
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; } &&
12590 { ac_try='test -s conftest$ac_exeext'
12591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; }; then
12596 ac_cv_lib_dl_dlopen=yes
12598 echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12601 ac_cv_lib_dl_dlopen=no
12603 rm -f conftest.err conftest.$ac_objext \
12604 conftest$ac_exeext conftest.$ac_ext
12605 LIBS=$ac_check_lib_save_LIBS
12607 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12608 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12609 if test $ac_cv_lib_dl_dlopen = yes; then
12610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12613 lt_cv_dlopen="dyld"
12615 lt_cv_dlopen_self=yes
12622 echo "$as_me:$LINENO: checking for shl_load" >&5
12623 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12624 if test "${ac_cv_func_shl_load+set}" = set; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 cat >conftest.$ac_ext <<_ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12633 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12635 #define shl_load innocuous_shl_load
12637 /* System header to define __stub macros and hopefully few prototypes,
12638 which can conflict with char shl_load (); below.
12639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12640 <limits.h> exists even on freestanding compilers. */
12643 # include <limits.h>
12645 # include <assert.h>
12650 /* Override any gcc2 internal prototype to avoid an error. */
12655 /* We use char because int might match the return type of a gcc2
12656 builtin and then its argument prototype would still apply. */
12658 /* The GNU C library defines this for functions which it implements
12659 to always fail with ENOSYS. Some functions are actually named
12660 something starting with __ and the normal name is an alias. */
12661 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12664 char (*f) () = shl_load;
12673 return f != shl_load;
12678 rm -f conftest.$ac_objext conftest$ac_exeext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12680 (eval $ac_link) 2>conftest.er1
12682 grep -v '^ *+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } &&
12687 { ac_try='test -z "$ac_cxx_werror_flag"
12688 || test ! -s conftest.err'
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; } &&
12694 { ac_try='test -s conftest$ac_exeext'
12695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696 (eval $ac_try) 2>&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
12700 ac_cv_func_shl_load=yes
12702 echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12705 ac_cv_func_shl_load=no
12707 rm -f conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
12710 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12711 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12712 if test $ac_cv_func_shl_load = yes; then
12713 lt_cv_dlopen="shl_load"
12715 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12716 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12717 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12718 echo $ECHO_N "(cached) $ECHO_C" >&6
12720 ac_check_lib_save_LIBS=$LIBS
12722 cat >conftest.$ac_ext <<_ACEOF
12725 cat confdefs.h >>conftest.$ac_ext
12726 cat >>conftest.$ac_ext <<_ACEOF
12727 /* end confdefs.h. */
12729 /* Override any gcc2 internal prototype to avoid an error. */
12733 /* We use char because int might match the return type of a gcc2
12734 builtin and then its argument prototype would still apply. */
12744 rm -f conftest.$ac_objext conftest$ac_exeext
12745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12746 (eval $ac_link) 2>conftest.er1
12748 grep -v '^ *+' conftest.er1 >conftest.err
12750 cat conftest.err >&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
12753 { ac_try='test -z "$ac_cxx_werror_flag"
12754 || test ! -s conftest.err'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; } &&
12760 { ac_try='test -s conftest$ac_exeext'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; }; then
12766 ac_cv_lib_dld_shl_load=yes
12768 echo "$as_me: failed program was:" >&5
12769 sed 's/^/| /' conftest.$ac_ext >&5
12771 ac_cv_lib_dld_shl_load=no
12773 rm -f conftest.err conftest.$ac_objext \
12774 conftest$ac_exeext conftest.$ac_ext
12775 LIBS=$ac_check_lib_save_LIBS
12777 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12778 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12779 if test $ac_cv_lib_dld_shl_load = yes; then
12780 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12782 echo "$as_me:$LINENO: checking for dlopen" >&5
12783 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12784 if test "${ac_cv_func_dlopen+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 cat >conftest.$ac_ext <<_ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12795 #define dlopen innocuous_dlopen
12797 /* System header to define __stub macros and hopefully few prototypes,
12798 which can conflict with char dlopen (); below.
12799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12800 <limits.h> exists even on freestanding compilers. */
12803 # include <limits.h>
12805 # include <assert.h>
12810 /* Override any gcc2 internal prototype to avoid an error. */
12815 /* We use char because int might match the return type of a gcc2
12816 builtin and then its argument prototype would still apply. */
12818 /* The GNU C library defines this for functions which it implements
12819 to always fail with ENOSYS. Some functions are actually named
12820 something starting with __ and the normal name is an alias. */
12821 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12824 char (*f) () = dlopen;
12833 return f != dlopen;
12838 rm -f conftest.$ac_objext conftest$ac_exeext
12839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12840 (eval $ac_link) 2>conftest.er1
12842 grep -v '^ *+' conftest.er1 >conftest.err
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } &&
12847 { ac_try='test -z "$ac_cxx_werror_flag"
12848 || test ! -s conftest.err'
12849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850 (eval $ac_try) 2>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; } &&
12854 { ac_try='test -s conftest$ac_exeext'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12860 ac_cv_func_dlopen=yes
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12865 ac_cv_func_dlopen=no
12867 rm -f conftest.err conftest.$ac_objext \
12868 conftest$ac_exeext conftest.$ac_ext
12870 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12871 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12872 if test $ac_cv_func_dlopen = yes; then
12873 lt_cv_dlopen="dlopen"
12875 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12876 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12877 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12880 ac_check_lib_save_LIBS=$LIBS
12882 cat >conftest.$ac_ext <<_ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h. */
12889 /* Override any gcc2 internal prototype to avoid an error. */
12893 /* We use char because int might match the return type of a gcc2
12894 builtin and then its argument prototype would still apply. */
12904 rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12906 (eval $ac_link) 2>conftest.er1
12908 grep -v '^ *+' conftest.er1 >conftest.err
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try='test -z "$ac_cxx_werror_flag"
12914 || test ! -s conftest.err'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; } &&
12920 { ac_try='test -s conftest$ac_exeext'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; }; then
12926 ac_cv_lib_dl_dlopen=yes
12928 echo "$as_me: failed program was:" >&5
12929 sed 's/^/| /' conftest.$ac_ext >&5
12931 ac_cv_lib_dl_dlopen=no
12933 rm -f conftest.err conftest.$ac_objext \
12934 conftest$ac_exeext conftest.$ac_ext
12935 LIBS=$ac_check_lib_save_LIBS
12937 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12938 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12939 if test $ac_cv_lib_dl_dlopen = yes; then
12940 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12942 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12943 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12944 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12947 ac_check_lib_save_LIBS=$LIBS
12948 LIBS="-lsvld $LIBS"
12949 cat >conftest.$ac_ext <<_ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12956 /* Override any gcc2 internal prototype to avoid an error. */
12960 /* We use char because int might match the return type of a gcc2
12961 builtin and then its argument prototype would still apply. */
12971 rm -f conftest.$ac_objext conftest$ac_exeext
12972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12973 (eval $ac_link) 2>conftest.er1
12975 grep -v '^ *+' conftest.er1 >conftest.err
12977 cat conftest.err >&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } &&
12980 { ac_try='test -z "$ac_cxx_werror_flag"
12981 || test ! -s conftest.err'
12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983 (eval $ac_try) 2>&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; } &&
12987 { ac_try='test -s conftest$ac_exeext'
12988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12989 (eval $ac_try) 2>&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; }; then
12993 ac_cv_lib_svld_dlopen=yes
12995 echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
12998 ac_cv_lib_svld_dlopen=no
13000 rm -f conftest.err conftest.$ac_objext \
13001 conftest$ac_exeext conftest.$ac_ext
13002 LIBS=$ac_check_lib_save_LIBS
13004 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13005 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13006 if test $ac_cv_lib_svld_dlopen = yes; then
13007 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13009 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13010 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13011 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13014 ac_check_lib_save_LIBS=$LIBS
13016 cat >conftest.$ac_ext <<_ACEOF
13019 cat confdefs.h >>conftest.$ac_ext
13020 cat >>conftest.$ac_ext <<_ACEOF
13021 /* end confdefs.h. */
13023 /* Override any gcc2 internal prototype to avoid an error. */
13027 /* We use char because int might match the return type of a gcc2
13028 builtin and then its argument prototype would still apply. */
13038 rm -f conftest.$ac_objext conftest$ac_exeext
13039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13040 (eval $ac_link) 2>conftest.er1
13042 grep -v '^ *+' conftest.er1 >conftest.err
13044 cat conftest.err >&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } &&
13047 { ac_try='test -z "$ac_cxx_werror_flag"
13048 || test ! -s conftest.err'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; } &&
13054 { ac_try='test -s conftest$ac_exeext'
13055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056 (eval $ac_try) 2>&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; }; then
13060 ac_cv_lib_dld_dld_link=yes
13062 echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13065 ac_cv_lib_dld_dld_link=no
13067 rm -f conftest.err conftest.$ac_objext \
13068 conftest$ac_exeext conftest.$ac_ext
13069 LIBS=$ac_check_lib_save_LIBS
13071 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13072 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13073 if test $ac_cv_lib_dld_dld_link = yes; then
13074 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13095 if test "x$lt_cv_dlopen" != xno; then
13101 case $lt_cv_dlopen in
13103 save_CPPFLAGS="$CPPFLAGS"
13104 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13106 save_LDFLAGS="$LDFLAGS"
13107 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13110 LIBS="$lt_cv_dlopen_libs $LIBS"
13112 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13113 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13114 if test "${lt_cv_dlopen_self+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 if test "$cross_compiling" = yes; then :
13118 lt_cv_dlopen_self=cross
13120 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13121 lt_status=$lt_dlunknown
13122 cat > conftest.$ac_ext <<EOF
13123 #line 13123 "configure"
13124 #include "confdefs.h"
13133 # define LT_DLGLOBAL RTLD_GLOBAL
13136 # define LT_DLGLOBAL DL_GLOBAL
13138 # define LT_DLGLOBAL 0
13142 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13143 find out it does not work in some platform. */
13144 #ifndef LT_DLLAZY_OR_NOW
13146 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13149 # define LT_DLLAZY_OR_NOW DL_LAZY
13152 # define LT_DLLAZY_OR_NOW RTLD_NOW
13155 # define LT_DLLAZY_OR_NOW DL_NOW
13157 # define LT_DLLAZY_OR_NOW 0
13165 extern "C" void exit (int);
13168 void fnord() { int i=42;}
13171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13172 int status = $lt_dlunknown;
13176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13177 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13178 /* dlclose (self); */
13184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13185 (eval $ac_link) 2>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13189 (./conftest; exit; ) 2>/dev/null
13191 case x$lt_status in
13192 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13193 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13194 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13197 # compilation failed
13198 lt_cv_dlopen_self=no
13205 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13206 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13208 if test "x$lt_cv_dlopen_self" = xyes; then
13209 LDFLAGS="$LDFLAGS $link_static_flag"
13210 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13211 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13212 if test "${lt_cv_dlopen_self_static+set}" = set; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13215 if test "$cross_compiling" = yes; then :
13216 lt_cv_dlopen_self_static=cross
13218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13219 lt_status=$lt_dlunknown
13220 cat > conftest.$ac_ext <<EOF
13221 #line 13221 "configure"
13222 #include "confdefs.h"
13231 # define LT_DLGLOBAL RTLD_GLOBAL
13234 # define LT_DLGLOBAL DL_GLOBAL
13236 # define LT_DLGLOBAL 0
13240 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13241 find out it does not work in some platform. */
13242 #ifndef LT_DLLAZY_OR_NOW
13244 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13247 # define LT_DLLAZY_OR_NOW DL_LAZY
13250 # define LT_DLLAZY_OR_NOW RTLD_NOW
13253 # define LT_DLLAZY_OR_NOW DL_NOW
13255 # define LT_DLLAZY_OR_NOW 0
13263 extern "C" void exit (int);
13266 void fnord() { int i=42;}
13269 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13270 int status = $lt_dlunknown;
13274 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13275 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13276 /* dlclose (self); */
13282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13283 (eval $ac_link) 2>&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13287 (./conftest; exit; ) 2>/dev/null
13289 case x$lt_status in
13290 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13291 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13292 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13295 # compilation failed
13296 lt_cv_dlopen_self_static=no
13303 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13304 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13307 CPPFLAGS="$save_CPPFLAGS"
13308 LDFLAGS="$save_LDFLAGS"
13313 case $lt_cv_dlopen_self in
13314 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13315 *) enable_dlopen_self=unknown ;;
13318 case $lt_cv_dlopen_self_static in
13319 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13320 *) enable_dlopen_self_static=unknown ;;
13325 # The else clause should only fire when bootstrapping the
13326 # libtool distribution, otherwise you forgot to ship ltmain.sh
13327 # with your package, and you will get complaints that there are
13328 # no rules to generate ltmain.sh.
13329 if test -f "$ltmain"; then
13330 # See if we are running on zsh, and set the options which allow our commands through
13331 # without removal of \ escapes.
13332 if test -n "${ZSH_VERSION+set}" ; then
13333 setopt NO_GLOB_SUBST
13335 # Now quote all the things that may contain metacharacters while being
13336 # careful not to overquote the AC_SUBSTed values. We take copies of the
13337 # variables and quote the copies for generation of the libtool script.
13338 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13340 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13341 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13342 deplibs_check_method reload_flag reload_cmds need_locks \
13343 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13344 lt_cv_sys_global_symbol_to_c_name_address \
13345 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13346 old_postinstall_cmds old_postuninstall_cmds \
13350 lt_prog_compiler_wl_CXX \
13351 lt_prog_compiler_pic_CXX \
13352 lt_prog_compiler_static_CXX \
13353 lt_prog_compiler_no_builtin_flag_CXX \
13354 export_dynamic_flag_spec_CXX \
13355 thread_safe_flag_spec_CXX \
13356 whole_archive_flag_spec_CXX \
13357 enable_shared_with_static_runtimes_CXX \
13358 old_archive_cmds_CXX \
13359 old_archive_from_new_cmds_CXX \
13360 predep_objects_CXX \
13361 postdep_objects_CXX \
13364 compiler_lib_search_path_CXX \
13366 archive_expsym_cmds_CXX \
13367 postinstall_cmds_CXX \
13368 postuninstall_cmds_CXX \
13369 old_archive_from_expsyms_cmds_CXX \
13370 allow_undefined_flag_CXX \
13371 no_undefined_flag_CXX \
13372 export_symbols_cmds_CXX \
13373 hardcode_libdir_flag_spec_CXX \
13374 hardcode_libdir_flag_spec_ld_CXX \
13375 hardcode_libdir_separator_CXX \
13376 hardcode_automatic_CXX \
13378 module_expsym_cmds_CXX \
13379 lt_cv_prog_compiler_c_o_CXX \
13380 exclude_expsyms_CXX \
13381 include_expsyms_CXX; do
13384 old_archive_cmds_CXX | \
13385 old_archive_from_new_cmds_CXX | \
13386 archive_cmds_CXX | \
13387 archive_expsym_cmds_CXX | \
13388 module_cmds_CXX | \
13389 module_expsym_cmds_CXX | \
13390 old_archive_from_expsyms_cmds_CXX | \
13391 export_symbols_cmds_CXX | \
13392 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13393 postinstall_cmds | postuninstall_cmds | \
13394 old_postinstall_cmds | old_postuninstall_cmds | \
13395 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13396 # Double-quote double-evaled strings.
13397 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13400 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13406 *'\$0 --fallback-echo"')
13407 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13413 cat <<__EOF__ >> "$cfgfile"
13414 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13416 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13418 # Shell to use when invoking shell scripts.
13421 # Whether or not to build shared libraries.
13422 build_libtool_libs=$enable_shared
13424 # Whether or not to build static libraries.
13425 build_old_libs=$enable_static
13427 # Whether or not to add -lc for building shared libraries.
13428 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13430 # Whether or not to disallow shared libs when runtime libs are static
13431 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13433 # Whether or not to optimize for fast installation.
13434 fast_install=$enable_fast_install
13437 host_alias=$host_alias
13440 # An echo program that does not interpret backslashes.
13445 AR_FLAGS=$lt_AR_FLAGS
13450 # A language-specific compiler.
13451 CC=$lt_compiler_CXX
13453 # Is the compiler the GNU C compiler?
13459 # The linker used to build libraries.
13462 # Whether we need hard or soft links.
13465 # A BSD-compatible nm program.
13468 # A symbol stripping program
13471 # Used to examine libraries when file_magic_cmd begins "file"
13472 MAGIC_CMD=$MAGIC_CMD
13474 # Used on cygwin: DLL creation program.
13477 # Used on cygwin: object dumper.
13480 # Used on cygwin: assembler.
13483 # The name of the directory that contains temporary libtool files.
13486 # How to create reloadable object files.
13487 reload_flag=$lt_reload_flag
13488 reload_cmds=$lt_reload_cmds
13490 # How to pass a linker flag through the compiler.
13491 wl=$lt_lt_prog_compiler_wl_CXX
13493 # Object file suffix (normally "o").
13494 objext="$ac_objext"
13496 # Old archive suffix (normally "a").
13499 # Shared library suffix (normally ".so").
13500 shrext_cmds='$shrext_cmds'
13502 # Executable file suffix (normally "").
13505 # Additional compiler flags for building library objects.
13506 pic_flag=$lt_lt_prog_compiler_pic_CXX
13509 # What is the maximum length of a command?
13510 max_cmd_len=$lt_cv_sys_max_cmd_len
13512 # Does compiler simultaneously support -c and -o options?
13513 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13515 # Must we lock files when doing compilation ?
13516 need_locks=$lt_need_locks
13518 # Do we need the lib prefix for modules?
13519 need_lib_prefix=$need_lib_prefix
13521 # Do we need a version for libraries?
13522 need_version=$need_version
13524 # Whether dlopen is supported.
13525 dlopen_support=$enable_dlopen
13527 # Whether dlopen of programs is supported.
13528 dlopen_self=$enable_dlopen_self
13530 # Whether dlopen of statically linked programs is supported.
13531 dlopen_self_static=$enable_dlopen_self_static
13533 # Compiler flag to prevent dynamic linking.
13534 link_static_flag=$lt_lt_prog_compiler_static_CXX
13536 # Compiler flag to turn off builtin functions.
13537 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13539 # Compiler flag to allow reflexive dlopens.
13540 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13542 # Compiler flag to generate shared objects directly from archives.
13543 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13545 # Compiler flag to generate thread-safe objects.
13546 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13548 # Library versioning type.
13549 version_type=$version_type
13551 # Format of library name prefix.
13552 libname_spec=$lt_libname_spec
13554 # List of archive names. First name is the real one, the rest are links.
13555 # The last name is the one that the linker finds with -lNAME.
13556 library_names_spec=$lt_library_names_spec
13558 # The coded name of the library, if different from the real name.
13559 soname_spec=$lt_soname_spec
13561 # Commands used to build and install an old-style archive.
13563 old_archive_cmds=$lt_old_archive_cmds_CXX
13564 old_postinstall_cmds=$lt_old_postinstall_cmds
13565 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13567 # Create an old-style archive from a shared archive.
13568 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13570 # Create a temporary old-style archive to link instead of a shared archive.
13571 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13573 # Commands used to build and install a shared archive.
13574 archive_cmds=$lt_archive_cmds_CXX
13575 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13576 postinstall_cmds=$lt_postinstall_cmds
13577 postuninstall_cmds=$lt_postuninstall_cmds
13579 # Commands used to build a loadable module (assumed same as above if empty)
13580 module_cmds=$lt_module_cmds_CXX
13581 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13583 # Commands to strip libraries.
13584 old_striplib=$lt_old_striplib
13585 striplib=$lt_striplib
13587 # Dependencies to place before the objects being linked to create a
13589 predep_objects=$lt_predep_objects_CXX
13591 # Dependencies to place after the objects being linked to create a
13593 postdep_objects=$lt_postdep_objects_CXX
13595 # Dependencies to place before the objects being linked to create a
13597 predeps=$lt_predeps_CXX
13599 # Dependencies to place after the objects being linked to create a
13601 postdeps=$lt_postdeps_CXX
13603 # The library search path used internally by the compiler when linking
13604 # a shared library.
13605 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13607 # Method to check whether dependent libraries are shared objects.
13608 deplibs_check_method=$lt_deplibs_check_method
13610 # Command to use when deplibs_check_method == file_magic.
13611 file_magic_cmd=$lt_file_magic_cmd
13613 # Flag that allows shared libraries with undefined symbols to be built.
13614 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13616 # Flag that forces no undefined symbols.
13617 no_undefined_flag=$lt_no_undefined_flag_CXX
13619 # Commands used to finish a libtool library installation in a directory.
13620 finish_cmds=$lt_finish_cmds
13622 # Same as above, but a single script fragment to be evaled but not shown.
13623 finish_eval=$lt_finish_eval
13625 # Take the output of nm and produce a listing of raw symbols and C names.
13626 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13628 # Transform the output of nm in a proper C declaration
13629 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13631 # Transform the output of nm in a C name address pair
13632 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13634 # This is the shared library runtime path variable.
13635 runpath_var=$runpath_var
13637 # This is the shared library path variable.
13638 shlibpath_var=$shlibpath_var
13640 # Is shlibpath searched before the hard-coded library search path?
13641 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13643 # How to hardcode a shared library path into an executable.
13644 hardcode_action=$hardcode_action_CXX
13646 # Whether we should hardcode library paths into libraries.
13647 hardcode_into_libs=$hardcode_into_libs
13649 # Flag to hardcode \$libdir into a binary during linking.
13650 # This must work even if \$libdir does not exist.
13651 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13653 # If ld is used when linking, flag to hardcode \$libdir into
13654 # a binary during linking. This must work even if \$libdir does
13656 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13658 # Whether we need a single -rpath flag with a separated argument.
13659 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13661 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13662 # resulting binary.
13663 hardcode_direct=$hardcode_direct_CXX
13665 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13666 # resulting binary.
13667 hardcode_minus_L=$hardcode_minus_L_CXX
13669 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13670 # the resulting binary.
13671 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13673 # Set to yes if building a shared library automatically hardcodes DIR into the library
13674 # and all subsequent libraries and executables linked against it.
13675 hardcode_automatic=$hardcode_automatic_CXX
13677 # Variables whose values should be saved in libtool wrapper scripts and
13678 # restored at relink time.
13679 variables_saved_for_relink="$variables_saved_for_relink"
13681 # Whether libtool must link a program against all its dependency libraries.
13682 link_all_deplibs=$link_all_deplibs_CXX
13684 # Compile-time system search path for libraries
13685 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13687 # Run-time system search path for libraries
13688 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13690 # Fix the shell variable \$srcfile for the compiler.
13691 fix_srcfile_path="$fix_srcfile_path_CXX"
13693 # Set to yes if exported symbols are required.
13694 always_export_symbols=$always_export_symbols_CXX
13696 # The commands to list exported symbols.
13697 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13699 # The commands to extract the exported symbol list from a shared archive.
13700 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13702 # Symbols that should not be listed in the preloaded symbols.
13703 exclude_expsyms=$lt_exclude_expsyms_CXX
13705 # Symbols that must always be exported.
13706 include_expsyms=$lt_include_expsyms_CXX
13708 # ### END LIBTOOL TAG CONFIG: $tagname
13714 # If there is no Makefile yet, we rely on a make rule to execute
13715 # `config.status --recheck' to rerun these tests and create the
13716 # libtool script then.
13717 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13718 if test -f "$ltmain_in"; then
13719 test -f Makefile && make "$ltmain"
13725 ac_cpp='$CPP $CPPFLAGS'
13726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13734 with_gnu_ldcxx=$with_gnu_ld
13735 with_gnu_ld=$lt_save_with_gnu_ld
13736 lt_cv_path_LDCXX=$lt_cv_path_LD
13737 lt_cv_path_LD=$lt_save_path_LD
13738 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13739 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13747 if test -n "$F77" && test "X$F77" != "Xno"; then
13750 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13751 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13752 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13755 archive_cmds_need_lc_F77=no
13756 allow_undefined_flag_F77=
13757 always_export_symbols_F77=no
13758 archive_expsym_cmds_F77=
13759 export_dynamic_flag_spec_F77=
13760 hardcode_direct_F77=no
13761 hardcode_libdir_flag_spec_F77=
13762 hardcode_libdir_flag_spec_ld_F77=
13763 hardcode_libdir_separator_F77=
13764 hardcode_minus_L_F77=no
13765 hardcode_automatic_F77=no
13767 module_expsym_cmds_F77=
13768 link_all_deplibs_F77=unknown
13769 old_archive_cmds_F77=$old_archive_cmds
13770 no_undefined_flag_F77=
13771 whole_archive_flag_spec_F77=
13772 enable_shared_with_static_runtimes_F77=no
13774 # Source file extension for f77 test sources.
13777 # Object file extension for compiled f77 test sources.
13781 # Code to be used in simple compile tests
13782 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13784 # Code to be used in simple link tests
13785 lt_simple_link_test_code=" program t\n end\n"
13787 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13789 # If no C compiler was specified, use CC.
13792 # Allow CC to be a program name with arguments.
13796 # Allow CC to be a program name with arguments.
13801 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13803 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13804 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13805 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13806 echo "${ECHO_T}$can_build_shared" >&6
13808 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13809 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13810 test "$can_build_shared" = "no" && enable_shared=no
13812 # On AIX, shared libraries and static libraries use the same namespace, and
13813 # are all built from PIC.
13816 test "$enable_shared" = yes && enable_static=no
13817 if test -n "$RANLIB"; then
13818 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13819 postinstall_cmds='$RANLIB $lib'
13823 test "$enable_shared" = yes && enable_static=no
13826 echo "$as_me:$LINENO: result: $enable_shared" >&5
13827 echo "${ECHO_T}$enable_shared" >&6
13829 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13830 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13831 # Make sure either enable_shared or enable_static is yes.
13832 test "$enable_shared" = yes || enable_static=yes
13833 echo "$as_me:$LINENO: result: $enable_static" >&5
13834 echo "${ECHO_T}$enable_static" >&6
13836 test "$ld_shlibs_F77" = no && can_build_shared=no
13841 lt_prog_compiler_wl_F77=
13842 lt_prog_compiler_pic_F77=
13843 lt_prog_compiler_static_F77=
13845 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13846 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13848 if test "$GCC" = yes; then
13849 lt_prog_compiler_wl_F77='-Wl,'
13850 lt_prog_compiler_static_F77='-static'
13854 # All AIX code is PIC.
13855 if test "$host_cpu" = ia64; then
13856 # AIX 5 now supports IA64 processor
13857 lt_prog_compiler_static_F77='-Bstatic'
13862 # FIXME: we need at least 68020 code to build shared libraries, but
13863 # adding the `-m68020' flag to GCC prevents building anything better,
13865 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13868 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13869 # PIC is the default for these OSes.
13872 mingw* | pw32* | os2*)
13873 # This hack is so that the source file can tell whether it is being
13874 # built for inclusion in a dll (and should export symbols for example).
13875 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13878 darwin* | rhapsody*)
13879 # PIC is the default on this platform
13880 # Common symbols not allowed in MH_DYLIB files
13881 lt_prog_compiler_pic_F77='-fno-common'
13885 # Just because we use GCC doesn't mean we suddenly get shared libraries
13886 # on systems that don't support them.
13887 lt_prog_compiler_can_build_shared_F77=no
13892 if test -d /usr/nec; then
13893 lt_prog_compiler_pic_F77=-Kconform_pic
13898 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13899 # not for PA HP-UX.
13900 case "$host_cpu" in
13905 lt_prog_compiler_pic_F77='-fPIC'
13911 lt_prog_compiler_pic_F77='-fPIC'
13915 # PORTME Check for flag to pass linker flags through the system compiler.
13918 lt_prog_compiler_wl_F77='-Wl,'
13919 if test "$host_cpu" = ia64; then
13920 # AIX 5 now supports IA64 processor
13921 lt_prog_compiler_static_F77='-Bstatic'
13923 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13927 # PIC is the default on this platform
13928 # Common symbols not allowed in MH_DYLIB files
13929 case "$cc_basename" in
13931 lt_prog_compiler_pic_F77='-qnocommon'
13932 lt_prog_compiler_wl_F77='-Wl,'
13937 mingw* | pw32* | os2*)
13938 # This hack is so that the source file can tell whether it is being
13939 # built for inclusion in a dll (and should export symbols for example).
13940 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13943 hpux9* | hpux10* | hpux11*)
13944 lt_prog_compiler_wl_F77='-Wl,'
13945 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13946 # not for PA HP-UX.
13947 case "$host_cpu" in
13952 lt_prog_compiler_pic_F77='+Z'
13955 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13956 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13959 irix5* | irix6* | nonstopux*)
13960 lt_prog_compiler_wl_F77='-Wl,'
13961 # PIC (with -KPIC) is the default.
13962 lt_prog_compiler_static_F77='-non_shared'
13966 lt_prog_compiler_pic_F77='-KPIC'
13967 lt_prog_compiler_static_F77='-Bstatic'
13973 lt_prog_compiler_wl_F77='-Wl,'
13974 lt_prog_compiler_pic_F77='-KPIC'
13975 lt_prog_compiler_static_F77='-static'
13978 lt_prog_compiler_wl_F77='-Wl,'
13979 # All Alpha code is PIC.
13980 lt_prog_compiler_static_F77='-non_shared'
13985 osf3* | osf4* | osf5*)
13986 lt_prog_compiler_wl_F77='-Wl,'
13987 # All OSF/1 code is PIC.
13988 lt_prog_compiler_static_F77='-non_shared'
13992 lt_prog_compiler_pic_F77='-Kpic'
13993 lt_prog_compiler_static_F77='-dn'
13997 lt_prog_compiler_wl_F77='-Wl,'
13998 lt_prog_compiler_pic_F77='-KPIC'
13999 lt_prog_compiler_static_F77='-Bstatic'
14003 lt_prog_compiler_wl_F77='-Qoption ld '
14004 lt_prog_compiler_pic_F77='-PIC'
14005 lt_prog_compiler_static_F77='-Bstatic'
14008 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14009 lt_prog_compiler_wl_F77='-Wl,'
14010 lt_prog_compiler_pic_F77='-KPIC'
14011 lt_prog_compiler_static_F77='-Bstatic'
14015 if test -d /usr/nec ;then
14016 lt_prog_compiler_pic_F77='-Kconform_pic'
14017 lt_prog_compiler_static_F77='-Bstatic'
14022 lt_prog_compiler_pic_F77='-pic'
14023 lt_prog_compiler_static_F77='-Bstatic'
14027 lt_prog_compiler_can_build_shared_F77=no
14032 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14033 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14036 # Check to make sure the PIC flag actually works.
14038 if test -n "$lt_prog_compiler_pic_F77"; then
14040 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14041 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14042 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 lt_prog_compiler_pic_works_F77=no
14046 ac_outfile=conftest.$ac_objext
14047 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14048 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14049 # Insert the option either (1) after the last *FLAGS variable, or
14050 # (2) before a word containing "conftest.", or (3) at the end.
14051 # Note that $ac_compile itself does not contain backslashes and begins
14052 # with a dollar sign (not a hyphen), so the echo should work correctly.
14053 # The option is referenced via a variable to avoid confusing sed.
14054 lt_compile=`echo "$ac_compile" | $SED \
14055 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14057 -e 's:$: $lt_compiler_flag:'`
14058 (eval echo "\"\$as_me:14058: $lt_compile\"" >&5)
14059 (eval "$lt_compile" 2>conftest.err)
14061 cat conftest.err >&5
14062 echo "$as_me:14062: \$? = $ac_status" >&5
14063 if (exit $ac_status) && test -s "$ac_outfile"; then
14064 # The compiler can only warn and ignore the option if not recognized
14065 # So say no if there are warnings
14066 if test ! -s conftest.err; then
14067 lt_prog_compiler_pic_works_F77=yes
14073 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14074 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14076 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14077 case $lt_prog_compiler_pic_F77 in
14079 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14082 lt_prog_compiler_pic_F77=
14083 lt_prog_compiler_can_build_shared_F77=no
14088 # For platforms which do not support PIC, -DPIC is meaningless:
14090 lt_prog_compiler_pic_F77=
14093 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14097 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14098 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14099 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 lt_cv_prog_compiler_c_o_F77=no
14103 $rm -r conftest 2>/dev/null
14107 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14109 lt_compiler_flag="-o out/conftest2.$ac_objext"
14110 # Insert the option either (1) after the last *FLAGS variable, or
14111 # (2) before a word containing "conftest.", or (3) at the end.
14112 # Note that $ac_compile itself does not contain backslashes and begins
14113 # with a dollar sign (not a hyphen), so the echo should work correctly.
14114 lt_compile=`echo "$ac_compile" | $SED \
14115 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14117 -e 's:$: $lt_compiler_flag:'`
14118 (eval echo "\"\$as_me:14118: $lt_compile\"" >&5)
14119 (eval "$lt_compile" 2>out/conftest.err)
14121 cat out/conftest.err >&5
14122 echo "$as_me:14122: \$? = $ac_status" >&5
14123 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14125 # The compiler can only warn and ignore the option if not recognized
14126 # So say no if there are warnings
14127 if test ! -s out/conftest.err; then
14128 lt_cv_prog_compiler_c_o_F77=yes
14133 # SGI C++ compiler will create directory out/ii_files/ for
14134 # template instantiation
14135 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14136 $rm out/* && rmdir out
14142 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14143 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14146 hard_links="nottested"
14147 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14148 # do not overwrite the value of need_locks provided by the user
14149 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14150 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14155 ln conftest.a conftest.b 2>&5 || hard_links=no
14156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14157 echo "$as_me:$LINENO: result: $hard_links" >&5
14158 echo "${ECHO_T}$hard_links" >&6
14159 if test "$hard_links" = no; then
14160 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14161 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14168 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14169 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14172 allow_undefined_flag_F77=
14173 enable_shared_with_static_runtimes_F77=no
14175 archive_expsym_cmds_F77=
14176 old_archive_From_new_cmds_F77=
14177 old_archive_from_expsyms_cmds_F77=
14178 export_dynamic_flag_spec_F77=
14179 whole_archive_flag_spec_F77=
14180 thread_safe_flag_spec_F77=
14181 hardcode_libdir_flag_spec_F77=
14182 hardcode_libdir_flag_spec_ld_F77=
14183 hardcode_libdir_separator_F77=
14184 hardcode_direct_F77=no
14185 hardcode_minus_L_F77=no
14186 hardcode_shlibpath_var_F77=unsupported
14187 link_all_deplibs_F77=unknown
14188 hardcode_automatic_F77=no
14190 module_expsym_cmds_F77=
14191 always_export_symbols_F77=no
14192 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14193 # include_expsyms should be a list of space-separated symbols to be *always*
14194 # included in the symbol list
14195 include_expsyms_F77=
14196 # exclude_expsyms can be an extended regexp of symbols to exclude
14197 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14198 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14199 # as well as any symbol that contains `d'.
14200 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14201 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14202 # platforms (ab)use it in PIC code, but their linkers get confused if
14203 # the symbol is explicitly referenced. Since portable code cannot
14204 # rely on this symbol name, it's probably fine to never include it in
14205 # preloaded symbol tables.
14206 extract_expsyms_cmds=
14209 cygwin* | mingw* | pw32*)
14210 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14211 # When not using gcc, we currently assume that we are using
14212 # Microsoft Visual C++.
14213 if test "$GCC" != yes; then
14223 if test "$with_gnu_ld" = yes; then
14224 # If archive_cmds runs LD, not CC, wlarc should be empty
14227 # See if GNU ld supports shared libraries.
14229 aix3* | aix4* | aix5*)
14230 # On AIX/PPC, the GNU linker is very broken
14231 if test "$host_cpu" != ia64; then
14235 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14236 *** to be unable to reliably create shared libraries on AIX.
14237 *** Therefore, libtool is disabling shared libraries support. If you
14238 *** really care for shared libraries, you may want to modify your PATH
14239 *** so that a non-GNU linker is found, and then restart.
14246 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)'
14247 hardcode_libdir_flag_spec_F77='-L$libdir'
14248 hardcode_minus_L_F77=yes
14250 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14251 # that the semantics of dynamic libraries on AmigaOS, at least up
14252 # to version 4, is to share data among multiple programs linked
14253 # with the same dynamic library. Since this doesn't match the
14254 # behavior of shared libraries on other platforms, we can't use
14260 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14261 allow_undefined_flag_F77=unsupported
14262 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14263 # support --undefined. This deserves some investigation. FIXME
14264 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14270 cygwin* | mingw* | pw32*)
14271 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14272 # as there is no search path for DLLs.
14273 hardcode_libdir_flag_spec_F77='-L$libdir'
14274 allow_undefined_flag_F77=unsupported
14275 always_export_symbols_F77=no
14276 enable_shared_with_static_runtimes_F77=yes
14277 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14279 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14280 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14281 # If the export-symbols file already is a .def file (1st line
14282 # is EXPORTS), use it as is; otherwise, prepend...
14283 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14284 cp $export_symbols $output_objdir/$soname.def;
14286 echo EXPORTS > $output_objdir/$soname.def;
14287 cat $export_symbols >> $output_objdir/$soname.def;
14289 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14296 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14297 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14300 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14301 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14306 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14310 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14311 *** create shared libraries on Solaris systems. Therefore, libtool
14312 *** is disabling shared libraries support. We urge you to upgrade GNU
14313 *** binutils to release 2.9.1 or newer. Another option is to modify
14314 *** your PATH or compiler configuration so that the native linker is
14315 *** used, and then restart.
14318 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14319 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14320 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14327 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14329 hardcode_direct_F77=yes
14330 hardcode_shlibpath_var_F77=no
14334 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14335 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14336 archive_cmds_F77="$tmp_archive_cmds"
14337 supports_anon_versioning=no
14338 case `$LD -v 2>/dev/null` in
14339 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14340 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14341 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14342 *\ 2.11.*) ;; # other 2.11 versions
14343 *) supports_anon_versioning=yes ;;
14345 if test $supports_anon_versioning = yes; then
14346 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14347 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14348 $echo "local: *; };" >> $output_objdir/$libname.ver~
14349 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14351 archive_expsym_cmds_F77="$tmp_archive_cmds"
14359 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14360 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14361 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14368 if test "$ld_shlibs_F77" = yes; then
14369 runpath_var=LD_RUN_PATH
14370 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14371 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14372 # ancient GNU ld didn't support --whole-archive et. al.
14373 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14374 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14376 whole_archive_flag_spec_F77=
14380 # PORTME fill in a description of your system's linker (not GNU ld)
14383 allow_undefined_flag_F77=unsupported
14384 always_export_symbols_F77=yes
14385 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'
14386 # Note: this linker hardcodes the directories in LIBPATH if there
14387 # are no directories specified by -L.
14388 hardcode_minus_L_F77=yes
14389 if test "$GCC" = yes && test -z "$link_static_flag"; then
14390 # Neither direct hardcoding nor static linking is supported with a
14392 hardcode_direct_F77=unsupported
14397 if test "$host_cpu" = ia64; then
14398 # On IA64, the linker does run time linking by default, so we don't
14399 # have to do anything special.
14400 aix_use_runtimelinking=no
14401 exp_sym_flag='-Bexport'
14404 # If we're using GNU nm, then we don't want the "-C" option.
14405 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14406 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14407 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'
14409 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'
14411 aix_use_runtimelinking=no
14413 # Test if we are trying to use run time linking or normal
14414 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14415 # need to do runtime linking.
14416 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14417 for ld_flag in $LDFLAGS; do
14418 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14419 aix_use_runtimelinking=yes
14425 exp_sym_flag='-bexport'
14426 no_entry_flag='-bnoentry'
14429 # When large executables or shared objects are built, AIX ld can
14430 # have problems creating the table of contents. If linking a library
14431 # or program results in "error TOC overflow" add -mminimal-toc to
14432 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14433 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14435 archive_cmds_F77=''
14436 hardcode_direct_F77=yes
14437 hardcode_libdir_separator_F77=':'
14438 link_all_deplibs_F77=yes
14440 if test "$GCC" = yes; then
14441 case $host_os in aix4.012|aix4.012.*)
14442 # We only want to do this on AIX 4.2 and lower, the check
14443 # below for broken collect2 doesn't work under 4.3+
14444 collect2name=`${CC} -print-prog-name=collect2`
14445 if test -f "$collect2name" && \
14446 strings "$collect2name" | grep resolve_lib_name >/dev/null
14448 # We have reworked collect2
14449 hardcode_direct_F77=yes
14451 # We have old collect2
14452 hardcode_direct_F77=unsupported
14453 # It fails to find uninstalled libraries when the uninstalled
14454 # path is not listed in the libpath. Setting hardcode_minus_L
14455 # to unsupported forces relinking
14456 hardcode_minus_L_F77=yes
14457 hardcode_libdir_flag_spec_F77='-L$libdir'
14458 hardcode_libdir_separator_F77=
14461 shared_flag='-shared'
14464 if test "$host_cpu" = ia64; then
14465 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14466 # chokes on -Wl,-G. The following line is correct:
14469 if test "$aix_use_runtimelinking" = yes; then
14470 shared_flag='${wl}-G'
14472 shared_flag='${wl}-bM:SRE'
14477 # It seems that -bexpall does not export symbols beginning with
14478 # underscore (_), so it is better to generate a list of symbols to export.
14479 always_export_symbols_F77=yes
14480 if test "$aix_use_runtimelinking" = yes; then
14481 # Warning - without using the other runtime loading flags (-brtl),
14482 # -berok will link without error, but may produce a broken library.
14483 allow_undefined_flag_F77='-berok'
14484 # Determine the default libpath from the value encoded in an empty executable.
14485 cat >conftest.$ac_ext <<_ACEOF
14490 rm -f conftest.$ac_objext conftest$ac_exeext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14492 (eval $ac_link) 2>conftest.er1
14494 grep -v '^ *+' conftest.er1 >conftest.err
14496 cat conftest.err >&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } &&
14499 { ac_try='test -z "$ac_f77_werror_flag"
14500 || test ! -s conftest.err'
14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 (eval $ac_try) 2>&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; } &&
14506 { ac_try='test -s conftest$ac_exeext'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14515 # Check for a 64-bit object if we didn't find anything.
14516 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; }
14519 echo "$as_me: failed program was:" >&5
14520 sed 's/^/| /' conftest.$ac_ext >&5
14523 rm -f conftest.err conftest.$ac_objext \
14524 conftest$ac_exeext conftest.$ac_ext
14525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14527 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14528 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"
14530 if test "$host_cpu" = ia64; then
14531 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14532 allow_undefined_flag_F77="-z nodefs"
14533 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"
14535 # Determine the default libpath from the value encoded in an empty executable.
14536 cat >conftest.$ac_ext <<_ACEOF
14541 rm -f conftest.$ac_objext conftest$ac_exeext
14542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14543 (eval $ac_link) 2>conftest.er1
14545 grep -v '^ *+' conftest.er1 >conftest.err
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -z "$ac_f77_werror_flag"
14551 || test ! -s conftest.err'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; } &&
14557 { ac_try='test -s conftest$ac_exeext'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
14564 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14566 # Check for a 64-bit object if we didn't find anything.
14567 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; }
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14574 rm -f conftest.err conftest.$ac_objext \
14575 conftest$ac_exeext conftest.$ac_ext
14576 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14578 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14579 # Warning - without using the other run time loading flags,
14580 # -berok will link without error, but may produce a broken library.
14581 no_undefined_flag_F77=' ${wl}-bernotok'
14582 allow_undefined_flag_F77=' ${wl}-berok'
14583 # -bexpall does not export symbols beginning with underscore (_)
14584 always_export_symbols_F77=yes
14585 # Exported symbols can be pulled into shared objects from archives
14586 whole_archive_flag_spec_F77=' '
14587 archive_cmds_need_lc_F77=yes
14588 # This is similar to how AIX traditionally builds it's shared libraries.
14589 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'
14595 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)'
14596 hardcode_libdir_flag_spec_F77='-L$libdir'
14597 hardcode_minus_L_F77=yes
14598 # see comment about different semantics on the GNU ld section
14603 export_dynamic_flag_spec_F77=-rdynamic
14606 cygwin* | mingw* | pw32*)
14607 # When not using gcc, we currently assume that we are using
14608 # Microsoft Visual C++.
14609 # hardcode_libdir_flag_spec is actually meaningless, as there is
14610 # no search path for DLLs.
14611 hardcode_libdir_flag_spec_F77=' '
14612 allow_undefined_flag_F77=unsupported
14613 # Tell ltmain to make .lib files, not .a files.
14615 # Tell ltmain to make .dll files, not .so files.
14617 # FIXME: Setting linknames here is a bad hack.
14618 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14619 # The linker will automatically build a .lib file if we build a DLL.
14620 old_archive_From_new_cmds_F77='true'
14621 # FIXME: Should let the user specify the lib program.
14622 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14623 fix_srcfile_path='`cygpath -w "$srcfile"`'
14624 enable_shared_with_static_runtimes_F77=yes
14627 darwin* | rhapsody*)
14629 rhapsody* | darwin1.[012])
14630 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14633 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14634 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14636 case ${MACOSX_DEPLOYMENT_TARGET} in
14638 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14641 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14647 archive_cmds_need_lc_F77=no
14648 hardcode_direct_F77=no
14649 hardcode_automatic_F77=yes
14650 hardcode_shlibpath_var_F77=unsupported
14651 whole_archive_flag_spec_F77=''
14652 link_all_deplibs_F77=yes
14653 if test "$GCC" = yes ; then
14654 output_verbose_link_cmd='echo'
14655 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14656 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14657 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14658 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}'
14659 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}'
14661 case "$cc_basename" in
14663 output_verbose_link_cmd='echo'
14664 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14665 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14666 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14667 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}'
14668 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}'
14678 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14679 hardcode_libdir_flag_spec_F77='-L$libdir'
14680 hardcode_shlibpath_var_F77=no
14687 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14688 # support. Future versions do this automatically, but an explicit c++rt0.o
14689 # does not break anything, and helps significantly (at the cost of a little
14692 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14693 hardcode_libdir_flag_spec_F77='-R$libdir'
14694 hardcode_direct_F77=yes
14695 hardcode_shlibpath_var_F77=no
14698 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14700 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14701 hardcode_direct_F77=yes
14702 hardcode_minus_L_F77=yes
14703 hardcode_shlibpath_var_F77=no
14706 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14707 freebsd* | kfreebsd*-gnu)
14708 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14709 hardcode_libdir_flag_spec_F77='-R$libdir'
14710 hardcode_direct_F77=yes
14711 hardcode_shlibpath_var_F77=no
14715 if test "$GCC" = yes; then
14716 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'
14718 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'
14720 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14721 hardcode_libdir_separator_F77=:
14722 hardcode_direct_F77=yes
14724 # hardcode_minus_L: Not really in the search PATH,
14725 # but as the default location of the library.
14726 hardcode_minus_L_F77=yes
14727 export_dynamic_flag_spec_F77='${wl}-E'
14731 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14732 case "$host_cpu" in
14734 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14737 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14741 case "$host_cpu" in
14743 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14746 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14750 if test "$with_gnu_ld" = no; then
14751 case "$host_cpu" in
14753 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14754 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14755 hardcode_libdir_separator_F77=:
14756 hardcode_direct_F77=no
14757 hardcode_shlibpath_var_F77=no
14760 hardcode_libdir_flag_spec_F77='-L$libdir'
14761 hardcode_direct_F77=no
14762 hardcode_shlibpath_var_F77=no
14764 # hardcode_minus_L: Not really in the search PATH,
14765 # but as the default location of the library.
14766 hardcode_minus_L_F77=yes
14769 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14770 hardcode_libdir_separator_F77=:
14771 hardcode_direct_F77=yes
14772 export_dynamic_flag_spec_F77='${wl}-E'
14774 # hardcode_minus_L: Not really in the search PATH,
14775 # but as the default location of the library.
14776 hardcode_minus_L_F77=yes
14782 irix5* | irix6* | nonstopux*)
14783 if test "$GCC" = yes; then
14784 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'
14786 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'
14787 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14789 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14790 hardcode_libdir_separator_F77=:
14791 link_all_deplibs_F77=yes
14795 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14796 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14798 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14800 hardcode_libdir_flag_spec_F77='-R$libdir'
14801 hardcode_direct_F77=yes
14802 hardcode_shlibpath_var_F77=no
14806 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14807 hardcode_direct_F77=yes
14808 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14809 hardcode_libdir_separator_F77=:
14810 hardcode_shlibpath_var_F77=no
14814 hardcode_direct_F77=yes
14815 hardcode_shlibpath_var_F77=no
14816 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14817 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14818 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14819 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14820 export_dynamic_flag_spec_F77='${wl}-E'
14823 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14824 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14825 hardcode_libdir_flag_spec_F77='-R$libdir'
14828 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14829 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14836 hardcode_libdir_flag_spec_F77='-L$libdir'
14837 hardcode_minus_L_F77=yes
14838 allow_undefined_flag_F77=unsupported
14839 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'
14840 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14844 if test "$GCC" = yes; then
14845 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14846 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'
14848 allow_undefined_flag_F77=' -expect_unresolved \*'
14849 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'
14851 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14852 hardcode_libdir_separator_F77=:
14855 osf4* | osf5*) # as osf3* with the addition of -msym flag
14856 if test "$GCC" = yes; then
14857 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14858 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'
14859 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14861 allow_undefined_flag_F77=' -expect_unresolved \*'
14862 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'
14863 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~
14864 $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'
14866 # Both c and cxx compiler support -rpath directly
14867 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14869 hardcode_libdir_separator_F77=:
14873 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14874 hardcode_shlibpath_var_F77=no
14875 export_dynamic_flag_spec_F77='${wl}-Bexport'
14876 runpath_var=LD_RUN_PATH
14877 hardcode_runpath_var=yes
14881 no_undefined_flag_F77=' -z text'
14882 if test "$GCC" = yes; then
14883 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14884 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14885 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14887 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14888 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14889 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14891 hardcode_libdir_flag_spec_F77='-R$libdir'
14892 hardcode_shlibpath_var_F77=no
14894 solaris2.[0-5] | solaris2.[0-5].*) ;;
14895 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14896 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14898 link_all_deplibs_F77=yes
14902 if test "x$host_vendor" = xsequent; then
14903 # Use $CC to link under sequent, because it throws in some extra .o
14904 # files that make .init and .fini sections work.
14905 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14907 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14909 hardcode_libdir_flag_spec_F77='-L$libdir'
14910 hardcode_direct_F77=yes
14911 hardcode_minus_L_F77=yes
14912 hardcode_shlibpath_var_F77=no
14916 case $host_vendor in
14918 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14919 hardcode_direct_F77=yes # is this really true???
14922 ## LD is ld it makes a PLAMLIB
14923 ## CC just makes a GrossModule.
14924 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14925 reload_cmds_F77='$CC -r -o $output$reload_objs'
14926 hardcode_direct_F77=no
14929 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14930 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14933 runpath_var='LD_RUN_PATH'
14934 hardcode_shlibpath_var_F77=no
14938 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14939 hardcode_shlibpath_var_F77=no
14940 export_dynamic_flag_spec_F77='-Bexport'
14944 if test -d /usr/nec; then
14945 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14946 hardcode_shlibpath_var_F77=no
14947 runpath_var=LD_RUN_PATH
14948 hardcode_runpath_var=yes
14954 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14955 hardcode_direct_F77=yes
14956 hardcode_minus_L_F77=no
14957 hardcode_shlibpath_var_F77=no
14958 hardcode_runpath_var=yes
14959 runpath_var=LD_RUN_PATH
14962 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14963 no_undefined_flag_F77='${wl}-z ${wl}text'
14964 if test "$GCC" = yes; then
14965 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14967 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14969 runpath_var='LD_RUN_PATH'
14970 hardcode_shlibpath_var_F77=no
14974 no_undefined_flag_F77=' -z text'
14975 # $CC -shared without GNU ld will not create a library from C++
14976 # object files and a static libstdc++, better avoid it by now
14977 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14978 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14979 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14980 hardcode_libdir_flag_spec_F77=
14981 hardcode_shlibpath_var_F77=no
14982 runpath_var='LD_RUN_PATH'
14986 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14987 hardcode_libdir_flag_spec_F77='-L$libdir'
14988 hardcode_shlibpath_var_F77=no
14997 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14998 echo "${ECHO_T}$ld_shlibs_F77" >&6
14999 test "$ld_shlibs_F77" = no && can_build_shared=no
15001 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15002 if test "$GCC" = yes; then
15003 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15007 # Do we need to explicitly link libc?
15009 case "x$archive_cmds_need_lc_F77" in
15011 # Assume -lc should be added
15012 archive_cmds_need_lc_F77=yes
15014 if test "$enable_shared" = yes && test "$GCC" = yes; then
15015 case $archive_cmds_F77 in
15017 # FIXME: we may have to deal with multi-command sequences.
15020 # Test whether the compiler implicitly links with -lc since on some
15021 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15022 # to ld, don't add -lc before -lgcc.
15023 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15024 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15026 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15029 (eval $ac_compile) 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } 2>conftest.err; then
15035 libobjs=conftest.$ac_objext
15037 wl=$lt_prog_compiler_wl_F77
15043 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15044 allow_undefined_flag_F77=
15045 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15046 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }
15051 archive_cmds_need_lc_F77=no
15053 archive_cmds_need_lc_F77=yes
15055 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15057 cat conftest.err 1>&5
15060 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15061 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15068 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15069 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15070 library_names_spec=
15071 libname_spec='lib$name'
15075 postuninstall_cmds=
15079 shlibpath_overrides_runpath=unknown
15081 dynamic_linker="$host_os ld.so"
15082 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15083 if test "$GCC" = yes; then
15084 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15085 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15086 # if the path contains ";" then we assume it to be the separator
15087 # otherwise default to the standard path separator (i.e. ":") - it is
15088 # assumed that no part of a normal pathname contains ";" but that should
15089 # okay in the real world where ";" in dirpaths is itself problematic.
15090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15092 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15095 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15097 need_lib_prefix=unknown
15098 hardcode_into_libs=no
15100 # when you set need_version to no, make sure it does not cause -set_version
15101 # flags to be left without arguments
15102 need_version=unknown
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15108 shlibpath_var=LIBPATH
15110 # AIX 3 has no versioning support, so we append a major version to the name.
15111 soname_spec='${libname}${release}${shared_ext}$major'
15118 hardcode_into_libs=yes
15119 if test "$host_cpu" = ia64; then
15120 # AIX 5 supports IA64
15121 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15122 shlibpath_var=LD_LIBRARY_PATH
15124 # With GCC up to 2.95.x, collect2 would create an import file
15125 # for dependence libraries. The import file would start with
15126 # the line `#! .'. This would cause the generated library to
15127 # depend on `.', always an invalid library. This was fixed in
15128 # development snapshots of GCC prior to 3.0.
15130 aix4 | aix4.[01] | aix4.[01].*)
15131 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15133 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15136 can_build_shared=no
15140 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15141 # soname into executable. Probably we can add versioning support to
15142 # collect2, so additional links can be useful in future.
15143 if test "$aix_use_runtimelinking" = yes; then
15144 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15145 # instead of lib<name>.a to let people know that these are not
15146 # typical AIX shared libraries.
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15149 # We preserve .a as extension for shared libraries through AIX4.2
15150 # and later when we are not doing run time linking.
15151 library_names_spec='${libname}${release}.a $libname.a'
15152 soname_spec='${libname}${release}${shared_ext}$major'
15154 shlibpath_var=LIBPATH
15159 library_names_spec='$libname.ixlibrary $libname.a'
15160 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15161 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'
15165 library_names_spec='${libname}${shared_ext}'
15166 dynamic_linker="$host_os ld.so"
15167 shlibpath_var=LIBRARY_PATH
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15174 soname_spec='${libname}${release}${shared_ext}$major'
15175 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15176 shlibpath_var=LD_LIBRARY_PATH
15177 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15178 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15179 # the default ld.so.conf also contains /usr/contrib/lib and
15180 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15181 # libtool to hard-code these into programs
15184 cygwin* | mingw* | pw32*)
15185 version_type=windows
15190 case $GCC,$host_os in
15191 yes,cygwin* | yes,mingw* | yes,pw32*)
15192 library_names_spec='$libname.dll.a'
15193 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15194 postinstall_cmds='base_file=`basename \${file}`~
15195 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15196 dldir=$destdir/`dirname \$dlpath`~
15197 test -d \$dldir || mkdir -p \$dldir~
15198 $install_prog $dir/$dlname \$dldir/$dlname'
15199 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15200 dlpath=$dir/\$dldll~
15202 shlibpath_overrides_runpath=yes
15206 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15207 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15208 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15211 # MinGW DLLs use traditional 'lib' prefix
15212 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15213 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15214 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15215 # It is most probably a Windows format PATH printed by
15216 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15217 # path with ; separators, and with drive letters. We can handle the
15218 # drive letters (cygwin fileutils understands them), so leave them,
15219 # especially as we might pass files found there to a mingw objdump,
15220 # which wouldn't understand a cygwinified path. Ahh.
15221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15223 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15227 # pw32 DLLs use 'pw' prefix rather than 'lib'
15228 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15234 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15237 dynamic_linker='Win32 ld.exe'
15238 # FIXME: first we should search . and the directory the executable is in
15242 darwin* | rhapsody*)
15243 dynamic_linker="$host_os dyld"
15244 version_type=darwin
15247 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15248 soname_spec='${libname}${release}${major}$shared_ext'
15249 shlibpath_overrides_runpath=yes
15250 shlibpath_var=DYLD_LIBRARY_PATH
15251 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15252 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15253 if test "$GCC" = yes; then
15254 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"`
15256 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15258 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15266 soname_spec='${libname}${release}${shared_ext}$major'
15267 shlibpath_var=LD_LIBRARY_PATH
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15279 soname_spec='${libname}${release}${shared_ext}$major'
15280 shlibpath_var=LD_LIBRARY_PATH
15281 shlibpath_overrides_runpath=no
15282 hardcode_into_libs=yes
15283 dynamic_linker='GNU ld.so'
15287 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15288 version_type=freebsd-$objformat
15289 case $version_type in
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15296 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15300 shlibpath_var=LD_LIBRARY_PATH
15303 shlibpath_overrides_runpath=yes
15305 freebsd3.01* | freebsdelf3.01*)
15306 shlibpath_overrides_runpath=yes
15307 hardcode_into_libs=yes
15310 shlibpath_overrides_runpath=no
15311 hardcode_into_libs=yes
15320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15321 soname_spec='${libname}${release}${shared_ext}$major'
15322 shlibpath_var=LD_LIBRARY_PATH
15323 hardcode_into_libs=yes
15326 hpux9* | hpux10* | hpux11*)
15327 # Give a soname corresponding to the major version so that dld.sl refuses to
15328 # link against other versions.
15332 case "$host_cpu" in
15335 hardcode_into_libs=yes
15336 dynamic_linker="$host_os dld.so"
15337 shlibpath_var=LD_LIBRARY_PATH
15338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340 soname_spec='${libname}${release}${shared_ext}$major'
15341 if test "X$HPUX_IA64_MODE" = X32; then
15342 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15344 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15350 hardcode_into_libs=yes
15351 dynamic_linker="$host_os dld.sl"
15352 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355 soname_spec='${libname}${release}${shared_ext}$major'
15356 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15361 dynamic_linker="$host_os dld.sl"
15362 shlibpath_var=SHLIB_PATH
15363 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15365 soname_spec='${libname}${release}${shared_ext}$major'
15368 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15369 postinstall_cmds='chmod 555 $lib'
15372 irix5* | irix6* | nonstopux*)
15374 nonstopux*) version_type=nonstopux ;;
15376 if test "$lt_cv_prog_gnu_ld" = yes; then
15384 soname_spec='${libname}${release}${shared_ext}$major'
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15387 irix5* | nonstopux*)
15388 libsuff= shlibsuff=
15391 case $LD in # libtool.m4 will add one of these switches to LD
15392 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15393 libsuff= shlibsuff= libmagic=32-bit;;
15394 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15395 libsuff=32 shlibsuff=N32 libmagic=N32;;
15396 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15397 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15398 *) libsuff= shlibsuff= libmagic=never-match;;
15402 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15403 shlibpath_overrides_runpath=no
15404 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15405 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15406 hardcode_into_libs=yes
15409 # No shared lib support for Linux oldld, aout, or coff.
15410 linux*oldld* | linux*aout* | linux*coff*)
15414 # This must be Linux ELF.
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15420 soname_spec='${libname}${release}${shared_ext}$major'
15421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15422 shlibpath_var=LD_LIBRARY_PATH
15423 shlibpath_overrides_runpath=no
15424 # This implies no fast_install, which is unacceptable.
15425 # Some rework will be needed to allow for fast_install
15426 # before this can be enabled.
15427 hardcode_into_libs=yes
15429 # Append ld.so.conf contents to the search path
15430 if test -f /etc/ld.so.conf; then
15431 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15432 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15435 # We used to test for /lib/ld.so.1 and disable shared libraries on
15436 # powerpc, because MkLinux only supported shared libraries with the
15437 # GNU dynamic linker. Since this was broken with cross compilers,
15438 # most powerpc-linux boxes support dynamic linking these days and
15439 # people can always --disable-shared, the test was removed, and we
15440 # assume the GNU/Linux dynamic linker is in use.
15441 dynamic_linker='GNU/Linux ld.so'
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 shlibpath_var=LD_LIBRARY_PATH
15451 shlibpath_overrides_runpath=no
15452 hardcode_into_libs=yes
15453 dynamic_linker='GNU ld.so'
15460 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15463 dynamic_linker='NetBSD (a.out) ld.so'
15465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15466 soname_spec='${libname}${release}${shared_ext}$major'
15467 dynamic_linker='NetBSD ld.elf_so'
15469 shlibpath_var=LD_LIBRARY_PATH
15470 shlibpath_overrides_runpath=yes
15471 hardcode_into_libs=yes
15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15477 shlibpath_var=LD_LIBRARY_PATH
15478 shlibpath_overrides_runpath=yes
15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15486 soname_spec='${libname}${release}${shared_ext}$major'
15487 shlibpath_var=LD_LIBRARY_PATH
15488 shlibpath_overrides_runpath=yes
15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15497 shlibpath_var=LD_LIBRARY_PATH
15498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15500 openbsd2.[89] | openbsd2.[89].*)
15501 shlibpath_overrides_runpath=no
15504 shlibpath_overrides_runpath=yes
15508 shlibpath_overrides_runpath=yes
15513 libname_spec='$name'
15516 library_names_spec='$libname${shared_ext} $libname.a'
15517 dynamic_linker='OS/2 ld.exe'
15518 shlibpath_var=LIBPATH
15521 osf3* | osf4* | osf5*)
15525 soname_spec='${libname}${release}${shared_ext}$major'
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527 shlibpath_var=LD_LIBRARY_PATH
15528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15534 soname_spec='${libname}${release}${shared_ext}$major'
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15536 shlibpath_var=LD_LIBRARY_PATH
15543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15544 soname_spec='${libname}${release}${shared_ext}$major'
15545 shlibpath_var=LD_LIBRARY_PATH
15546 shlibpath_overrides_runpath=yes
15547 hardcode_into_libs=yes
15548 # ldd complains unless libraries are executable
15549 postinstall_cmds='chmod +x $lib'
15554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15555 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15556 shlibpath_var=LD_LIBRARY_PATH
15557 shlibpath_overrides_runpath=yes
15558 if test "$with_gnu_ld" = yes; then
15564 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15567 soname_spec='${libname}${release}${shared_ext}$major'
15568 shlibpath_var=LD_LIBRARY_PATH
15569 case $host_vendor in
15571 shlibpath_overrides_runpath=no
15573 export_dynamic_flag_spec='${wl}-Blargedynsym'
15574 runpath_var=LD_RUN_PATH
15582 shlibpath_overrides_runpath=no
15583 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15589 if test -d /usr/nec ;then
15591 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15592 soname_spec='$libname${shared_ext}.$major'
15593 shlibpath_var=LD_LIBRARY_PATH
15599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15600 soname_spec='${libname}${release}${shared_ext}$major'
15601 shlibpath_var=LD_LIBRARY_PATH
15608 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15609 echo "${ECHO_T}$dynamic_linker" >&6
15610 test "$dynamic_linker" = no && can_build_shared=no
15612 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15613 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15614 hardcode_action_F77=
15615 if test -n "$hardcode_libdir_flag_spec_F77" || \
15616 test -n "$runpath_var_F77" || \
15617 test "X$hardcode_automatic_F77" = "Xyes" ; then
15619 # We can hardcode non-existant directories.
15620 if test "$hardcode_direct_F77" != no &&
15621 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15622 # have to relink, otherwise we might link with an installed library
15623 # when we should be linking with a yet-to-be-installed one
15624 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15625 test "$hardcode_minus_L_F77" != no; then
15626 # Linking always hardcodes the temporary library directory.
15627 hardcode_action_F77=relink
15629 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15630 hardcode_action_F77=immediate
15633 # We cannot hardcode anything, or else we can only hardcode existing
15635 hardcode_action_F77=unsupported
15637 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15638 echo "${ECHO_T}$hardcode_action_F77" >&6
15640 if test "$hardcode_action_F77" = relink; then
15641 # Fast installation is not supported
15642 enable_fast_install=no
15643 elif test "$shlibpath_overrides_runpath" = yes ||
15644 test "$enable_shared" = no; then
15645 # Fast installation is not necessary
15646 enable_fast_install=needless
15651 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15652 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15653 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15654 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15655 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15656 echo "$as_me:$LINENO: result: yes" >&5
15657 echo "${ECHO_T}yes" >&6
15659 # FIXME - insert some real tests, host_os isn't really good enough
15662 if test -n "$STRIP" ; then
15663 striplib="$STRIP -x"
15664 echo "$as_me:$LINENO: result: yes" >&5
15665 echo "${ECHO_T}yes" >&6
15667 echo "$as_me:$LINENO: result: no" >&5
15668 echo "${ECHO_T}no" >&6
15672 echo "$as_me:$LINENO: result: no" >&5
15673 echo "${ECHO_T}no" >&6
15680 # The else clause should only fire when bootstrapping the
15681 # libtool distribution, otherwise you forgot to ship ltmain.sh
15682 # with your package, and you will get complaints that there are
15683 # no rules to generate ltmain.sh.
15684 if test -f "$ltmain"; then
15685 # See if we are running on zsh, and set the options which allow our commands through
15686 # without removal of \ escapes.
15687 if test -n "${ZSH_VERSION+set}" ; then
15688 setopt NO_GLOB_SUBST
15690 # Now quote all the things that may contain metacharacters while being
15691 # careful not to overquote the AC_SUBSTed values. We take copies of the
15692 # variables and quote the copies for generation of the libtool script.
15693 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15695 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15696 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15697 deplibs_check_method reload_flag reload_cmds need_locks \
15698 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15699 lt_cv_sys_global_symbol_to_c_name_address \
15700 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15701 old_postinstall_cmds old_postuninstall_cmds \
15705 lt_prog_compiler_wl_F77 \
15706 lt_prog_compiler_pic_F77 \
15707 lt_prog_compiler_static_F77 \
15708 lt_prog_compiler_no_builtin_flag_F77 \
15709 export_dynamic_flag_spec_F77 \
15710 thread_safe_flag_spec_F77 \
15711 whole_archive_flag_spec_F77 \
15712 enable_shared_with_static_runtimes_F77 \
15713 old_archive_cmds_F77 \
15714 old_archive_from_new_cmds_F77 \
15715 predep_objects_F77 \
15716 postdep_objects_F77 \
15719 compiler_lib_search_path_F77 \
15721 archive_expsym_cmds_F77 \
15722 postinstall_cmds_F77 \
15723 postuninstall_cmds_F77 \
15724 old_archive_from_expsyms_cmds_F77 \
15725 allow_undefined_flag_F77 \
15726 no_undefined_flag_F77 \
15727 export_symbols_cmds_F77 \
15728 hardcode_libdir_flag_spec_F77 \
15729 hardcode_libdir_flag_spec_ld_F77 \
15730 hardcode_libdir_separator_F77 \
15731 hardcode_automatic_F77 \
15733 module_expsym_cmds_F77 \
15734 lt_cv_prog_compiler_c_o_F77 \
15735 exclude_expsyms_F77 \
15736 include_expsyms_F77; do
15739 old_archive_cmds_F77 | \
15740 old_archive_from_new_cmds_F77 | \
15741 archive_cmds_F77 | \
15742 archive_expsym_cmds_F77 | \
15743 module_cmds_F77 | \
15744 module_expsym_cmds_F77 | \
15745 old_archive_from_expsyms_cmds_F77 | \
15746 export_symbols_cmds_F77 | \
15747 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15748 postinstall_cmds | postuninstall_cmds | \
15749 old_postinstall_cmds | old_postuninstall_cmds | \
15750 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15751 # Double-quote double-evaled strings.
15752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15755 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15761 *'\$0 --fallback-echo"')
15762 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15768 cat <<__EOF__ >> "$cfgfile"
15769 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15771 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15773 # Shell to use when invoking shell scripts.
15776 # Whether or not to build shared libraries.
15777 build_libtool_libs=$enable_shared
15779 # Whether or not to build static libraries.
15780 build_old_libs=$enable_static
15782 # Whether or not to add -lc for building shared libraries.
15783 build_libtool_need_lc=$archive_cmds_need_lc_F77
15785 # Whether or not to disallow shared libs when runtime libs are static
15786 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15788 # Whether or not to optimize for fast installation.
15789 fast_install=$enable_fast_install
15792 host_alias=$host_alias
15795 # An echo program that does not interpret backslashes.
15800 AR_FLAGS=$lt_AR_FLAGS
15805 # A language-specific compiler.
15806 CC=$lt_compiler_F77
15808 # Is the compiler the GNU C compiler?
15814 # The linker used to build libraries.
15817 # Whether we need hard or soft links.
15820 # A BSD-compatible nm program.
15823 # A symbol stripping program
15826 # Used to examine libraries when file_magic_cmd begins "file"
15827 MAGIC_CMD=$MAGIC_CMD
15829 # Used on cygwin: DLL creation program.
15832 # Used on cygwin: object dumper.
15835 # Used on cygwin: assembler.
15838 # The name of the directory that contains temporary libtool files.
15841 # How to create reloadable object files.
15842 reload_flag=$lt_reload_flag
15843 reload_cmds=$lt_reload_cmds
15845 # How to pass a linker flag through the compiler.
15846 wl=$lt_lt_prog_compiler_wl_F77
15848 # Object file suffix (normally "o").
15849 objext="$ac_objext"
15851 # Old archive suffix (normally "a").
15854 # Shared library suffix (normally ".so").
15855 shrext_cmds='$shrext_cmds'
15857 # Executable file suffix (normally "").
15860 # Additional compiler flags for building library objects.
15861 pic_flag=$lt_lt_prog_compiler_pic_F77
15864 # What is the maximum length of a command?
15865 max_cmd_len=$lt_cv_sys_max_cmd_len
15867 # Does compiler simultaneously support -c and -o options?
15868 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15870 # Must we lock files when doing compilation ?
15871 need_locks=$lt_need_locks
15873 # Do we need the lib prefix for modules?
15874 need_lib_prefix=$need_lib_prefix
15876 # Do we need a version for libraries?
15877 need_version=$need_version
15879 # Whether dlopen is supported.
15880 dlopen_support=$enable_dlopen
15882 # Whether dlopen of programs is supported.
15883 dlopen_self=$enable_dlopen_self
15885 # Whether dlopen of statically linked programs is supported.
15886 dlopen_self_static=$enable_dlopen_self_static
15888 # Compiler flag to prevent dynamic linking.
15889 link_static_flag=$lt_lt_prog_compiler_static_F77
15891 # Compiler flag to turn off builtin functions.
15892 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15894 # Compiler flag to allow reflexive dlopens.
15895 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15897 # Compiler flag to generate shared objects directly from archives.
15898 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15900 # Compiler flag to generate thread-safe objects.
15901 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15903 # Library versioning type.
15904 version_type=$version_type
15906 # Format of library name prefix.
15907 libname_spec=$lt_libname_spec
15909 # List of archive names. First name is the real one, the rest are links.
15910 # The last name is the one that the linker finds with -lNAME.
15911 library_names_spec=$lt_library_names_spec
15913 # The coded name of the library, if different from the real name.
15914 soname_spec=$lt_soname_spec
15916 # Commands used to build and install an old-style archive.
15918 old_archive_cmds=$lt_old_archive_cmds_F77
15919 old_postinstall_cmds=$lt_old_postinstall_cmds
15920 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15922 # Create an old-style archive from a shared archive.
15923 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15925 # Create a temporary old-style archive to link instead of a shared archive.
15926 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15928 # Commands used to build and install a shared archive.
15929 archive_cmds=$lt_archive_cmds_F77
15930 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15931 postinstall_cmds=$lt_postinstall_cmds
15932 postuninstall_cmds=$lt_postuninstall_cmds
15934 # Commands used to build a loadable module (assumed same as above if empty)
15935 module_cmds=$lt_module_cmds_F77
15936 module_expsym_cmds=$lt_module_expsym_cmds_F77
15938 # Commands to strip libraries.
15939 old_striplib=$lt_old_striplib
15940 striplib=$lt_striplib
15942 # Dependencies to place before the objects being linked to create a
15944 predep_objects=$lt_predep_objects_F77
15946 # Dependencies to place after the objects being linked to create a
15948 postdep_objects=$lt_postdep_objects_F77
15950 # Dependencies to place before the objects being linked to create a
15952 predeps=$lt_predeps_F77
15954 # Dependencies to place after the objects being linked to create a
15956 postdeps=$lt_postdeps_F77
15958 # The library search path used internally by the compiler when linking
15959 # a shared library.
15960 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15962 # Method to check whether dependent libraries are shared objects.
15963 deplibs_check_method=$lt_deplibs_check_method
15965 # Command to use when deplibs_check_method == file_magic.
15966 file_magic_cmd=$lt_file_magic_cmd
15968 # Flag that allows shared libraries with undefined symbols to be built.
15969 allow_undefined_flag=$lt_allow_undefined_flag_F77
15971 # Flag that forces no undefined symbols.
15972 no_undefined_flag=$lt_no_undefined_flag_F77
15974 # Commands used to finish a libtool library installation in a directory.
15975 finish_cmds=$lt_finish_cmds
15977 # Same as above, but a single script fragment to be evaled but not shown.
15978 finish_eval=$lt_finish_eval
15980 # Take the output of nm and produce a listing of raw symbols and C names.
15981 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15983 # Transform the output of nm in a proper C declaration
15984 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15986 # Transform the output of nm in a C name address pair
15987 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15989 # This is the shared library runtime path variable.
15990 runpath_var=$runpath_var
15992 # This is the shared library path variable.
15993 shlibpath_var=$shlibpath_var
15995 # Is shlibpath searched before the hard-coded library search path?
15996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15998 # How to hardcode a shared library path into an executable.
15999 hardcode_action=$hardcode_action_F77
16001 # Whether we should hardcode library paths into libraries.
16002 hardcode_into_libs=$hardcode_into_libs
16004 # Flag to hardcode \$libdir into a binary during linking.
16005 # This must work even if \$libdir does not exist.
16006 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16008 # If ld is used when linking, flag to hardcode \$libdir into
16009 # a binary during linking. This must work even if \$libdir does
16011 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16013 # Whether we need a single -rpath flag with a separated argument.
16014 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16016 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16017 # resulting binary.
16018 hardcode_direct=$hardcode_direct_F77
16020 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16021 # resulting binary.
16022 hardcode_minus_L=$hardcode_minus_L_F77
16024 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16025 # the resulting binary.
16026 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16028 # Set to yes if building a shared library automatically hardcodes DIR into the library
16029 # and all subsequent libraries and executables linked against it.
16030 hardcode_automatic=$hardcode_automatic_F77
16032 # Variables whose values should be saved in libtool wrapper scripts and
16033 # restored at relink time.
16034 variables_saved_for_relink="$variables_saved_for_relink"
16036 # Whether libtool must link a program against all its dependency libraries.
16037 link_all_deplibs=$link_all_deplibs_F77
16039 # Compile-time system search path for libraries
16040 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16042 # Run-time system search path for libraries
16043 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16045 # Fix the shell variable \$srcfile for the compiler.
16046 fix_srcfile_path="$fix_srcfile_path_F77"
16048 # Set to yes if exported symbols are required.
16049 always_export_symbols=$always_export_symbols_F77
16051 # The commands to list exported symbols.
16052 export_symbols_cmds=$lt_export_symbols_cmds_F77
16054 # The commands to extract the exported symbol list from a shared archive.
16055 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16057 # Symbols that should not be listed in the preloaded symbols.
16058 exclude_expsyms=$lt_exclude_expsyms_F77
16060 # Symbols that must always be exported.
16061 include_expsyms=$lt_include_expsyms_F77
16063 # ### END LIBTOOL TAG CONFIG: $tagname
16069 # If there is no Makefile yet, we rely on a make rule to execute
16070 # `config.status --recheck' to rerun these tests and create the
16071 # libtool script then.
16072 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16073 if test -f "$ltmain_in"; then
16074 test -f Makefile && make "$ltmain"
16080 ac_cpp='$CPP $CPPFLAGS'
16081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16093 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16095 ac_cpp='$CPP $CPPFLAGS'
16096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16101 # Source file extension for Java test sources.
16104 # Object file extension for compiled Java test sources.
16108 # Code to be used in simple compile tests
16109 lt_simple_compile_test_code="class foo {}\n"
16111 # Code to be used in simple link tests
16112 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16114 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16116 # If no C compiler was specified, use CC.
16119 # Allow CC to be a program name with arguments.
16123 # Allow CC to be a program name with arguments.
16129 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16130 archive_cmds_need_lc_GCJ=no
16133 lt_prog_compiler_no_builtin_flag_GCJ=
16135 if test "$GCC" = yes; then
16136 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16139 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16140 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16141 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
16144 lt_cv_prog_compiler_rtti_exceptions=no
16145 ac_outfile=conftest.$ac_objext
16146 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16147 lt_compiler_flag="-fno-rtti -fno-exceptions"
16148 # Insert the option either (1) after the last *FLAGS variable, or
16149 # (2) before a word containing "conftest.", or (3) at the end.
16150 # Note that $ac_compile itself does not contain backslashes and begins
16151 # with a dollar sign (not a hyphen), so the echo should work correctly.
16152 # The option is referenced via a variable to avoid confusing sed.
16153 lt_compile=`echo "$ac_compile" | $SED \
16154 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16156 -e 's:$: $lt_compiler_flag:'`
16157 (eval echo "\"\$as_me:16157: $lt_compile\"" >&5)
16158 (eval "$lt_compile" 2>conftest.err)
16160 cat conftest.err >&5
16161 echo "$as_me:16161: \$? = $ac_status" >&5
16162 if (exit $ac_status) && test -s "$ac_outfile"; then
16163 # The compiler can only warn and ignore the option if not recognized
16164 # So say no if there are warnings
16165 if test ! -s conftest.err; then
16166 lt_cv_prog_compiler_rtti_exceptions=yes
16172 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16173 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16175 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16176 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16183 lt_prog_compiler_wl_GCJ=
16184 lt_prog_compiler_pic_GCJ=
16185 lt_prog_compiler_static_GCJ=
16187 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16188 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16190 if test "$GCC" = yes; then
16191 lt_prog_compiler_wl_GCJ='-Wl,'
16192 lt_prog_compiler_static_GCJ='-static'
16196 # All AIX code is PIC.
16197 if test "$host_cpu" = ia64; then
16198 # AIX 5 now supports IA64 processor
16199 lt_prog_compiler_static_GCJ='-Bstatic'
16204 # FIXME: we need at least 68020 code to build shared libraries, but
16205 # adding the `-m68020' flag to GCC prevents building anything better,
16207 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16210 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16211 # PIC is the default for these OSes.
16214 mingw* | pw32* | os2*)
16215 # This hack is so that the source file can tell whether it is being
16216 # built for inclusion in a dll (and should export symbols for example).
16217 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16220 darwin* | rhapsody*)
16221 # PIC is the default on this platform
16222 # Common symbols not allowed in MH_DYLIB files
16223 lt_prog_compiler_pic_GCJ='-fno-common'
16227 # Just because we use GCC doesn't mean we suddenly get shared libraries
16228 # on systems that don't support them.
16229 lt_prog_compiler_can_build_shared_GCJ=no
16234 if test -d /usr/nec; then
16235 lt_prog_compiler_pic_GCJ=-Kconform_pic
16240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16241 # not for PA HP-UX.
16242 case "$host_cpu" in
16247 lt_prog_compiler_pic_GCJ='-fPIC'
16253 lt_prog_compiler_pic_GCJ='-fPIC'
16257 # PORTME Check for flag to pass linker flags through the system compiler.
16260 lt_prog_compiler_wl_GCJ='-Wl,'
16261 if test "$host_cpu" = ia64; then
16262 # AIX 5 now supports IA64 processor
16263 lt_prog_compiler_static_GCJ='-Bstatic'
16265 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16269 # PIC is the default on this platform
16270 # Common symbols not allowed in MH_DYLIB files
16271 case "$cc_basename" in
16273 lt_prog_compiler_pic_GCJ='-qnocommon'
16274 lt_prog_compiler_wl_GCJ='-Wl,'
16279 mingw* | pw32* | os2*)
16280 # This hack is so that the source file can tell whether it is being
16281 # built for inclusion in a dll (and should export symbols for example).
16282 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16285 hpux9* | hpux10* | hpux11*)
16286 lt_prog_compiler_wl_GCJ='-Wl,'
16287 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16288 # not for PA HP-UX.
16289 case "$host_cpu" in
16294 lt_prog_compiler_pic_GCJ='+Z'
16297 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16298 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16301 irix5* | irix6* | nonstopux*)
16302 lt_prog_compiler_wl_GCJ='-Wl,'
16303 # PIC (with -KPIC) is the default.
16304 lt_prog_compiler_static_GCJ='-non_shared'
16308 lt_prog_compiler_pic_GCJ='-KPIC'
16309 lt_prog_compiler_static_GCJ='-Bstatic'
16315 lt_prog_compiler_wl_GCJ='-Wl,'
16316 lt_prog_compiler_pic_GCJ='-KPIC'
16317 lt_prog_compiler_static_GCJ='-static'
16320 lt_prog_compiler_wl_GCJ='-Wl,'
16321 # All Alpha code is PIC.
16322 lt_prog_compiler_static_GCJ='-non_shared'
16327 osf3* | osf4* | osf5*)
16328 lt_prog_compiler_wl_GCJ='-Wl,'
16329 # All OSF/1 code is PIC.
16330 lt_prog_compiler_static_GCJ='-non_shared'
16334 lt_prog_compiler_pic_GCJ='-Kpic'
16335 lt_prog_compiler_static_GCJ='-dn'
16339 lt_prog_compiler_wl_GCJ='-Wl,'
16340 lt_prog_compiler_pic_GCJ='-KPIC'
16341 lt_prog_compiler_static_GCJ='-Bstatic'
16345 lt_prog_compiler_wl_GCJ='-Qoption ld '
16346 lt_prog_compiler_pic_GCJ='-PIC'
16347 lt_prog_compiler_static_GCJ='-Bstatic'
16350 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16351 lt_prog_compiler_wl_GCJ='-Wl,'
16352 lt_prog_compiler_pic_GCJ='-KPIC'
16353 lt_prog_compiler_static_GCJ='-Bstatic'
16357 if test -d /usr/nec ;then
16358 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16359 lt_prog_compiler_static_GCJ='-Bstatic'
16364 lt_prog_compiler_pic_GCJ='-pic'
16365 lt_prog_compiler_static_GCJ='-Bstatic'
16369 lt_prog_compiler_can_build_shared_GCJ=no
16374 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16375 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16378 # Check to make sure the PIC flag actually works.
16380 if test -n "$lt_prog_compiler_pic_GCJ"; then
16382 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16383 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16384 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16385 echo $ECHO_N "(cached) $ECHO_C" >&6
16387 lt_prog_compiler_pic_works_GCJ=no
16388 ac_outfile=conftest.$ac_objext
16389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16390 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16391 # Insert the option either (1) after the last *FLAGS variable, or
16392 # (2) before a word containing "conftest.", or (3) at the end.
16393 # Note that $ac_compile itself does not contain backslashes and begins
16394 # with a dollar sign (not a hyphen), so the echo should work correctly.
16395 # The option is referenced via a variable to avoid confusing sed.
16396 lt_compile=`echo "$ac_compile" | $SED \
16397 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16399 -e 's:$: $lt_compiler_flag:'`
16400 (eval echo "\"\$as_me:16400: $lt_compile\"" >&5)
16401 (eval "$lt_compile" 2>conftest.err)
16403 cat conftest.err >&5
16404 echo "$as_me:16404: \$? = $ac_status" >&5
16405 if (exit $ac_status) && test -s "$ac_outfile"; then
16406 # The compiler can only warn and ignore the option if not recognized
16407 # So say no if there are warnings
16408 if test ! -s conftest.err; then
16409 lt_prog_compiler_pic_works_GCJ=yes
16415 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16416 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16418 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16419 case $lt_prog_compiler_pic_GCJ in
16421 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16424 lt_prog_compiler_pic_GCJ=
16425 lt_prog_compiler_can_build_shared_GCJ=no
16430 # For platforms which do not support PIC, -DPIC is meaningless:
16432 lt_prog_compiler_pic_GCJ=
16435 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16439 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16440 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16441 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16442 echo $ECHO_N "(cached) $ECHO_C" >&6
16444 lt_cv_prog_compiler_c_o_GCJ=no
16445 $rm -r conftest 2>/dev/null
16449 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16451 lt_compiler_flag="-o out/conftest2.$ac_objext"
16452 # Insert the option either (1) after the last *FLAGS variable, or
16453 # (2) before a word containing "conftest.", or (3) at the end.
16454 # Note that $ac_compile itself does not contain backslashes and begins
16455 # with a dollar sign (not a hyphen), so the echo should work correctly.
16456 lt_compile=`echo "$ac_compile" | $SED \
16457 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16459 -e 's:$: $lt_compiler_flag:'`
16460 (eval echo "\"\$as_me:16460: $lt_compile\"" >&5)
16461 (eval "$lt_compile" 2>out/conftest.err)
16463 cat out/conftest.err >&5
16464 echo "$as_me:16464: \$? = $ac_status" >&5
16465 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16467 # The compiler can only warn and ignore the option if not recognized
16468 # So say no if there are warnings
16469 if test ! -s out/conftest.err; then
16470 lt_cv_prog_compiler_c_o_GCJ=yes
16475 # SGI C++ compiler will create directory out/ii_files/ for
16476 # template instantiation
16477 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16478 $rm out/* && rmdir out
16484 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16485 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16488 hard_links="nottested"
16489 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16490 # do not overwrite the value of need_locks provided by the user
16491 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16492 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16497 ln conftest.a conftest.b 2>&5 || hard_links=no
16498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16499 echo "$as_me:$LINENO: result: $hard_links" >&5
16500 echo "${ECHO_T}$hard_links" >&6
16501 if test "$hard_links" = no; then
16502 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16503 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16510 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16511 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16514 allow_undefined_flag_GCJ=
16515 enable_shared_with_static_runtimes_GCJ=no
16517 archive_expsym_cmds_GCJ=
16518 old_archive_From_new_cmds_GCJ=
16519 old_archive_from_expsyms_cmds_GCJ=
16520 export_dynamic_flag_spec_GCJ=
16521 whole_archive_flag_spec_GCJ=
16522 thread_safe_flag_spec_GCJ=
16523 hardcode_libdir_flag_spec_GCJ=
16524 hardcode_libdir_flag_spec_ld_GCJ=
16525 hardcode_libdir_separator_GCJ=
16526 hardcode_direct_GCJ=no
16527 hardcode_minus_L_GCJ=no
16528 hardcode_shlibpath_var_GCJ=unsupported
16529 link_all_deplibs_GCJ=unknown
16530 hardcode_automatic_GCJ=no
16532 module_expsym_cmds_GCJ=
16533 always_export_symbols_GCJ=no
16534 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16535 # include_expsyms should be a list of space-separated symbols to be *always*
16536 # included in the symbol list
16537 include_expsyms_GCJ=
16538 # exclude_expsyms can be an extended regexp of symbols to exclude
16539 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16540 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16541 # as well as any symbol that contains `d'.
16542 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16543 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16544 # platforms (ab)use it in PIC code, but their linkers get confused if
16545 # the symbol is explicitly referenced. Since portable code cannot
16546 # rely on this symbol name, it's probably fine to never include it in
16547 # preloaded symbol tables.
16548 extract_expsyms_cmds=
16551 cygwin* | mingw* | pw32*)
16552 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16553 # When not using gcc, we currently assume that we are using
16554 # Microsoft Visual C++.
16555 if test "$GCC" != yes; then
16565 if test "$with_gnu_ld" = yes; then
16566 # If archive_cmds runs LD, not CC, wlarc should be empty
16569 # See if GNU ld supports shared libraries.
16571 aix3* | aix4* | aix5*)
16572 # On AIX/PPC, the GNU linker is very broken
16573 if test "$host_cpu" != ia64; then
16577 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16578 *** to be unable to reliably create shared libraries on AIX.
16579 *** Therefore, libtool is disabling shared libraries support. If you
16580 *** really care for shared libraries, you may want to modify your PATH
16581 *** so that a non-GNU linker is found, and then restart.
16588 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)'
16589 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16590 hardcode_minus_L_GCJ=yes
16592 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16593 # that the semantics of dynamic libraries on AmigaOS, at least up
16594 # to version 4, is to share data among multiple programs linked
16595 # with the same dynamic library. Since this doesn't match the
16596 # behavior of shared libraries on other platforms, we can't use
16602 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16603 allow_undefined_flag_GCJ=unsupported
16604 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16605 # support --undefined. This deserves some investigation. FIXME
16606 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16612 cygwin* | mingw* | pw32*)
16613 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16614 # as there is no search path for DLLs.
16615 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16616 allow_undefined_flag_GCJ=unsupported
16617 always_export_symbols_GCJ=no
16618 enable_shared_with_static_runtimes_GCJ=yes
16619 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16621 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16622 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16623 # If the export-symbols file already is a .def file (1st line
16624 # is EXPORTS), use it as is; otherwise, prepend...
16625 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16626 cp $export_symbols $output_objdir/$soname.def;
16628 echo EXPORTS > $output_objdir/$soname.def;
16629 cat $export_symbols >> $output_objdir/$soname.def;
16631 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16638 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16639 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16642 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16643 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16648 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16652 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16653 *** create shared libraries on Solaris systems. Therefore, libtool
16654 *** is disabling shared libraries support. We urge you to upgrade GNU
16655 *** binutils to release 2.9.1 or newer. Another option is to modify
16656 *** your PATH or compiler configuration so that the native linker is
16657 *** used, and then restart.
16660 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16661 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16662 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16669 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16671 hardcode_direct_GCJ=yes
16672 hardcode_shlibpath_var_GCJ=no
16676 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16677 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16678 archive_cmds_GCJ="$tmp_archive_cmds"
16679 supports_anon_versioning=no
16680 case `$LD -v 2>/dev/null` in
16681 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16682 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16683 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16684 *\ 2.11.*) ;; # other 2.11 versions
16685 *) supports_anon_versioning=yes ;;
16687 if test $supports_anon_versioning = yes; then
16688 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16689 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16690 $echo "local: *; };" >> $output_objdir/$libname.ver~
16691 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16693 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16702 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16703 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16710 if test "$ld_shlibs_GCJ" = yes; then
16711 runpath_var=LD_RUN_PATH
16712 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16713 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16714 # ancient GNU ld didn't support --whole-archive et. al.
16715 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16716 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16718 whole_archive_flag_spec_GCJ=
16722 # PORTME fill in a description of your system's linker (not GNU ld)
16725 allow_undefined_flag_GCJ=unsupported
16726 always_export_symbols_GCJ=yes
16727 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'
16728 # Note: this linker hardcodes the directories in LIBPATH if there
16729 # are no directories specified by -L.
16730 hardcode_minus_L_GCJ=yes
16731 if test "$GCC" = yes && test -z "$link_static_flag"; then
16732 # Neither direct hardcoding nor static linking is supported with a
16734 hardcode_direct_GCJ=unsupported
16739 if test "$host_cpu" = ia64; then
16740 # On IA64, the linker does run time linking by default, so we don't
16741 # have to do anything special.
16742 aix_use_runtimelinking=no
16743 exp_sym_flag='-Bexport'
16746 # If we're using GNU nm, then we don't want the "-C" option.
16747 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16748 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16749 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'
16751 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'
16753 aix_use_runtimelinking=no
16755 # Test if we are trying to use run time linking or normal
16756 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16757 # need to do runtime linking.
16758 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16759 for ld_flag in $LDFLAGS; do
16760 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16761 aix_use_runtimelinking=yes
16767 exp_sym_flag='-bexport'
16768 no_entry_flag='-bnoentry'
16771 # When large executables or shared objects are built, AIX ld can
16772 # have problems creating the table of contents. If linking a library
16773 # or program results in "error TOC overflow" add -mminimal-toc to
16774 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16775 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16777 archive_cmds_GCJ=''
16778 hardcode_direct_GCJ=yes
16779 hardcode_libdir_separator_GCJ=':'
16780 link_all_deplibs_GCJ=yes
16782 if test "$GCC" = yes; then
16783 case $host_os in aix4.012|aix4.012.*)
16784 # We only want to do this on AIX 4.2 and lower, the check
16785 # below for broken collect2 doesn't work under 4.3+
16786 collect2name=`${CC} -print-prog-name=collect2`
16787 if test -f "$collect2name" && \
16788 strings "$collect2name" | grep resolve_lib_name >/dev/null
16790 # We have reworked collect2
16791 hardcode_direct_GCJ=yes
16793 # We have old collect2
16794 hardcode_direct_GCJ=unsupported
16795 # It fails to find uninstalled libraries when the uninstalled
16796 # path is not listed in the libpath. Setting hardcode_minus_L
16797 # to unsupported forces relinking
16798 hardcode_minus_L_GCJ=yes
16799 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16800 hardcode_libdir_separator_GCJ=
16803 shared_flag='-shared'
16806 if test "$host_cpu" = ia64; then
16807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16808 # chokes on -Wl,-G. The following line is correct:
16811 if test "$aix_use_runtimelinking" = yes; then
16812 shared_flag='${wl}-G'
16814 shared_flag='${wl}-bM:SRE'
16819 # It seems that -bexpall does not export symbols beginning with
16820 # underscore (_), so it is better to generate a list of symbols to export.
16821 always_export_symbols_GCJ=yes
16822 if test "$aix_use_runtimelinking" = yes; then
16823 # Warning - without using the other runtime loading flags (-brtl),
16824 # -berok will link without error, but may produce a broken library.
16825 allow_undefined_flag_GCJ='-berok'
16826 # Determine the default libpath from the value encoded in an empty executable.
16827 cat >conftest.$ac_ext <<_ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16842 rm -f conftest.$ac_objext conftest$ac_exeext
16843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16844 (eval $ac_link) 2>conftest.er1
16846 grep -v '^ *+' conftest.er1 >conftest.err
16848 cat conftest.err >&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } &&
16851 { ac_try='test -z "$ac_c_werror_flag"
16852 || test ! -s conftest.err'
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try='test -s conftest$ac_exeext'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16865 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16867 # Check for a 64-bit object if we didn't find anything.
16868 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; }
16871 echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16875 rm -f conftest.err conftest.$ac_objext \
16876 conftest$ac_exeext conftest.$ac_ext
16877 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16879 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16880 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"
16882 if test "$host_cpu" = ia64; then
16883 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16884 allow_undefined_flag_GCJ="-z nodefs"
16885 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"
16887 # Determine the default libpath from the value encoded in an empty executable.
16888 cat >conftest.$ac_ext <<_ACEOF
16891 cat confdefs.h >>conftest.$ac_ext
16892 cat >>conftest.$ac_ext <<_ACEOF
16893 /* end confdefs.h. */
16903 rm -f conftest.$ac_objext conftest$ac_exeext
16904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16905 (eval $ac_link) 2>conftest.er1
16907 grep -v '^ *+' conftest.er1 >conftest.err
16909 cat conftest.err >&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } &&
16912 { ac_try='test -z "$ac_c_werror_flag"
16913 || test ! -s conftest.err'
16914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915 (eval $ac_try) 2>&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; } &&
16919 { ac_try='test -s conftest$ac_exeext'
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; }; then
16926 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16928 # Check for a 64-bit object if we didn't find anything.
16929 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; }
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16936 rm -f conftest.err conftest.$ac_objext \
16937 conftest$ac_exeext conftest.$ac_ext
16938 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16940 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16941 # Warning - without using the other run time loading flags,
16942 # -berok will link without error, but may produce a broken library.
16943 no_undefined_flag_GCJ=' ${wl}-bernotok'
16944 allow_undefined_flag_GCJ=' ${wl}-berok'
16945 # -bexpall does not export symbols beginning with underscore (_)
16946 always_export_symbols_GCJ=yes
16947 # Exported symbols can be pulled into shared objects from archives
16948 whole_archive_flag_spec_GCJ=' '
16949 archive_cmds_need_lc_GCJ=yes
16950 # This is similar to how AIX traditionally builds it's shared libraries.
16951 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'
16957 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)'
16958 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16959 hardcode_minus_L_GCJ=yes
16960 # see comment about different semantics on the GNU ld section
16965 export_dynamic_flag_spec_GCJ=-rdynamic
16968 cygwin* | mingw* | pw32*)
16969 # When not using gcc, we currently assume that we are using
16970 # Microsoft Visual C++.
16971 # hardcode_libdir_flag_spec is actually meaningless, as there is
16972 # no search path for DLLs.
16973 hardcode_libdir_flag_spec_GCJ=' '
16974 allow_undefined_flag_GCJ=unsupported
16975 # Tell ltmain to make .lib files, not .a files.
16977 # Tell ltmain to make .dll files, not .so files.
16979 # FIXME: Setting linknames here is a bad hack.
16980 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16981 # The linker will automatically build a .lib file if we build a DLL.
16982 old_archive_From_new_cmds_GCJ='true'
16983 # FIXME: Should let the user specify the lib program.
16984 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16985 fix_srcfile_path='`cygpath -w "$srcfile"`'
16986 enable_shared_with_static_runtimes_GCJ=yes
16989 darwin* | rhapsody*)
16991 rhapsody* | darwin1.[012])
16992 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16995 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16996 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16998 case ${MACOSX_DEPLOYMENT_TARGET} in
17000 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17003 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17009 archive_cmds_need_lc_GCJ=no
17010 hardcode_direct_GCJ=no
17011 hardcode_automatic_GCJ=yes
17012 hardcode_shlibpath_var_GCJ=unsupported
17013 whole_archive_flag_spec_GCJ=''
17014 link_all_deplibs_GCJ=yes
17015 if test "$GCC" = yes ; then
17016 output_verbose_link_cmd='echo'
17017 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17018 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17019 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17020 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}'
17021 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}'
17023 case "$cc_basename" in
17025 output_verbose_link_cmd='echo'
17026 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17027 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17028 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17029 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}'
17030 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}'
17040 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17041 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17042 hardcode_shlibpath_var_GCJ=no
17049 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17050 # support. Future versions do this automatically, but an explicit c++rt0.o
17051 # does not break anything, and helps significantly (at the cost of a little
17054 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17055 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17056 hardcode_direct_GCJ=yes
17057 hardcode_shlibpath_var_GCJ=no
17060 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17062 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17063 hardcode_direct_GCJ=yes
17064 hardcode_minus_L_GCJ=yes
17065 hardcode_shlibpath_var_GCJ=no
17068 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17069 freebsd* | kfreebsd*-gnu)
17070 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17071 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17072 hardcode_direct_GCJ=yes
17073 hardcode_shlibpath_var_GCJ=no
17077 if test "$GCC" = yes; then
17078 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'
17080 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'
17082 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17083 hardcode_libdir_separator_GCJ=:
17084 hardcode_direct_GCJ=yes
17086 # hardcode_minus_L: Not really in the search PATH,
17087 # but as the default location of the library.
17088 hardcode_minus_L_GCJ=yes
17089 export_dynamic_flag_spec_GCJ='${wl}-E'
17093 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17094 case "$host_cpu" in
17096 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17099 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17103 case "$host_cpu" in
17105 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17108 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17112 if test "$with_gnu_ld" = no; then
17113 case "$host_cpu" in
17115 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17116 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17117 hardcode_libdir_separator_GCJ=:
17118 hardcode_direct_GCJ=no
17119 hardcode_shlibpath_var_GCJ=no
17122 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17123 hardcode_direct_GCJ=no
17124 hardcode_shlibpath_var_GCJ=no
17126 # hardcode_minus_L: Not really in the search PATH,
17127 # but as the default location of the library.
17128 hardcode_minus_L_GCJ=yes
17131 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17132 hardcode_libdir_separator_GCJ=:
17133 hardcode_direct_GCJ=yes
17134 export_dynamic_flag_spec_GCJ='${wl}-E'
17136 # hardcode_minus_L: Not really in the search PATH,
17137 # but as the default location of the library.
17138 hardcode_minus_L_GCJ=yes
17144 irix5* | irix6* | nonstopux*)
17145 if test "$GCC" = yes; then
17146 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'
17148 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'
17149 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17151 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17152 hardcode_libdir_separator_GCJ=:
17153 link_all_deplibs_GCJ=yes
17157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17158 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17160 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17162 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17163 hardcode_direct_GCJ=yes
17164 hardcode_shlibpath_var_GCJ=no
17168 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17169 hardcode_direct_GCJ=yes
17170 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17171 hardcode_libdir_separator_GCJ=:
17172 hardcode_shlibpath_var_GCJ=no
17176 hardcode_direct_GCJ=yes
17177 hardcode_shlibpath_var_GCJ=no
17178 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17179 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17180 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17181 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17182 export_dynamic_flag_spec_GCJ='${wl}-E'
17185 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17186 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17187 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17190 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17191 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17198 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17199 hardcode_minus_L_GCJ=yes
17200 allow_undefined_flag_GCJ=unsupported
17201 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'
17202 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17206 if test "$GCC" = yes; then
17207 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17208 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'
17210 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17211 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'
17213 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17214 hardcode_libdir_separator_GCJ=:
17217 osf4* | osf5*) # as osf3* with the addition of -msym flag
17218 if test "$GCC" = yes; then
17219 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17220 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'
17221 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17223 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17224 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'
17225 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~
17226 $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'
17228 # Both c and cxx compiler support -rpath directly
17229 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17231 hardcode_libdir_separator_GCJ=:
17235 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17236 hardcode_shlibpath_var_GCJ=no
17237 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17238 runpath_var=LD_RUN_PATH
17239 hardcode_runpath_var=yes
17243 no_undefined_flag_GCJ=' -z text'
17244 if test "$GCC" = yes; then
17245 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17246 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17247 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17249 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17250 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17251 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17253 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17254 hardcode_shlibpath_var_GCJ=no
17256 solaris2.[0-5] | solaris2.[0-5].*) ;;
17257 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17258 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17260 link_all_deplibs_GCJ=yes
17264 if test "x$host_vendor" = xsequent; then
17265 # Use $CC to link under sequent, because it throws in some extra .o
17266 # files that make .init and .fini sections work.
17267 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17269 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17271 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17272 hardcode_direct_GCJ=yes
17273 hardcode_minus_L_GCJ=yes
17274 hardcode_shlibpath_var_GCJ=no
17278 case $host_vendor in
17280 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17281 hardcode_direct_GCJ=yes # is this really true???
17284 ## LD is ld it makes a PLAMLIB
17285 ## CC just makes a GrossModule.
17286 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17287 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17288 hardcode_direct_GCJ=no
17291 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17292 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17295 runpath_var='LD_RUN_PATH'
17296 hardcode_shlibpath_var_GCJ=no
17300 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17301 hardcode_shlibpath_var_GCJ=no
17302 export_dynamic_flag_spec_GCJ='-Bexport'
17306 if test -d /usr/nec; then
17307 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17308 hardcode_shlibpath_var_GCJ=no
17309 runpath_var=LD_RUN_PATH
17310 hardcode_runpath_var=yes
17316 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17317 hardcode_direct_GCJ=yes
17318 hardcode_minus_L_GCJ=no
17319 hardcode_shlibpath_var_GCJ=no
17320 hardcode_runpath_var=yes
17321 runpath_var=LD_RUN_PATH
17324 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17325 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17326 if test "$GCC" = yes; then
17327 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17329 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17331 runpath_var='LD_RUN_PATH'
17332 hardcode_shlibpath_var_GCJ=no
17336 no_undefined_flag_GCJ=' -z text'
17337 # $CC -shared without GNU ld will not create a library from C++
17338 # object files and a static libstdc++, better avoid it by now
17339 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17340 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17341 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17342 hardcode_libdir_flag_spec_GCJ=
17343 hardcode_shlibpath_var_GCJ=no
17344 runpath_var='LD_RUN_PATH'
17348 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17349 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17350 hardcode_shlibpath_var_GCJ=no
17359 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17360 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17361 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17364 if test "$GCC" = yes; then
17365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17369 # Do we need to explicitly link libc?
17371 case "x$archive_cmds_need_lc_GCJ" in
17373 # Assume -lc should be added
17374 archive_cmds_need_lc_GCJ=yes
17376 if test "$enable_shared" = yes && test "$GCC" = yes; then
17377 case $archive_cmds_GCJ in
17379 # FIXME: we may have to deal with multi-command sequences.
17382 # Test whether the compiler implicitly links with -lc since on some
17383 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17384 # to ld, don't add -lc before -lgcc.
17385 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17386 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17388 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17391 (eval $ac_compile) 2>&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } 2>conftest.err; then
17397 libobjs=conftest.$ac_objext
17399 wl=$lt_prog_compiler_wl_GCJ
17405 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17406 allow_undefined_flag_GCJ=
17407 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17408 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }
17413 archive_cmds_need_lc_GCJ=no
17415 archive_cmds_need_lc_GCJ=yes
17417 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17419 cat conftest.err 1>&5
17422 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17423 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17430 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17431 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17432 library_names_spec=
17433 libname_spec='lib$name'
17437 postuninstall_cmds=
17441 shlibpath_overrides_runpath=unknown
17443 dynamic_linker="$host_os ld.so"
17444 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17445 if test "$GCC" = yes; then
17446 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17447 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17448 # if the path contains ";" then we assume it to be the separator
17449 # otherwise default to the standard path separator (i.e. ":") - it is
17450 # assumed that no part of a normal pathname contains ";" but that should
17451 # okay in the real world where ";" in dirpaths is itself problematic.
17452 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17454 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17457 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17459 need_lib_prefix=unknown
17460 hardcode_into_libs=no
17462 # when you set need_version to no, make sure it does not cause -set_version
17463 # flags to be left without arguments
17464 need_version=unknown
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17470 shlibpath_var=LIBPATH
17472 # AIX 3 has no versioning support, so we append a major version to the name.
17473 soname_spec='${libname}${release}${shared_ext}$major'
17480 hardcode_into_libs=yes
17481 if test "$host_cpu" = ia64; then
17482 # AIX 5 supports IA64
17483 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17484 shlibpath_var=LD_LIBRARY_PATH
17486 # With GCC up to 2.95.x, collect2 would create an import file
17487 # for dependence libraries. The import file would start with
17488 # the line `#! .'. This would cause the generated library to
17489 # depend on `.', always an invalid library. This was fixed in
17490 # development snapshots of GCC prior to 3.0.
17492 aix4 | aix4.[01] | aix4.[01].*)
17493 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17495 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17498 can_build_shared=no
17502 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17503 # soname into executable. Probably we can add versioning support to
17504 # collect2, so additional links can be useful in future.
17505 if test "$aix_use_runtimelinking" = yes; then
17506 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17507 # instead of lib<name>.a to let people know that these are not
17508 # typical AIX shared libraries.
17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17511 # We preserve .a as extension for shared libraries through AIX4.2
17512 # and later when we are not doing run time linking.
17513 library_names_spec='${libname}${release}.a $libname.a'
17514 soname_spec='${libname}${release}${shared_ext}$major'
17516 shlibpath_var=LIBPATH
17521 library_names_spec='$libname.ixlibrary $libname.a'
17522 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17523 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'
17527 library_names_spec='${libname}${shared_ext}'
17528 dynamic_linker="$host_os ld.so"
17529 shlibpath_var=LIBRARY_PATH
17535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17536 soname_spec='${libname}${release}${shared_ext}$major'
17537 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17538 shlibpath_var=LD_LIBRARY_PATH
17539 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17540 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17541 # the default ld.so.conf also contains /usr/contrib/lib and
17542 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17543 # libtool to hard-code these into programs
17546 cygwin* | mingw* | pw32*)
17547 version_type=windows
17552 case $GCC,$host_os in
17553 yes,cygwin* | yes,mingw* | yes,pw32*)
17554 library_names_spec='$libname.dll.a'
17555 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17556 postinstall_cmds='base_file=`basename \${file}`~
17557 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17558 dldir=$destdir/`dirname \$dlpath`~
17559 test -d \$dldir || mkdir -p \$dldir~
17560 $install_prog $dir/$dlname \$dldir/$dlname'
17561 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17562 dlpath=$dir/\$dldll~
17564 shlibpath_overrides_runpath=yes
17568 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17569 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17570 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17573 # MinGW DLLs use traditional 'lib' prefix
17574 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17575 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17576 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17577 # It is most probably a Windows format PATH printed by
17578 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17579 # path with ; separators, and with drive letters. We can handle the
17580 # drive letters (cygwin fileutils understands them), so leave them,
17581 # especially as we might pass files found there to a mingw objdump,
17582 # which wouldn't understand a cygwinified path. Ahh.
17583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17589 # pw32 DLLs use 'pw' prefix rather than 'lib'
17590 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17596 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17599 dynamic_linker='Win32 ld.exe'
17600 # FIXME: first we should search . and the directory the executable is in
17604 darwin* | rhapsody*)
17605 dynamic_linker="$host_os dyld"
17606 version_type=darwin
17609 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17610 soname_spec='${libname}${release}${major}$shared_ext'
17611 shlibpath_overrides_runpath=yes
17612 shlibpath_var=DYLD_LIBRARY_PATH
17613 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17614 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17615 if test "$GCC" = yes; then
17616 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"`
17618 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17620 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17628 soname_spec='${libname}${release}${shared_ext}$major'
17629 shlibpath_var=LD_LIBRARY_PATH
17640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17641 soname_spec='${libname}${release}${shared_ext}$major'
17642 shlibpath_var=LD_LIBRARY_PATH
17643 shlibpath_overrides_runpath=no
17644 hardcode_into_libs=yes
17645 dynamic_linker='GNU ld.so'
17649 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17650 version_type=freebsd-$objformat
17651 case $version_type in
17653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17662 shlibpath_var=LD_LIBRARY_PATH
17665 shlibpath_overrides_runpath=yes
17667 freebsd3.01* | freebsdelf3.01*)
17668 shlibpath_overrides_runpath=yes
17669 hardcode_into_libs=yes
17672 shlibpath_overrides_runpath=no
17673 hardcode_into_libs=yes
17682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17683 soname_spec='${libname}${release}${shared_ext}$major'
17684 shlibpath_var=LD_LIBRARY_PATH
17685 hardcode_into_libs=yes
17688 hpux9* | hpux10* | hpux11*)
17689 # Give a soname corresponding to the major version so that dld.sl refuses to
17690 # link against other versions.
17694 case "$host_cpu" in
17697 hardcode_into_libs=yes
17698 dynamic_linker="$host_os dld.so"
17699 shlibpath_var=LD_LIBRARY_PATH
17700 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17702 soname_spec='${libname}${release}${shared_ext}$major'
17703 if test "X$HPUX_IA64_MODE" = X32; then
17704 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17706 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17712 hardcode_into_libs=yes
17713 dynamic_linker="$host_os dld.sl"
17714 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17717 soname_spec='${libname}${release}${shared_ext}$major'
17718 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17719 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17723 dynamic_linker="$host_os dld.sl"
17724 shlibpath_var=SHLIB_PATH
17725 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17727 soname_spec='${libname}${release}${shared_ext}$major'
17730 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17731 postinstall_cmds='chmod 555 $lib'
17734 irix5* | irix6* | nonstopux*)
17736 nonstopux*) version_type=nonstopux ;;
17738 if test "$lt_cv_prog_gnu_ld" = yes; then
17746 soname_spec='${libname}${release}${shared_ext}$major'
17747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17749 irix5* | nonstopux*)
17750 libsuff= shlibsuff=
17753 case $LD in # libtool.m4 will add one of these switches to LD
17754 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17755 libsuff= shlibsuff= libmagic=32-bit;;
17756 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17757 libsuff=32 shlibsuff=N32 libmagic=N32;;
17758 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17759 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17760 *) libsuff= shlibsuff= libmagic=never-match;;
17764 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17765 shlibpath_overrides_runpath=no
17766 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17767 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17768 hardcode_into_libs=yes
17771 # No shared lib support for Linux oldld, aout, or coff.
17772 linux*oldld* | linux*aout* | linux*coff*)
17776 # This must be Linux ELF.
17781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17782 soname_spec='${libname}${release}${shared_ext}$major'
17783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17784 shlibpath_var=LD_LIBRARY_PATH
17785 shlibpath_overrides_runpath=no
17786 # This implies no fast_install, which is unacceptable.
17787 # Some rework will be needed to allow for fast_install
17788 # before this can be enabled.
17789 hardcode_into_libs=yes
17791 # Append ld.so.conf contents to the search path
17792 if test -f /etc/ld.so.conf; then
17793 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17794 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17797 # We used to test for /lib/ld.so.1 and disable shared libraries on
17798 # powerpc, because MkLinux only supported shared libraries with the
17799 # GNU dynamic linker. Since this was broken with cross compilers,
17800 # most powerpc-linux boxes support dynamic linking these days and
17801 # people can always --disable-shared, the test was removed, and we
17802 # assume the GNU/Linux dynamic linker is in use.
17803 dynamic_linker='GNU/Linux ld.so'
17810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17811 soname_spec='${libname}${release}${shared_ext}$major'
17812 shlibpath_var=LD_LIBRARY_PATH
17813 shlibpath_overrides_runpath=no
17814 hardcode_into_libs=yes
17815 dynamic_linker='GNU ld.so'
17822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17825 dynamic_linker='NetBSD (a.out) ld.so'
17827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17828 soname_spec='${libname}${release}${shared_ext}$major'
17829 dynamic_linker='NetBSD ld.elf_so'
17831 shlibpath_var=LD_LIBRARY_PATH
17832 shlibpath_overrides_runpath=yes
17833 hardcode_into_libs=yes
17838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17839 shlibpath_var=LD_LIBRARY_PATH
17840 shlibpath_overrides_runpath=yes
17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17848 soname_spec='${libname}${release}${shared_ext}$major'
17849 shlibpath_var=LD_LIBRARY_PATH
17850 shlibpath_overrides_runpath=yes
17857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17859 shlibpath_var=LD_LIBRARY_PATH
17860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17862 openbsd2.[89] | openbsd2.[89].*)
17863 shlibpath_overrides_runpath=no
17866 shlibpath_overrides_runpath=yes
17870 shlibpath_overrides_runpath=yes
17875 libname_spec='$name'
17878 library_names_spec='$libname${shared_ext} $libname.a'
17879 dynamic_linker='OS/2 ld.exe'
17880 shlibpath_var=LIBPATH
17883 osf3* | osf4* | osf5*)
17887 soname_spec='${libname}${release}${shared_ext}$major'
17888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17889 shlibpath_var=LD_LIBRARY_PATH
17890 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17891 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17896 soname_spec='${libname}${release}${shared_ext}$major'
17897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17898 shlibpath_var=LD_LIBRARY_PATH
17905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17906 soname_spec='${libname}${release}${shared_ext}$major'
17907 shlibpath_var=LD_LIBRARY_PATH
17908 shlibpath_overrides_runpath=yes
17909 hardcode_into_libs=yes
17910 # ldd complains unless libraries are executable
17911 postinstall_cmds='chmod +x $lib'
17916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17917 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17918 shlibpath_var=LD_LIBRARY_PATH
17919 shlibpath_overrides_runpath=yes
17920 if test "$with_gnu_ld" = yes; then
17926 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17929 soname_spec='${libname}${release}${shared_ext}$major'
17930 shlibpath_var=LD_LIBRARY_PATH
17931 case $host_vendor in
17933 shlibpath_overrides_runpath=no
17935 export_dynamic_flag_spec='${wl}-Blargedynsym'
17936 runpath_var=LD_RUN_PATH
17944 shlibpath_overrides_runpath=no
17945 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17951 if test -d /usr/nec ;then
17953 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17954 soname_spec='$libname${shared_ext}.$major'
17955 shlibpath_var=LD_LIBRARY_PATH
17961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17962 soname_spec='${libname}${release}${shared_ext}$major'
17963 shlibpath_var=LD_LIBRARY_PATH
17970 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17971 echo "${ECHO_T}$dynamic_linker" >&6
17972 test "$dynamic_linker" = no && can_build_shared=no
17974 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17975 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17976 hardcode_action_GCJ=
17977 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17978 test -n "$runpath_var_GCJ" || \
17979 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17981 # We can hardcode non-existant directories.
17982 if test "$hardcode_direct_GCJ" != no &&
17983 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17984 # have to relink, otherwise we might link with an installed library
17985 # when we should be linking with a yet-to-be-installed one
17986 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17987 test "$hardcode_minus_L_GCJ" != no; then
17988 # Linking always hardcodes the temporary library directory.
17989 hardcode_action_GCJ=relink
17991 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17992 hardcode_action_GCJ=immediate
17995 # We cannot hardcode anything, or else we can only hardcode existing
17997 hardcode_action_GCJ=unsupported
17999 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18000 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18002 if test "$hardcode_action_GCJ" = relink; then
18003 # Fast installation is not supported
18004 enable_fast_install=no
18005 elif test "$shlibpath_overrides_runpath" = yes ||
18006 test "$enable_shared" = no; then
18007 # Fast installation is not necessary
18008 enable_fast_install=needless
18013 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18014 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18015 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18016 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18017 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18018 echo "$as_me:$LINENO: result: yes" >&5
18019 echo "${ECHO_T}yes" >&6
18021 # FIXME - insert some real tests, host_os isn't really good enough
18024 if test -n "$STRIP" ; then
18025 striplib="$STRIP -x"
18026 echo "$as_me:$LINENO: result: yes" >&5
18027 echo "${ECHO_T}yes" >&6
18029 echo "$as_me:$LINENO: result: no" >&5
18030 echo "${ECHO_T}no" >&6
18034 echo "$as_me:$LINENO: result: no" >&5
18035 echo "${ECHO_T}no" >&6
18040 if test "x$enable_dlopen" != xyes; then
18041 enable_dlopen=unknown
18042 enable_dlopen_self=unknown
18043 enable_dlopen_self_static=unknown
18050 lt_cv_dlopen="load_add_on"
18052 lt_cv_dlopen_self=yes
18056 lt_cv_dlopen="LoadLibrary"
18061 lt_cv_dlopen="dlopen"
18066 # if libdl is installed we need to link against it
18067 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18068 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18069 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18070 echo $ECHO_N "(cached) $ECHO_C" >&6
18072 ac_check_lib_save_LIBS=$LIBS
18074 cat >conftest.$ac_ext <<_ACEOF
18077 cat confdefs.h >>conftest.$ac_ext
18078 cat >>conftest.$ac_ext <<_ACEOF
18079 /* end confdefs.h. */
18081 /* Override any gcc2 internal prototype to avoid an error. */
18085 /* We use char because int might match the return type of a gcc2
18086 builtin and then its argument prototype would still apply. */
18096 rm -f conftest.$ac_objext conftest$ac_exeext
18097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18098 (eval $ac_link) 2>conftest.er1
18100 grep -v '^ *+' conftest.er1 >conftest.err
18102 cat conftest.err >&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } &&
18105 { ac_try='test -z "$ac_c_werror_flag"
18106 || test ! -s conftest.err'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; } &&
18112 { ac_try='test -s conftest$ac_exeext'
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; }; then
18118 ac_cv_lib_dl_dlopen=yes
18120 echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.$ac_ext >&5
18123 ac_cv_lib_dl_dlopen=no
18125 rm -f conftest.err conftest.$ac_objext \
18126 conftest$ac_exeext conftest.$ac_ext
18127 LIBS=$ac_check_lib_save_LIBS
18129 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18130 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18131 if test $ac_cv_lib_dl_dlopen = yes; then
18132 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18135 lt_cv_dlopen="dyld"
18137 lt_cv_dlopen_self=yes
18144 echo "$as_me:$LINENO: checking for shl_load" >&5
18145 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18146 if test "${ac_cv_func_shl_load+set}" = set; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18149 cat >conftest.$ac_ext <<_ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18155 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18157 #define shl_load innocuous_shl_load
18159 /* System header to define __stub macros and hopefully few prototypes,
18160 which can conflict with char shl_load (); below.
18161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18162 <limits.h> exists even on freestanding compilers. */
18165 # include <limits.h>
18167 # include <assert.h>
18172 /* Override any gcc2 internal prototype to avoid an error. */
18177 /* We use char because int might match the return type of a gcc2
18178 builtin and then its argument prototype would still apply. */
18180 /* The GNU C library defines this for functions which it implements
18181 to always fail with ENOSYS. Some functions are actually named
18182 something starting with __ and the normal name is an alias. */
18183 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18186 char (*f) () = shl_load;
18195 return f != shl_load;
18200 rm -f conftest.$ac_objext conftest$ac_exeext
18201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18202 (eval $ac_link) 2>conftest.er1
18204 grep -v '^ *+' conftest.er1 >conftest.err
18206 cat conftest.err >&5
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); } &&
18209 { ac_try='test -z "$ac_c_werror_flag"
18210 || test ! -s conftest.err'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; } &&
18216 { ac_try='test -s conftest$ac_exeext'
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; }; then
18222 ac_cv_func_shl_load=yes
18224 echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18227 ac_cv_func_shl_load=no
18229 rm -f conftest.err conftest.$ac_objext \
18230 conftest$ac_exeext conftest.$ac_ext
18232 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18233 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18234 if test $ac_cv_func_shl_load = yes; then
18235 lt_cv_dlopen="shl_load"
18237 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18238 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18239 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18242 ac_check_lib_save_LIBS=$LIBS
18244 cat >conftest.$ac_ext <<_ACEOF
18247 cat confdefs.h >>conftest.$ac_ext
18248 cat >>conftest.$ac_ext <<_ACEOF
18249 /* end confdefs.h. */
18251 /* Override any gcc2 internal prototype to avoid an error. */
18255 /* We use char because int might match the return type of a gcc2
18256 builtin and then its argument prototype would still apply. */
18266 rm -f conftest.$ac_objext conftest$ac_exeext
18267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18268 (eval $ac_link) 2>conftest.er1
18270 grep -v '^ *+' conftest.er1 >conftest.err
18272 cat conftest.err >&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
18275 { ac_try='test -z "$ac_c_werror_flag"
18276 || test ! -s conftest.err'
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; } &&
18282 { ac_try='test -s conftest$ac_exeext'
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; }; then
18288 ac_cv_lib_dld_shl_load=yes
18290 echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18293 ac_cv_lib_dld_shl_load=no
18295 rm -f conftest.err conftest.$ac_objext \
18296 conftest$ac_exeext conftest.$ac_ext
18297 LIBS=$ac_check_lib_save_LIBS
18299 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18300 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18301 if test $ac_cv_lib_dld_shl_load = yes; then
18302 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18304 echo "$as_me:$LINENO: checking for dlopen" >&5
18305 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18306 if test "${ac_cv_func_dlopen+set}" = set; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18309 cat >conftest.$ac_ext <<_ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18315 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18317 #define dlopen innocuous_dlopen
18319 /* System header to define __stub macros and hopefully few prototypes,
18320 which can conflict with char dlopen (); below.
18321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18322 <limits.h> exists even on freestanding compilers. */
18325 # include <limits.h>
18327 # include <assert.h>
18332 /* Override any gcc2 internal prototype to avoid an error. */
18337 /* We use char because int might match the return type of a gcc2
18338 builtin and then its argument prototype would still apply. */
18340 /* The GNU C library defines this for functions which it implements
18341 to always fail with ENOSYS. Some functions are actually named
18342 something starting with __ and the normal name is an alias. */
18343 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18346 char (*f) () = dlopen;
18355 return f != dlopen;
18360 rm -f conftest.$ac_objext conftest$ac_exeext
18361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18362 (eval $ac_link) 2>conftest.er1
18364 grep -v '^ *+' conftest.er1 >conftest.err
18366 cat conftest.err >&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } &&
18369 { ac_try='test -z "$ac_c_werror_flag"
18370 || test ! -s conftest.err'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try='test -s conftest$ac_exeext'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 ac_cv_func_dlopen=yes
18384 echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18387 ac_cv_func_dlopen=no
18389 rm -f conftest.err conftest.$ac_objext \
18390 conftest$ac_exeext conftest.$ac_ext
18392 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18393 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18394 if test $ac_cv_func_dlopen = yes; then
18395 lt_cv_dlopen="dlopen"
18397 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18398 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18399 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18400 echo $ECHO_N "(cached) $ECHO_C" >&6
18402 ac_check_lib_save_LIBS=$LIBS
18404 cat >conftest.$ac_ext <<_ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h. */
18411 /* Override any gcc2 internal prototype to avoid an error. */
18415 /* We use char because int might match the return type of a gcc2
18416 builtin and then its argument prototype would still apply. */
18426 rm -f conftest.$ac_objext conftest$ac_exeext
18427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18428 (eval $ac_link) 2>conftest.er1
18430 grep -v '^ *+' conftest.er1 >conftest.err
18432 cat conftest.err >&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); } &&
18435 { ac_try='test -z "$ac_c_werror_flag"
18436 || test ! -s conftest.err'
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; } &&
18442 { ac_try='test -s conftest$ac_exeext'
18443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444 (eval $ac_try) 2>&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; }; then
18448 ac_cv_lib_dl_dlopen=yes
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18453 ac_cv_lib_dl_dlopen=no
18455 rm -f conftest.err conftest.$ac_objext \
18456 conftest$ac_exeext conftest.$ac_ext
18457 LIBS=$ac_check_lib_save_LIBS
18459 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18460 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18461 if test $ac_cv_lib_dl_dlopen = yes; then
18462 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18464 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18465 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18466 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18469 ac_check_lib_save_LIBS=$LIBS
18470 LIBS="-lsvld $LIBS"
18471 cat >conftest.$ac_ext <<_ACEOF
18474 cat confdefs.h >>conftest.$ac_ext
18475 cat >>conftest.$ac_ext <<_ACEOF
18476 /* end confdefs.h. */
18478 /* Override any gcc2 internal prototype to avoid an error. */
18482 /* We use char because int might match the return type of a gcc2
18483 builtin and then its argument prototype would still apply. */
18493 rm -f conftest.$ac_objext conftest$ac_exeext
18494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18495 (eval $ac_link) 2>conftest.er1
18497 grep -v '^ *+' conftest.er1 >conftest.err
18499 cat conftest.err >&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); } &&
18502 { ac_try='test -z "$ac_c_werror_flag"
18503 || test ! -s conftest.err'
18504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18505 (eval $ac_try) 2>&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; } &&
18509 { ac_try='test -s conftest$ac_exeext'
18510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18511 (eval $ac_try) 2>&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); }; }; then
18515 ac_cv_lib_svld_dlopen=yes
18517 echo "$as_me: failed program was:" >&5
18518 sed 's/^/| /' conftest.$ac_ext >&5
18520 ac_cv_lib_svld_dlopen=no
18522 rm -f conftest.err conftest.$ac_objext \
18523 conftest$ac_exeext conftest.$ac_ext
18524 LIBS=$ac_check_lib_save_LIBS
18526 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18527 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18528 if test $ac_cv_lib_svld_dlopen = yes; then
18529 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18531 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18532 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18533 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18534 echo $ECHO_N "(cached) $ECHO_C" >&6
18536 ac_check_lib_save_LIBS=$LIBS
18538 cat >conftest.$ac_ext <<_ACEOF
18541 cat confdefs.h >>conftest.$ac_ext
18542 cat >>conftest.$ac_ext <<_ACEOF
18543 /* end confdefs.h. */
18545 /* Override any gcc2 internal prototype to avoid an error. */
18549 /* We use char because int might match the return type of a gcc2
18550 builtin and then its argument prototype would still apply. */
18560 rm -f conftest.$ac_objext conftest$ac_exeext
18561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18562 (eval $ac_link) 2>conftest.er1
18564 grep -v '^ *+' conftest.er1 >conftest.err
18566 cat conftest.err >&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } &&
18569 { ac_try='test -z "$ac_c_werror_flag"
18570 || test ! -s conftest.err'
18571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18572 (eval $ac_try) 2>&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; } &&
18576 { ac_try='test -s conftest$ac_exeext'
18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
18582 ac_cv_lib_dld_dld_link=yes
18584 echo "$as_me: failed program was:" >&5
18585 sed 's/^/| /' conftest.$ac_ext >&5
18587 ac_cv_lib_dld_dld_link=no
18589 rm -f conftest.err conftest.$ac_objext \
18590 conftest$ac_exeext conftest.$ac_ext
18591 LIBS=$ac_check_lib_save_LIBS
18593 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18594 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18595 if test $ac_cv_lib_dld_dld_link = yes; then
18596 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18617 if test "x$lt_cv_dlopen" != xno; then
18623 case $lt_cv_dlopen in
18625 save_CPPFLAGS="$CPPFLAGS"
18626 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18628 save_LDFLAGS="$LDFLAGS"
18629 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18632 LIBS="$lt_cv_dlopen_libs $LIBS"
18634 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18635 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18636 if test "${lt_cv_dlopen_self+set}" = set; then
18637 echo $ECHO_N "(cached) $ECHO_C" >&6
18639 if test "$cross_compiling" = yes; then :
18640 lt_cv_dlopen_self=cross
18642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18643 lt_status=$lt_dlunknown
18644 cat > conftest.$ac_ext <<EOF
18645 #line 18645 "configure"
18646 #include "confdefs.h"
18655 # define LT_DLGLOBAL RTLD_GLOBAL
18658 # define LT_DLGLOBAL DL_GLOBAL
18660 # define LT_DLGLOBAL 0
18664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18665 find out it does not work in some platform. */
18666 #ifndef LT_DLLAZY_OR_NOW
18668 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18671 # define LT_DLLAZY_OR_NOW DL_LAZY
18674 # define LT_DLLAZY_OR_NOW RTLD_NOW
18677 # define LT_DLLAZY_OR_NOW DL_NOW
18679 # define LT_DLLAZY_OR_NOW 0
18687 extern "C" void exit (int);
18690 void fnord() { int i=42;}
18693 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18694 int status = $lt_dlunknown;
18698 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18699 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18700 /* dlclose (self); */
18706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18707 (eval $ac_link) 2>&5
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18711 (./conftest; exit; ) 2>/dev/null
18713 case x$lt_status in
18714 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18715 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18716 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18719 # compilation failed
18720 lt_cv_dlopen_self=no
18727 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18728 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18730 if test "x$lt_cv_dlopen_self" = xyes; then
18731 LDFLAGS="$LDFLAGS $link_static_flag"
18732 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18733 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18734 if test "${lt_cv_dlopen_self_static+set}" = set; then
18735 echo $ECHO_N "(cached) $ECHO_C" >&6
18737 if test "$cross_compiling" = yes; then :
18738 lt_cv_dlopen_self_static=cross
18740 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18741 lt_status=$lt_dlunknown
18742 cat > conftest.$ac_ext <<EOF
18743 #line 18743 "configure"
18744 #include "confdefs.h"
18753 # define LT_DLGLOBAL RTLD_GLOBAL
18756 # define LT_DLGLOBAL DL_GLOBAL
18758 # define LT_DLGLOBAL 0
18762 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18763 find out it does not work in some platform. */
18764 #ifndef LT_DLLAZY_OR_NOW
18766 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18769 # define LT_DLLAZY_OR_NOW DL_LAZY
18772 # define LT_DLLAZY_OR_NOW RTLD_NOW
18775 # define LT_DLLAZY_OR_NOW DL_NOW
18777 # define LT_DLLAZY_OR_NOW 0
18785 extern "C" void exit (int);
18788 void fnord() { int i=42;}
18791 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18792 int status = $lt_dlunknown;
18796 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18797 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18798 /* dlclose (self); */
18804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18805 (eval $ac_link) 2>&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18809 (./conftest; exit; ) 2>/dev/null
18811 case x$lt_status in
18812 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18813 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18814 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18817 # compilation failed
18818 lt_cv_dlopen_self_static=no
18825 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18826 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18829 CPPFLAGS="$save_CPPFLAGS"
18830 LDFLAGS="$save_LDFLAGS"
18835 case $lt_cv_dlopen_self in
18836 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18837 *) enable_dlopen_self=unknown ;;
18840 case $lt_cv_dlopen_self_static in
18841 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18842 *) enable_dlopen_self_static=unknown ;;
18847 # The else clause should only fire when bootstrapping the
18848 # libtool distribution, otherwise you forgot to ship ltmain.sh
18849 # with your package, and you will get complaints that there are
18850 # no rules to generate ltmain.sh.
18851 if test -f "$ltmain"; then
18852 # See if we are running on zsh, and set the options which allow our commands through
18853 # without removal of \ escapes.
18854 if test -n "${ZSH_VERSION+set}" ; then
18855 setopt NO_GLOB_SUBST
18857 # Now quote all the things that may contain metacharacters while being
18858 # careful not to overquote the AC_SUBSTed values. We take copies of the
18859 # variables and quote the copies for generation of the libtool script.
18860 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18862 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18863 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18864 deplibs_check_method reload_flag reload_cmds need_locks \
18865 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18866 lt_cv_sys_global_symbol_to_c_name_address \
18867 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18868 old_postinstall_cmds old_postuninstall_cmds \
18872 lt_prog_compiler_wl_GCJ \
18873 lt_prog_compiler_pic_GCJ \
18874 lt_prog_compiler_static_GCJ \
18875 lt_prog_compiler_no_builtin_flag_GCJ \
18876 export_dynamic_flag_spec_GCJ \
18877 thread_safe_flag_spec_GCJ \
18878 whole_archive_flag_spec_GCJ \
18879 enable_shared_with_static_runtimes_GCJ \
18880 old_archive_cmds_GCJ \
18881 old_archive_from_new_cmds_GCJ \
18882 predep_objects_GCJ \
18883 postdep_objects_GCJ \
18886 compiler_lib_search_path_GCJ \
18888 archive_expsym_cmds_GCJ \
18889 postinstall_cmds_GCJ \
18890 postuninstall_cmds_GCJ \
18891 old_archive_from_expsyms_cmds_GCJ \
18892 allow_undefined_flag_GCJ \
18893 no_undefined_flag_GCJ \
18894 export_symbols_cmds_GCJ \
18895 hardcode_libdir_flag_spec_GCJ \
18896 hardcode_libdir_flag_spec_ld_GCJ \
18897 hardcode_libdir_separator_GCJ \
18898 hardcode_automatic_GCJ \
18900 module_expsym_cmds_GCJ \
18901 lt_cv_prog_compiler_c_o_GCJ \
18902 exclude_expsyms_GCJ \
18903 include_expsyms_GCJ; do
18906 old_archive_cmds_GCJ | \
18907 old_archive_from_new_cmds_GCJ | \
18908 archive_cmds_GCJ | \
18909 archive_expsym_cmds_GCJ | \
18910 module_cmds_GCJ | \
18911 module_expsym_cmds_GCJ | \
18912 old_archive_from_expsyms_cmds_GCJ | \
18913 export_symbols_cmds_GCJ | \
18914 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18915 postinstall_cmds | postuninstall_cmds | \
18916 old_postinstall_cmds | old_postuninstall_cmds | \
18917 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18918 # Double-quote double-evaled strings.
18919 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18922 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18928 *'\$0 --fallback-echo"')
18929 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18935 cat <<__EOF__ >> "$cfgfile"
18936 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18938 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18940 # Shell to use when invoking shell scripts.
18943 # Whether or not to build shared libraries.
18944 build_libtool_libs=$enable_shared
18946 # Whether or not to build static libraries.
18947 build_old_libs=$enable_static
18949 # Whether or not to add -lc for building shared libraries.
18950 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18952 # Whether or not to disallow shared libs when runtime libs are static
18953 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18955 # Whether or not to optimize for fast installation.
18956 fast_install=$enable_fast_install
18959 host_alias=$host_alias
18962 # An echo program that does not interpret backslashes.
18967 AR_FLAGS=$lt_AR_FLAGS
18972 # A language-specific compiler.
18973 CC=$lt_compiler_GCJ
18975 # Is the compiler the GNU C compiler?
18981 # The linker used to build libraries.
18984 # Whether we need hard or soft links.
18987 # A BSD-compatible nm program.
18990 # A symbol stripping program
18993 # Used to examine libraries when file_magic_cmd begins "file"
18994 MAGIC_CMD=$MAGIC_CMD
18996 # Used on cygwin: DLL creation program.
18999 # Used on cygwin: object dumper.
19002 # Used on cygwin: assembler.
19005 # The name of the directory that contains temporary libtool files.
19008 # How to create reloadable object files.
19009 reload_flag=$lt_reload_flag
19010 reload_cmds=$lt_reload_cmds
19012 # How to pass a linker flag through the compiler.
19013 wl=$lt_lt_prog_compiler_wl_GCJ
19015 # Object file suffix (normally "o").
19016 objext="$ac_objext"
19018 # Old archive suffix (normally "a").
19021 # Shared library suffix (normally ".so").
19022 shrext_cmds='$shrext_cmds'
19024 # Executable file suffix (normally "").
19027 # Additional compiler flags for building library objects.
19028 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19031 # What is the maximum length of a command?
19032 max_cmd_len=$lt_cv_sys_max_cmd_len
19034 # Does compiler simultaneously support -c and -o options?
19035 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19037 # Must we lock files when doing compilation ?
19038 need_locks=$lt_need_locks
19040 # Do we need the lib prefix for modules?
19041 need_lib_prefix=$need_lib_prefix
19043 # Do we need a version for libraries?
19044 need_version=$need_version
19046 # Whether dlopen is supported.
19047 dlopen_support=$enable_dlopen
19049 # Whether dlopen of programs is supported.
19050 dlopen_self=$enable_dlopen_self
19052 # Whether dlopen of statically linked programs is supported.
19053 dlopen_self_static=$enable_dlopen_self_static
19055 # Compiler flag to prevent dynamic linking.
19056 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19058 # Compiler flag to turn off builtin functions.
19059 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19061 # Compiler flag to allow reflexive dlopens.
19062 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19064 # Compiler flag to generate shared objects directly from archives.
19065 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19067 # Compiler flag to generate thread-safe objects.
19068 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19070 # Library versioning type.
19071 version_type=$version_type
19073 # Format of library name prefix.
19074 libname_spec=$lt_libname_spec
19076 # List of archive names. First name is the real one, the rest are links.
19077 # The last name is the one that the linker finds with -lNAME.
19078 library_names_spec=$lt_library_names_spec
19080 # The coded name of the library, if different from the real name.
19081 soname_spec=$lt_soname_spec
19083 # Commands used to build and install an old-style archive.
19085 old_archive_cmds=$lt_old_archive_cmds_GCJ
19086 old_postinstall_cmds=$lt_old_postinstall_cmds
19087 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19089 # Create an old-style archive from a shared archive.
19090 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19092 # Create a temporary old-style archive to link instead of a shared archive.
19093 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19095 # Commands used to build and install a shared archive.
19096 archive_cmds=$lt_archive_cmds_GCJ
19097 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19098 postinstall_cmds=$lt_postinstall_cmds
19099 postuninstall_cmds=$lt_postuninstall_cmds
19101 # Commands used to build a loadable module (assumed same as above if empty)
19102 module_cmds=$lt_module_cmds_GCJ
19103 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19105 # Commands to strip libraries.
19106 old_striplib=$lt_old_striplib
19107 striplib=$lt_striplib
19109 # Dependencies to place before the objects being linked to create a
19111 predep_objects=$lt_predep_objects_GCJ
19113 # Dependencies to place after the objects being linked to create a
19115 postdep_objects=$lt_postdep_objects_GCJ
19117 # Dependencies to place before the objects being linked to create a
19119 predeps=$lt_predeps_GCJ
19121 # Dependencies to place after the objects being linked to create a
19123 postdeps=$lt_postdeps_GCJ
19125 # The library search path used internally by the compiler when linking
19126 # a shared library.
19127 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19129 # Method to check whether dependent libraries are shared objects.
19130 deplibs_check_method=$lt_deplibs_check_method
19132 # Command to use when deplibs_check_method == file_magic.
19133 file_magic_cmd=$lt_file_magic_cmd
19135 # Flag that allows shared libraries with undefined symbols to be built.
19136 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19138 # Flag that forces no undefined symbols.
19139 no_undefined_flag=$lt_no_undefined_flag_GCJ
19141 # Commands used to finish a libtool library installation in a directory.
19142 finish_cmds=$lt_finish_cmds
19144 # Same as above, but a single script fragment to be evaled but not shown.
19145 finish_eval=$lt_finish_eval
19147 # Take the output of nm and produce a listing of raw symbols and C names.
19148 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19150 # Transform the output of nm in a proper C declaration
19151 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19153 # Transform the output of nm in a C name address pair
19154 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19156 # This is the shared library runtime path variable.
19157 runpath_var=$runpath_var
19159 # This is the shared library path variable.
19160 shlibpath_var=$shlibpath_var
19162 # Is shlibpath searched before the hard-coded library search path?
19163 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19165 # How to hardcode a shared library path into an executable.
19166 hardcode_action=$hardcode_action_GCJ
19168 # Whether we should hardcode library paths into libraries.
19169 hardcode_into_libs=$hardcode_into_libs
19171 # Flag to hardcode \$libdir into a binary during linking.
19172 # This must work even if \$libdir does not exist.
19173 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19175 # If ld is used when linking, flag to hardcode \$libdir into
19176 # a binary during linking. This must work even if \$libdir does
19178 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19180 # Whether we need a single -rpath flag with a separated argument.
19181 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19183 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19184 # resulting binary.
19185 hardcode_direct=$hardcode_direct_GCJ
19187 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19188 # resulting binary.
19189 hardcode_minus_L=$hardcode_minus_L_GCJ
19191 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19192 # the resulting binary.
19193 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19195 # Set to yes if building a shared library automatically hardcodes DIR into the library
19196 # and all subsequent libraries and executables linked against it.
19197 hardcode_automatic=$hardcode_automatic_GCJ
19199 # Variables whose values should be saved in libtool wrapper scripts and
19200 # restored at relink time.
19201 variables_saved_for_relink="$variables_saved_for_relink"
19203 # Whether libtool must link a program against all its dependency libraries.
19204 link_all_deplibs=$link_all_deplibs_GCJ
19206 # Compile-time system search path for libraries
19207 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19209 # Run-time system search path for libraries
19210 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19212 # Fix the shell variable \$srcfile for the compiler.
19213 fix_srcfile_path="$fix_srcfile_path_GCJ"
19215 # Set to yes if exported symbols are required.
19216 always_export_symbols=$always_export_symbols_GCJ
19218 # The commands to list exported symbols.
19219 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19221 # The commands to extract the exported symbol list from a shared archive.
19222 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19224 # Symbols that should not be listed in the preloaded symbols.
19225 exclude_expsyms=$lt_exclude_expsyms_GCJ
19227 # Symbols that must always be exported.
19228 include_expsyms=$lt_include_expsyms_GCJ
19230 # ### END LIBTOOL TAG CONFIG: $tagname
19236 # If there is no Makefile yet, we rely on a make rule to execute
19237 # `config.status --recheck' to rerun these tests and create the
19238 # libtool script then.
19239 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19240 if test -f "$ltmain_in"; then
19241 test -f Makefile && make "$ltmain"
19247 ac_cpp='$CPP $CPPFLAGS'
19248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19261 ac_cpp='$CPP $CPPFLAGS'
19262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19267 # Source file extension for RC test sources.
19270 # Object file extension for compiled RC test sources.
19274 # Code to be used in simple compile tests
19275 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19277 # Code to be used in simple link tests
19278 lt_simple_link_test_code="$lt_simple_compile_test_code"
19280 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19282 # If no C compiler was specified, use CC.
19285 # Allow CC to be a program name with arguments.
19289 # Allow CC to be a program name with arguments.
19294 lt_cv_prog_compiler_c_o_RC=yes
19296 # The else clause should only fire when bootstrapping the
19297 # libtool distribution, otherwise you forgot to ship ltmain.sh
19298 # with your package, and you will get complaints that there are
19299 # no rules to generate ltmain.sh.
19300 if test -f "$ltmain"; then
19301 # See if we are running on zsh, and set the options which allow our commands through
19302 # without removal of \ escapes.
19303 if test -n "${ZSH_VERSION+set}" ; then
19304 setopt NO_GLOB_SUBST
19306 # Now quote all the things that may contain metacharacters while being
19307 # careful not to overquote the AC_SUBSTed values. We take copies of the
19308 # variables and quote the copies for generation of the libtool script.
19309 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19311 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19312 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19313 deplibs_check_method reload_flag reload_cmds need_locks \
19314 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19315 lt_cv_sys_global_symbol_to_c_name_address \
19316 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19317 old_postinstall_cmds old_postuninstall_cmds \
19321 lt_prog_compiler_wl_RC \
19322 lt_prog_compiler_pic_RC \
19323 lt_prog_compiler_static_RC \
19324 lt_prog_compiler_no_builtin_flag_RC \
19325 export_dynamic_flag_spec_RC \
19326 thread_safe_flag_spec_RC \
19327 whole_archive_flag_spec_RC \
19328 enable_shared_with_static_runtimes_RC \
19329 old_archive_cmds_RC \
19330 old_archive_from_new_cmds_RC \
19331 predep_objects_RC \
19332 postdep_objects_RC \
19335 compiler_lib_search_path_RC \
19337 archive_expsym_cmds_RC \
19338 postinstall_cmds_RC \
19339 postuninstall_cmds_RC \
19340 old_archive_from_expsyms_cmds_RC \
19341 allow_undefined_flag_RC \
19342 no_undefined_flag_RC \
19343 export_symbols_cmds_RC \
19344 hardcode_libdir_flag_spec_RC \
19345 hardcode_libdir_flag_spec_ld_RC \
19346 hardcode_libdir_separator_RC \
19347 hardcode_automatic_RC \
19349 module_expsym_cmds_RC \
19350 lt_cv_prog_compiler_c_o_RC \
19351 exclude_expsyms_RC \
19352 include_expsyms_RC; do
19355 old_archive_cmds_RC | \
19356 old_archive_from_new_cmds_RC | \
19357 archive_cmds_RC | \
19358 archive_expsym_cmds_RC | \
19360 module_expsym_cmds_RC | \
19361 old_archive_from_expsyms_cmds_RC | \
19362 export_symbols_cmds_RC | \
19363 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19364 postinstall_cmds | postuninstall_cmds | \
19365 old_postinstall_cmds | old_postuninstall_cmds | \
19366 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19367 # Double-quote double-evaled strings.
19368 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19371 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19377 *'\$0 --fallback-echo"')
19378 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19384 cat <<__EOF__ >> "$cfgfile"
19385 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19387 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19389 # Shell to use when invoking shell scripts.
19392 # Whether or not to build shared libraries.
19393 build_libtool_libs=$enable_shared
19395 # Whether or not to build static libraries.
19396 build_old_libs=$enable_static
19398 # Whether or not to add -lc for building shared libraries.
19399 build_libtool_need_lc=$archive_cmds_need_lc_RC
19401 # Whether or not to disallow shared libs when runtime libs are static
19402 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19404 # Whether or not to optimize for fast installation.
19405 fast_install=$enable_fast_install
19408 host_alias=$host_alias
19411 # An echo program that does not interpret backslashes.
19416 AR_FLAGS=$lt_AR_FLAGS
19421 # A language-specific compiler.
19424 # Is the compiler the GNU C compiler?
19430 # The linker used to build libraries.
19433 # Whether we need hard or soft links.
19436 # A BSD-compatible nm program.
19439 # A symbol stripping program
19442 # Used to examine libraries when file_magic_cmd begins "file"
19443 MAGIC_CMD=$MAGIC_CMD
19445 # Used on cygwin: DLL creation program.
19448 # Used on cygwin: object dumper.
19451 # Used on cygwin: assembler.
19454 # The name of the directory that contains temporary libtool files.
19457 # How to create reloadable object files.
19458 reload_flag=$lt_reload_flag
19459 reload_cmds=$lt_reload_cmds
19461 # How to pass a linker flag through the compiler.
19462 wl=$lt_lt_prog_compiler_wl_RC
19464 # Object file suffix (normally "o").
19465 objext="$ac_objext"
19467 # Old archive suffix (normally "a").
19470 # Shared library suffix (normally ".so").
19471 shrext_cmds='$shrext_cmds'
19473 # Executable file suffix (normally "").
19476 # Additional compiler flags for building library objects.
19477 pic_flag=$lt_lt_prog_compiler_pic_RC
19480 # What is the maximum length of a command?
19481 max_cmd_len=$lt_cv_sys_max_cmd_len
19483 # Does compiler simultaneously support -c and -o options?
19484 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19486 # Must we lock files when doing compilation ?
19487 need_locks=$lt_need_locks
19489 # Do we need the lib prefix for modules?
19490 need_lib_prefix=$need_lib_prefix
19492 # Do we need a version for libraries?
19493 need_version=$need_version
19495 # Whether dlopen is supported.
19496 dlopen_support=$enable_dlopen
19498 # Whether dlopen of programs is supported.
19499 dlopen_self=$enable_dlopen_self
19501 # Whether dlopen of statically linked programs is supported.
19502 dlopen_self_static=$enable_dlopen_self_static
19504 # Compiler flag to prevent dynamic linking.
19505 link_static_flag=$lt_lt_prog_compiler_static_RC
19507 # Compiler flag to turn off builtin functions.
19508 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19510 # Compiler flag to allow reflexive dlopens.
19511 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19513 # Compiler flag to generate shared objects directly from archives.
19514 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19516 # Compiler flag to generate thread-safe objects.
19517 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19519 # Library versioning type.
19520 version_type=$version_type
19522 # Format of library name prefix.
19523 libname_spec=$lt_libname_spec
19525 # List of archive names. First name is the real one, the rest are links.
19526 # The last name is the one that the linker finds with -lNAME.
19527 library_names_spec=$lt_library_names_spec
19529 # The coded name of the library, if different from the real name.
19530 soname_spec=$lt_soname_spec
19532 # Commands used to build and install an old-style archive.
19534 old_archive_cmds=$lt_old_archive_cmds_RC
19535 old_postinstall_cmds=$lt_old_postinstall_cmds
19536 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19538 # Create an old-style archive from a shared archive.
19539 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19541 # Create a temporary old-style archive to link instead of a shared archive.
19542 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19544 # Commands used to build and install a shared archive.
19545 archive_cmds=$lt_archive_cmds_RC
19546 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19547 postinstall_cmds=$lt_postinstall_cmds
19548 postuninstall_cmds=$lt_postuninstall_cmds
19550 # Commands used to build a loadable module (assumed same as above if empty)
19551 module_cmds=$lt_module_cmds_RC
19552 module_expsym_cmds=$lt_module_expsym_cmds_RC
19554 # Commands to strip libraries.
19555 old_striplib=$lt_old_striplib
19556 striplib=$lt_striplib
19558 # Dependencies to place before the objects being linked to create a
19560 predep_objects=$lt_predep_objects_RC
19562 # Dependencies to place after the objects being linked to create a
19564 postdep_objects=$lt_postdep_objects_RC
19566 # Dependencies to place before the objects being linked to create a
19568 predeps=$lt_predeps_RC
19570 # Dependencies to place after the objects being linked to create a
19572 postdeps=$lt_postdeps_RC
19574 # The library search path used internally by the compiler when linking
19575 # a shared library.
19576 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19578 # Method to check whether dependent libraries are shared objects.
19579 deplibs_check_method=$lt_deplibs_check_method
19581 # Command to use when deplibs_check_method == file_magic.
19582 file_magic_cmd=$lt_file_magic_cmd
19584 # Flag that allows shared libraries with undefined symbols to be built.
19585 allow_undefined_flag=$lt_allow_undefined_flag_RC
19587 # Flag that forces no undefined symbols.
19588 no_undefined_flag=$lt_no_undefined_flag_RC
19590 # Commands used to finish a libtool library installation in a directory.
19591 finish_cmds=$lt_finish_cmds
19593 # Same as above, but a single script fragment to be evaled but not shown.
19594 finish_eval=$lt_finish_eval
19596 # Take the output of nm and produce a listing of raw symbols and C names.
19597 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19599 # Transform the output of nm in a proper C declaration
19600 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19602 # Transform the output of nm in a C name address pair
19603 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19605 # This is the shared library runtime path variable.
19606 runpath_var=$runpath_var
19608 # This is the shared library path variable.
19609 shlibpath_var=$shlibpath_var
19611 # Is shlibpath searched before the hard-coded library search path?
19612 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19614 # How to hardcode a shared library path into an executable.
19615 hardcode_action=$hardcode_action_RC
19617 # Whether we should hardcode library paths into libraries.
19618 hardcode_into_libs=$hardcode_into_libs
19620 # Flag to hardcode \$libdir into a binary during linking.
19621 # This must work even if \$libdir does not exist.
19622 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19624 # If ld is used when linking, flag to hardcode \$libdir into
19625 # a binary during linking. This must work even if \$libdir does
19627 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19629 # Whether we need a single -rpath flag with a separated argument.
19630 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19632 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19633 # resulting binary.
19634 hardcode_direct=$hardcode_direct_RC
19636 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19637 # resulting binary.
19638 hardcode_minus_L=$hardcode_minus_L_RC
19640 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19641 # the resulting binary.
19642 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19644 # Set to yes if building a shared library automatically hardcodes DIR into the library
19645 # and all subsequent libraries and executables linked against it.
19646 hardcode_automatic=$hardcode_automatic_RC
19648 # Variables whose values should be saved in libtool wrapper scripts and
19649 # restored at relink time.
19650 variables_saved_for_relink="$variables_saved_for_relink"
19652 # Whether libtool must link a program against all its dependency libraries.
19653 link_all_deplibs=$link_all_deplibs_RC
19655 # Compile-time system search path for libraries
19656 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19658 # Run-time system search path for libraries
19659 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19661 # Fix the shell variable \$srcfile for the compiler.
19662 fix_srcfile_path="$fix_srcfile_path_RC"
19664 # Set to yes if exported symbols are required.
19665 always_export_symbols=$always_export_symbols_RC
19667 # The commands to list exported symbols.
19668 export_symbols_cmds=$lt_export_symbols_cmds_RC
19670 # The commands to extract the exported symbol list from a shared archive.
19671 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19673 # Symbols that should not be listed in the preloaded symbols.
19674 exclude_expsyms=$lt_exclude_expsyms_RC
19676 # Symbols that must always be exported.
19677 include_expsyms=$lt_include_expsyms_RC
19679 # ### END LIBTOOL TAG CONFIG: $tagname
19685 # If there is no Makefile yet, we rely on a make rule to execute
19686 # `config.status --recheck' to rerun these tests and create the
19687 # libtool script then.
19688 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19689 if test -f "$ltmain_in"; then
19690 test -f Makefile && make "$ltmain"
19696 ac_cpp='$CPP $CPPFLAGS'
19697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19706 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19707 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19708 { (exit 1); exit 1; }; }
19712 # Append the new tag name to the list of available tags.
19713 if test -n "$tagname" ; then
19714 available_tags="$available_tags $tagname"
19720 # Now substitute the updated list of available tags.
19721 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19722 mv "${ofile}T" "$ofile"
19726 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19727 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19728 { (exit 1); exit 1; }; }
19734 # This can be used to rebuild libtool when needed
19735 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19737 # Always use our own libtool.
19738 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
19740 # Prevent multiple expansion
19762 echo "$as_me:$LINENO: checking for GNU make" >&5
19763 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
19764 if test "${llvm_cv_gnu_make_command+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19767 llvm_cv_gnu_make_command=''
19768 for a in "$MAKE" make gmake gnumake ; do
19769 if test -z "$a" ; then continue ; fi ;
19770 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
19772 llvm_cv_gnu_make_command=$a ;
19777 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
19778 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
19779 if test "x$llvm_cv_gnu_make_command" != "x" ; then
19783 echo "$as_me:$LINENO: result: \"Not found\"" >&5
19784 echo "${ECHO_T}\"Not found\"" >&6;
19788 echo "$as_me:$LINENO: checking whether ln -s works" >&5
19789 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
19791 if test "$LN_S" = "ln -s"; then
19792 echo "$as_me:$LINENO: result: yes" >&5
19793 echo "${ECHO_T}yes" >&6
19795 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19796 echo "${ECHO_T}no, using $LN_S" >&6
19799 # Extract the first word of "find", so it can be a program name with args.
19800 set dummy find; ac_word=$2
19801 echo "$as_me:$LINENO: checking for $ac_word" >&5
19802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19803 if test "${ac_cv_path_FIND+set}" = set; then
19804 echo $ECHO_N "(cached) $ECHO_C" >&6
19808 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
19811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19812 for as_dir in $PATH
19815 test -z "$as_dir" && as_dir=.
19816 for ac_exec_ext in '' $ac_executable_extensions; do
19817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19818 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
19819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19825 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
19829 FIND=$ac_cv_path_FIND
19831 if test -n "$FIND"; then
19832 echo "$as_me:$LINENO: result: $FIND" >&5
19833 echo "${ECHO_T}$FIND" >&6
19835 echo "$as_me:$LINENO: result: no" >&5
19836 echo "${ECHO_T}no" >&6
19839 # Extract the first word of "grep", so it can be a program name with args.
19840 set dummy grep; ac_word=$2
19841 echo "$as_me:$LINENO: checking for $ac_word" >&5
19842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19843 if test "${ac_cv_path_GREP+set}" = set; then
19844 echo $ECHO_N "(cached) $ECHO_C" >&6
19848 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19852 for as_dir in $PATH
19855 test -z "$as_dir" && as_dir=.
19856 for ac_exec_ext in '' $ac_executable_extensions; do
19857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19858 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19865 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
19869 GREP=$ac_cv_path_GREP
19871 if test -n "$GREP"; then
19872 echo "$as_me:$LINENO: result: $GREP" >&5
19873 echo "${ECHO_T}$GREP" >&6
19875 echo "$as_me:$LINENO: result: no" >&5
19876 echo "${ECHO_T}no" >&6
19879 # Extract the first word of "mkdir", so it can be a program name with args.
19880 set dummy mkdir; ac_word=$2
19881 echo "$as_me:$LINENO: checking for $ac_word" >&5
19882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19883 if test "${ac_cv_path_MKDIR+set}" = set; then
19884 echo $ECHO_N "(cached) $ECHO_C" >&6
19888 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
19891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19892 for as_dir in $PATH
19895 test -z "$as_dir" && as_dir=.
19896 for ac_exec_ext in '' $ac_executable_extensions; do
19897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19898 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
19899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19905 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
19909 MKDIR=$ac_cv_path_MKDIR
19911 if test -n "$MKDIR"; then
19912 echo "$as_me:$LINENO: result: $MKDIR" >&5
19913 echo "${ECHO_T}$MKDIR" >&6
19915 echo "$as_me:$LINENO: result: no" >&5
19916 echo "${ECHO_T}no" >&6
19919 # Extract the first word of "mv", so it can be a program name with args.
19920 set dummy mv; ac_word=$2
19921 echo "$as_me:$LINENO: checking for $ac_word" >&5
19922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19923 if test "${ac_cv_path_MV+set}" = set; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
19928 ac_cv_path_MV="$MV" # Let the user override the test with a path.
19931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19932 for as_dir in $PATH
19935 test -z "$as_dir" && as_dir=.
19936 for ac_exec_ext in '' $ac_executable_extensions; do
19937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19938 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
19939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19945 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
19951 if test -n "$MV"; then
19952 echo "$as_me:$LINENO: result: $MV" >&5
19953 echo "${ECHO_T}$MV" >&6
19955 echo "$as_me:$LINENO: result: no" >&5
19956 echo "${ECHO_T}no" >&6
19959 if test -n "$ac_tool_prefix"; then
19960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19961 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19962 echo "$as_me:$LINENO: checking for $ac_word" >&5
19963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19964 if test "${ac_cv_prog_RANLIB+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19967 if test -n "$RANLIB"; then
19968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19971 for as_dir in $PATH
19974 test -z "$as_dir" && as_dir=.
19975 for ac_exec_ext in '' $ac_executable_extensions; do
19976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19986 RANLIB=$ac_cv_prog_RANLIB
19987 if test -n "$RANLIB"; then
19988 echo "$as_me:$LINENO: result: $RANLIB" >&5
19989 echo "${ECHO_T}$RANLIB" >&6
19991 echo "$as_me:$LINENO: result: no" >&5
19992 echo "${ECHO_T}no" >&6
19996 if test -z "$ac_cv_prog_RANLIB"; then
19997 ac_ct_RANLIB=$RANLIB
19998 # Extract the first word of "ranlib", so it can be a program name with args.
19999 set dummy ranlib; ac_word=$2
20000 echo "$as_me:$LINENO: checking for $ac_word" >&5
20001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20002 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20005 if test -n "$ac_ct_RANLIB"; then
20006 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20009 for as_dir in $PATH
20012 test -z "$as_dir" && as_dir=.
20013 for ac_exec_ext in '' $ac_executable_extensions; do
20014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20015 ac_cv_prog_ac_ct_RANLIB="ranlib"
20016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20022 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
20025 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20026 if test -n "$ac_ct_RANLIB"; then
20027 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
20028 echo "${ECHO_T}$ac_ct_RANLIB" >&6
20030 echo "$as_me:$LINENO: result: no" >&5
20031 echo "${ECHO_T}no" >&6
20034 RANLIB=$ac_ct_RANLIB
20036 RANLIB="$ac_cv_prog_RANLIB"
20039 # Extract the first word of "rm", so it can be a program name with args.
20040 set dummy rm; ac_word=$2
20041 echo "$as_me:$LINENO: checking for $ac_word" >&5
20042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20043 if test "${ac_cv_path_RM+set}" = set; then
20044 echo $ECHO_N "(cached) $ECHO_C" >&6
20048 ac_cv_path_RM="$RM" # Let the user override the test with a path.
20051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20052 for as_dir in $PATH
20055 test -z "$as_dir" && as_dir=.
20056 for ac_exec_ext in '' $ac_executable_extensions; do
20057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20058 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
20059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20065 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
20071 if test -n "$RM"; then
20072 echo "$as_me:$LINENO: result: $RM" >&5
20073 echo "${ECHO_T}$RM" >&6
20075 echo "$as_me:$LINENO: result: no" >&5
20076 echo "${ECHO_T}no" >&6
20079 # Extract the first word of "sed", so it can be a program name with args.
20080 set dummy sed; ac_word=$2
20081 echo "$as_me:$LINENO: checking for $ac_word" >&5
20082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20083 if test "${ac_cv_path_SED+set}" = set; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20088 ac_cv_path_SED="$SED" # Let the user override the test with a path.
20091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20092 for as_dir in $PATH
20095 test -z "$as_dir" && as_dir=.
20096 for ac_exec_ext in '' $ac_executable_extensions; do
20097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20098 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
20099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20105 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
20109 SED=$ac_cv_path_SED
20111 if test -n "$SED"; then
20112 echo "$as_me:$LINENO: result: $SED" >&5
20113 echo "${ECHO_T}$SED" >&6
20115 echo "$as_me:$LINENO: result: no" >&5
20116 echo "${ECHO_T}no" >&6
20119 # Extract the first word of "tar", so it can be a program name with args.
20120 set dummy tar; ac_word=$2
20121 echo "$as_me:$LINENO: checking for $ac_word" >&5
20122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20123 if test "${ac_cv_path_TAR+set}" = set; then
20124 echo $ECHO_N "(cached) $ECHO_C" >&6
20128 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
20131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20132 for as_dir in $PATH
20135 test -z "$as_dir" && as_dir=.
20136 for ac_exec_ext in '' $ac_executable_extensions; do
20137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20138 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
20139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20145 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
20149 TAR=$ac_cv_path_TAR
20151 if test -n "$TAR"; then
20152 echo "$as_me:$LINENO: result: $TAR" >&5
20153 echo "${ECHO_T}$TAR" >&6
20155 echo "$as_me:$LINENO: result: no" >&5
20156 echo "${ECHO_T}no" >&6
20160 # Find a good install program. We prefer a C program (faster),
20161 # so one script is as good as another. But avoid the broken or
20162 # incompatible versions:
20163 # SysV /etc/install, /usr/sbin/install
20164 # SunOS /usr/etc/install
20165 # IRIX /sbin/install
20167 # AmigaOS /C/install, which installs bootblocks on floppy discs
20168 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20169 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
20170 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20171 # OS/2's system install, which has a completely different semantic
20172 # ./install, which can be erroneously created by make from ./install.sh.
20173 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20174 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
20175 if test -z "$INSTALL"; then
20176 if test "${ac_cv_path_install+set}" = set; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20180 for as_dir in $PATH
20183 test -z "$as_dir" && as_dir=.
20184 # Account for people who put trailing slashes in PATH elements.
20186 ./ | .// | /cC/* | \
20187 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20188 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20191 # OSF1 and SCO ODT 3.0 have their own names for install.
20192 # Don't use installbsd from OSF since it installs stuff as root
20194 for ac_prog in ginstall scoinst install; do
20195 for ac_exec_ext in '' $ac_executable_extensions; do
20196 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
20197 if test $ac_prog = install &&
20198 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20199 # AIX install. It has an incompatible calling convention.
20201 elif test $ac_prog = install &&
20202 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20203 # program-specific install script used by HP pwplus--don't use.
20206 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20218 if test "${ac_cv_path_install+set}" = set; then
20219 INSTALL=$ac_cv_path_install
20221 # As a last resort, use the slow shell script. We don't cache a
20222 # path for INSTALL within a source directory, because that will
20223 # break other packages using the cache if that directory is
20224 # removed, or if the path is relative.
20225 INSTALL=$ac_install_sh
20228 echo "$as_me:$LINENO: result: $INSTALL" >&5
20229 echo "${ECHO_T}$INSTALL" >&6
20231 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20232 # It thinks the first close brace ends the variable substitution.
20233 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20235 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20237 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20240 # Extract the first word of "dot", so it can be a program name with args.
20241 set dummy dot; ac_word=$2
20242 echo "$as_me:$LINENO: checking for $ac_word" >&5
20243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20244 if test "${ac_cv_path_DOT+set}" = set; then
20245 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
20252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20253 for as_dir in $PATH
20256 test -z "$as_dir" && as_dir=.
20257 for ac_exec_ext in '' $ac_executable_extensions; do
20258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20259 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
20260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20266 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
20270 DOT=$ac_cv_path_DOT
20272 if test -n "$DOT"; then
20273 echo "$as_me:$LINENO: result: $DOT" >&5
20274 echo "${ECHO_T}$DOT" >&6
20276 echo "$as_me:$LINENO: result: no" >&5
20277 echo "${ECHO_T}no" >&6
20280 # Extract the first word of "etags", so it can be a program name with args.
20281 set dummy etags; ac_word=$2
20282 echo "$as_me:$LINENO: checking for $ac_word" >&5
20283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20284 if test "${ac_cv_path_ETAGS+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
20292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20293 for as_dir in $PATH
20296 test -z "$as_dir" && as_dir=.
20297 for ac_exec_ext in '' $ac_executable_extensions; do
20298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20299 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
20300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20306 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
20310 ETAGS=$ac_cv_path_ETAGS
20312 if test -n "$ETAGS"; then
20313 echo "$as_me:$LINENO: result: $ETAGS" >&5
20314 echo "${ECHO_T}$ETAGS" >&6
20316 echo "$as_me:$LINENO: result: no" >&5
20317 echo "${ECHO_T}no" >&6
20321 # Extract the first word of "python", so it can be a program name with args.
20322 set dummy python; ac_word=$2
20323 echo "$as_me:$LINENO: checking for $ac_word" >&5
20324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20325 if test "${ac_cv_path_PYTHON+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20330 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20334 for as_dir in $PATH
20337 test -z "$as_dir" && as_dir=.
20338 for ac_exec_ext in '' $ac_executable_extensions; do
20339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20340 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20347 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
20351 PYTHON=$ac_cv_path_PYTHON
20353 if test -n "$PYTHON"; then
20354 echo "$as_me:$LINENO: result: $PYTHON" >&5
20355 echo "${ECHO_T}$PYTHON" >&6
20357 echo "$as_me:$LINENO: result: no" >&5
20358 echo "${ECHO_T}no" >&6
20361 # Extract the first word of "qmtest", so it can be a program name with args.
20362 set dummy qmtest; ac_word=$2
20363 echo "$as_me:$LINENO: checking for $ac_word" >&5
20364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20365 if test "${ac_cv_path_QMTEST+set}" = set; then
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
20370 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
20373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20374 for as_dir in $PATH
20377 test -z "$as_dir" && as_dir=.
20378 for ac_exec_ext in '' $ac_executable_extensions; do
20379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20380 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
20381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20387 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
20391 QMTEST=$ac_cv_path_QMTEST
20393 if test -n "$QMTEST"; then
20394 echo "$as_me:$LINENO: result: $QMTEST" >&5
20395 echo "${ECHO_T}$QMTEST" >&6
20397 echo "$as_me:$LINENO: result: no" >&5
20398 echo "${ECHO_T}no" >&6
20401 # Extract the first word of "runtest", so it can be a program name with args.
20402 set dummy runtest; ac_word=$2
20403 echo "$as_me:$LINENO: checking for $ac_word" >&5
20404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20405 if test "${ac_cv_path_RUNTEST+set}" = set; then
20406 echo $ECHO_N "(cached) $ECHO_C" >&6
20410 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
20413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20414 for as_dir in $PATH
20417 test -z "$as_dir" && as_dir=.
20418 for ac_exec_ext in '' $ac_executable_extensions; do
20419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20420 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
20421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20427 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
20431 RUNTEST=$ac_cv_path_RUNTEST
20433 if test -n "$RUNTEST"; then
20434 echo "$as_me:$LINENO: result: $RUNTEST" >&5
20435 echo "${ECHO_T}$RUNTEST" >&6
20437 echo "$as_me:$LINENO: result: no" >&5
20438 echo "${ECHO_T}no" >&6
20442 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
20443 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
20444 if test "${llvm_cv_link_use_r+set}" = set; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20448 ac_cpp='$CPP $CPPFLAGS'
20449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20453 oldcflags="$CFLAGS"
20454 CFLAGS="$CFLAGS -Wl,-R."
20455 cat >conftest.$ac_ext <<_ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20465 int main() { return 0; }
20470 rm -f conftest.$ac_objext conftest$ac_exeext
20471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20472 (eval $ac_link) 2>conftest.er1
20474 grep -v '^ *+' conftest.er1 >conftest.err
20476 cat conftest.err >&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } &&
20479 { ac_try='test -z "$ac_c_werror_flag"
20480 || test ! -s conftest.err'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; } &&
20486 { ac_try='test -s conftest$ac_exeext'
20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488 (eval $ac_try) 2>&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; }; then
20492 llvm_cv_link_use_r=yes
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 llvm_cv_link_use_r=no
20499 rm -f conftest.err conftest.$ac_objext \
20500 conftest$ac_exeext conftest.$ac_ext
20501 CFLAGS="$oldcflags"
20503 ac_cpp='$CPP $CPPFLAGS'
20504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20510 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
20511 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
20512 if test "$llvm_cv_link_use_r" = yes ; then
20514 cat >>confdefs.h <<\_ACEOF
20515 #define HAVE_LINK_R 1
20521 etags_version=`$ETAGS --version 2>&1`
20522 case "$etags_version" in
20523 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
20524 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
20525 *) ETAGSFLAGS="" ;;
20527 ETAGSFLAGS=$ETAGSFLAGS
20530 echo "$as_me:$LINENO: checking tool compatibility" >&5
20531 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
20533 if test "$GCC" != "yes"
20535 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
20536 echo "$as_me: error: gcc required but not found" >&2;}
20537 { (exit 1); exit 1; }; }
20539 if test "$GXX" != "yes"
20541 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
20542 echo "$as_me: error: g++ required but not found" >&2;}
20543 { (exit 1); exit 1; }; }
20546 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
20547 if test "$gccmajor" -lt "3"
20549 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
20550 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
20551 { (exit 1); exit 1; }; }
20554 if test -z "$llvm_cv_gnu_make_command"
20556 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
20557 echo "$as_me: error: GNU Make required but not found" >&2;}
20558 { (exit 1); exit 1; }; }
20561 echo "$as_me:$LINENO: result: ok" >&5
20562 echo "${ECHO_T}ok" >&6
20564 if test "$PYTHON" = "false" ; then
20565 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
20566 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
20568 if test "$QMTEST" = "false" ; then
20569 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
20570 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
20572 if test "$RUNTEST" = "false" ; then
20573 { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5
20574 echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;}
20576 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
20577 pymajor=`echo $pyversion | cut -d. -f1`
20578 pyminor=`echo $pyversion | cut -d. -f2`
20579 if test "$pymajor" -ge "2" ; then
20580 if test "$pymajor" -eq "2" ; then
20581 if test "$pyminor" -lt "2" ; then
20582 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
20583 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
20587 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
20588 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
20591 echo "$as_me:$LINENO: result: " >&5
20592 echo "${ECHO_T}" >&6
20596 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
20597 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
20598 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
20599 echo $ECHO_N "(cached) $ECHO_C" >&6
20601 ac_check_lib_save_LIBS=$LIBS
20603 cat >conftest.$ac_ext <<_ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h. */
20610 /* Override any gcc2 internal prototype to avoid an error. */
20614 /* We use char because int might match the return type of a gcc2
20615 builtin and then its argument prototype would still apply. */
20625 rm -f conftest.$ac_objext conftest$ac_exeext
20626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20627 (eval $ac_link) 2>conftest.er1
20629 grep -v '^ *+' conftest.er1 >conftest.err
20631 cat conftest.err >&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } &&
20634 { ac_try='test -z "$ac_c_werror_flag"
20635 || test ! -s conftest.err'
20636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637 (eval $ac_try) 2>&5
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; } &&
20641 { ac_try='test -s conftest$ac_exeext'
20642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20643 (eval $ac_try) 2>&5
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); }; }; then
20647 ac_cv_lib_elf_elf_begin=yes
20649 echo "$as_me: failed program was:" >&5
20650 sed 's/^/| /' conftest.$ac_ext >&5
20652 ac_cv_lib_elf_elf_begin=no
20654 rm -f conftest.err conftest.$ac_objext \
20655 conftest$ac_exeext conftest.$ac_ext
20656 LIBS=$ac_check_lib_save_LIBS
20658 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
20659 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
20660 if test $ac_cv_lib_elf_elf_begin = yes; then
20661 cat >>confdefs.h <<_ACEOF
20662 #define HAVE_LIBELF 1
20670 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
20671 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
20672 if test "${ac_cv_search_lt_dlopen+set}" = set; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 ac_func_search_save_LIBS=$LIBS
20676 ac_cv_search_lt_dlopen=no
20677 cat >conftest.$ac_ext <<_ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h. */
20684 /* Override any gcc2 internal prototype to avoid an error. */
20688 /* We use char because int might match the return type of a gcc2
20689 builtin and then its argument prototype would still apply. */
20699 rm -f conftest.$ac_objext conftest$ac_exeext
20700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20701 (eval $ac_link) 2>conftest.er1
20703 grep -v '^ *+' conftest.er1 >conftest.err
20705 cat conftest.err >&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); } &&
20708 { ac_try='test -z "$ac_c_werror_flag"
20709 || test ! -s conftest.err'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; } &&
20715 { ac_try='test -s conftest$ac_exeext'
20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717 (eval $ac_try) 2>&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; }; then
20721 ac_cv_search_lt_dlopen="none required"
20723 echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20727 rm -f conftest.err conftest.$ac_objext \
20728 conftest$ac_exeext conftest.$ac_ext
20729 if test "$ac_cv_search_lt_dlopen" = no; then
20730 for ac_lib in ltdl; do
20731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20732 cat >conftest.$ac_ext <<_ACEOF
20735 cat confdefs.h >>conftest.$ac_ext
20736 cat >>conftest.$ac_ext <<_ACEOF
20737 /* end confdefs.h. */
20739 /* Override any gcc2 internal prototype to avoid an error. */
20743 /* We use char because int might match the return type of a gcc2
20744 builtin and then its argument prototype would still apply. */
20754 rm -f conftest.$ac_objext conftest$ac_exeext
20755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20756 (eval $ac_link) 2>conftest.er1
20758 grep -v '^ *+' conftest.er1 >conftest.err
20760 cat conftest.err >&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } &&
20763 { ac_try='test -z "$ac_c_werror_flag"
20764 || test ! -s conftest.err'
20765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766 (eval $ac_try) 2>&5
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; } &&
20770 { ac_try='test -s conftest$ac_exeext'
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; }; then
20776 ac_cv_search_lt_dlopen="-l$ac_lib"
20779 echo "$as_me: failed program was:" >&5
20780 sed 's/^/| /' conftest.$ac_ext >&5
20783 rm -f conftest.err conftest.$ac_objext \
20784 conftest$ac_exeext conftest.$ac_ext
20787 LIBS=$ac_func_search_save_LIBS
20789 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
20790 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
20791 if test "$ac_cv_search_lt_dlopen" != no; then
20792 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
20794 cat >>confdefs.h <<\_ACEOF
20795 #define HAVE_LT_DLOPEN 1
20799 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
20800 not be available" >&5
20801 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
20802 not be available" >&2;}
20806 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
20807 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
20808 if test "${ac_cv_search_dlopen+set}" = set; then
20809 echo $ECHO_N "(cached) $ECHO_C" >&6
20811 ac_func_search_save_LIBS=$LIBS
20812 ac_cv_search_dlopen=no
20813 cat >conftest.$ac_ext <<_ACEOF
20816 cat confdefs.h >>conftest.$ac_ext
20817 cat >>conftest.$ac_ext <<_ACEOF
20818 /* end confdefs.h. */
20820 /* Override any gcc2 internal prototype to avoid an error. */
20824 /* We use char because int might match the return type of a gcc2
20825 builtin and then its argument prototype would still apply. */
20835 rm -f conftest.$ac_objext conftest$ac_exeext
20836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20837 (eval $ac_link) 2>conftest.er1
20839 grep -v '^ *+' conftest.er1 >conftest.err
20841 cat conftest.err >&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } &&
20844 { ac_try='test -z "$ac_c_werror_flag"
20845 || test ! -s conftest.err'
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; } &&
20851 { ac_try='test -s conftest$ac_exeext'
20852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20857 ac_cv_search_dlopen="none required"
20859 echo "$as_me: failed program was:" >&5
20860 sed 's/^/| /' conftest.$ac_ext >&5
20863 rm -f conftest.err conftest.$ac_objext \
20864 conftest$ac_exeext conftest.$ac_ext
20865 if test "$ac_cv_search_dlopen" = no; then
20866 for ac_lib in dl; do
20867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20868 cat >conftest.$ac_ext <<_ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h. */
20875 /* Override any gcc2 internal prototype to avoid an error. */
20879 /* We use char because int might match the return type of a gcc2
20880 builtin and then its argument prototype would still apply. */
20890 rm -f conftest.$ac_objext conftest$ac_exeext
20891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20892 (eval $ac_link) 2>conftest.er1
20894 grep -v '^ *+' conftest.er1 >conftest.err
20896 cat conftest.err >&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } &&
20899 { ac_try='test -z "$ac_c_werror_flag"
20900 || test ! -s conftest.err'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; } &&
20906 { ac_try='test -s conftest$ac_exeext'
20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908 (eval $ac_try) 2>&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; }; then
20912 ac_cv_search_dlopen="-l$ac_lib"
20915 echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20919 rm -f conftest.err conftest.$ac_objext \
20920 conftest$ac_exeext conftest.$ac_ext
20923 LIBS=$ac_func_search_save_LIBS
20925 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
20926 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
20927 if test "$ac_cv_search_dlopen" != no; then
20928 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
20930 cat >>confdefs.h <<\_ACEOF
20931 #define HAVE_DLOPEN 1
20935 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
20936 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
20940 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
20941 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
20942 if test "${ac_cv_search_mallinfo+set}" = set; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
20945 ac_func_search_save_LIBS=$LIBS
20946 ac_cv_search_mallinfo=no
20947 cat >conftest.$ac_ext <<_ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20954 /* Override any gcc2 internal prototype to avoid an error. */
20958 /* We use char because int might match the return type of a gcc2
20959 builtin and then its argument prototype would still apply. */
20969 rm -f conftest.$ac_objext conftest$ac_exeext
20970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20971 (eval $ac_link) 2>conftest.er1
20973 grep -v '^ *+' conftest.er1 >conftest.err
20975 cat conftest.err >&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } &&
20978 { ac_try='test -z "$ac_c_werror_flag"
20979 || test ! -s conftest.err'
20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981 (eval $ac_try) 2>&5
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; } &&
20985 { ac_try='test -s conftest$ac_exeext'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
20991 ac_cv_search_mallinfo="none required"
20993 echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20997 rm -f conftest.err conftest.$ac_objext \
20998 conftest$ac_exeext conftest.$ac_ext
20999 if test "$ac_cv_search_mallinfo" = no; then
21000 for ac_lib in malloc; do
21001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21002 cat >conftest.$ac_ext <<_ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21009 /* Override any gcc2 internal prototype to avoid an error. */
21013 /* We use char because int might match the return type of a gcc2
21014 builtin and then its argument prototype would still apply. */
21024 rm -f conftest.$ac_objext conftest$ac_exeext
21025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21026 (eval $ac_link) 2>conftest.er1
21028 grep -v '^ *+' conftest.er1 >conftest.err
21030 cat conftest.err >&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } &&
21033 { ac_try='test -z "$ac_c_werror_flag"
21034 || test ! -s conftest.err'
21035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21036 (eval $ac_try) 2>&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); }; } &&
21040 { ac_try='test -s conftest$ac_exeext'
21041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042 (eval $ac_try) 2>&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; }; then
21046 ac_cv_search_mallinfo="-l$ac_lib"
21049 echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21053 rm -f conftest.err conftest.$ac_objext \
21054 conftest$ac_exeext conftest.$ac_ext
21057 LIBS=$ac_func_search_save_LIBS
21059 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
21060 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
21061 if test "$ac_cv_search_mallinfo" != no; then
21062 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
21064 cat >>confdefs.h <<\_ACEOF
21065 #define HAVE_MALLINFO 1
21071 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
21072 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
21073 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
21074 echo $ECHO_N "(cached) $ECHO_C" >&6
21076 ac_func_search_save_LIBS=$LIBS
21077 ac_cv_search_pthread_mutex_lock=no
21078 cat >conftest.$ac_ext <<_ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21085 /* Override any gcc2 internal prototype to avoid an error. */
21089 /* We use char because int might match the return type of a gcc2
21090 builtin and then its argument prototype would still apply. */
21091 char pthread_mutex_lock ();
21095 pthread_mutex_lock ();
21100 rm -f conftest.$ac_objext conftest$ac_exeext
21101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21102 (eval $ac_link) 2>conftest.er1
21104 grep -v '^ *+' conftest.er1 >conftest.err
21106 cat conftest.err >&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); } &&
21109 { ac_try='test -z "$ac_c_werror_flag"
21110 || test ! -s conftest.err'
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; } &&
21116 { ac_try='test -s conftest$ac_exeext'
21117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118 (eval $ac_try) 2>&5
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); }; }; then
21122 ac_cv_search_pthread_mutex_lock="none required"
21124 echo "$as_me: failed program was:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21128 rm -f conftest.err conftest.$ac_objext \
21129 conftest$ac_exeext conftest.$ac_ext
21130 if test "$ac_cv_search_pthread_mutex_lock" = no; then
21131 for ac_lib in pthread; do
21132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21133 cat >conftest.$ac_ext <<_ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21140 /* Override any gcc2 internal prototype to avoid an error. */
21144 /* We use char because int might match the return type of a gcc2
21145 builtin and then its argument prototype would still apply. */
21146 char pthread_mutex_lock ();
21150 pthread_mutex_lock ();
21155 rm -f conftest.$ac_objext conftest$ac_exeext
21156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21157 (eval $ac_link) 2>conftest.er1
21159 grep -v '^ *+' conftest.er1 >conftest.err
21161 cat conftest.err >&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); } &&
21164 { ac_try='test -z "$ac_c_werror_flag"
21165 || test ! -s conftest.err'
21166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); }; } &&
21171 { ac_try='test -s conftest$ac_exeext'
21172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173 (eval $ac_try) 2>&5
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; }; then
21177 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
21180 echo "$as_me: failed program was:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21184 rm -f conftest.err conftest.$ac_objext \
21185 conftest$ac_exeext conftest.$ac_ext
21188 LIBS=$ac_func_search_save_LIBS
21190 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
21191 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
21192 if test "$ac_cv_search_pthread_mutex_lock" != no; then
21193 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
21195 cat >>confdefs.h <<\_ACEOF
21196 #define HAVE_PTHREAD_MUTEX_LOCK 1
21203 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21204 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21205 if test "${ac_cv_header_stdc+set}" = set; then
21206 echo $ECHO_N "(cached) $ECHO_C" >&6
21208 cat >conftest.$ac_ext <<_ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h. */
21214 #include <stdlib.h>
21215 #include <stdarg.h>
21216 #include <string.h>
21227 rm -f conftest.$ac_objext
21228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21229 (eval $ac_compile) 2>conftest.er1
21231 grep -v '^ *+' conftest.er1 >conftest.err
21233 cat conftest.err >&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } &&
21236 { ac_try='test -z "$ac_c_werror_flag"
21237 || test ! -s conftest.err'
21238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239 (eval $ac_try) 2>&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; } &&
21243 { ac_try='test -s conftest.$ac_objext'
21244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245 (eval $ac_try) 2>&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); }; }; then
21249 ac_cv_header_stdc=yes
21251 echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21254 ac_cv_header_stdc=no
21256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21258 if test $ac_cv_header_stdc = yes; then
21259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21260 cat >conftest.$ac_ext <<_ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h. */
21266 #include <string.h>
21269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21270 $EGREP "memchr" >/dev/null 2>&1; then
21273 ac_cv_header_stdc=no
21279 if test $ac_cv_header_stdc = yes; then
21280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21281 cat >conftest.$ac_ext <<_ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h. */
21287 #include <stdlib.h>
21290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21291 $EGREP "free" >/dev/null 2>&1; then
21294 ac_cv_header_stdc=no
21300 if test $ac_cv_header_stdc = yes; then
21301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21302 if test "$cross_compiling" = yes; then
21305 cat >conftest.$ac_ext <<_ACEOF
21308 cat confdefs.h >>conftest.$ac_ext
21309 cat >>conftest.$ac_ext <<_ACEOF
21310 /* end confdefs.h. */
21312 #if ((' ' & 0x0FF) == 0x020)
21313 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21314 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21316 # define ISLOWER(c) \
21317 (('a' <= (c) && (c) <= 'i') \
21318 || ('j' <= (c) && (c) <= 'r') \
21319 || ('s' <= (c) && (c) <= 'z'))
21320 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21323 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21328 for (i = 0; i < 256; i++)
21329 if (XOR (islower (i), ISLOWER (i))
21330 || toupper (i) != TOUPPER (i))
21335 rm -f conftest$ac_exeext
21336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21337 (eval $ac_link) 2>&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; }; then
21348 echo "$as_me: program exited with status $ac_status" >&5
21349 echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21352 ( exit $ac_status )
21353 ac_cv_header_stdc=no
21355 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21359 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21360 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21361 if test $ac_cv_header_stdc = yes; then
21363 cat >>confdefs.h <<\_ACEOF
21364 #define STDC_HEADERS 1
21370 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21371 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21372 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21373 echo $ECHO_N "(cached) $ECHO_C" >&6
21375 cat >conftest.$ac_ext <<_ACEOF
21378 cat confdefs.h >>conftest.$ac_ext
21379 cat >>conftest.$ac_ext <<_ACEOF
21380 /* end confdefs.h. */
21381 #include <sys/types.h>
21382 #include <sys/wait.h>
21383 #ifndef WEXITSTATUS
21384 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21387 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21395 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21400 rm -f conftest.$ac_objext
21401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21402 (eval $ac_compile) 2>conftest.er1
21404 grep -v '^ *+' conftest.er1 >conftest.err
21406 cat conftest.err >&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); } &&
21409 { ac_try='test -z "$ac_c_werror_flag"
21410 || test ! -s conftest.err'
21411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412 (eval $ac_try) 2>&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }; } &&
21416 { ac_try='test -s conftest.$ac_objext'
21417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418 (eval $ac_try) 2>&5
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); }; }; then
21422 ac_cv_header_sys_wait_h=yes
21424 echo "$as_me: failed program was:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21427 ac_cv_header_sys_wait_h=no
21429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21431 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21432 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21433 if test $ac_cv_header_sys_wait_h = yes; then
21435 cat >>confdefs.h <<\_ACEOF
21436 #define HAVE_SYS_WAIT_H 1
21446 for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
21448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21450 echo "$as_me:$LINENO: checking for $ac_header" >&5
21451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21453 echo $ECHO_N "(cached) $ECHO_C" >&6
21455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21458 # Is the header compilable?
21459 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21461 cat >conftest.$ac_ext <<_ACEOF
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h. */
21467 $ac_includes_default
21468 #include <$ac_header>
21470 rm -f conftest.$ac_objext
21471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21472 (eval $ac_compile) 2>conftest.er1
21474 grep -v '^ *+' conftest.er1 >conftest.err
21476 cat conftest.err >&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } &&
21479 { ac_try='test -z "$ac_c_werror_flag"
21480 || test ! -s conftest.err'
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; } &&
21486 { ac_try='test -s conftest.$ac_objext'
21487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21488 (eval $ac_try) 2>&5
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); }; }; then
21492 ac_header_compiler=yes
21494 echo "$as_me: failed program was:" >&5
21495 sed 's/^/| /' conftest.$ac_ext >&5
21497 ac_header_compiler=no
21499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21500 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21501 echo "${ECHO_T}$ac_header_compiler" >&6
21503 # Is the header present?
21504 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21506 cat >conftest.$ac_ext <<_ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 #include <$ac_header>
21514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21517 grep -v '^ *+' conftest.er1 >conftest.err
21519 cat conftest.err >&5
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); } >/dev/null; then
21522 if test -s conftest.err; then
21523 ac_cpp_err=$ac_c_preproc_warn_flag
21524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21531 if test -z "$ac_cpp_err"; then
21532 ac_header_preproc=yes
21534 echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21537 ac_header_preproc=no
21539 rm -f conftest.err conftest.$ac_ext
21540 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21541 echo "${ECHO_T}$ac_header_preproc" >&6
21543 # So? What about this header?
21544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21550 ac_header_preproc=yes
21553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21560 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21567 ## ----------------------------------- ##
21568 ## Report this to llvmbugs@cs.uiuc.edu ##
21569 ## ----------------------------------- ##
21572 sed "s/^/$as_me: WARNING: /" >&2
21575 echo "$as_me:$LINENO: checking for $ac_header" >&5
21576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21578 echo $ECHO_N "(cached) $ECHO_C" >&6
21580 eval "$as_ac_Header=\$ac_header_preproc"
21582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21587 cat >>confdefs.h <<_ACEOF
21588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21602 for ac_header in bzlib.h dlfcn.h execinfo.h fcntl.h limits.h link.h ltdl.h
21604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21606 echo "$as_me:$LINENO: checking for $ac_header" >&5
21607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21614 # Is the header compilable?
21615 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21617 cat >conftest.$ac_ext <<_ACEOF
21620 cat confdefs.h >>conftest.$ac_ext
21621 cat >>conftest.$ac_ext <<_ACEOF
21622 /* end confdefs.h. */
21623 $ac_includes_default
21624 #include <$ac_header>
21626 rm -f conftest.$ac_objext
21627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21628 (eval $ac_compile) 2>conftest.er1
21630 grep -v '^ *+' conftest.er1 >conftest.err
21632 cat conftest.err >&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } &&
21635 { ac_try='test -z "$ac_c_werror_flag"
21636 || test ! -s conftest.err'
21637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21638 (eval $ac_try) 2>&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); }; } &&
21642 { ac_try='test -s conftest.$ac_objext'
21643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; }; then
21648 ac_header_compiler=yes
21650 echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21653 ac_header_compiler=no
21655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21657 echo "${ECHO_T}$ac_header_compiler" >&6
21659 # Is the header present?
21660 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21662 cat >conftest.$ac_ext <<_ACEOF
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h. */
21668 #include <$ac_header>
21670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21673 grep -v '^ *+' conftest.er1 >conftest.err
21675 cat conftest.err >&5
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); } >/dev/null; then
21678 if test -s conftest.err; then
21679 ac_cpp_err=$ac_c_preproc_warn_flag
21680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21687 if test -z "$ac_cpp_err"; then
21688 ac_header_preproc=yes
21690 echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.$ac_ext >&5
21693 ac_header_preproc=no
21695 rm -f conftest.err conftest.$ac_ext
21696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21697 echo "${ECHO_T}$ac_header_preproc" >&6
21699 # So? What about this header?
21700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21706 ac_header_preproc=yes
21709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21716 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21723 ## ----------------------------------- ##
21724 ## Report this to llvmbugs@cs.uiuc.edu ##
21725 ## ----------------------------------- ##
21728 sed "s/^/$as_me: WARNING: /" >&2
21731 echo "$as_me:$LINENO: checking for $ac_header" >&5
21732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21734 echo $ECHO_N "(cached) $ECHO_C" >&6
21736 eval "$as_ac_Header=\$ac_header_preproc"
21738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21743 cat >>confdefs.h <<_ACEOF
21744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21755 for ac_header in malloc.h unistd.h windows.h zlib.h
21757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21759 echo "$as_me:$LINENO: checking for $ac_header" >&5
21760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21767 # Is the header compilable?
21768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21770 cat >conftest.$ac_ext <<_ACEOF
21773 cat confdefs.h >>conftest.$ac_ext
21774 cat >>conftest.$ac_ext <<_ACEOF
21775 /* end confdefs.h. */
21776 $ac_includes_default
21777 #include <$ac_header>
21779 rm -f conftest.$ac_objext
21780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21781 (eval $ac_compile) 2>conftest.er1
21783 grep -v '^ *+' conftest.er1 >conftest.err
21785 cat conftest.err >&5
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); } &&
21788 { ac_try='test -z "$ac_c_werror_flag"
21789 || test ! -s conftest.err'
21790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791 (eval $ac_try) 2>&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; } &&
21795 { ac_try='test -s conftest.$ac_objext'
21796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21797 (eval $ac_try) 2>&5
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); }; }; then
21801 ac_header_compiler=yes
21803 echo "$as_me: failed program was:" >&5
21804 sed 's/^/| /' conftest.$ac_ext >&5
21806 ac_header_compiler=no
21808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21809 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21810 echo "${ECHO_T}$ac_header_compiler" >&6
21812 # Is the header present?
21813 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21815 cat >conftest.$ac_ext <<_ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21821 #include <$ac_header>
21823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21826 grep -v '^ *+' conftest.er1 >conftest.err
21828 cat conftest.err >&5
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); } >/dev/null; then
21831 if test -s conftest.err; then
21832 ac_cpp_err=$ac_c_preproc_warn_flag
21833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21840 if test -z "$ac_cpp_err"; then
21841 ac_header_preproc=yes
21843 echo "$as_me: failed program was:" >&5
21844 sed 's/^/| /' conftest.$ac_ext >&5
21846 ac_header_preproc=no
21848 rm -f conftest.err conftest.$ac_ext
21849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21850 echo "${ECHO_T}$ac_header_preproc" >&6
21852 # So? What about this header?
21853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21859 ac_header_preproc=yes
21862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21869 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21876 ## ----------------------------------- ##
21877 ## Report this to llvmbugs@cs.uiuc.edu ##
21878 ## ----------------------------------- ##
21881 sed "s/^/$as_me: WARNING: /" >&2
21884 echo "$as_me:$LINENO: checking for $ac_header" >&5
21885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21887 echo $ECHO_N "(cached) $ECHO_C" >&6
21889 eval "$as_ac_Header=\$ac_header_preproc"
21891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21896 cat >>confdefs.h <<_ACEOF
21897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21904 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21905 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21906 if test "${ac_cv_header_time+set}" = set; then
21907 echo $ECHO_N "(cached) $ECHO_C" >&6
21909 cat >conftest.$ac_ext <<_ACEOF
21912 cat confdefs.h >>conftest.$ac_ext
21913 cat >>conftest.$ac_ext <<_ACEOF
21914 /* end confdefs.h. */
21915 #include <sys/types.h>
21916 #include <sys/time.h>
21922 if ((struct tm *) 0)
21928 rm -f conftest.$ac_objext
21929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21930 (eval $ac_compile) 2>conftest.er1
21932 grep -v '^ *+' conftest.er1 >conftest.err
21934 cat conftest.err >&5
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); } &&
21937 { ac_try='test -z "$ac_c_werror_flag"
21938 || test ! -s conftest.err'
21939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21940 (eval $ac_try) 2>&5
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); }; } &&
21944 { ac_try='test -s conftest.$ac_objext'
21945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21946 (eval $ac_try) 2>&5
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); }; }; then
21950 ac_cv_header_time=yes
21952 echo "$as_me: failed program was:" >&5
21953 sed 's/^/| /' conftest.$ac_ext >&5
21955 ac_cv_header_time=no
21957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21959 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21960 echo "${ECHO_T}$ac_cv_header_time" >&6
21961 if test $ac_cv_header_time = yes; then
21963 cat >>confdefs.h <<\_ACEOF
21964 #define TIME_WITH_SYS_TIME 1
21969 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21970 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21971 if test "${ac_cv_header_mmap_anon+set}" = set; then
21972 echo $ECHO_N "(cached) $ECHO_C" >&6
21975 ac_cpp='$CPP $CPPFLAGS'
21976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21980 cat >conftest.$ac_ext <<_ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21986 #include <sys/mman.h>
21987 #include <unistd.h>
21992 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21997 rm -f conftest.$ac_objext
21998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21999 (eval $ac_compile) 2>conftest.er1
22001 grep -v '^ *+' conftest.er1 >conftest.err
22003 cat conftest.err >&5
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); } &&
22006 { ac_try='test -z "$ac_c_werror_flag"
22007 || test ! -s conftest.err'
22008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009 (eval $ac_try) 2>&5
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); }; } &&
22013 { ac_try='test -s conftest.$ac_objext'
22014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22015 (eval $ac_try) 2>&5
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); }; }; then
22019 ac_cv_header_mmap_anon=yes
22021 echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22024 ac_cv_header_mmap_anon=no
22026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22028 ac_cpp='$CPP $CPPFLAGS'
22029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22035 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22036 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22037 if test "$ac_cv_header_mmap_anon" = yes; then
22039 cat >>confdefs.h <<\_ACEOF
22040 #define HAVE_MMAP_ANONYMOUS
22048 for ac_header in inttypes.h stdint.h
22050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22052 echo "$as_me:$LINENO: checking for $ac_header" >&5
22053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22055 echo $ECHO_N "(cached) $ECHO_C" >&6
22057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22060 # Is the header compilable?
22061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22063 cat >conftest.$ac_ext <<_ACEOF
22066 cat confdefs.h >>conftest.$ac_ext
22067 cat >>conftest.$ac_ext <<_ACEOF
22068 /* end confdefs.h. */
22069 $ac_includes_default
22070 #include <$ac_header>
22072 rm -f conftest.$ac_objext
22073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22074 (eval $ac_compile) 2>conftest.er1
22076 grep -v '^ *+' conftest.er1 >conftest.err
22078 cat conftest.err >&5
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); } &&
22081 { ac_try='test -z "$ac_c_werror_flag"
22082 || test ! -s conftest.err'
22083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22084 (eval $ac_try) 2>&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); }; } &&
22088 { ac_try='test -s conftest.$ac_objext'
22089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22090 (eval $ac_try) 2>&5
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); }; }; then
22094 ac_header_compiler=yes
22096 echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22099 ac_header_compiler=no
22101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22103 echo "${ECHO_T}$ac_header_compiler" >&6
22105 # Is the header present?
22106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22108 cat >conftest.$ac_ext <<_ACEOF
22111 cat confdefs.h >>conftest.$ac_ext
22112 cat >>conftest.$ac_ext <<_ACEOF
22113 /* end confdefs.h. */
22114 #include <$ac_header>
22116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22119 grep -v '^ *+' conftest.er1 >conftest.err
22121 cat conftest.err >&5
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); } >/dev/null; then
22124 if test -s conftest.err; then
22125 ac_cpp_err=$ac_c_preproc_warn_flag
22126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22133 if test -z "$ac_cpp_err"; then
22134 ac_header_preproc=yes
22136 echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22139 ac_header_preproc=no
22141 rm -f conftest.err conftest.$ac_ext
22142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22143 echo "${ECHO_T}$ac_header_preproc" >&6
22145 # So? What about this header?
22146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22152 ac_header_preproc=yes
22155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22169 ## ----------------------------------- ##
22170 ## Report this to llvmbugs@cs.uiuc.edu ##
22171 ## ----------------------------------- ##
22174 sed "s/^/$as_me: WARNING: /" >&2
22177 echo "$as_me:$LINENO: checking for $ac_header" >&5
22178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22180 echo $ECHO_N "(cached) $ECHO_C" >&6
22182 eval "$as_ac_Header=\$ac_header_preproc"
22184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22189 cat >>confdefs.h <<_ACEOF
22190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22199 echo "$as_me:$LINENO: checking for pid_t" >&5
22200 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22201 if test "${ac_cv_type_pid_t+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22204 cat >conftest.$ac_ext <<_ACEOF
22207 cat confdefs.h >>conftest.$ac_ext
22208 cat >>conftest.$ac_ext <<_ACEOF
22209 /* end confdefs.h. */
22210 $ac_includes_default
22216 if (sizeof (pid_t))
22222 rm -f conftest.$ac_objext
22223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22224 (eval $ac_compile) 2>conftest.er1
22226 grep -v '^ *+' conftest.er1 >conftest.err
22228 cat conftest.err >&5
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); } &&
22231 { ac_try='test -z "$ac_c_werror_flag"
22232 || test ! -s conftest.err'
22233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22234 (eval $ac_try) 2>&5
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); }; } &&
22238 { ac_try='test -s conftest.$ac_objext'
22239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22240 (eval $ac_try) 2>&5
22242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243 (exit $ac_status); }; }; then
22244 ac_cv_type_pid_t=yes
22246 echo "$as_me: failed program was:" >&5
22247 sed 's/^/| /' conftest.$ac_ext >&5
22249 ac_cv_type_pid_t=no
22251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22253 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22254 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22255 if test $ac_cv_type_pid_t = yes; then
22259 cat >>confdefs.h <<_ACEOF
22265 echo "$as_me:$LINENO: checking for size_t" >&5
22266 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22267 if test "${ac_cv_type_size_t+set}" = set; then
22268 echo $ECHO_N "(cached) $ECHO_C" >&6
22270 cat >conftest.$ac_ext <<_ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h. */
22276 $ac_includes_default
22282 if (sizeof (size_t))
22288 rm -f conftest.$ac_objext
22289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22290 (eval $ac_compile) 2>conftest.er1
22292 grep -v '^ *+' conftest.er1 >conftest.err
22294 cat conftest.err >&5
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } &&
22297 { ac_try='test -z "$ac_c_werror_flag"
22298 || test ! -s conftest.err'
22299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22300 (eval $ac_try) 2>&5
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); }; } &&
22304 { ac_try='test -s conftest.$ac_objext'
22305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306 (eval $ac_try) 2>&5
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); }; }; then
22310 ac_cv_type_size_t=yes
22312 echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22315 ac_cv_type_size_t=no
22317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22319 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22320 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22321 if test $ac_cv_type_size_t = yes; then
22325 cat >>confdefs.h <<_ACEOF
22326 #define size_t unsigned
22331 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22332 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22333 if test "${ac_cv_type_signal+set}" = set; then
22334 echo $ECHO_N "(cached) $ECHO_C" >&6
22336 cat >conftest.$ac_ext <<_ACEOF
22339 cat confdefs.h >>conftest.$ac_ext
22340 cat >>conftest.$ac_ext <<_ACEOF
22341 /* end confdefs.h. */
22342 #include <sys/types.h>
22343 #include <signal.h>
22348 extern "C" void (*signal (int, void (*)(int)))(int);
22350 void (*signal ()) ();
22361 rm -f conftest.$ac_objext
22362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22363 (eval $ac_compile) 2>conftest.er1
22365 grep -v '^ *+' conftest.er1 >conftest.err
22367 cat conftest.err >&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); } &&
22370 { ac_try='test -z "$ac_c_werror_flag"
22371 || test ! -s conftest.err'
22372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22373 (eval $ac_try) 2>&5
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); }; } &&
22377 { ac_try='test -s conftest.$ac_objext'
22378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379 (eval $ac_try) 2>&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; }; then
22383 ac_cv_type_signal=void
22385 echo "$as_me: failed program was:" >&5
22386 sed 's/^/| /' conftest.$ac_ext >&5
22388 ac_cv_type_signal=int
22390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22392 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22393 echo "${ECHO_T}$ac_cv_type_signal" >&6
22395 cat >>confdefs.h <<_ACEOF
22396 #define RETSIGTYPE $ac_cv_type_signal
22400 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22401 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22402 if test "${ac_cv_struct_tm+set}" = set; then
22403 echo $ECHO_N "(cached) $ECHO_C" >&6
22405 cat >conftest.$ac_ext <<_ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22411 #include <sys/types.h>
22417 struct tm *tp; tp->tm_sec;
22422 rm -f conftest.$ac_objext
22423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22424 (eval $ac_compile) 2>conftest.er1
22426 grep -v '^ *+' conftest.er1 >conftest.err
22428 cat conftest.err >&5
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); } &&
22431 { ac_try='test -z "$ac_c_werror_flag"
22432 || test ! -s conftest.err'
22433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22434 (eval $ac_try) 2>&5
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); }; } &&
22438 { ac_try='test -s conftest.$ac_objext'
22439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22440 (eval $ac_try) 2>&5
22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); }; }; then
22444 ac_cv_struct_tm=time.h
22446 echo "$as_me: failed program was:" >&5
22447 sed 's/^/| /' conftest.$ac_ext >&5
22449 ac_cv_struct_tm=sys/time.h
22451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22453 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22454 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22455 if test $ac_cv_struct_tm = sys/time.h; then
22457 cat >>confdefs.h <<\_ACEOF
22458 #define TM_IN_SYS_TIME 1
22463 echo "$as_me:$LINENO: checking for int64_t" >&5
22464 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
22465 if test "${ac_cv_type_int64_t+set}" = set; then
22466 echo $ECHO_N "(cached) $ECHO_C" >&6
22468 cat >conftest.$ac_ext <<_ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 $ac_includes_default
22480 if (sizeof (int64_t))
22486 rm -f conftest.$ac_objext
22487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22488 (eval $ac_compile) 2>conftest.er1
22490 grep -v '^ *+' conftest.er1 >conftest.err
22492 cat conftest.err >&5
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } &&
22495 { ac_try='test -z "$ac_c_werror_flag"
22496 || test ! -s conftest.err'
22497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22498 (eval $ac_try) 2>&5
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); }; } &&
22502 { ac_try='test -s conftest.$ac_objext'
22503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22504 (eval $ac_try) 2>&5
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); }; }; then
22508 ac_cv_type_int64_t=yes
22510 echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22513 ac_cv_type_int64_t=no
22515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22517 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
22518 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
22519 if test $ac_cv_type_int64_t = yes; then
22521 cat >>confdefs.h <<_ACEOF
22522 #define HAVE_INT64_T 1
22527 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
22528 echo "$as_me: error: Type int64_t required but not found" >&2;}
22529 { (exit 1); exit 1; }; }
22532 echo "$as_me:$LINENO: checking for uint64_t" >&5
22533 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
22534 if test "${ac_cv_type_uint64_t+set}" = set; then
22535 echo $ECHO_N "(cached) $ECHO_C" >&6
22537 cat >conftest.$ac_ext <<_ACEOF
22540 cat confdefs.h >>conftest.$ac_ext
22541 cat >>conftest.$ac_ext <<_ACEOF
22542 /* end confdefs.h. */
22543 $ac_includes_default
22547 if ((uint64_t *) 0)
22549 if (sizeof (uint64_t))
22555 rm -f conftest.$ac_objext
22556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22557 (eval $ac_compile) 2>conftest.er1
22559 grep -v '^ *+' conftest.er1 >conftest.err
22561 cat conftest.err >&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } &&
22564 { ac_try='test -z "$ac_c_werror_flag"
22565 || test ! -s conftest.err'
22566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22567 (eval $ac_try) 2>&5
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); }; } &&
22571 { ac_try='test -s conftest.$ac_objext'
22572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22573 (eval $ac_try) 2>&5
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); }; }; then
22577 ac_cv_type_uint64_t=yes
22579 echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22582 ac_cv_type_uint64_t=no
22584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22586 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
22587 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
22588 if test $ac_cv_type_uint64_t = yes; then
22590 cat >>confdefs.h <<_ACEOF
22591 #define HAVE_UINT64_T 1
22596 echo "$as_me:$LINENO: checking for u_int64_t" >&5
22597 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
22598 if test "${ac_cv_type_u_int64_t+set}" = set; then
22599 echo $ECHO_N "(cached) $ECHO_C" >&6
22601 cat >conftest.$ac_ext <<_ACEOF
22604 cat confdefs.h >>conftest.$ac_ext
22605 cat >>conftest.$ac_ext <<_ACEOF
22606 /* end confdefs.h. */
22607 $ac_includes_default
22611 if ((u_int64_t *) 0)
22613 if (sizeof (u_int64_t))
22619 rm -f conftest.$ac_objext
22620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22621 (eval $ac_compile) 2>conftest.er1
22623 grep -v '^ *+' conftest.er1 >conftest.err
22625 cat conftest.err >&5
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } &&
22628 { ac_try='test -z "$ac_c_werror_flag"
22629 || test ! -s conftest.err'
22630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22631 (eval $ac_try) 2>&5
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); }; } &&
22635 { ac_try='test -s conftest.$ac_objext'
22636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22637 (eval $ac_try) 2>&5
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); }; }; then
22641 ac_cv_type_u_int64_t=yes
22643 echo "$as_me: failed program was:" >&5
22644 sed 's/^/| /' conftest.$ac_ext >&5
22646 ac_cv_type_u_int64_t=no
22648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22650 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
22651 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
22652 if test $ac_cv_type_u_int64_t = yes; then
22654 cat >>confdefs.h <<_ACEOF
22655 #define HAVE_U_INT64_T 1
22660 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
22661 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
22662 { (exit 1); exit 1; }; }
22675 for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp
22677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22678 echo "$as_me:$LINENO: checking for $ac_func" >&5
22679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22680 if eval "test \"\${$as_ac_var+set}\" = set"; then
22681 echo $ECHO_N "(cached) $ECHO_C" >&6
22683 cat >conftest.$ac_ext <<_ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h. */
22689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22691 #define $ac_func innocuous_$ac_func
22693 /* System header to define __stub macros and hopefully few prototypes,
22694 which can conflict with char $ac_func (); below.
22695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22696 <limits.h> exists even on freestanding compilers. */
22699 # include <limits.h>
22701 # include <assert.h>
22706 /* Override any gcc2 internal prototype to avoid an error. */
22711 /* We use char because int might match the return type of a gcc2
22712 builtin and then its argument prototype would still apply. */
22714 /* The GNU C library defines this for functions which it implements
22715 to always fail with ENOSYS. Some functions are actually named
22716 something starting with __ and the normal name is an alias. */
22717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22720 char (*f) () = $ac_func;
22729 return f != $ac_func;
22734 rm -f conftest.$ac_objext conftest$ac_exeext
22735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22736 (eval $ac_link) 2>conftest.er1
22738 grep -v '^ *+' conftest.er1 >conftest.err
22740 cat conftest.err >&5
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); } &&
22743 { ac_try='test -z "$ac_c_werror_flag"
22744 || test ! -s conftest.err'
22745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22746 (eval $ac_try) 2>&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); }; } &&
22750 { ac_try='test -s conftest$ac_exeext'
22751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752 (eval $ac_try) 2>&5
22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); }; }; then
22756 eval "$as_ac_var=yes"
22758 echo "$as_me: failed program was:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22761 eval "$as_ac_var=no"
22763 rm -f conftest.err conftest.$ac_objext \
22764 conftest$ac_exeext conftest.$ac_ext
22766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22768 if test `eval echo '${'$as_ac_var'}'` = yes; then
22769 cat >>confdefs.h <<_ACEOF
22770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22779 for ac_func in strdup strtoq strtoll
22781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22782 echo "$as_me:$LINENO: checking for $ac_func" >&5
22783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22784 if eval "test \"\${$as_ac_var+set}\" = set"; then
22785 echo $ECHO_N "(cached) $ECHO_C" >&6
22787 cat >conftest.$ac_ext <<_ACEOF
22790 cat confdefs.h >>conftest.$ac_ext
22791 cat >>conftest.$ac_ext <<_ACEOF
22792 /* end confdefs.h. */
22793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22795 #define $ac_func innocuous_$ac_func
22797 /* System header to define __stub macros and hopefully few prototypes,
22798 which can conflict with char $ac_func (); below.
22799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22800 <limits.h> exists even on freestanding compilers. */
22803 # include <limits.h>
22805 # include <assert.h>
22810 /* Override any gcc2 internal prototype to avoid an error. */
22815 /* We use char because int might match the return type of a gcc2
22816 builtin and then its argument prototype would still apply. */
22818 /* The GNU C library defines this for functions which it implements
22819 to always fail with ENOSYS. Some functions are actually named
22820 something starting with __ and the normal name is an alias. */
22821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22824 char (*f) () = $ac_func;
22833 return f != $ac_func;
22838 rm -f conftest.$ac_objext conftest$ac_exeext
22839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22840 (eval $ac_link) 2>conftest.er1
22842 grep -v '^ *+' conftest.er1 >conftest.err
22844 cat conftest.err >&5
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } &&
22847 { ac_try='test -z "$ac_c_werror_flag"
22848 || test ! -s conftest.err'
22849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22850 (eval $ac_try) 2>&5
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); }; } &&
22854 { ac_try='test -s conftest$ac_exeext'
22855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22856 (eval $ac_try) 2>&5
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); }; }; then
22860 eval "$as_ac_var=yes"
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22865 eval "$as_ac_var=no"
22867 rm -f conftest.err conftest.$ac_objext \
22868 conftest$ac_exeext conftest.$ac_ext
22870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22872 if test `eval echo '${'$as_ac_var'}'` = yes; then
22873 cat >>confdefs.h <<_ACEOF
22874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22880 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
22881 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
22882 if test "${llvm_cv_c_printf_a+set}" = set; then
22883 echo $ECHO_N "(cached) $ECHO_C" >&6
22886 ac_cpp='$CPP $CPPFLAGS'
22887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22891 if test "$cross_compiling" = yes; then
22892 llvmac_cv_c_printf_a=no
22894 cat >conftest.$ac_ext <<_ACEOF
22898 cat confdefs.h >>conftest.$ac_ext
22899 cat >>conftest.$ac_ext <<_ACEOF
22900 /* end confdefs.h. */
22903 #include <stdlib.h>
22909 volatile double A, B;
22913 sprintf(Buffer, "%a", A);
22917 if (A != 0x1.999999999999ap-4)
22924 rm -f conftest$ac_exeext
22925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22926 (eval $ac_link) 2>&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931 (eval $ac_try) 2>&5
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); }; }; then
22935 llvm_cv_c_printf_a=yes
22937 echo "$as_me: program exited with status $ac_status" >&5
22938 echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22941 ( exit $ac_status )
22942 llvmac_cv_c_printf_a=no
22944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22947 ac_cpp='$CPP $CPPFLAGS'
22948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22953 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
22954 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
22955 if test "$llvm_cv_c_printf_a" = "yes"; then
22957 cat >>confdefs.h <<\_ACEOF
22958 #define HAVE_PRINTF_A 1
22963 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22964 # for constant arguments. Useless!
22965 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22966 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22967 if test "${ac_cv_working_alloca_h+set}" = set; then
22968 echo $ECHO_N "(cached) $ECHO_C" >&6
22970 cat >conftest.$ac_ext <<_ACEOF
22973 cat confdefs.h >>conftest.$ac_ext
22974 cat >>conftest.$ac_ext <<_ACEOF
22975 /* end confdefs.h. */
22976 #include <alloca.h>
22980 char *p = (char *) alloca (2 * sizeof (int));
22985 rm -f conftest.$ac_objext conftest$ac_exeext
22986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22987 (eval $ac_link) 2>conftest.er1
22989 grep -v '^ *+' conftest.er1 >conftest.err
22991 cat conftest.err >&5
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } &&
22994 { ac_try='test -z "$ac_c_werror_flag"
22995 || test ! -s conftest.err'
22996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22997 (eval $ac_try) 2>&5
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); }; } &&
23001 { ac_try='test -s conftest$ac_exeext'
23002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23003 (eval $ac_try) 2>&5
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); }; }; then
23007 ac_cv_working_alloca_h=yes
23009 echo "$as_me: failed program was:" >&5
23010 sed 's/^/| /' conftest.$ac_ext >&5
23012 ac_cv_working_alloca_h=no
23014 rm -f conftest.err conftest.$ac_objext \
23015 conftest$ac_exeext conftest.$ac_ext
23017 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23018 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23019 if test $ac_cv_working_alloca_h = yes; then
23021 cat >>confdefs.h <<\_ACEOF
23022 #define HAVE_ALLOCA_H 1
23027 echo "$as_me:$LINENO: checking for alloca" >&5
23028 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23029 if test "${ac_cv_func_alloca_works+set}" = set; then
23030 echo $ECHO_N "(cached) $ECHO_C" >&6
23032 cat >conftest.$ac_ext <<_ACEOF
23035 cat confdefs.h >>conftest.$ac_ext
23036 cat >>conftest.$ac_ext <<_ACEOF
23037 /* end confdefs.h. */
23039 # define alloca __builtin_alloca
23042 # include <malloc.h>
23043 # define alloca _alloca
23046 # include <alloca.h>
23051 # ifndef alloca /* predefined by HP cc +Olibcalls */
23062 char *p = (char *) alloca (1);
23067 rm -f conftest.$ac_objext conftest$ac_exeext
23068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23069 (eval $ac_link) 2>conftest.er1
23071 grep -v '^ *+' conftest.er1 >conftest.err
23073 cat conftest.err >&5
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); } &&
23076 { ac_try='test -z "$ac_c_werror_flag"
23077 || test ! -s conftest.err'
23078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23079 (eval $ac_try) 2>&5
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); }; } &&
23083 { ac_try='test -s conftest$ac_exeext'
23084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23085 (eval $ac_try) 2>&5
23087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); }; }; then
23089 ac_cv_func_alloca_works=yes
23091 echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23094 ac_cv_func_alloca_works=no
23096 rm -f conftest.err conftest.$ac_objext \
23097 conftest$ac_exeext conftest.$ac_ext
23099 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23100 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23102 if test $ac_cv_func_alloca_works = yes; then
23104 cat >>confdefs.h <<\_ACEOF
23105 #define HAVE_ALLOCA 1
23109 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23110 # that cause trouble. Some versions do not even contain alloca or
23111 # contain a buggy version. If you still want to use their alloca,
23112 # use ar to extract alloca.o from them instead of compiling alloca.c.
23114 ALLOCA=alloca.$ac_objext
23116 cat >>confdefs.h <<\_ACEOF
23121 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23122 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23123 if test "${ac_cv_os_cray+set}" = set; then
23124 echo $ECHO_N "(cached) $ECHO_C" >&6
23126 cat >conftest.$ac_ext <<_ACEOF
23129 cat confdefs.h >>conftest.$ac_ext
23130 cat >>conftest.$ac_ext <<_ACEOF
23131 /* end confdefs.h. */
23132 #if defined(CRAY) && ! defined(CRAY2)
23139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23140 $EGREP "webecray" >/dev/null 2>&1; then
23148 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23149 echo "${ECHO_T}$ac_cv_os_cray" >&6
23150 if test $ac_cv_os_cray = yes; then
23151 for ac_func in _getb67 GETB67 getb67; do
23152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23153 echo "$as_me:$LINENO: checking for $ac_func" >&5
23154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23155 if eval "test \"\${$as_ac_var+set}\" = set"; then
23156 echo $ECHO_N "(cached) $ECHO_C" >&6
23158 cat >conftest.$ac_ext <<_ACEOF
23161 cat confdefs.h >>conftest.$ac_ext
23162 cat >>conftest.$ac_ext <<_ACEOF
23163 /* end confdefs.h. */
23164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23166 #define $ac_func innocuous_$ac_func
23168 /* System header to define __stub macros and hopefully few prototypes,
23169 which can conflict with char $ac_func (); below.
23170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23171 <limits.h> exists even on freestanding compilers. */
23174 # include <limits.h>
23176 # include <assert.h>
23181 /* Override any gcc2 internal prototype to avoid an error. */
23186 /* We use char because int might match the return type of a gcc2
23187 builtin and then its argument prototype would still apply. */
23189 /* The GNU C library defines this for functions which it implements
23190 to always fail with ENOSYS. Some functions are actually named
23191 something starting with __ and the normal name is an alias. */
23192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23195 char (*f) () = $ac_func;
23204 return f != $ac_func;
23209 rm -f conftest.$ac_objext conftest$ac_exeext
23210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23211 (eval $ac_link) 2>conftest.er1
23213 grep -v '^ *+' conftest.er1 >conftest.err
23215 cat conftest.err >&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); } &&
23218 { ac_try='test -z "$ac_c_werror_flag"
23219 || test ! -s conftest.err'
23220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23221 (eval $ac_try) 2>&5
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); }; } &&
23225 { ac_try='test -s conftest$ac_exeext'
23226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227 (eval $ac_try) 2>&5
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; }; then
23231 eval "$as_ac_var=yes"
23233 echo "$as_me: failed program was:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23236 eval "$as_ac_var=no"
23238 rm -f conftest.err conftest.$ac_objext \
23239 conftest$ac_exeext conftest.$ac_ext
23241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23243 if test `eval echo '${'$as_ac_var'}'` = yes; then
23245 cat >>confdefs.h <<_ACEOF
23246 #define CRAY_STACKSEG_END $ac_func
23255 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23256 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23257 if test "${ac_cv_c_stack_direction+set}" = set; then
23258 echo $ECHO_N "(cached) $ECHO_C" >&6
23260 if test "$cross_compiling" = yes; then
23261 ac_cv_c_stack_direction=0
23263 cat >conftest.$ac_ext <<_ACEOF
23266 cat confdefs.h >>conftest.$ac_ext
23267 cat >>conftest.$ac_ext <<_ACEOF
23268 /* end confdefs.h. */
23270 find_stack_direction ()
23272 static char *addr = 0;
23277 return find_stack_direction ();
23280 return (&dummy > addr) ? 1 : -1;
23286 exit (find_stack_direction () < 0);
23289 rm -f conftest$ac_exeext
23290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23291 (eval $ac_link) 2>&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296 (eval $ac_try) 2>&5
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); }; }; then
23300 ac_cv_c_stack_direction=1
23302 echo "$as_me: program exited with status $ac_status" >&5
23303 echo "$as_me: failed program was:" >&5
23304 sed 's/^/| /' conftest.$ac_ext >&5
23306 ( exit $ac_status )
23307 ac_cv_c_stack_direction=-1
23309 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23312 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23313 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23315 cat >>confdefs.h <<_ACEOF
23316 #define STACK_DIRECTION $ac_cv_c_stack_direction
23323 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
23324 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
23325 if test "${ac_cv_func_rand48+set}" = set; then
23326 echo $ECHO_N "(cached) $ECHO_C" >&6
23329 ac_cpp='$CXXCPP $CPPFLAGS'
23330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23334 cat >conftest.$ac_ext <<_ACEOF
23337 cat confdefs.h >>conftest.$ac_ext
23338 cat >>conftest.$ac_ext <<_ACEOF
23339 /* end confdefs.h. */
23340 #include <stdlib.h>
23344 srand48(0);lrand48();drand48();
23349 rm -f conftest.$ac_objext
23350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23351 (eval $ac_compile) 2>conftest.er1
23353 grep -v '^ *+' conftest.er1 >conftest.err
23355 cat conftest.err >&5
23356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); } &&
23358 { ac_try='test -z "$ac_cxx_werror_flag"
23359 || test ! -s conftest.err'
23360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23361 (eval $ac_try) 2>&5
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); }; } &&
23365 { ac_try='test -s conftest.$ac_objext'
23366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23367 (eval $ac_try) 2>&5
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); }; }; then
23371 ac_cv_func_rand48=yes
23373 echo "$as_me: failed program was:" >&5
23374 sed 's/^/| /' conftest.$ac_ext >&5
23376 ac_cv_func_rand48=no
23378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23380 ac_cpp='$CPP $CPPFLAGS'
23381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23386 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
23387 echo "${ECHO_T}$ac_cv_func_rand48" >&6
23389 if test "$ac_cv_func_rand48" = "yes" ; then
23391 cat >>confdefs.h <<\_ACEOF
23392 #define HAVE_RAND48 1
23398 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
23399 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
23400 if test "${ac_cv_cxx_namespaces+set}" = set; then
23401 echo $ECHO_N "(cached) $ECHO_C" >&6
23404 ac_cpp='$CXXCPP $CPPFLAGS'
23405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23409 cat >conftest.$ac_ext <<_ACEOF
23412 cat confdefs.h >>conftest.$ac_ext
23413 cat >>conftest.$ac_ext <<_ACEOF
23414 /* end confdefs.h. */
23415 namespace Outer { namespace Inner { int i = 0; }}
23419 using namespace Outer::Inner; return i;
23424 rm -f conftest.$ac_objext
23425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23426 (eval $ac_compile) 2>conftest.er1
23428 grep -v '^ *+' conftest.er1 >conftest.err
23430 cat conftest.err >&5
23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); } &&
23433 { ac_try='test -z "$ac_cxx_werror_flag"
23434 || test ! -s conftest.err'
23435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23436 (eval $ac_try) 2>&5
23438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); }; } &&
23440 { ac_try='test -s conftest.$ac_objext'
23441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23442 (eval $ac_try) 2>&5
23444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445 (exit $ac_status); }; }; then
23446 ac_cv_cxx_namespaces=yes
23448 echo "$as_me: failed program was:" >&5
23449 sed 's/^/| /' conftest.$ac_ext >&5
23451 ac_cv_cxx_namespaces=no
23453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23455 ac_cpp='$CPP $CPPFLAGS'
23456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23462 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
23463 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
23464 if test "$ac_cv_cxx_namespaces" = yes; then
23466 cat >>confdefs.h <<\_ACEOF
23467 #define HAVE_NAMESPACES
23472 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
23473 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
23474 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
23475 echo $ECHO_N "(cached) $ECHO_C" >&6
23479 ac_cpp='$CXXCPP $CPPFLAGS'
23480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23484 cat >conftest.$ac_ext <<_ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h. */
23490 #include <ext/hash_map>
23491 #ifdef HAVE_NAMESPACES
23492 using namespace std;
23497 hash_map<int, int> t;
23502 rm -f conftest.$ac_objext
23503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23504 (eval $ac_compile) 2>conftest.er1
23506 grep -v '^ *+' conftest.er1 >conftest.err
23508 cat conftest.err >&5
23509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510 (exit $ac_status); } &&
23511 { ac_try='test -z "$ac_cxx_werror_flag"
23512 || test ! -s conftest.err'
23513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23514 (eval $ac_try) 2>&5
23516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517 (exit $ac_status); }; } &&
23518 { ac_try='test -s conftest.$ac_objext'
23519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23520 (eval $ac_try) 2>&5
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); }; }; then
23524 ac_cv_cxx_have_std_ext_hash_map=yes
23526 echo "$as_me: failed program was:" >&5
23527 sed 's/^/| /' conftest.$ac_ext >&5
23529 ac_cv_cxx_have_std_ext_hash_map=no
23531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23533 ac_cpp='$CPP $CPPFLAGS'
23534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23539 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
23540 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
23541 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
23544 cat >>confdefs.h <<\_ACEOF
23545 #define HAVE_STD_EXT_HASH_MAP 1
23550 cat >>confdefs.h <<\_ACEOF
23551 #define HAVE_STD_EXT_HASH_MAP 0
23556 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
23557 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
23558 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
23559 echo $ECHO_N "(cached) $ECHO_C" >&6
23563 ac_cpp='$CXXCPP $CPPFLAGS'
23564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23568 cat >conftest.$ac_ext <<_ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h. */
23574 #include <ext/hash_map>
23575 #ifdef HAVE_NAMESPACES
23576 using namespace __gnu_cxx;
23581 hash_map<int,int> t;
23586 rm -f conftest.$ac_objext
23587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23588 (eval $ac_compile) 2>conftest.er1
23590 grep -v '^ *+' conftest.er1 >conftest.err
23592 cat conftest.err >&5
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); } &&
23595 { ac_try='test -z "$ac_cxx_werror_flag"
23596 || test ! -s conftest.err'
23597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23598 (eval $ac_try) 2>&5
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); }; } &&
23602 { ac_try='test -s conftest.$ac_objext'
23603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23604 (eval $ac_try) 2>&5
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); }; }; then
23608 ac_cv_cxx_have_gnu_ext_hash_map=yes
23610 echo "$as_me: failed program was:" >&5
23611 sed 's/^/| /' conftest.$ac_ext >&5
23613 ac_cv_cxx_have_gnu_ext_hash_map=no
23615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23617 ac_cpp='$CPP $CPPFLAGS'
23618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23623 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
23624 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
23625 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
23628 cat >>confdefs.h <<\_ACEOF
23629 #define HAVE_GNU_EXT_HASH_MAP 1
23634 cat >>confdefs.h <<\_ACEOF
23635 #define HAVE_GNU_EXT_HASH_MAP 0
23640 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
23641 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
23642 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
23643 echo $ECHO_N "(cached) $ECHO_C" >&6
23647 ac_cpp='$CXXCPP $CPPFLAGS'
23648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23652 cat >conftest.$ac_ext <<_ACEOF
23655 cat confdefs.h >>conftest.$ac_ext
23656 cat >>conftest.$ac_ext <<_ACEOF
23657 /* end confdefs.h. */
23658 #include <hash_map>
23662 hash_map<int,int> t;
23667 rm -f conftest.$ac_objext
23668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23669 (eval $ac_compile) 2>conftest.er1
23671 grep -v '^ *+' conftest.er1 >conftest.err
23673 cat conftest.err >&5
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); } &&
23676 { ac_try='test -z "$ac_cxx_werror_flag"
23677 || test ! -s conftest.err'
23678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679 (eval $ac_try) 2>&5
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); }; } &&
23683 { ac_try='test -s conftest.$ac_objext'
23684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685 (eval $ac_try) 2>&5
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); }; }; then
23689 ac_cv_cxx_have_global_hash_map=yes
23691 echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23694 ac_cv_cxx_have_global_hash_map=no
23696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23698 ac_cpp='$CPP $CPPFLAGS'
23699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23704 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
23705 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
23706 if test "$ac_cv_cxx_have_global_hash_map" = yes
23709 cat >>confdefs.h <<\_ACEOF
23710 #define HAVE_GLOBAL_HASH_MAP 1
23715 cat >>confdefs.h <<\_ACEOF
23716 #define HAVE_GLOBAL_HASH_MAP 0
23721 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
23722 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
23723 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
23724 echo $ECHO_N "(cached) $ECHO_C" >&6
23728 ac_cpp='$CXXCPP $CPPFLAGS'
23729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23733 cat >conftest.$ac_ext <<_ACEOF
23736 cat confdefs.h >>conftest.$ac_ext
23737 cat >>conftest.$ac_ext <<_ACEOF
23738 /* end confdefs.h. */
23739 #include <ext/hash_set>
23740 #ifdef HAVE_NAMESPACES
23741 using namespace std;
23751 rm -f conftest.$ac_objext
23752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23753 (eval $ac_compile) 2>conftest.er1
23755 grep -v '^ *+' conftest.er1 >conftest.err
23757 cat conftest.err >&5
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); } &&
23760 { ac_try='test -z "$ac_cxx_werror_flag"
23761 || test ! -s conftest.err'
23762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23763 (eval $ac_try) 2>&5
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); }; } &&
23767 { ac_try='test -s conftest.$ac_objext'
23768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23769 (eval $ac_try) 2>&5
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); }; }; then
23773 ac_cv_cxx_have_std_ext_hash_set=yes
23775 echo "$as_me: failed program was:" >&5
23776 sed 's/^/| /' conftest.$ac_ext >&5
23778 ac_cv_cxx_have_std_ext_hash_set=no
23780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23782 ac_cpp='$CPP $CPPFLAGS'
23783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23788 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
23789 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
23790 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
23793 cat >>confdefs.h <<\_ACEOF
23794 #define HAVE_STD_EXT_HASH_SET 1
23799 cat >>confdefs.h <<\_ACEOF
23800 #define HAVE_STD_EXT_HASH_SET 0
23805 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
23806 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
23807 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
23808 echo $ECHO_N "(cached) $ECHO_C" >&6
23812 ac_cpp='$CXXCPP $CPPFLAGS'
23813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23817 cat >conftest.$ac_ext <<_ACEOF
23820 cat confdefs.h >>conftest.$ac_ext
23821 cat >>conftest.$ac_ext <<_ACEOF
23822 /* end confdefs.h. */
23823 #include <ext/hash_set>
23824 #ifdef HAVE_NAMESPACES
23825 using namespace __gnu_cxx;
23835 rm -f conftest.$ac_objext
23836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23837 (eval $ac_compile) 2>conftest.er1
23839 grep -v '^ *+' conftest.er1 >conftest.err
23841 cat conftest.err >&5
23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); } &&
23844 { ac_try='test -z "$ac_cxx_werror_flag"
23845 || test ! -s conftest.err'
23846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23847 (eval $ac_try) 2>&5
23849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); }; } &&
23851 { ac_try='test -s conftest.$ac_objext'
23852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23853 (eval $ac_try) 2>&5
23855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23856 (exit $ac_status); }; }; then
23857 ac_cv_cxx_have_gnu_ext_hash_set=yes
23859 echo "$as_me: failed program was:" >&5
23860 sed 's/^/| /' conftest.$ac_ext >&5
23862 ac_cv_cxx_have_gnu_ext_hash_set=no
23864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23866 ac_cpp='$CPP $CPPFLAGS'
23867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23872 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
23873 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
23874 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
23877 cat >>confdefs.h <<\_ACEOF
23878 #define HAVE_GNU_EXT_HASH_SET 1
23883 cat >>confdefs.h <<\_ACEOF
23884 #define HAVE_GNU_EXT_HASH_SET 0
23889 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
23890 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
23891 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
23892 echo $ECHO_N "(cached) $ECHO_C" >&6
23896 ac_cpp='$CXXCPP $CPPFLAGS'
23897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23901 cat >conftest.$ac_ext <<_ACEOF
23904 cat confdefs.h >>conftest.$ac_ext
23905 cat >>conftest.$ac_ext <<_ACEOF
23906 /* end confdefs.h. */
23907 #include <hash_set>
23911 hash_set<int> t; return 0;
23916 rm -f conftest.$ac_objext
23917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23918 (eval $ac_compile) 2>conftest.er1
23920 grep -v '^ *+' conftest.er1 >conftest.err
23922 cat conftest.err >&5
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); } &&
23925 { ac_try='test -z "$ac_cxx_werror_flag"
23926 || test ! -s conftest.err'
23927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23928 (eval $ac_try) 2>&5
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); }; } &&
23932 { ac_try='test -s conftest.$ac_objext'
23933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23934 (eval $ac_try) 2>&5
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); }; }; then
23938 ac_cv_cxx_have_global_hash_set=yes
23940 echo "$as_me: failed program was:" >&5
23941 sed 's/^/| /' conftest.$ac_ext >&5
23943 ac_cv_cxx_have_global_hash_set=no
23945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23947 ac_cpp='$CPP $CPPFLAGS'
23948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23953 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
23954 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
23955 if test "$ac_cv_cxx_have_global_hash_set" = yes
23958 cat >>confdefs.h <<\_ACEOF
23959 #define HAVE_GLOBAL_HASH_SET 1
23964 cat >>confdefs.h <<\_ACEOF
23965 #define HAVE_GLOBAL_HASH_SET 0
23970 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
23971 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
23972 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
23973 echo $ECHO_N "(cached) $ECHO_C" >&6
23977 ac_cpp='$CXXCPP $CPPFLAGS'
23978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23982 cat >conftest.$ac_ext <<_ACEOF
23985 cat confdefs.h >>conftest.$ac_ext
23986 cat >>conftest.$ac_ext <<_ACEOF
23987 /* end confdefs.h. */
23988 #include <iterator>
23989 #ifdef HAVE_NAMESPACES
23990 using namespace std;
23995 iterator<int,int,int> t; return 0;
24000 rm -f conftest.$ac_objext
24001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24002 (eval $ac_compile) 2>conftest.er1
24004 grep -v '^ *+' conftest.er1 >conftest.err
24006 cat conftest.err >&5
24007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24008 (exit $ac_status); } &&
24009 { ac_try='test -z "$ac_cxx_werror_flag"
24010 || test ! -s conftest.err'
24011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24012 (eval $ac_try) 2>&5
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); }; } &&
24016 { ac_try='test -s conftest.$ac_objext'
24017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24018 (eval $ac_try) 2>&5
24020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021 (exit $ac_status); }; }; then
24022 ac_cv_cxx_have_std_iterator=yes
24024 echo "$as_me: failed program was:" >&5
24025 sed 's/^/| /' conftest.$ac_ext >&5
24027 ac_cv_cxx_have_std_iterator=no
24029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24031 ac_cpp='$CPP $CPPFLAGS'
24032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24038 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
24039 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
24040 if test "$ac_cv_cxx_have_std_iterator" = yes
24043 cat >>confdefs.h <<\_ACEOF
24044 #define HAVE_STD_ITERATOR 1
24049 cat >>confdefs.h <<\_ACEOF
24050 #define HAVE_STD_ITERATOR 0
24055 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
24056 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
24057 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
24058 echo $ECHO_N "(cached) $ECHO_C" >&6
24062 ac_cpp='$CXXCPP $CPPFLAGS'
24063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24067 cat >conftest.$ac_ext <<_ACEOF
24070 cat confdefs.h >>conftest.$ac_ext
24071 cat >>conftest.$ac_ext <<_ACEOF
24072 /* end confdefs.h. */
24073 #include <iterator>
24074 #ifdef HAVE_NAMESPACES
24075 using namespace std;
24080 bidirectional_iterator<int,int> t; return 0;
24085 rm -f conftest.$ac_objext
24086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24087 (eval $ac_compile) 2>conftest.er1
24089 grep -v '^ *+' conftest.er1 >conftest.err
24091 cat conftest.err >&5
24092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093 (exit $ac_status); } &&
24094 { ac_try='test -z "$ac_cxx_werror_flag"
24095 || test ! -s conftest.err'
24096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24097 (eval $ac_try) 2>&5
24099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100 (exit $ac_status); }; } &&
24101 { ac_try='test -s conftest.$ac_objext'
24102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24103 (eval $ac_try) 2>&5
24105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106 (exit $ac_status); }; }; then
24107 ac_cv_cxx_have_bi_iterator=yes
24109 echo "$as_me: failed program was:" >&5
24110 sed 's/^/| /' conftest.$ac_ext >&5
24112 ac_cv_cxx_have_bi_iterator=no
24114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24116 ac_cpp='$CPP $CPPFLAGS'
24117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24123 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
24124 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
24125 if test "$ac_cv_cxx_have_bi_iterator" = yes
24128 cat >>confdefs.h <<\_ACEOF
24129 #define HAVE_BI_ITERATOR 1
24134 cat >>confdefs.h <<\_ACEOF
24135 #define HAVE_BI_ITERATOR 0
24140 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
24141 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
24142 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
24143 echo $ECHO_N "(cached) $ECHO_C" >&6
24147 ac_cpp='$CXXCPP $CPPFLAGS'
24148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24152 cat >conftest.$ac_ext <<_ACEOF
24155 cat confdefs.h >>conftest.$ac_ext
24156 cat >>conftest.$ac_ext <<_ACEOF
24157 /* end confdefs.h. */
24158 #include <iterator>
24159 #ifdef HAVE_NAMESPACES
24160 using namespace std;
24165 forward_iterator<int,int> t; return 0;
24170 rm -f conftest.$ac_objext
24171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24172 (eval $ac_compile) 2>conftest.er1
24174 grep -v '^ *+' conftest.er1 >conftest.err
24176 cat conftest.err >&5
24177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178 (exit $ac_status); } &&
24179 { ac_try='test -z "$ac_cxx_werror_flag"
24180 || test ! -s conftest.err'
24181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24182 (eval $ac_try) 2>&5
24184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185 (exit $ac_status); }; } &&
24186 { ac_try='test -s conftest.$ac_objext'
24187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24188 (eval $ac_try) 2>&5
24190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); }; }; then
24192 ac_cv_cxx_have_fwd_iterator=yes
24194 echo "$as_me: failed program was:" >&5
24195 sed 's/^/| /' conftest.$ac_ext >&5
24197 ac_cv_cxx_have_fwd_iterator=no
24199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24201 ac_cpp='$CPP $CPPFLAGS'
24202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24208 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
24209 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
24210 if test "$ac_cv_cxx_have_fwd_iterator" = yes
24213 cat >>confdefs.h <<\_ACEOF
24214 #define HAVE_FWD_ITERATOR 1
24219 cat >>confdefs.h <<\_ACEOF
24220 #define HAVE_FWD_ITERATOR 0
24226 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
24227 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
24228 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
24229 echo $ECHO_N "(cached) $ECHO_C" >&6
24232 ac_cpp='$CXXCPP $CPPFLAGS'
24233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24237 cat >conftest.$ac_ext <<_ACEOF
24240 cat confdefs.h >>conftest.$ac_ext
24241 cat >>conftest.$ac_ext <<_ACEOF
24242 /* end confdefs.h. */
24252 rm -f conftest.$ac_objext
24253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24254 (eval $ac_compile) 2>conftest.er1
24256 grep -v '^ *+' conftest.er1 >conftest.err
24258 cat conftest.err >&5
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); } &&
24261 { ac_try='test -z "$ac_cxx_werror_flag"
24262 || test ! -s conftest.err'
24263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24264 (eval $ac_try) 2>&5
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); }; } &&
24268 { ac_try='test -s conftest.$ac_objext'
24269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24270 (eval $ac_try) 2>&5
24272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273 (exit $ac_status); }; }; then
24274 ac_cv_func_isnan_in_math_h=yes
24276 echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24279 ac_cv_func_isnan_in_math_h=no
24281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24283 ac_cpp='$CPP $CPPFLAGS'
24284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24289 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
24290 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
24293 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
24295 cat >>confdefs.h <<\_ACEOF
24296 #define HAVE_ISNAN_IN_MATH_H 1
24301 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
24302 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
24303 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
24304 echo $ECHO_N "(cached) $ECHO_C" >&6
24307 ac_cpp='$CXXCPP $CPPFLAGS'
24308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24312 cat >conftest.$ac_ext <<_ACEOF
24315 cat confdefs.h >>conftest.$ac_ext
24316 cat >>conftest.$ac_ext <<_ACEOF
24317 /* end confdefs.h. */
24327 rm -f conftest.$ac_objext
24328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24329 (eval $ac_compile) 2>conftest.er1
24331 grep -v '^ *+' conftest.er1 >conftest.err
24333 cat conftest.err >&5
24334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); } &&
24336 { ac_try='test -z "$ac_cxx_werror_flag"
24337 || test ! -s conftest.err'
24338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24339 (eval $ac_try) 2>&5
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); }; } &&
24343 { ac_try='test -s conftest.$ac_objext'
24344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24345 (eval $ac_try) 2>&5
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); }; }; then
24349 ac_cv_func_isnan_in_cmath=yes
24351 echo "$as_me: failed program was:" >&5
24352 sed 's/^/| /' conftest.$ac_ext >&5
24354 ac_cv_func_isnan_in_cmath=no
24356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24358 ac_cpp='$CPP $CPPFLAGS'
24359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24364 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
24365 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
24367 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
24369 cat >>confdefs.h <<\_ACEOF
24370 #define HAVE_ISNAN_IN_CMATH 1
24375 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
24376 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
24377 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
24378 echo $ECHO_N "(cached) $ECHO_C" >&6
24381 ac_cpp='$CXXCPP $CPPFLAGS'
24382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24386 cat >conftest.$ac_ext <<_ACEOF
24389 cat confdefs.h >>conftest.$ac_ext
24390 cat >>conftest.$ac_ext <<_ACEOF
24391 /* end confdefs.h. */
24396 float f; std::isnan(f);
24401 rm -f conftest.$ac_objext
24402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24403 (eval $ac_compile) 2>conftest.er1
24405 grep -v '^ *+' conftest.er1 >conftest.err
24407 cat conftest.err >&5
24408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); } &&
24410 { ac_try='test -z "$ac_cxx_werror_flag"
24411 || test ! -s conftest.err'
24412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24413 (eval $ac_try) 2>&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); }; } &&
24417 { ac_try='test -s conftest.$ac_objext'
24418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24419 (eval $ac_try) 2>&5
24421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); }; }; then
24423 ac_cv_func_std_isnan_in_cmath=yes
24425 echo "$as_me: failed program was:" >&5
24426 sed 's/^/| /' conftest.$ac_ext >&5
24428 ac_cv_func_std_isnan_in_cmath=no
24430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24432 ac_cpp='$CPP $CPPFLAGS'
24433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24438 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
24439 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
24441 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
24443 cat >>confdefs.h <<\_ACEOF
24444 #define HAVE_STD_ISNAN_IN_CMATH 1
24450 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
24451 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
24452 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
24453 echo $ECHO_N "(cached) $ECHO_C" >&6
24456 ac_cpp='$CXXCPP $CPPFLAGS'
24457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24461 cat >conftest.$ac_ext <<_ACEOF
24464 cat confdefs.h >>conftest.$ac_ext
24465 cat >>conftest.$ac_ext <<_ACEOF
24466 /* end confdefs.h. */
24476 rm -f conftest.$ac_objext
24477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24478 (eval $ac_compile) 2>conftest.er1
24480 grep -v '^ *+' conftest.er1 >conftest.err
24482 cat conftest.err >&5
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); } &&
24485 { ac_try='test -z "$ac_cxx_werror_flag"
24486 || test ! -s conftest.err'
24487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24488 (eval $ac_try) 2>&5
24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); }; } &&
24492 { ac_try='test -s conftest.$ac_objext'
24493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24494 (eval $ac_try) 2>&5
24496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); }; }; then
24498 ac_cv_func_isinf_in_math_h=yes
24500 echo "$as_me: failed program was:" >&5
24501 sed 's/^/| /' conftest.$ac_ext >&5
24503 ac_cv_func_isinf_in_math_h=no
24505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24507 ac_cpp='$CPP $CPPFLAGS'
24508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24513 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
24514 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
24516 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
24518 cat >>confdefs.h <<\_ACEOF
24519 #define HAVE_ISINF_IN_MATH_H 1
24524 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
24525 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
24526 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
24527 echo $ECHO_N "(cached) $ECHO_C" >&6
24530 ac_cpp='$CXXCPP $CPPFLAGS'
24531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24535 cat >conftest.$ac_ext <<_ACEOF
24538 cat confdefs.h >>conftest.$ac_ext
24539 cat >>conftest.$ac_ext <<_ACEOF
24540 /* end confdefs.h. */
24550 rm -f conftest.$ac_objext
24551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24552 (eval $ac_compile) 2>conftest.er1
24554 grep -v '^ *+' conftest.er1 >conftest.err
24556 cat conftest.err >&5
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); } &&
24559 { ac_try='test -z "$ac_cxx_werror_flag"
24560 || test ! -s conftest.err'
24561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24562 (eval $ac_try) 2>&5
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); }; } &&
24566 { ac_try='test -s conftest.$ac_objext'
24567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24568 (eval $ac_try) 2>&5
24570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571 (exit $ac_status); }; }; then
24572 ac_cv_func_isinf_in_cmath=yes
24574 echo "$as_me: failed program was:" >&5
24575 sed 's/^/| /' conftest.$ac_ext >&5
24577 ac_cv_func_isinf_in_cmath=no
24579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24581 ac_cpp='$CPP $CPPFLAGS'
24582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24587 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
24588 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
24590 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
24592 cat >>confdefs.h <<\_ACEOF
24593 #define HAVE_ISINF_IN_CMATH 1
24598 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
24599 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
24600 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
24601 echo $ECHO_N "(cached) $ECHO_C" >&6
24604 ac_cpp='$CXXCPP $CPPFLAGS'
24605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24609 cat >conftest.$ac_ext <<_ACEOF
24612 cat confdefs.h >>conftest.$ac_ext
24613 cat >>conftest.$ac_ext <<_ACEOF
24614 /* end confdefs.h. */
24619 float f; std::isinf(f)}
24624 rm -f conftest.$ac_objext
24625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24626 (eval $ac_compile) 2>conftest.er1
24628 grep -v '^ *+' conftest.er1 >conftest.err
24630 cat conftest.err >&5
24631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632 (exit $ac_status); } &&
24633 { ac_try='test -z "$ac_cxx_werror_flag"
24634 || test ! -s conftest.err'
24635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24636 (eval $ac_try) 2>&5
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); }; } &&
24640 { ac_try='test -s conftest.$ac_objext'
24641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24642 (eval $ac_try) 2>&5
24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645 (exit $ac_status); }; }; then
24646 ac_cv_func_std_isinf_in_cmath=yes
24648 echo "$as_me: failed program was:" >&5
24649 sed 's/^/| /' conftest.$ac_ext >&5
24651 ac_cv_func_std_isinf_in_cmath=no
24653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24655 ac_cpp='$CPP $CPPFLAGS'
24656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24661 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
24662 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
24664 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
24666 cat >>confdefs.h <<\_ACEOF
24667 #define HAVE_STD_ISINF_IN_CMATH 1
24672 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
24673 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
24674 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
24675 echo $ECHO_N "(cached) $ECHO_C" >&6
24678 ac_cpp='$CXXCPP $CPPFLAGS'
24679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24683 cat >conftest.$ac_ext <<_ACEOF
24686 cat confdefs.h >>conftest.$ac_ext
24687 cat >>conftest.$ac_ext <<_ACEOF
24688 /* end confdefs.h. */
24689 #include <ieeefp.h>
24693 float f; finite(f);
24698 rm -f conftest.$ac_objext
24699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24700 (eval $ac_compile) 2>conftest.er1
24702 grep -v '^ *+' conftest.er1 >conftest.err
24704 cat conftest.err >&5
24705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706 (exit $ac_status); } &&
24707 { ac_try='test -z "$ac_cxx_werror_flag"
24708 || test ! -s conftest.err'
24709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24710 (eval $ac_try) 2>&5
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); }; } &&
24714 { ac_try='test -s conftest.$ac_objext'
24715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24716 (eval $ac_try) 2>&5
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); }; }; then
24720 ac_cv_func_finite_in_ieeefp_h=yes
24722 echo "$as_me: failed program was:" >&5
24723 sed 's/^/| /' conftest.$ac_ext >&5
24725 ac_cv_func_finite_in_ieeefp_h=no
24727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24729 ac_cpp='$CPP $CPPFLAGS'
24730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24735 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
24736 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
24738 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
24740 cat >>confdefs.h <<\_ACEOF
24741 #define HAVE_FINITE_IN_IEEEFP_H 1
24750 for ac_header in stdlib.h unistd.h
24752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24754 echo "$as_me:$LINENO: checking for $ac_header" >&5
24755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24757 echo $ECHO_N "(cached) $ECHO_C" >&6
24759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24762 # Is the header compilable?
24763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24765 cat >conftest.$ac_ext <<_ACEOF
24768 cat confdefs.h >>conftest.$ac_ext
24769 cat >>conftest.$ac_ext <<_ACEOF
24770 /* end confdefs.h. */
24771 $ac_includes_default
24772 #include <$ac_header>
24774 rm -f conftest.$ac_objext
24775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24776 (eval $ac_compile) 2>conftest.er1
24778 grep -v '^ *+' conftest.er1 >conftest.err
24780 cat conftest.err >&5
24781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); } &&
24783 { ac_try='test -z "$ac_c_werror_flag"
24784 || test ! -s conftest.err'
24785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786 (eval $ac_try) 2>&5
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); }; } &&
24790 { ac_try='test -s conftest.$ac_objext'
24791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792 (eval $ac_try) 2>&5
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); }; }; then
24796 ac_header_compiler=yes
24798 echo "$as_me: failed program was:" >&5
24799 sed 's/^/| /' conftest.$ac_ext >&5
24801 ac_header_compiler=no
24803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24805 echo "${ECHO_T}$ac_header_compiler" >&6
24807 # Is the header present?
24808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24810 cat >conftest.$ac_ext <<_ACEOF
24813 cat confdefs.h >>conftest.$ac_ext
24814 cat >>conftest.$ac_ext <<_ACEOF
24815 /* end confdefs.h. */
24816 #include <$ac_header>
24818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24821 grep -v '^ *+' conftest.er1 >conftest.err
24823 cat conftest.err >&5
24824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825 (exit $ac_status); } >/dev/null; then
24826 if test -s conftest.err; then
24827 ac_cpp_err=$ac_c_preproc_warn_flag
24828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24835 if test -z "$ac_cpp_err"; then
24836 ac_header_preproc=yes
24838 echo "$as_me: failed program was:" >&5
24839 sed 's/^/| /' conftest.$ac_ext >&5
24841 ac_header_preproc=no
24843 rm -f conftest.err conftest.$ac_ext
24844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24845 echo "${ECHO_T}$ac_header_preproc" >&6
24847 # So? What about this header?
24848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24854 ac_header_preproc=yes
24857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24871 ## ----------------------------------- ##
24872 ## Report this to llvmbugs@cs.uiuc.edu ##
24873 ## ----------------------------------- ##
24876 sed "s/^/$as_me: WARNING: /" >&2
24879 echo "$as_me:$LINENO: checking for $ac_header" >&5
24880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24882 echo $ECHO_N "(cached) $ECHO_C" >&6
24884 eval "$as_ac_Header=\$ac_header_preproc"
24886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24891 cat >>confdefs.h <<_ACEOF
24892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24900 for ac_func in getpagesize
24902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24903 echo "$as_me:$LINENO: checking for $ac_func" >&5
24904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24905 if eval "test \"\${$as_ac_var+set}\" = set"; then
24906 echo $ECHO_N "(cached) $ECHO_C" >&6
24908 cat >conftest.$ac_ext <<_ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h. */
24914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24916 #define $ac_func innocuous_$ac_func
24918 /* System header to define __stub macros and hopefully few prototypes,
24919 which can conflict with char $ac_func (); below.
24920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24921 <limits.h> exists even on freestanding compilers. */
24924 # include <limits.h>
24926 # include <assert.h>
24931 /* Override any gcc2 internal prototype to avoid an error. */
24936 /* We use char because int might match the return type of a gcc2
24937 builtin and then its argument prototype would still apply. */
24939 /* The GNU C library defines this for functions which it implements
24940 to always fail with ENOSYS. Some functions are actually named
24941 something starting with __ and the normal name is an alias. */
24942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24945 char (*f) () = $ac_func;
24954 return f != $ac_func;
24959 rm -f conftest.$ac_objext conftest$ac_exeext
24960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24961 (eval $ac_link) 2>conftest.er1
24963 grep -v '^ *+' conftest.er1 >conftest.err
24965 cat conftest.err >&5
24966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967 (exit $ac_status); } &&
24968 { ac_try='test -z "$ac_c_werror_flag"
24969 || test ! -s conftest.err'
24970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24971 (eval $ac_try) 2>&5
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); }; } &&
24975 { ac_try='test -s conftest$ac_exeext'
24976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24977 (eval $ac_try) 2>&5
24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); }; }; then
24981 eval "$as_ac_var=yes"
24983 echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24986 eval "$as_ac_var=no"
24988 rm -f conftest.err conftest.$ac_objext \
24989 conftest$ac_exeext conftest.$ac_ext
24991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24993 if test `eval echo '${'$as_ac_var'}'` = yes; then
24994 cat >>confdefs.h <<_ACEOF
24995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25001 echo "$as_me:$LINENO: checking for working mmap" >&5
25002 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
25003 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25004 echo $ECHO_N "(cached) $ECHO_C" >&6
25006 if test "$cross_compiling" = yes; then
25007 ac_cv_func_mmap_fixed_mapped=no
25009 cat >conftest.$ac_ext <<_ACEOF
25012 cat confdefs.h >>conftest.$ac_ext
25013 cat >>conftest.$ac_ext <<_ACEOF
25014 /* end confdefs.h. */
25015 $ac_includes_default
25016 /* malloc might have been renamed as rpl_malloc. */
25019 /* Thanks to Mike Haertel and Jim Avera for this test.
25020 Here is a matrix of mmap possibilities:
25021 mmap private not fixed
25022 mmap private fixed at somewhere currently unmapped
25023 mmap private fixed at somewhere already mapped
25024 mmap shared not fixed
25025 mmap shared fixed at somewhere currently unmapped
25026 mmap shared fixed at somewhere already mapped
25027 For private mappings, we should verify that changes cannot be read()
25028 back from the file, nor mmap's back from the file at a different
25029 address. (There have been systems where private was not correctly
25030 implemented like the infamous i386 svr4.0, and systems where the
25031 VM page cache was not coherent with the file system buffer cache
25032 like early versions of FreeBSD and possibly contemporary NetBSD.)
25033 For shared mappings, we should conversely verify that changes get
25034 propagated back to all the places they're supposed to be.
25036 Grep wants private fixed already mapped.
25037 The main things grep needs to know about mmap are:
25038 * does it exist and is it safe to write into the mmap'd area
25039 * how to use it (BSD variants) */
25042 #include <sys/mman.h>
25044 #if !STDC_HEADERS && !HAVE_STDLIB_H
25048 /* This mess was copied from the GNU getpagesize.h. */
25049 #if !HAVE_GETPAGESIZE
25050 /* Assume that all systems that can run configure have sys/param.h. */
25051 # if !HAVE_SYS_PARAM_H
25052 # define HAVE_SYS_PARAM_H 1
25055 # ifdef _SC_PAGESIZE
25056 # define getpagesize() sysconf(_SC_PAGESIZE)
25057 # else /* no _SC_PAGESIZE */
25058 # if HAVE_SYS_PARAM_H
25059 # include <sys/param.h>
25060 # ifdef EXEC_PAGESIZE
25061 # define getpagesize() EXEC_PAGESIZE
25062 # else /* no EXEC_PAGESIZE */
25064 # define getpagesize() NBPG * CLSIZE
25067 # endif /* no CLSIZE */
25068 # else /* no NBPG */
25070 # define getpagesize() NBPC
25071 # else /* no NBPC */
25073 # define getpagesize() PAGESIZE
25074 # endif /* PAGESIZE */
25075 # endif /* no NBPC */
25076 # endif /* no NBPG */
25077 # endif /* no EXEC_PAGESIZE */
25078 # else /* no HAVE_SYS_PARAM_H */
25079 # define getpagesize() 8192 /* punt totally */
25080 # endif /* no HAVE_SYS_PARAM_H */
25081 # endif /* no _SC_PAGESIZE */
25083 #endif /* no HAVE_GETPAGESIZE */
25088 char *data, *data2, *data3;
25092 pagesize = getpagesize ();
25094 /* First, make a file with some known garbage in it. */
25095 data = (char *) malloc (pagesize);
25098 for (i = 0; i < pagesize; ++i)
25099 *(data + i) = rand ();
25101 fd = creat ("conftest.mmap", 0600);
25104 if (write (fd, data, pagesize) != pagesize)
25108 /* Next, try to mmap the file at a fixed address which already has
25109 something else allocated at it. If we can, also make sure that
25110 we see the same garbage. */
25111 fd = open ("conftest.mmap", O_RDWR);
25114 data2 = (char *) malloc (2 * pagesize);
25117 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
25118 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25119 MAP_PRIVATE | MAP_FIXED, fd, 0L))
25121 for (i = 0; i < pagesize; ++i)
25122 if (*(data + i) != *(data2 + i))
25125 /* Finally, make sure that changes to the mapped area do not
25126 percolate back to the file as seen by read(). (This is a bug on
25127 some variants of i386 svr4.0.) */
25128 for (i = 0; i < pagesize; ++i)
25129 *(data2 + i) = *(data2 + i) + 1;
25130 data3 = (char *) malloc (pagesize);
25133 if (read (fd, data3, pagesize) != pagesize)
25135 for (i = 0; i < pagesize; ++i)
25136 if (*(data + i) != *(data3 + i))
25142 rm -f conftest$ac_exeext
25143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25144 (eval $ac_link) 2>&5
25146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25149 (eval $ac_try) 2>&5
25151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); }; }; then
25153 ac_cv_func_mmap_fixed_mapped=yes
25155 echo "$as_me: program exited with status $ac_status" >&5
25156 echo "$as_me: failed program was:" >&5
25157 sed 's/^/| /' conftest.$ac_ext >&5
25159 ( exit $ac_status )
25160 ac_cv_func_mmap_fixed_mapped=no
25162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25165 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25166 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
25167 if test $ac_cv_func_mmap_fixed_mapped = yes; then
25169 cat >>confdefs.h <<\_ACEOF
25170 #define HAVE_MMAP 1
25174 rm -f conftest.mmap
25176 echo "$as_me:$LINENO: checking for mmap of files" >&5
25177 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
25178 if test "${ac_cv_func_mmap_file+set}" = set; then
25179 echo $ECHO_N "(cached) $ECHO_C" >&6
25182 ac_cpp='$CPP $CPPFLAGS'
25183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25187 if test "$cross_compiling" = yes; then
25188 ac_cv_func_mmap_file=no
25190 cat >conftest.$ac_ext <<_ACEOF
25194 cat confdefs.h >>conftest.$ac_ext
25195 cat >>conftest.$ac_ext <<_ACEOF
25196 /* end confdefs.h. */
25198 #include <sys/types.h>
25199 #include <sys/mman.h>
25207 fd = creat ("foo",0777);
25208 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
25210 return (fd != (int) MAP_FAILED);
25215 rm -f conftest$ac_exeext
25216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25217 (eval $ac_link) 2>&5
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25222 (eval $ac_try) 2>&5
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); }; }; then
25226 ac_cv_func_mmap_file=yes
25228 echo "$as_me: program exited with status $ac_status" >&5
25229 echo "$as_me: failed program was:" >&5
25230 sed 's/^/| /' conftest.$ac_ext >&5
25232 ( exit $ac_status )
25233 ac_cv_func_mmap_file=no
25235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25238 ac_cpp='$CPP $CPPFLAGS'
25239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25245 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
25246 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
25247 if test "$ac_cv_func_mmap_file" = yes; then
25249 cat >>confdefs.h <<\_ACEOF
25250 #define HAVE_MMAP_FILE
25257 echo "$as_me:$LINENO: checking for mprotect" >&5
25258 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
25259 if test "${ac_cv_func_mprotect+set}" = set; then
25260 echo $ECHO_N "(cached) $ECHO_C" >&6
25262 cat >conftest.$ac_ext <<_ACEOF
25265 cat confdefs.h >>conftest.$ac_ext
25266 cat >>conftest.$ac_ext <<_ACEOF
25267 /* end confdefs.h. */
25268 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
25269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25270 #define mprotect innocuous_mprotect
25272 /* System header to define __stub macros and hopefully few prototypes,
25273 which can conflict with char mprotect (); below.
25274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25275 <limits.h> exists even on freestanding compilers. */
25278 # include <limits.h>
25280 # include <assert.h>
25285 /* Override any gcc2 internal prototype to avoid an error. */
25290 /* We use char because int might match the return type of a gcc2
25291 builtin and then its argument prototype would still apply. */
25293 /* The GNU C library defines this for functions which it implements
25294 to always fail with ENOSYS. Some functions are actually named
25295 something starting with __ and the normal name is an alias. */
25296 #if defined (__stub_mprotect) || defined (__stub___mprotect)
25299 char (*f) () = mprotect;
25308 return f != mprotect;
25313 rm -f conftest.$ac_objext conftest$ac_exeext
25314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25315 (eval $ac_link) 2>conftest.er1
25317 grep -v '^ *+' conftest.er1 >conftest.err
25319 cat conftest.err >&5
25320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); } &&
25322 { ac_try='test -z "$ac_c_werror_flag"
25323 || test ! -s conftest.err'
25324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25325 (eval $ac_try) 2>&5
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); }; } &&
25329 { ac_try='test -s conftest$ac_exeext'
25330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25331 (eval $ac_try) 2>&5
25333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334 (exit $ac_status); }; }; then
25335 ac_cv_func_mprotect=yes
25337 echo "$as_me: failed program was:" >&5
25338 sed 's/^/| /' conftest.$ac_ext >&5
25340 ac_cv_func_mprotect=no
25342 rm -f conftest.err conftest.$ac_objext \
25343 conftest$ac_exeext conftest.$ac_ext
25345 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
25346 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
25347 if test $ac_cv_func_mprotect = yes; then
25350 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
25351 echo "$as_me: error: Function mprotect() required but not found" >&2;}
25352 { (exit 1); exit 1; }; }
25356 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
25358 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
25359 echo "$as_me: WARNING: mmap() required but not found" >&2;}
25361 if test "$ac_cv_func_mmap_file" = "no"
25363 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
25364 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
25368 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
25369 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
25370 if test "${llvm_cv_llvmgcc+set}" = set; then
25371 echo $ECHO_N "(cached) $ECHO_C" >&6
25373 llvm_cv_llvmgcc='llvmgcc_not_found'
25374 if test -d "$LLVMGCCDIR" ; then
25375 if test -x "$LLVMGCCDIR/bin/gcc" ; then
25376 llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
25380 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
25381 echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
25383 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
25384 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
25385 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
25386 echo $ECHO_N "(cached) $ECHO_C" >&6
25388 llvm_cv_llvmgcc_sanity="no"
25389 if test -x "$llvm_cv_llvmgcc" ; then
25390 cp /dev/null conftest.c
25391 "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
25392 if test $? -eq 0 ; then
25393 llvm_cv_llvmgcc_sanity="yes"
25398 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
25399 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
25401 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
25402 LLVMGCC="$llvm_cv_llvmgcc"
25404 llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
25405 LLVMCC1=$llvmcc1path
25407 llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
25408 LLVMCC1PLUS=$llvmcc1pluspath
25412 echo "$as_me:$LINENO: checking for shared library suffix" >&5
25413 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
25414 eval "SHLIBEXT=$shrext_cmds"
25415 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
25416 echo "${ECHO_T}$SHLIBEXT" >&6
25420 cat >>confdefs.h <<_ACEOF
25421 #define SHLIBEXT "$SHLIBEXT"
25425 # Translate the various configuration directories and other basic
25426 # information into substitutions that will end up in Makefile.config.in
25427 # that these configured values can be used by the makefiles
25428 eval LLVM_PREFIX="${prefix}";
25429 eval LLVM_BINDIR="${prefix}/bin";
25430 eval LLVM_LIBDIR="${prefix}/lib";
25431 eval LLVM_DATADIR="${prefix}/data";
25432 eval LLVM_DOCSDIR="${prefix}/docs";
25433 eval LLVM_ETCDIR="${prefix}/etc";
25434 eval LLVM_INCLUDEDIR="${prefix}/include";
25435 eval LLVM_INFODIR="${prefix}/info";
25436 eval LLVM_MANDIR="${prefix}/man";
25437 LLVM_CONFIGTIME=`date`
25449 # Place the various directores into the config.h file as #defines so that we
25450 # can know about the installation paths within LLVM.
25452 cat >>confdefs.h <<_ACEOF
25453 #define LLVM_PREFIX "$LLVM_PREFIX"
25457 cat >>confdefs.h <<_ACEOF
25458 #define LLVM_BINDIR "$LLVM_BINDIR"
25462 cat >>confdefs.h <<_ACEOF
25463 #define LLVM_LIBDIR "$LLVM_LIBDIR"
25467 cat >>confdefs.h <<_ACEOF
25468 #define LLVM_DATADIR "$LLVM_DATADIR"
25472 cat >>confdefs.h <<_ACEOF
25473 #define LLVM_DATADIR "$LLVM_DOCSDIR"
25477 cat >>confdefs.h <<_ACEOF
25478 #define LLVM_ETCDIR "$LLVM_ETCDIR"
25482 cat >>confdefs.h <<_ACEOF
25483 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
25487 cat >>confdefs.h <<_ACEOF
25488 #define LLVM_INFODIR "$LLVM_INFODIR"
25492 cat >>confdefs.h <<_ACEOF
25493 #define LLVM_MANDIR "$LLVM_MANDIR"
25497 cat >>confdefs.h <<_ACEOF
25498 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
25503 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
25506 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
25508 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
25510 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
25512 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
25514 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
25517 ac_config_files="$ac_config_files Makefile.config"
25520 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
25523 ac_config_commands="$ac_config_commands Makefile"
25526 ac_config_commands="$ac_config_commands Makefile.common"
25529 ac_config_commands="$ac_config_commands examples/Makefile"
25532 ac_config_commands="$ac_config_commands lib/Makefile"
25535 ac_config_commands="$ac_config_commands runtime/Makefile"
25538 ac_config_commands="$ac_config_commands test/Makefile"
25541 ac_config_commands="$ac_config_commands test/Makefile.tests"
25544 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
25547 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
25550 ac_config_commands="$ac_config_commands tools/Makefile"
25553 ac_config_commands="$ac_config_commands tools/Makefile.JIT"
25556 ac_config_commands="$ac_config_commands utils/Makefile"
25559 ac_config_commands="$ac_config_commands projects/Makefile"
25563 cat >confcache <<\_ACEOF
25564 # This file is a shell script that caches the results of configure
25565 # tests run on this system so they can be shared between configure
25566 # scripts and configure runs, see configure's option --config-cache.
25567 # It is not useful on other systems. If it contains results you don't
25568 # want to keep, you may remove or edit it.
25570 # config.status only pays attention to the cache file if you give it
25571 # the --recheck option to rerun configure.
25573 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25574 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25575 # following values.
25579 # The following way of writing the cache mishandles newlines in values,
25580 # but we know of no workaround that is simple, portable, and efficient.
25581 # So, don't put newlines in cache variables' values.
25582 # Ultrix sh set writes to stderr and can't be redirected directly,
25583 # and sets the high bit in the cache file unless we assign to the vars.
25586 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25588 # `set' does not quote correctly, so add quotes (double-quote
25589 # substitution turns \\\\ into \\, and sed turns \\ into \).
25592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25595 # `set' quotes correctly as required by POSIX, so do not add quotes.
25597 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25604 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25606 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25608 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25609 if test -w $cache_file; then
25610 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25611 cat confcache >$cache_file
25613 echo "not updating unwritable cache $cache_file"
25618 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25619 # Let make expand exec_prefix.
25620 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25622 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25623 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25624 # trailing colons and then remove the whole line if VPATH becomes empty
25625 # (actually we leave an empty line to preserve line numbers).
25626 if test "x$srcdir" = x.; then
25627 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25628 s/:*\$(srcdir):*/:/;
25629 s/:*\${srcdir}:*/:/;
25631 s/^\([^=]*=[ ]*\):*/\1/;
25637 DEFS=-DHAVE_CONFIG_H
25641 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25642 # 1. Remove the extension, and $U if already installed.
25643 ac_i=`echo "$ac_i" |
25644 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25646 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25647 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25649 LIBOBJS=$ac_libobjs
25651 LTLIBOBJS=$ac_ltlibobjs
25655 : ${CONFIG_STATUS=./config.status}
25656 ac_clean_files_save=$ac_clean_files
25657 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25658 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25659 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25660 cat >$CONFIG_STATUS <<_ACEOF
25662 # Generated by $as_me.
25663 # Run this file to recreate the current configuration.
25664 # Compiler output produced by configure, useful for debugging
25665 # configure, is in config.log if it exists.
25668 ac_cs_recheck=false
25670 SHELL=\${CONFIG_SHELL-$SHELL}
25673 cat >>$CONFIG_STATUS <<\_ACEOF
25674 ## --------------------- ##
25675 ## M4sh Initialization. ##
25676 ## --------------------- ##
25678 # Be Bourne compatible
25679 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25682 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25683 # is contrary to our usage. Disable this feature.
25684 alias -g '${1+"$@"}'='"$@"'
25685 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25688 DUALCASE=1; export DUALCASE # for MKS sh
25690 # Support unset when possible.
25691 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25698 # Work around bugs in pre-3.0 UWIN ksh.
25699 $as_unset ENV MAIL MAILPATH
25706 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25707 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25708 LC_TELEPHONE LC_TIME
25710 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25711 eval $as_var=C; export $as_var
25717 # Required to use basename.
25718 if expr a : '\(a\)' >/dev/null 2>&1; then
25724 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25725 as_basename=basename
25731 # Name of the executable.
25732 as_me=`$as_basename "$0" ||
25733 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25734 X"$0" : 'X\(//\)$' \| \
25735 X"$0" : 'X\(/\)$' \| \
25736 . : '\(.\)' 2>/dev/null ||
25738 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25739 /^X\/\(\/\/\)$/{ s//\1/; q; }
25740 /^X\/\(\/\).*/{ s//\1/; q; }
25744 # PATH needs CR, and LINENO needs CR and PATH.
25745 # Avoid depending upon Character Ranges.
25746 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25747 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25748 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25749 as_cr_digits='0123456789'
25750 as_cr_alnum=$as_cr_Letters$as_cr_digits
25752 # The user is always right.
25753 if test "${PATH_SEPARATOR+set}" != set; then
25754 echo "#! /bin/sh" >conf$$.sh
25755 echo "exit 0" >>conf$$.sh
25757 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25766 as_lineno_1=$LINENO
25767 as_lineno_2=$LINENO
25768 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25769 test "x$as_lineno_1" != "x$as_lineno_2" &&
25770 test "x$as_lineno_3" = "x$as_lineno_2" || {
25771 # Find who we are. Look in the path if we contain no path at all
25774 *[\\/]* ) as_myself=$0 ;;
25775 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25776 for as_dir in $PATH
25779 test -z "$as_dir" && as_dir=.
25780 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25785 # We did not find ourselves, most probably we were run as `sh COMMAND'
25786 # in which case we are not to be found in the path.
25787 if test "x$as_myself" = x; then
25790 if test ! -f "$as_myself"; then
25791 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25792 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25793 { (exit 1); exit 1; }; }
25795 case $CONFIG_SHELL in
25797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25798 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25801 test -z "$as_dir" && as_dir=.
25802 for as_base in sh bash ksh sh5; do
25805 if ("$as_dir/$as_base" -c '
25806 as_lineno_1=$LINENO
25807 as_lineno_2=$LINENO
25808 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25809 test "x$as_lineno_1" != "x$as_lineno_2" &&
25810 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25811 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25812 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25813 CONFIG_SHELL=$as_dir/$as_base
25814 export CONFIG_SHELL
25815 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25823 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25824 # uniformly replaced by the line number. The first 'sed' inserts a
25825 # line-number line before each line; the second 'sed' does the real
25826 # work. The second script uses 'N' to pair each line-number line
25827 # with the numbered line, and appends trailing '-' during
25828 # substitution so that $LINENO is not a special case at line end.
25829 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25830 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25831 sed '=' <$as_myself |
25836 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25839 s,^['$as_cr_digits']*\n,,
25840 ' >$as_me.lineno &&
25841 chmod +x $as_me.lineno ||
25842 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25843 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25844 { (exit 1); exit 1; }; }
25846 # Don't try to exec as it changes $[0], causing all sort of problems
25847 # (the dirname of $[0] is not the place where we might find the
25848 # original and so on. Autoconf is especially sensible to this).
25850 # Exit status is that of the last command.
25855 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25856 *c*,-n*) ECHO_N= ECHO_C='
25858 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25859 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25862 if expr a : '\(a\)' >/dev/null 2>&1; then
25868 rm -f conf$$ conf$$.exe conf$$.file
25870 if ln -s conf$$.file conf$$ 2>/dev/null; then
25871 # We could just check for DJGPP; but this test a) works b) is more generic
25872 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25873 if test -f conf$$.exe; then
25874 # Don't use ln at all; we don't have any links
25879 elif ln conf$$.file conf$$ 2>/dev/null; then
25884 rm -f conf$$ conf$$.exe conf$$.file
25886 if mkdir -p . 2>/dev/null; then
25889 test -d ./-p && rmdir ./-p
25893 as_executable_p="test -f"
25895 # Sed expression to map a string onto a valid CPP name.
25896 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25898 # Sed expression to map a string onto a valid variable name.
25899 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25903 # We need space, tab and new line, in precisely that order.
25913 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25914 # report actual input values of CONFIG_FILES etc. instead of their
25915 # values after options handling. Logging --version etc. is OK.
25919 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25920 ## Running $as_me. ##
25925 This file was extended by llvm $as_me 1.4, which was
25926 generated by GNU Autoconf 2.59. Invocation command line was
25928 CONFIG_FILES = $CONFIG_FILES
25929 CONFIG_HEADERS = $CONFIG_HEADERS
25930 CONFIG_LINKS = $CONFIG_LINKS
25931 CONFIG_COMMANDS = $CONFIG_COMMANDS
25935 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25939 # Files that config.status was made for.
25940 if test -n "$ac_config_files"; then
25941 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25944 if test -n "$ac_config_headers"; then
25945 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25948 if test -n "$ac_config_links"; then
25949 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25952 if test -n "$ac_config_commands"; then
25953 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25956 cat >>$CONFIG_STATUS <<\_ACEOF
25959 \`$as_me' instantiates files from templates according to the
25960 current configuration.
25962 Usage: $0 [OPTIONS] [FILE]...
25964 -h, --help print this help, then exit
25965 -V, --version print version number, then exit
25966 -q, --quiet do not print progress messages
25967 -d, --debug don't remove temporary files
25968 --recheck update $as_me by reconfiguring in the same conditions
25969 --file=FILE[:TEMPLATE]
25970 instantiate the configuration file FILE
25971 --header=FILE[:TEMPLATE]
25972 instantiate the configuration header FILE
25974 Configuration files:
25977 Configuration headers:
25980 Configuration links:
25983 Configuration commands:
25986 Report bugs to <bug-autoconf@gnu.org>."
25989 cat >>$CONFIG_STATUS <<_ACEOF
25991 llvm config.status 1.4
25992 configured by $0, generated by GNU Autoconf 2.59,
25993 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25995 Copyright (C) 2003 Free Software Foundation, Inc.
25996 This config.status script is free software; the Free Software Foundation
25997 gives unlimited permission to copy, distribute and modify it."
26002 cat >>$CONFIG_STATUS <<\_ACEOF
26003 # If no file are specified by the user, then we need to provide default
26004 # value. By we need to know if files were specified by the user.
26010 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26011 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26019 *) # This is not an option, so the user has probably given explicit
26022 ac_need_defaults=false;;
26026 # Handling of the options.
26028 cat >>$CONFIG_STATUS <<\_ACEOF
26029 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26031 --version | --vers* | -V )
26032 echo "$ac_cs_version"; exit 0 ;;
26034 # Conflict between --help and --header
26035 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26036 Try \`$0 --help' for more information." >&5
26037 echo "$as_me: error: ambiguous option: $1
26038 Try \`$0 --help' for more information." >&2;}
26039 { (exit 1); exit 1; }; };;
26040 --help | --hel | -h )
26041 echo "$ac_cs_usage"; exit 0 ;;
26042 --debug | --d* | -d )
26044 --file | --fil | --fi | --f )
26046 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26047 ac_need_defaults=false;;
26048 --header | --heade | --head | --hea )
26050 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26051 ac_need_defaults=false;;
26052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26053 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26056 # This is an error.
26057 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26058 Try \`$0 --help' for more information." >&5
26059 echo "$as_me: error: unrecognized option: $1
26060 Try \`$0 --help' for more information." >&2;}
26061 { (exit 1); exit 1; }; } ;;
26063 *) ac_config_targets="$ac_config_targets $1" ;;
26069 ac_configure_extra_args=
26071 if $ac_cs_silent; then
26073 ac_configure_extra_args="$ac_configure_extra_args --silent"
26077 cat >>$CONFIG_STATUS <<_ACEOF
26078 if \$ac_cs_recheck; then
26079 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26080 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26085 cat >>$CONFIG_STATUS <<_ACEOF
26087 # INIT-COMMANDS section.
26090 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
26091 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
26092 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
26093 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
26094 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
26095 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
26096 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
26097 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
26098 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
26099 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
26100 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT`
26101 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
26102 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
26108 cat >>$CONFIG_STATUS <<\_ACEOF
26109 for ac_config_target in $ac_config_targets
26111 case "$ac_config_target" in
26112 # Handling of arguments.
26113 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
26114 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
26115 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
26116 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
26117 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
26118 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
26119 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
26120 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
26121 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
26122 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
26123 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
26124 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
26125 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
26126 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
26127 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
26128 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
26129 "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;;
26130 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
26131 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
26132 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
26133 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
26134 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
26135 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
26136 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
26137 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
26138 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26139 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26140 { (exit 1); exit 1; }; };;
26144 # If the user did not use the arguments to specify the items to instantiate,
26145 # then the envvar interface is used. Set only those that are not.
26146 # We use the long form for the default assignment because of an extremely
26147 # bizarre bug on SunOS 4.1.3.
26148 if $ac_need_defaults; then
26149 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26150 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26151 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26152 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26155 # Have a temporary directory for convenience. Make it in the build tree
26156 # simply because there is no reason to put it here, and in addition,
26157 # creating and moving files from /tmp can sometimes cause problems.
26158 # Create a temporary directory, and hook for its removal unless debugging.
26161 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26162 trap '{ (exit 1); exit 1; }' 1 2 13 15
26165 # Create a (secure) tmp directory for tmp files.
26168 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26169 test -n "$tmp" && test -d "$tmp"
26172 tmp=./confstat$$-$RANDOM
26173 (umask 077 && mkdir $tmp)
26176 echo "$me: cannot create a temporary directory in ." >&2
26177 { (exit 1); exit 1; }
26182 cat >>$CONFIG_STATUS <<_ACEOF
26185 # CONFIG_FILES section.
26188 # No need to generate the scripts if there are no CONFIG_FILES.
26189 # This happens for instance when ./config.status config.h
26190 if test -n "\$CONFIG_FILES"; then
26191 # Protect against being on the right side of a sed subst in config.status.
26192 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26193 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26194 s,@SHELL@,$SHELL,;t t
26195 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26196 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26197 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26198 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26199 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26200 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26201 s,@exec_prefix@,$exec_prefix,;t t
26202 s,@prefix@,$prefix,;t t
26203 s,@program_transform_name@,$program_transform_name,;t t
26204 s,@bindir@,$bindir,;t t
26205 s,@sbindir@,$sbindir,;t t
26206 s,@libexecdir@,$libexecdir,;t t
26207 s,@datadir@,$datadir,;t t
26208 s,@sysconfdir@,$sysconfdir,;t t
26209 s,@sharedstatedir@,$sharedstatedir,;t t
26210 s,@localstatedir@,$localstatedir,;t t
26211 s,@libdir@,$libdir,;t t
26212 s,@includedir@,$includedir,;t t
26213 s,@oldincludedir@,$oldincludedir,;t t
26214 s,@infodir@,$infodir,;t t
26215 s,@mandir@,$mandir,;t t
26216 s,@build_alias@,$build_alias,;t t
26217 s,@host_alias@,$host_alias,;t t
26218 s,@target_alias@,$target_alias,;t t
26219 s,@DEFS@,$DEFS,;t t
26220 s,@ECHO_C@,$ECHO_C,;t t
26221 s,@ECHO_N@,$ECHO_N,;t t
26222 s,@ECHO_T@,$ECHO_T,;t t
26223 s,@LIBS@,$LIBS,;t t
26224 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
26225 s,@subdirs@,$subdirs,;t t
26226 s,@build@,$build,;t t
26227 s,@build_cpu@,$build_cpu,;t t
26228 s,@build_vendor@,$build_vendor,;t t
26229 s,@build_os@,$build_os,;t t
26230 s,@host@,$host,;t t
26231 s,@host_cpu@,$host_cpu,;t t
26232 s,@host_vendor@,$host_vendor,;t t
26233 s,@host_os@,$host_os,;t t
26234 s,@target@,$target,;t t
26235 s,@target_cpu@,$target_cpu,;t t
26236 s,@target_vendor@,$target_vendor,;t t
26237 s,@target_os@,$target_os,;t t
26239 s,@ARCH@,$ARCH,;t t
26240 s,@ENDIAN@,$ENDIAN,;t t
26242 s,@CFLAGS@,$CFLAGS,;t t
26243 s,@LDFLAGS@,$LDFLAGS,;t t
26244 s,@CPPFLAGS@,$CPPFLAGS,;t t
26245 s,@ac_ct_CC@,$ac_ct_CC,;t t
26246 s,@EXEEXT@,$EXEEXT,;t t
26247 s,@OBJEXT@,$OBJEXT,;t t
26248 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
26250 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
26253 s,@CXXFLAGS@,$CXXFLAGS,;t t
26254 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26256 s,@LEXLIB@,$LEXLIB,;t t
26257 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
26258 s,@FLEX@,$FLEX,;t t
26259 s,@YACC@,$YACC,;t t
26260 s,@BISON@,$BISON,;t t
26261 s,@EGREP@,$EGREP,;t t
26262 s,@LN_S@,$LN_S,;t t
26263 s,@ECHO@,$ECHO,;t t
26265 s,@ac_ct_AR@,$ac_ct_AR,;t t
26266 s,@RANLIB@,$RANLIB,;t t
26267 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26268 s,@STRIP@,$STRIP,;t t
26269 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26270 s,@CXXCPP@,$CXXCPP,;t t
26272 s,@FFLAGS@,$FFLAGS,;t t
26273 s,@ac_ct_F77@,$ac_ct_F77,;t t
26274 s,@LIBTOOL@,$LIBTOOL,;t t
26275 s,@ifGNUmake@,$ifGNUmake,;t t
26276 s,@FIND@,$FIND,;t t
26277 s,@GREP@,$GREP,;t t
26278 s,@MKDIR@,$MKDIR,;t t
26283 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26284 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26285 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26287 s,@ETAGS@,$ETAGS,;t t
26288 s,@PYTHON@,$PYTHON,;t t
26289 s,@QMTEST@,$QMTEST,;t t
26290 s,@RUNTEST@,$RUNTEST,;t t
26291 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
26292 s,@ALLOCA@,$ALLOCA,;t t
26293 s,@MMAP_FILE@,$MMAP_FILE,;t t
26294 s,@LLVMGCC@,$LLVMGCC,;t t
26295 s,@LLVMCC1@,$LLVMCC1,;t t
26296 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
26297 s,@SHLIBEXT@,$SHLIBEXT,;t t
26298 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
26299 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
26300 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
26301 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
26302 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
26303 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
26304 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
26305 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
26306 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
26307 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
26308 s,@LIBOBJS@,$LIBOBJS,;t t
26309 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26314 cat >>$CONFIG_STATUS <<\_ACEOF
26315 # Split the substitutions into bite-sized pieces for seds with
26316 # small command number limits, like on Digital OSF/1 and HP-UX.
26317 ac_max_sed_lines=48
26318 ac_sed_frag=1 # Number of current file.
26319 ac_beg=1 # First line for current file.
26320 ac_end=$ac_max_sed_lines # Line after last line for current file.
26323 while $ac_more_lines; do
26324 if test $ac_beg -gt 1; then
26325 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26327 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26329 if test ! -s $tmp/subs.frag; then
26330 ac_more_lines=false
26332 # The purpose of the label and of the branching condition is to
26333 # speed up the sed processing (if there are no `@' at all, there
26334 # is no need to browse any of the substitutions).
26335 # These are the two extra sed commands mentioned above.
26337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26338 if test -z "$ac_sed_cmds"; then
26339 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26341 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26343 ac_sed_frag=`expr $ac_sed_frag + 1`
26345 ac_end=`expr $ac_end + $ac_max_sed_lines`
26348 if test -z "$ac_sed_cmds"; then
26351 fi # test -n "$CONFIG_FILES"
26354 cat >>$CONFIG_STATUS <<\_ACEOF
26355 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26356 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26358 - | *:- | *:-:* ) # input from stdin
26360 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26361 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26362 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26363 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26364 * ) ac_file_in=$ac_file.in ;;
26367 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26368 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26369 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26370 X"$ac_file" : 'X\(//\)[^/]' \| \
26371 X"$ac_file" : 'X\(//\)$' \| \
26372 X"$ac_file" : 'X\(/\)' \| \
26373 . : '\(.\)' 2>/dev/null ||
26375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26377 /^X\(\/\/\)$/{ s//\1/; q; }
26378 /^X\(\/\).*/{ s//\1/; q; }
26380 { if $as_mkdir_p; then
26385 while test ! -d "$as_dir"; do
26386 as_dirs="$as_dir $as_dirs"
26387 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26388 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26389 X"$as_dir" : 'X\(//\)[^/]' \| \
26390 X"$as_dir" : 'X\(//\)$' \| \
26391 X"$as_dir" : 'X\(/\)' \| \
26392 . : '\(.\)' 2>/dev/null ||
26394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26396 /^X\(\/\/\)$/{ s//\1/; q; }
26397 /^X\(\/\).*/{ s//\1/; q; }
26400 test ! -n "$as_dirs" || mkdir $as_dirs
26401 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26402 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26403 { (exit 1); exit 1; }; }; }
26407 if test "$ac_dir" != .; then
26408 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26409 # A "../" for each directory in $ac_dir_suffix.
26410 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26412 ac_dir_suffix= ac_top_builddir=
26416 .) # No --srcdir option. We are building in place.
26418 if test -z "$ac_top_builddir"; then
26421 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26423 [\\/]* | ?:[\\/]* ) # Absolute path.
26424 ac_srcdir=$srcdir$ac_dir_suffix;
26425 ac_top_srcdir=$srcdir ;;
26426 *) # Relative path.
26427 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26428 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26431 # Do not use `cd foo && pwd` to compute absolute paths, because
26432 # the directories may not exist.
26434 .) ac_abs_builddir="$ac_dir";;
26437 .) ac_abs_builddir=`pwd`;;
26438 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26439 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26442 case $ac_abs_builddir in
26443 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26445 case ${ac_top_builddir}. in
26446 .) ac_abs_top_builddir=$ac_abs_builddir;;
26447 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26448 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26451 case $ac_abs_builddir in
26452 .) ac_abs_srcdir=$ac_srcdir;;
26455 .) ac_abs_srcdir=$ac_abs_builddir;;
26456 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26457 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26460 case $ac_abs_builddir in
26461 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26463 case $ac_top_srcdir in
26464 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26465 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26466 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26472 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26473 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26476 if test x"$ac_file" != x-; then
26477 { echo "$as_me:$LINENO: creating $ac_file" >&5
26478 echo "$as_me: creating $ac_file" >&6;}
26481 # Let's still pretend it is `configure' which instantiates (i.e., don't
26482 # use $as_me), people would be surprised to read:
26483 # /* config.h. Generated by config.status. */
26484 if test x"$ac_file" = x-; then
26487 configure_input="$ac_file. "
26489 configure_input=$configure_input"Generated from `echo $ac_file_in |
26490 sed 's,.*/,,'` by configure."
26492 # First look for the input files in the build tree, otherwise in the
26494 ac_file_inputs=`IFS=:
26495 for f in $ac_file_in; do
26497 -) echo $tmp/stdin ;;
26499 # Absolute (can't be DOS-style, as IFS=:)
26500 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26501 echo "$as_me: error: cannot find input file: $f" >&2;}
26502 { (exit 1); exit 1; }; }
26505 if test -f "$f"; then
26508 elif test -f "$srcdir/$f"; then
26513 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26514 echo "$as_me: error: cannot find input file: $f" >&2;}
26515 { (exit 1); exit 1; }; }
26518 done` || { (exit 1); exit 1; }
26520 cat >>$CONFIG_STATUS <<_ACEOF
26524 cat >>$CONFIG_STATUS <<\_ACEOF
26526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26527 s,@configure_input@,$configure_input,;t t
26528 s,@srcdir@,$ac_srcdir,;t t
26529 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26530 s,@top_srcdir@,$ac_top_srcdir,;t t
26531 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26532 s,@builddir@,$ac_builddir,;t t
26533 s,@abs_builddir@,$ac_abs_builddir,;t t
26534 s,@top_builddir@,$ac_top_builddir,;t t
26535 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26536 s,@INSTALL@,$ac_INSTALL,;t t
26537 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26539 if test x"$ac_file" != x-; then
26540 mv $tmp/out $ac_file
26548 cat >>$CONFIG_STATUS <<\_ACEOF
26551 # CONFIG_HEADER section.
26554 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26555 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26557 # ac_d sets the value in "#define NAME VALUE" lines.
26558 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26559 ac_dB='[ ].*$,\1#\2'
26562 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26563 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26564 ac_uB='$,\1#\2define\3'
26568 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26569 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26571 - | *:- | *:-:* ) # input from stdin
26573 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26574 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26575 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26576 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26577 * ) ac_file_in=$ac_file.in ;;
26580 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26581 echo "$as_me: creating $ac_file" >&6;}
26583 # First look for the input files in the build tree, otherwise in the
26585 ac_file_inputs=`IFS=:
26586 for f in $ac_file_in; do
26588 -) echo $tmp/stdin ;;
26590 # Absolute (can't be DOS-style, as IFS=:)
26591 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26592 echo "$as_me: error: cannot find input file: $f" >&2;}
26593 { (exit 1); exit 1; }; }
26594 # Do quote $f, to prevent DOS paths from being IFS'd.
26597 if test -f "$f"; then
26600 elif test -f "$srcdir/$f"; then
26605 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26606 echo "$as_me: error: cannot find input file: $f" >&2;}
26607 { (exit 1); exit 1; }; }
26610 done` || { (exit 1); exit 1; }
26611 # Remove the trailing spaces.
26612 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26616 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26617 # `conftest.undefs', that substitutes the proper values into
26618 # config.h.in to produce config.h. The first handles `#define'
26619 # templates, and the second `#undef' templates.
26620 # And first: Protect against being on the right side of a sed subst in
26621 # config.status. Protect against being in an unquoted here document
26622 # in config.status.
26623 rm -f conftest.defines conftest.undefs
26624 # Using a here document instead of a string reduces the quoting nightmare.
26625 # Putting comments in sed scripts is not portable.
26627 # `end' is used to avoid that the second main sed command (meant for
26628 # 0-ary CPP macros) applies to n-ary macro definitions.
26629 # See the Autoconf documentation for `clear'.
26630 cat >confdef2sed.sed <<\_ACEOF
26635 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26637 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26640 # If some macros were called several times there might be several times
26641 # the same #defines, which is useless. Nevertheless, we may not want to
26642 # sort them, since we want the *last* AC-DEFINE to be honored.
26643 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26644 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26645 rm -f confdef2sed.sed
26647 # This sed command replaces #undef with comments. This is necessary, for
26648 # example, in the case of _POSIX_SOURCE, which is predefined and required
26649 # on some systems where configure will not decide to define it.
26650 cat >>conftest.undefs <<\_ACEOF
26651 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26654 # Break up conftest.defines because some shells have a limit on the size
26655 # of here documents, and old seds have small limits too (100 cmds).
26656 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26657 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26658 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26659 echo ' :' >>$CONFIG_STATUS
26660 rm -f conftest.tail
26661 while grep . conftest.defines >/dev/null
26663 # Write a limited-size here document to $tmp/defines.sed.
26664 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26665 # Speed up: don't consider the non `#define' lines.
26666 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26667 # Work around the forget-to-reset-the-flag bug.
26668 echo 't clr' >>$CONFIG_STATUS
26669 echo ': clr' >>$CONFIG_STATUS
26670 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26672 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26674 mv $tmp/out $tmp/in
26676 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26677 rm -f conftest.defines
26678 mv conftest.tail conftest.defines
26680 rm -f conftest.defines
26681 echo ' fi # grep' >>$CONFIG_STATUS
26682 echo >>$CONFIG_STATUS
26684 # Break up conftest.undefs because some shells have a limit on the size
26685 # of here documents, and old seds have small limits too (100 cmds).
26686 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26687 rm -f conftest.tail
26688 while grep . conftest.undefs >/dev/null
26690 # Write a limited-size here document to $tmp/undefs.sed.
26691 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26692 # Speed up: don't consider the non `#undef'
26693 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26694 # Work around the forget-to-reset-the-flag bug.
26695 echo 't clr' >>$CONFIG_STATUS
26696 echo ': clr' >>$CONFIG_STATUS
26697 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26699 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26701 mv $tmp/out $tmp/in
26703 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26704 rm -f conftest.undefs
26705 mv conftest.tail conftest.undefs
26707 rm -f conftest.undefs
26709 cat >>$CONFIG_STATUS <<\_ACEOF
26710 # Let's still pretend it is `configure' which instantiates (i.e., don't
26711 # use $as_me), people would be surprised to read:
26712 # /* config.h. Generated by config.status. */
26713 if test x"$ac_file" = x-; then
26714 echo "/* Generated by configure. */" >$tmp/config.h
26716 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26718 cat $tmp/in >>$tmp/config.h
26720 if test x"$ac_file" != x-; then
26721 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26722 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26723 echo "$as_me: $ac_file is unchanged" >&6;}
26725 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26726 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26727 X"$ac_file" : 'X\(//\)[^/]' \| \
26728 X"$ac_file" : 'X\(//\)$' \| \
26729 X"$ac_file" : 'X\(/\)' \| \
26730 . : '\(.\)' 2>/dev/null ||
26732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26733 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26734 /^X\(\/\/\)$/{ s//\1/; q; }
26735 /^X\(\/\).*/{ s//\1/; q; }
26737 { if $as_mkdir_p; then
26742 while test ! -d "$as_dir"; do
26743 as_dirs="$as_dir $as_dirs"
26744 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26745 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26746 X"$as_dir" : 'X\(//\)[^/]' \| \
26747 X"$as_dir" : 'X\(//\)$' \| \
26748 X"$as_dir" : 'X\(/\)' \| \
26749 . : '\(.\)' 2>/dev/null ||
26751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26752 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26753 /^X\(\/\/\)$/{ s//\1/; q; }
26754 /^X\(\/\).*/{ s//\1/; q; }
26757 test ! -n "$as_dirs" || mkdir $as_dirs
26758 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26759 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26760 { (exit 1); exit 1; }; }; }
26763 mv $tmp/config.h $ac_file
26767 rm -f $tmp/config.h
26771 cat >>$CONFIG_STATUS <<\_ACEOF
26774 # CONFIG_LINKS section.
26777 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
26778 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26779 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26781 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
26782 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
26784 if test ! -r $srcdir/$ac_source; then
26785 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26786 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26787 { (exit 1); exit 1; }; }
26791 # Make relative symlinks.
26792 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
26793 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26794 X"$ac_dest" : 'X\(//\)[^/]' \| \
26795 X"$ac_dest" : 'X\(//\)$' \| \
26796 X"$ac_dest" : 'X\(/\)' \| \
26797 . : '\(.\)' 2>/dev/null ||
26799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26800 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26801 /^X\(\/\/\)$/{ s//\1/; q; }
26802 /^X\(\/\).*/{ s//\1/; q; }
26804 { if $as_mkdir_p; then
26805 mkdir -p "$ac_dest_dir"
26807 as_dir="$ac_dest_dir"
26809 while test ! -d "$as_dir"; do
26810 as_dirs="$as_dir $as_dirs"
26811 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26812 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26813 X"$as_dir" : 'X\(//\)[^/]' \| \
26814 X"$as_dir" : 'X\(//\)$' \| \
26815 X"$as_dir" : 'X\(/\)' \| \
26816 . : '\(.\)' 2>/dev/null ||
26818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26819 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26820 /^X\(\/\/\)$/{ s//\1/; q; }
26821 /^X\(\/\).*/{ s//\1/; q; }
26824 test ! -n "$as_dirs" || mkdir $as_dirs
26825 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
26826 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
26827 { (exit 1); exit 1; }; }; }
26831 if test "$ac_dest_dir" != .; then
26832 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
26833 # A "../" for each directory in $ac_dir_suffix.
26834 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26836 ac_dir_suffix= ac_top_builddir=
26840 .) # No --srcdir option. We are building in place.
26842 if test -z "$ac_top_builddir"; then
26845 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26847 [\\/]* | ?:[\\/]* ) # Absolute path.
26848 ac_srcdir=$srcdir$ac_dir_suffix;
26849 ac_top_srcdir=$srcdir ;;
26850 *) # Relative path.
26851 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26852 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26855 # Do not use `cd foo && pwd` to compute absolute paths, because
26856 # the directories may not exist.
26858 .) ac_abs_builddir="$ac_dest_dir";;
26860 case "$ac_dest_dir" in
26861 .) ac_abs_builddir=`pwd`;;
26862 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
26863 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
26866 case $ac_abs_builddir in
26867 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26869 case ${ac_top_builddir}. in
26870 .) ac_abs_top_builddir=$ac_abs_builddir;;
26871 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26872 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26875 case $ac_abs_builddir in
26876 .) ac_abs_srcdir=$ac_srcdir;;
26879 .) ac_abs_srcdir=$ac_abs_builddir;;
26880 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26881 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26884 case $ac_abs_builddir in
26885 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26887 case $ac_top_srcdir in
26888 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26889 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26890 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26896 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
26897 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
26900 # Try a symlink, then a hard link, then a copy.
26901 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
26902 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
26903 cp -p $srcdir/$ac_source $ac_dest ||
26904 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
26905 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
26906 { (exit 1); exit 1; }; }
26909 cat >>$CONFIG_STATUS <<\_ACEOF
26912 # CONFIG_COMMANDS section.
26914 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26915 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26916 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26917 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26918 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26919 X"$ac_dest" : 'X\(//\)[^/]' \| \
26920 X"$ac_dest" : 'X\(//\)$' \| \
26921 X"$ac_dest" : 'X\(/\)' \| \
26922 . : '\(.\)' 2>/dev/null ||
26924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26925 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26926 /^X\(\/\/\)$/{ s//\1/; q; }
26927 /^X\(\/\).*/{ s//\1/; q; }
26929 { if $as_mkdir_p; then
26934 while test ! -d "$as_dir"; do
26935 as_dirs="$as_dir $as_dirs"
26936 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26937 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26938 X"$as_dir" : 'X\(//\)[^/]' \| \
26939 X"$as_dir" : 'X\(//\)$' \| \
26940 X"$as_dir" : 'X\(/\)' \| \
26941 . : '\(.\)' 2>/dev/null ||
26943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26945 /^X\(\/\/\)$/{ s//\1/; q; }
26946 /^X\(\/\).*/{ s//\1/; q; }
26949 test ! -n "$as_dirs" || mkdir $as_dirs
26950 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26951 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26952 { (exit 1); exit 1; }; }; }
26956 if test "$ac_dir" != .; then
26957 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26958 # A "../" for each directory in $ac_dir_suffix.
26959 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26961 ac_dir_suffix= ac_top_builddir=
26965 .) # No --srcdir option. We are building in place.
26967 if test -z "$ac_top_builddir"; then
26970 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26972 [\\/]* | ?:[\\/]* ) # Absolute path.
26973 ac_srcdir=$srcdir$ac_dir_suffix;
26974 ac_top_srcdir=$srcdir ;;
26975 *) # Relative path.
26976 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26977 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26980 # Do not use `cd foo && pwd` to compute absolute paths, because
26981 # the directories may not exist.
26983 .) ac_abs_builddir="$ac_dir";;
26986 .) ac_abs_builddir=`pwd`;;
26987 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26988 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26991 case $ac_abs_builddir in
26992 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26994 case ${ac_top_builddir}. in
26995 .) ac_abs_top_builddir=$ac_abs_builddir;;
26996 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26997 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27000 case $ac_abs_builddir in
27001 .) ac_abs_srcdir=$ac_srcdir;;
27004 .) ac_abs_srcdir=$ac_abs_builddir;;
27005 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27006 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27009 case $ac_abs_builddir in
27010 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27012 case $ac_top_srcdir in
27013 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27014 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27015 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27020 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27021 echo "$as_me: executing $ac_dest commands" >&6;}
27023 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
27024 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
27025 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
27026 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
27027 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
27028 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
27029 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
27030 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
27031 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
27032 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
27033 tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;;
27034 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
27035 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
27040 cat >>$CONFIG_STATUS <<\_ACEOF
27042 { (exit 0); exit 0; }
27044 chmod +x $CONFIG_STATUS
27045 ac_clean_files=$ac_clean_files_save
27048 # configure is writing to config.log, and then calls config.status.
27049 # config.status does its own redirection, appending to config.log.
27050 # Unfortunately, on DOS this fails, as config.log is still kept open
27051 # by configure, so config.status won't be able to write to it; its
27052 # output is simply discarded. So we exec the FD to /dev/null,
27053 # effectively closing config.log, so it can be properly (re)opened and
27054 # appended to by config.status. When coming back to configure, we
27055 # need to make the FD available again.
27056 if test "$no_create" != yes; then
27058 ac_config_status_args=
27059 test "$silent" = yes &&
27060 ac_config_status_args="$ac_config_status_args --quiet"
27062 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27064 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27065 # would make configure fail if this is the last instruction.
27066 $ac_cs_success || { (exit 1); exit 1; }
27070 # CONFIG_SUBDIRS section.
27072 if test "$no_recursion" != yes; then
27074 # Remove --cache-file and --srcdir arguments so they do not pile up.
27075 ac_sub_configure_args=
27077 for ac_arg in $ac_configure_args; do
27078 if test -n "$ac_prev"; then
27083 -cache-file | --cache-file | --cache-fil | --cache-fi \
27084 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27085 ac_prev=cache_file ;;
27086 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27087 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27090 --config-cache | -C)
27092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27100 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
27104 # Always prepend --prefix to ensure using the same prefix
27105 # in subdir configurations.
27106 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
27109 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27111 # Do not complain, so a configure script can configure whichever
27112 # parts of a large source tree are present.
27113 test -d $srcdir/$ac_dir || continue
27115 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27116 echo "$as_me: configuring in $ac_dir" >&6;}
27117 { if $as_mkdir_p; then
27122 while test ! -d "$as_dir"; do
27123 as_dirs="$as_dir $as_dirs"
27124 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27125 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27126 X"$as_dir" : 'X\(//\)[^/]' \| \
27127 X"$as_dir" : 'X\(//\)$' \| \
27128 X"$as_dir" : 'X\(/\)' \| \
27129 . : '\(.\)' 2>/dev/null ||
27131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27133 /^X\(\/\/\)$/{ s//\1/; q; }
27134 /^X\(\/\).*/{ s//\1/; q; }
27137 test ! -n "$as_dirs" || mkdir $as_dirs
27138 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27139 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27140 { (exit 1); exit 1; }; }; }
27144 if test "$ac_dir" != .; then
27145 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27146 # A "../" for each directory in $ac_dir_suffix.
27147 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27149 ac_dir_suffix= ac_top_builddir=
27153 .) # No --srcdir option. We are building in place.
27155 if test -z "$ac_top_builddir"; then
27158 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27160 [\\/]* | ?:[\\/]* ) # Absolute path.
27161 ac_srcdir=$srcdir$ac_dir_suffix;
27162 ac_top_srcdir=$srcdir ;;
27163 *) # Relative path.
27164 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27165 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27168 # Do not use `cd foo && pwd` to compute absolute paths, because
27169 # the directories may not exist.
27171 .) ac_abs_builddir="$ac_dir";;
27174 .) ac_abs_builddir=`pwd`;;
27175 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27176 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27179 case $ac_abs_builddir in
27180 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27182 case ${ac_top_builddir}. in
27183 .) ac_abs_top_builddir=$ac_abs_builddir;;
27184 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27185 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27188 case $ac_abs_builddir in
27189 .) ac_abs_srcdir=$ac_srcdir;;
27192 .) ac_abs_srcdir=$ac_abs_builddir;;
27193 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27194 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27197 case $ac_abs_builddir in
27198 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27200 case $ac_top_srcdir in
27201 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27202 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27203 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27210 # Check for guested configure; otherwise get Cygnus style configure.
27211 if test -f $ac_srcdir/configure.gnu; then
27212 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
27213 elif test -f $ac_srcdir/configure; then
27214 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
27215 elif test -f $ac_srcdir/configure.in; then
27216 ac_sub_configure=$ac_configure
27218 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27219 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27223 # The recursion is here.
27224 if test -n "$ac_sub_configure"; then
27225 # Make the cache file name correct relative to the subdirectory.
27226 case $cache_file in
27227 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27228 *) # Relative path.
27229 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
27232 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27233 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27234 # The eval makes quoting arguments work.
27235 eval $ac_sub_configure $ac_sub_configure_args \
27236 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
27237 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27238 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27239 { (exit 1); exit 1; }; }
27247 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
27248 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
27249 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
27250 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
27251 echo "$as_me: WARNING: ***** appear to be working." >&2;}
27252 { echo "$as_me:$LINENO: WARNING: ***** " >&5
27253 echo "$as_me: WARNING: ***** " >&2;}
27254 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
27255 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
27256 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
27257 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
27258 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
27259 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}