2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.3].
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # We need space, tab and new line, in precisely that order.
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
360 # maybe with a smaller string...
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 # Oops. We lost completely, so just stick with echo.
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.3]'
426 PACKAGE_STRING='[LLVM] [1.3]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429 ac_subdirs_all="$ac_subdirs_all projects/${i}"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_unique_file=""Makefile.config.in""
468 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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT 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 DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CC_set=${CC+set}
927 ac_cv_env_CC_set=${CC+set}
928 ac_cv_env_CC_value=$CC
929 ac_env_CFLAGS_set=${CFLAGS+set}
930 ac_env_CFLAGS_value=$CFLAGS
931 ac_cv_env_CFLAGS_set=${CFLAGS+set}
932 ac_cv_env_CFLAGS_value=$CFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures [LLVM] [1.3] to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1013 --target=TARGET configure for building compilers for TARGET [HOST]
1017 if test -n "$ac_init_help"; then
1018 case $ac_init_help in
1019 short | recursive ) echo "Configuration of [LLVM] [1.3]:";;
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared[=PKGS]
1027 build shared libraries [default=yes]
1028 --enable-static[=PKGS]
1029 build static libraries [default=yes]
1030 --enable-fast-install[=PKGS]
1031 optimize for fast installation [default=yes]
1032 --disable-libtool-lock avoid locking (might break parallel builds)
1033 --enable-optimized Compile with optimizations enabled (default is NO)
1034 --enable-spec95=ARG Use spec95 as a benchmark (srcs in DIR)
1035 --enable-spec2000=ARG Use spec2000 as a benchmark (srcs in DIR)
1036 --enable-povray=ARG Use povray as a benchmark (srcs in DIR)
1037 --enable-precompiled_bytecode
1038 Use pre-compiled bytecode (default is NO)
1039 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
1040 --enable-jit Enable Just In Time Compiling (default is YES)
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1049 include additional configurations [automatic]
1050 --with-llvmgccdir Location of LLVM GCC front-end
1051 --with-bcrepos Location of Bytecode Repository
1052 --with-papi Location of PAPI
1054 Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1075 if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1082 if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 ac_dir_suffix= ac_top_builddir=
1091 .) # No --srcdir option. We are building in place.
1093 if test -z "$ac_top_builddir"; then
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1123 $ac_configure --help
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1134 [LLVM] configure [1.3]
1135 generated by GNU Autoconf 2.57
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1149 It was created by [LLVM] $as_me [1.3], which was
1150 generated by GNU Autoconf 2.57. Invocation command line was
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1209 ac_must_keep_next=false
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 -* ) ac_must_keep_next=true ;;
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log. We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1267 # The following way of writing the cache mishandles newlines in values,
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1290 for ac_var in $ac_subst_vars
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1297 if test -n "$ac_subst_files"; then
1304 for ac_var in $ac_subst_files
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1312 if test -s confdefs.h; then
1319 sed "/^$/d" confdefs.h | sort
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 # Predefined preprocessor variables.
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1385 if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1402 # Check that the precious variables saved in the cache have kept the same
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426 echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428 echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1445 if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 for ac_dir in autoconf $srcdir/autoconf; do
1488 if test -f $ac_dir/install-sh; then
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 elif test -f $ac_dir/install.sh; then
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 elif test -f $ac_dir/shtool; then
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1502 if test -z "$ac_aux_dir"; then
1503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505 { (exit 1); exit 1; }; }
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512 if test ${srcdir} != "."
1514 if test -f ${srcdir}/include/Config/config.h
1516 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518 { (exit 1); exit 1; }; }
1522 for i in `ls ${srcdir}/projects`
1524 if test ${i} != "CVS"
1526 if test -f ${srcdir}/projects/${i}/configure
1530 subdirs="$subdirs projects/${i}"
1536 ac_config_headers="$ac_config_headers include/Config/config.h"
1538 ac_config_commands="$ac_config_commands Makefile"
1541 ac_config_commands="$ac_config_commands Makefile.common"
1544 ac_config_commands="$ac_config_commands lib/Makefile"
1547 ac_config_commands="$ac_config_commands runtime/Makefile"
1550 ac_config_commands="$ac_config_commands test/Makefile"
1553 ac_config_commands="$ac_config_commands test/Makefile.tests"
1556 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1559 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1562 ac_config_commands="$ac_config_commands test/Programs/Makefile"
1565 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1568 ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1571 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1574 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1577 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1580 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1583 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1586 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1589 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1592 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1595 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1598 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1601 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1604 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1607 ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1610 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1613 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1616 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1619 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1622 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1625 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1628 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1631 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1634 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1637 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1640 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1643 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1646 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1649 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1652 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1655 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1658 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1661 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1664 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1667 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1670 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1673 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1676 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1679 ac_config_commands="$ac_config_commands tools/Makefile"
1682 ac_config_commands="$ac_config_commands utils/Makefile"
1685 ac_config_commands="$ac_config_commands projects/Makefile"
1689 # Find a good install program. We prefer a C program (faster),
1690 # so one script is as good as another. But avoid the broken or
1691 # incompatible versions:
1692 # SysV /etc/install, /usr/sbin/install
1693 # SunOS /usr/etc/install
1694 # IRIX /sbin/install
1696 # AmigaOS /C/install, which installs bootblocks on floppy discs
1697 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1698 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1699 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1700 # ./install, which can be erroneously created by make from ./install.sh.
1701 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1702 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1703 if test -z "$INSTALL"; then
1704 if test "${ac_cv_path_install+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 test -z "$as_dir" && as_dir=.
1712 # Account for people who put trailing slashes in PATH elements.
1714 ./ | .// | /cC/* | \
1715 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1718 # OSF1 and SCO ODT 3.0 have their own names for install.
1719 # Don't use installbsd from OSF since it installs stuff as root
1721 for ac_prog in ginstall scoinst install; do
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1724 if test $ac_prog = install &&
1725 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1726 # AIX install. It has an incompatible calling convention.
1728 elif test $ac_prog = install &&
1729 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1730 # program-specific install script used by HP pwplus--don't use.
1733 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1745 if test "${ac_cv_path_install+set}" = set; then
1746 INSTALL=$ac_cv_path_install
1748 # As a last resort, use the slow shell script. We don't cache a
1749 # path for INSTALL within a source directory, because that will
1750 # break other packages using the cache if that directory is
1751 # removed, or if the path is relative.
1752 INSTALL=$ac_install_sh
1755 echo "$as_me:$LINENO: result: $INSTALL" >&5
1756 echo "${ECHO_T}$INSTALL" >&6
1758 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1759 # It thinks the first close brace ends the variable substitution.
1760 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1762 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1764 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1767 # Make sure we can run config.sub.
1768 $ac_config_sub sun4 >/dev/null 2>&1 ||
1769 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1770 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1771 { (exit 1); exit 1; }; }
1773 echo "$as_me:$LINENO: checking build system type" >&5
1774 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1775 if test "${ac_cv_build+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 ac_cv_build_alias=$build_alias
1779 test -z "$ac_cv_build_alias" &&
1780 ac_cv_build_alias=`$ac_config_guess`
1781 test -z "$ac_cv_build_alias" &&
1782 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1783 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1784 { (exit 1); exit 1; }; }
1785 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1786 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1787 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1788 { (exit 1); exit 1; }; }
1791 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1792 echo "${ECHO_T}$ac_cv_build" >&6
1794 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1795 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1796 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1799 echo "$as_me:$LINENO: checking host system type" >&5
1800 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1801 if test "${ac_cv_host+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 ac_cv_host_alias=$host_alias
1805 test -z "$ac_cv_host_alias" &&
1806 ac_cv_host_alias=$ac_cv_build_alias
1807 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1808 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1809 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1810 { (exit 1); exit 1; }; }
1813 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1814 echo "${ECHO_T}$ac_cv_host" >&6
1816 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1817 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1818 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1821 echo "$as_me:$LINENO: checking target system type" >&5
1822 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1823 if test "${ac_cv_target+set}" = set; then
1824 echo $ECHO_N "(cached) $ECHO_C" >&6
1826 ac_cv_target_alias=$target_alias
1827 test "x$ac_cv_target_alias" = "x" &&
1828 ac_cv_target_alias=$ac_cv_host_alias
1829 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1830 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1831 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1832 { (exit 1); exit 1; }; }
1835 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1836 echo "${ECHO_T}$ac_cv_target" >&6
1837 target=$ac_cv_target
1838 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1839 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1840 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1843 # The aliases save the names the user supplied, while $host etc.
1844 # will get canonicalized.
1845 test -n "$target_alias" &&
1846 test "$program_prefix$program_suffix$program_transform_name" = \
1848 program_prefix=${target_alias}-
1854 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1856 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1863 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1865 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1887 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1896 sparc*-*) ARCH=Sparc
1899 powerpc*-*) ARCH=PowerPC
1908 ac_cpp='$CXXCPP $CPPFLAGS'
1909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1912 if test -n "$ac_tool_prefix"; then
1913 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1917 echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919 if test "${ac_cv_prog_CXX+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 if test -n "$CXX"; then
1923 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 if test -n "$CXX"; then
1943 echo "$as_me:$LINENO: result: $CXX" >&5
1944 echo "${ECHO_T}$CXX" >&6
1946 echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6
1950 test -n "$CXX" && break
1953 if test -z "$CXX"; then
1955 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1957 # Extract the first word of "$ac_prog", so it can be a program name with args.
1958 set dummy $ac_prog; ac_word=$2
1959 echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 if test -n "$ac_ct_CXX"; then
1965 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 test -z "$as_dir" && as_dir=.
1972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974 ac_cv_prog_ac_ct_CXX="$ac_prog"
1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1984 if test -n "$ac_ct_CXX"; then
1985 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1986 echo "${ECHO_T}$ac_ct_CXX" >&6
1988 echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6
1992 test -n "$ac_ct_CXX" && break
1994 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2000 # Provide some information about the compiler.
2001 echo "$as_me:$LINENO:" \
2002 "checking for C++ compiler version" >&5
2003 ac_compiler=`set X $ac_compile; echo $2`
2004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2005 (eval $ac_compiler --version </dev/null >&5) 2>&5
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }
2009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2010 (eval $ac_compiler -v </dev/null >&5) 2>&5
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }
2014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2015 (eval $ac_compiler -V </dev/null >&5) 2>&5
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); }
2020 cat >conftest.$ac_ext <<_ACEOF
2021 #line $LINENO "configure"
2024 cat confdefs.h >>conftest.$ac_ext
2025 cat >>conftest.$ac_ext <<_ACEOF
2026 /* end confdefs.h. */
2036 ac_clean_files_save=$ac_clean_files
2037 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2038 # Try to create an executable without -o first, disregard a.out.
2039 # It will help us diagnose broken compilers, and finding out an intuition
2041 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2042 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2043 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2044 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2045 (eval $ac_link_default) 2>&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; then
2049 # Find the output, starting from the most likely. This scheme is
2050 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2053 # Be careful to initialize this variable, since it used to be cached.
2054 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2056 # b.out is created by i960 compilers.
2057 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2059 test -f "$ac_file" || continue
2061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2064 # This is the source file.
2067 # We found the default executable, but exeext='' is most
2071 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2072 # FIXME: I believe we export ac_cv_exeext for Libtool,
2073 # but it would be cool to find out if it's true. Does anybody
2074 # maintain Libtool? --akim.
2082 echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2085 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2086 See \`config.log' for more details." >&5
2087 echo "$as_me: error: C++ compiler cannot create executables
2088 See \`config.log' for more details." >&2;}
2089 { (exit 77); exit 77; }; }
2092 ac_exeext=$ac_cv_exeext
2093 echo "$as_me:$LINENO: result: $ac_file" >&5
2094 echo "${ECHO_T}$ac_file" >&6
2096 # Check the compiler produces executables we can run. If not, either
2097 # the compiler is broken, or we cross compile.
2098 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2099 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2100 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2101 # If not cross compiling, check that we can run a simple program.
2102 if test "$cross_compiling" != yes; then
2103 if { ac_try='./$ac_file'
2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; }; then
2111 if test "$cross_compiling" = maybe; then
2114 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2115 If you meant to cross compile, use \`--host'.
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: cannot run C++ compiled programs.
2118 If you meant to cross compile, use \`--host'.
2119 See \`config.log' for more details." >&2;}
2120 { (exit 1); exit 1; }; }
2124 echo "$as_me:$LINENO: result: yes" >&5
2125 echo "${ECHO_T}yes" >&6
2127 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2128 ac_clean_files=$ac_clean_files_save
2129 # Check the compiler produces executables we can run. If not, either
2130 # the compiler is broken, or we cross compile.
2131 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2132 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2133 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2134 echo "${ECHO_T}$cross_compiling" >&6
2136 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2137 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2139 (eval $ac_link) 2>&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; then
2143 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2144 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2145 # work properly (i.e., refer to `conftest.exe'), while it won't with
2147 for ac_file in conftest.exe conftest conftest.*; do
2148 test -f "$ac_file" || continue
2150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2151 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2158 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2159 See \`config.log' for more details." >&5
2160 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2161 See \`config.log' for more details." >&2;}
2162 { (exit 1); exit 1; }; }
2165 rm -f conftest$ac_cv_exeext
2166 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2167 echo "${ECHO_T}$ac_cv_exeext" >&6
2169 rm -f conftest.$ac_ext
2170 EXEEXT=$ac_cv_exeext
2172 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2173 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2174 if test "${ac_cv_objext+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 cat >conftest.$ac_ext <<_ACEOF
2178 #line $LINENO "configure"
2181 cat confdefs.h >>conftest.$ac_ext
2182 cat >>conftest.$ac_ext <<_ACEOF
2183 /* end confdefs.h. */
2193 rm -f conftest.o conftest.obj
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; then
2199 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2202 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2210 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2211 See \`config.log' for more details." >&5
2212 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2213 See \`config.log' for more details." >&2;}
2214 { (exit 1); exit 1; }; }
2217 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2219 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2220 echo "${ECHO_T}$ac_cv_objext" >&6
2221 OBJEXT=$ac_cv_objext
2223 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2224 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2225 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 cat >conftest.$ac_ext <<_ACEOF
2229 #line $LINENO "configure"
2232 cat confdefs.h >>conftest.$ac_ext
2233 cat >>conftest.$ac_ext <<_ACEOF
2234 /* end confdefs.h. */
2247 rm -f conftest.$ac_objext
2248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249 (eval $ac_compile) 2>&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2261 echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2266 rm -f conftest.$ac_objext conftest.$ac_ext
2267 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2270 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2271 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2272 GXX=`test $ac_compiler_gnu = yes && echo yes`
2273 ac_test_CXXFLAGS=${CXXFLAGS+set}
2274 ac_save_CXXFLAGS=$CXXFLAGS
2276 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2277 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2278 if test "${ac_cv_prog_cxx_g+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); } &&
2303 { ac_try='test -s conftest.$ac_objext'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; }; then
2309 ac_cv_prog_cxx_g=yes
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2316 rm -f conftest.$ac_objext conftest.$ac_ext
2318 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2319 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2320 if test "$ac_test_CXXFLAGS" = set; then
2321 CXXFLAGS=$ac_save_CXXFLAGS
2322 elif test $ac_cv_prog_cxx_g = yes; then
2323 if test "$GXX" = yes; then
2329 if test "$GXX" = yes; then
2335 for ac_declaration in \
2337 '#include <stdlib.h>' \
2338 'extern "C" void std::exit (int) throw (); using std::exit;' \
2339 'extern "C" void std::exit (int); using std::exit;' \
2340 'extern "C" void exit (int) throw ();' \
2341 'extern "C" void exit (int);' \
2344 cat >conftest.$ac_ext <<_ACEOF
2345 #line $LINENO "configure"
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h. */
2361 rm -f conftest.$ac_objext
2362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363 (eval $ac_compile) 2>&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); } &&
2367 { ac_try='test -s conftest.$ac_objext'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2375 echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2380 rm -f conftest.$ac_objext conftest.$ac_ext
2381 cat >conftest.$ac_ext <<_ACEOF
2382 #line $LINENO "configure"
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -s conftest.$ac_objext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2415 rm -f conftest.$ac_objext conftest.$ac_ext
2418 if test -n "$ac_declaration"; then
2419 echo '#ifdef __cplusplus' >>confdefs.h
2420 echo $ac_declaration >>confdefs.h
2421 echo '#endif' >>confdefs.h
2425 ac_cpp='$CPP $CPPFLAGS'
2426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2431 ac_cpp='$CPP $CPPFLAGS'
2432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 if test -n "$ac_tool_prefix"; then
2438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2439 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2440 echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2442 if test "${ac_cv_prog_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 if test -n "$CC"; then
2446 ac_cv_prog_CC="$CC" # Let the user override the test.
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 if test -n "$CC"; then
2466 echo "$as_me:$LINENO: result: $CC" >&5
2467 echo "${ECHO_T}$CC" >&6
2469 echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6
2473 test -n "$CC" && break
2476 if test -z "$CC"; then
2480 # Extract the first word of "$ac_prog", so it can be a program name with args.
2481 set dummy $ac_prog; ac_word=$2
2482 echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 if test -n "$ac_ct_CC"; then
2488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_ac_ct_CC="$ac_prog"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2507 if test -n "$ac_ct_CC"; then
2508 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2509 echo "${ECHO_T}$ac_ct_CC" >&6
2511 echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6
2515 test -n "$ac_ct_CC" && break
2522 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2523 See \`config.log' for more details." >&5
2524 echo "$as_me: error: no acceptable C compiler found in \$PATH
2525 See \`config.log' for more details." >&2;}
2526 { (exit 1); exit 1; }; }
2528 # Provide some information about the compiler.
2529 echo "$as_me:$LINENO:" \
2530 "checking for C compiler version" >&5
2531 ac_compiler=`set X $ac_compile; echo $2`
2532 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2533 (eval $ac_compiler --version </dev/null >&5) 2>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }
2537 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2538 (eval $ac_compiler -v </dev/null >&5) 2>&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }
2542 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2543 (eval $ac_compiler -V </dev/null >&5) 2>&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }
2548 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2549 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2550 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 cat >conftest.$ac_ext <<_ACEOF
2554 #line $LINENO "configure"
2557 cat confdefs.h >>conftest.$ac_ext
2558 cat >>conftest.$ac_ext <<_ACEOF
2559 /* end confdefs.h. */
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try='test -s conftest.$ac_objext'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2586 echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2591 rm -f conftest.$ac_objext conftest.$ac_ext
2592 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2595 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2596 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2597 GCC=`test $ac_compiler_gnu = yes && echo yes`
2598 ac_test_CFLAGS=${CFLAGS+set}
2599 ac_save_CFLAGS=$CFLAGS
2601 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2602 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2603 if test "${ac_cv_prog_cc_g+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 cat >conftest.$ac_ext <<_ACEOF
2607 #line $LINENO "configure"
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h. */
2622 rm -f conftest.$ac_objext
2623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624 (eval $ac_compile) 2>&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -s conftest.$ac_objext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2641 rm -f conftest.$ac_objext conftest.$ac_ext
2643 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2645 if test "$ac_test_CFLAGS" = set; then
2646 CFLAGS=$ac_save_CFLAGS
2647 elif test $ac_cv_prog_cc_g = yes; then
2648 if test "$GCC" = yes; then
2654 if test "$GCC" = yes; then
2660 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2661 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2662 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 ac_cv_prog_cc_stdc=no
2667 cat >conftest.$ac_ext <<_ACEOF
2668 #line $LINENO "configure"
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h. */
2676 #include <sys/types.h>
2677 #include <sys/stat.h>
2678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2679 struct buf { int x; };
2680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2681 static char *e (p, i)
2687 static char *f (char * (*g) (char **, int), char **p, ...)
2692 s = g (p, va_arg (v,int));
2696 int test (int i, double x);
2697 struct s1 {int (*f) (int a);};
2698 struct s2 {int (*f) (double a);};
2699 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2705 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2710 # Don't try gcc -ansi; that turns off useful extensions and
2711 # breaks some systems' header files.
2712 # AIX -qlanglvl=ansi
2713 # Ultrix and OSF/1 -std1
2714 # HP-UX 10.20 and later -Ae
2715 # HP-UX older versions -Aa -D_HPUX_SOURCE
2716 # SVR4 -Xc -D__EXTENSIONS__
2717 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2719 CC="$ac_save_CC $ac_arg"
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -s conftest.$ac_objext'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2732 ac_cv_prog_cc_stdc=$ac_arg
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2739 rm -f conftest.$ac_objext
2741 rm -f conftest.$ac_ext conftest.$ac_objext
2746 case "x$ac_cv_prog_cc_stdc" in
2748 echo "$as_me:$LINENO: result: none needed" >&5
2749 echo "${ECHO_T}none needed" >&6 ;;
2751 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2752 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2753 CC="$CC $ac_cv_prog_cc_stdc" ;;
2756 # Some people use a C++ compiler to compile C. Since we use `exit',
2757 # in C++ we need to declare it. In case someone uses the same compiler
2758 # for both compiling C and C++ we need to have the C++ compiler decide
2759 # the declaration of exit, since it's the most demanding environment.
2760 cat >conftest.$ac_ext <<_ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -s conftest.$ac_objext'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2777 for ac_declaration in \
2779 '#include <stdlib.h>' \
2780 'extern "C" void std::exit (int) throw (); using std::exit;' \
2781 'extern "C" void std::exit (int); using std::exit;' \
2782 'extern "C" void exit (int) throw ();' \
2783 'extern "C" void exit (int);' \
2786 cat >conftest.$ac_ext <<_ACEOF
2787 #line $LINENO "configure"
2790 cat confdefs.h >>conftest.$ac_ext
2791 cat >>conftest.$ac_ext <<_ACEOF
2792 /* end confdefs.h. */
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2822 rm -f conftest.$ac_objext conftest.$ac_ext
2823 cat >conftest.$ac_ext <<_ACEOF
2824 #line $LINENO "configure"
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2839 rm -f conftest.$ac_objext
2840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841 (eval $ac_compile) 2>&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2845 { ac_try='test -s conftest.$ac_objext'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2853 echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2857 rm -f conftest.$ac_objext conftest.$ac_ext
2860 if test -n "$ac_declaration"; then
2861 echo '#ifdef __cplusplus' >>confdefs.h
2862 echo $ac_declaration >>confdefs.h
2863 echo '#endif' >>confdefs.h
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2871 rm -f conftest.$ac_objext conftest.$ac_ext
2873 ac_cpp='$CPP $CPPFLAGS'
2874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2884 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2885 # On Suns, sometimes $CPP names a directory.
2886 if test -n "$CPP" && test -d "$CPP"; then
2889 if test -z "$CPP"; then
2890 if test "${ac_cv_prog_CPP+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2893 # Double quotes because CPP needs to be expanded
2894 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2897 for ac_c_preproc_warn_flag in '' yes
2899 # Use a header file that comes with gcc, so configuring glibc
2900 # with a fresh cross-compiler works.
2901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2902 # <limits.h> exists even on freestanding compilers.
2903 # On the NeXT, cc -E runs the code through the compiler's parser,
2904 # not just through cpp. "Syntax error" is here to catch this case.
2905 cat >conftest.$ac_ext <<_ACEOF
2906 #line $LINENO "configure"
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2913 # include <limits.h>
2915 # include <assert.h>
2919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2922 grep -v '^ *+' conftest.er1 >conftest.err
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } >/dev/null; then
2927 if test -s conftest.err; then
2928 ac_cpp_err=$ac_c_preproc_warn_flag
2935 if test -z "$ac_cpp_err"; then
2938 echo "$as_me: failed program was:" >&5
2939 sed 's/^/| /' conftest.$ac_ext >&5
2941 # Broken: fails on valid input.
2944 rm -f conftest.err conftest.$ac_ext
2946 # OK, works on sane cases. Now check whether non-existent headers
2947 # can be detected and how.
2948 cat >conftest.$ac_ext <<_ACEOF
2949 #line $LINENO "configure"
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2955 #include <ac_nonexistent.h>
2957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2960 grep -v '^ *+' conftest.er1 >conftest.err
2962 cat conftest.err >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } >/dev/null; then
2965 if test -s conftest.err; then
2966 ac_cpp_err=$ac_c_preproc_warn_flag
2973 if test -z "$ac_cpp_err"; then
2974 # Broken: success on invalid input.
2977 echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2980 # Passes both tests.
2984 rm -f conftest.err conftest.$ac_ext
2987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2988 rm -f conftest.err conftest.$ac_ext
2989 if $ac_preproc_ok; then
3001 echo "$as_me:$LINENO: result: $CPP" >&5
3002 echo "${ECHO_T}$CPP" >&6
3004 for ac_c_preproc_warn_flag in '' yes
3006 # Use a header file that comes with gcc, so configuring glibc
3007 # with a fresh cross-compiler works.
3008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3009 # <limits.h> exists even on freestanding compilers.
3010 # On the NeXT, cc -E runs the code through the compiler's parser,
3011 # not just through cpp. "Syntax error" is here to catch this case.
3012 cat >conftest.$ac_ext <<_ACEOF
3013 #line $LINENO "configure"
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
3042 if test -z "$ac_cpp_err"; then
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3048 # Broken: fails on valid input.
3051 rm -f conftest.err conftest.$ac_ext
3053 # OK, works on sane cases. Now check whether non-existent headers
3054 # can be detected and how.
3055 cat >conftest.$ac_ext <<_ACEOF
3056 #line $LINENO "configure"
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
3080 if test -z "$ac_cpp_err"; then
3081 # Broken: success on invalid input.
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 # Passes both tests.
3091 rm -f conftest.err conftest.$ac_ext
3094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3095 rm -f conftest.err conftest.$ac_ext
3096 if $ac_preproc_ok; then
3099 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3100 See \`config.log' for more details." >&5
3101 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3102 See \`config.log' for more details." >&2;}
3103 { (exit 1); exit 1; }; }
3107 ac_cpp='$CPP $CPPFLAGS'
3108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3113 if test "$GCC" != "yes"
3115 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3116 echo "$as_me: error: gcc required but not found" >&2;}
3117 { (exit 1); exit 1; }; }
3119 if test "$GXX" != "yes"
3121 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3122 echo "$as_me: error: g++ required but not found" >&2;}
3123 { (exit 1); exit 1; }; }
3126 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3127 if test "$gccmajor" -lt "3"
3129 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3130 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3131 { (exit 1); exit 1; }; }
3134 echo "$as_me:$LINENO: checking for GNU make" >&5
3135 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3136 if test "${_cv_gnu_make_command+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 _cv_gnu_make_command='' ;
3140 for a in "$MAKE" make gmake gnumake ; do
3141 if test -z "$a" ; then continue ; fi ;
3142 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3143 _cv_gnu_make_command=$a ;
3149 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3150 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3151 if test "x$_cv_gnu_make_command" != "x" ; then
3155 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3156 echo "${ECHO_T}\"Not found\"" >&6;
3160 if test -z "$_cv_gnu_make_command"
3162 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3163 echo "$as_me: error: GNU Make required but not found" >&2;}
3164 { (exit 1); exit 1; }; }
3168 echo "$as_me:$LINENO: checking " >&5
3169 echo $ECHO_N "checking ... $ECHO_C" >&6
3170 if test "${ac_cv_has_flex+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 for ac_prog in flex lex
3175 # Extract the first word of "$ac_prog", so it can be a program name with args.
3176 set dummy $ac_prog; ac_word=$2
3177 echo "$as_me:$LINENO: checking for $ac_word" >&5
3178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3179 if test "${ac_cv_prog_LEX+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 if test -n "$LEX"; then
3183 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192 ac_cv_prog_LEX="$ac_prog"
3193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 if test -n "$LEX"; then
3203 echo "$as_me:$LINENO: result: $LEX" >&5
3204 echo "${ECHO_T}$LEX" >&6
3206 echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6
3210 test -n "$LEX" && break
3212 test -n "$LEX" || LEX=":"
3214 if test -z "$LEXLIB"
3216 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3217 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3218 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 ac_check_lib_save_LIBS=$LIBS
3223 cat >conftest.$ac_ext <<_ACEOF
3224 #line $LINENO "configure"
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3231 /* Override any gcc2 internal prototype to avoid an error. */
3235 /* We use char because int might match the return type of a gcc2
3236 builtin and then its argument prototype would still apply. */
3246 rm -f conftest.$ac_objext conftest$ac_exeext
3247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3248 (eval $ac_link) 2>&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } &&
3252 { ac_try='test -s conftest$ac_exeext'
3253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 ac_cv_lib_fl_yywrap=yes
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 ac_cv_lib_fl_yywrap=no
3265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3266 LIBS=$ac_check_lib_save_LIBS
3268 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3269 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3270 if test $ac_cv_lib_fl_yywrap = yes; then
3273 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3274 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3275 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 ac_check_lib_save_LIBS=$LIBS
3280 cat >conftest.$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3288 /* Override any gcc2 internal prototype to avoid an error. */
3292 /* We use char because int might match the return type of a gcc2
3293 builtin and then its argument prototype would still apply. */
3303 rm -f conftest.$ac_objext conftest$ac_exeext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3305 (eval $ac_link) 2>&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } &&
3309 { ac_try='test -s conftest$ac_exeext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 ac_cv_lib_l_yywrap=yes
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 ac_cv_lib_l_yywrap=no
3322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3323 LIBS=$ac_check_lib_save_LIBS
3325 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3326 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3327 if test $ac_cv_lib_l_yywrap = yes; then
3335 if test "x$LEX" != "x:"; then
3336 echo "$as_me:$LINENO: checking lex output file root" >&5
3337 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3338 if test "${ac_cv_prog_lex_root+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 # The minimal lex program is just a single line: %%. But some broken lexes
3342 # (Solaris, I think it was) want two %% lines, so accommodate them.
3343 cat >conftest.l <<_ACEOF
3347 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3348 (eval $LEX conftest.l) 2>&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }
3352 if test -f lex.yy.c; then
3353 ac_cv_prog_lex_root=lex.yy
3354 elif test -f lexyy.c; then
3355 ac_cv_prog_lex_root=lexyy
3357 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3358 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3359 { (exit 1); exit 1; }; }
3362 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3363 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3365 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3367 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3368 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3369 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 # POSIX says lex can declare yytext either as a pointer or an array; the
3373 # default is implementation-dependent. Figure out which it is, since
3374 # not all implementations provide the %pointer and %array declarations.
3375 ac_cv_prog_lex_yytext_pointer=no
3376 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3378 LIBS="$LIBS $LEXLIB"
3379 cat >conftest.$ac_ext <<_ACEOF
3380 `cat $LEX_OUTPUT_ROOT.c`
3382 rm -f conftest.$ac_objext conftest$ac_exeext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3384 (eval $ac_link) 2>&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try='test -s conftest$ac_exeext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 ac_cv_prog_lex_yytext_pointer=yes
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3402 rm -f "${LEX_OUTPUT_ROOT}.c"
3405 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3406 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3407 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3409 cat >>confdefs.h <<\_ACEOF
3410 #define YYTEXT_POINTER 1
3418 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3419 echo "${ECHO_T}$ac_cv_has_flex" >&6
3420 if test "$LEX" != "flex"; then
3421 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3422 echo "$as_me: error: flex not found but required" >&2;}
3423 { (exit 1); exit 1; }; }
3426 echo "$as_me:$LINENO: checking " >&5
3427 echo $ECHO_N "checking ... $ECHO_C" >&6
3428 if test "${ac_cv_has_bison+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 for ac_prog in 'bison -y' byacc
3433 # Extract the first word of "$ac_prog", so it can be a program name with args.
3434 set dummy $ac_prog; ac_word=$2
3435 echo "$as_me:$LINENO: checking for $ac_word" >&5
3436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3437 if test "${ac_cv_prog_YACC+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 if test -n "$YACC"; then
3441 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_YACC="$ac_prog"
3451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 YACC=$ac_cv_prog_YACC
3460 if test -n "$YACC"; then
3461 echo "$as_me:$LINENO: result: $YACC" >&5
3462 echo "${ECHO_T}$YACC" >&6
3464 echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3468 test -n "$YACC" && break
3470 test -n "$YACC" || YACC="yacc"
3474 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3475 echo "${ECHO_T}$ac_cv_has_bison" >&6
3476 if test "$YACC" != "bison -y"; then
3477 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3478 echo "$as_me: error: bison not found but required" >&2;}
3479 { (exit 1); exit 1; }; }
3485 # Check whether --enable-shared or --disable-shared was given.
3486 if test "${enable_shared+set}" = set; then
3487 enableval="$enable_shared"
3488 p=${PACKAGE-default}
3490 yes) enable_shared=yes ;;
3491 no) enable_shared=no ;;
3494 # Look at the argument we got. We use all the common list separators.
3495 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3496 for pkg in $enableval; do
3498 if test "X$pkg" = "X$p"; then
3509 # Check whether --enable-static or --disable-static was given.
3510 if test "${enable_static+set}" = set; then
3511 enableval="$enable_static"
3512 p=${PACKAGE-default}
3514 yes) enable_static=yes ;;
3515 no) enable_static=no ;;
3518 # Look at the argument we got. We use all the common list separators.
3519 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3520 for pkg in $enableval; do
3522 if test "X$pkg" = "X$p"; then
3533 # Check whether --enable-fast-install or --disable-fast-install was given.
3534 if test "${enable_fast_install+set}" = set; then
3535 enableval="$enable_fast_install"
3536 p=${PACKAGE-default}
3538 yes) enable_fast_install=yes ;;
3539 no) enable_fast_install=no ;;
3541 enable_fast_install=no
3542 # Look at the argument we got. We use all the common list separators.
3543 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3544 for pkg in $enableval; do
3546 if test "X$pkg" = "X$p"; then
3547 enable_fast_install=yes
3554 enable_fast_install=yes
3557 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3558 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3559 if test "${lt_cv_path_SED+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 # Loop through the user's path and test for sed and gsed.
3563 # Then use that list of sed's as ones to test for truncation.
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 test -z "$as_dir" && as_dir=.
3569 for lt_ac_prog in sed gsed; do
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3572 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3579 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3580 # along with /bin/sed that truncates output.
3581 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3582 test ! -f $lt_ac_sed && break
3583 cat /dev/null > conftest.in
3585 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3586 # Check for GNU sed and select it if it is found.
3587 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3588 lt_cv_path_SED=$lt_ac_sed
3592 cat conftest.in conftest.in >conftest.tmp
3593 mv conftest.tmp conftest.in
3594 cp conftest.in conftest.nl
3596 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3597 cmp -s conftest.out conftest.nl || break
3598 # 10000 chars as input seems more than enough
3599 test $lt_ac_count -gt 10 && break
3600 lt_ac_count=`expr $lt_ac_count + 1`
3601 if test $lt_ac_count -gt $lt_ac_max; then
3602 lt_ac_max=$lt_ac_count
3603 lt_cv_path_SED=$lt_ac_sed
3611 echo "$as_me:$LINENO: result: $SED" >&5
3612 echo "${ECHO_T}$SED" >&6
3614 echo "$as_me:$LINENO: checking for egrep" >&5
3615 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3616 if test "${ac_cv_prog_egrep+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3620 then ac_cv_prog_egrep='grep -E'
3621 else ac_cv_prog_egrep='egrep'
3624 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3625 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3626 EGREP=$ac_cv_prog_egrep
3630 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3631 if test "${with_gnu_ld+set}" = set; then
3632 withval="$with_gnu_ld"
3633 test "$withval" = no || with_gnu_ld=yes
3638 if test "$GCC" = yes; then
3639 # Check if gcc -print-prog-name=ld gives a path.
3640 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3641 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3644 # gcc leaves a trailing carriage return which upsets mingw
3645 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3647 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3650 # Accept absolute paths.
3652 re_direlt='/[^/][^/]*/\.\./'
3653 # Canonicalize the path of ld
3654 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3655 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3656 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3658 test -z "$LD" && LD="$ac_prog"
3661 # If it fails, then pretend we aren't using GCC.
3665 # If it is relative, then search for the first ld in PATH.
3669 elif test "$with_gnu_ld" = yes; then
3670 echo "$as_me:$LINENO: checking for GNU ld" >&5
3671 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3673 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3674 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3676 if test "${lt_cv_path_LD+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 if test -z "$LD"; then
3680 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3681 for ac_dir in $PATH; do
3683 test -z "$ac_dir" && ac_dir=.
3684 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3685 lt_cv_path_LD="$ac_dir/$ac_prog"
3686 # Check to see if the program is GNU ld. I'd rather use --version,
3687 # but apparently some GNU ld's only accept -v.
3688 # Break only if it was the GNU/non-GNU ld that we prefer.
3689 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3690 *GNU* | *'with BFD'*)
3691 test "$with_gnu_ld" != no && break
3694 test "$with_gnu_ld" != yes && break
3701 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3706 if test -n "$LD"; then
3707 echo "$as_me:$LINENO: result: $LD" >&5
3708 echo "${ECHO_T}$LD" >&6
3710 echo "$as_me:$LINENO: result: no" >&5
3711 echo "${ECHO_T}no" >&6
3713 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3714 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3715 { (exit 1); exit 1; }; }
3716 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3717 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3718 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3722 case `"$LD" -v 2>&1 </dev/null` in
3723 *GNU* | *'with BFD'*)
3724 lt_cv_prog_gnu_ld=yes
3727 lt_cv_prog_gnu_ld=no
3731 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3732 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3733 with_gnu_ld=$lt_cv_prog_gnu_ld
3736 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3737 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3738 if test "${lt_cv_ld_reload_flag+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 lt_cv_ld_reload_flag='-r'
3743 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3744 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3745 reload_flag=$lt_cv_ld_reload_flag
3746 case $reload_flag in
3748 *) reload_flag=" $reload_flag" ;;
3750 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3752 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3753 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3754 if test "${lt_cv_path_NM+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 if test -n "$NM"; then
3758 # Let the user override the test.
3761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3762 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3764 test -z "$ac_dir" && ac_dir=.
3765 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3766 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3767 # Check to see if the nm accepts a BSD-compat flag.
3768 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3769 # nm: unknown option "B" ignored
3770 # Tru64's nm complains that /dev/null is an invalid object file
3771 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3772 */dev/null* | *'Invalid file or object type'*)
3773 lt_cv_path_NM="$tmp_nm -B"
3777 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3779 lt_cv_path_NM="$tmp_nm -p"
3783 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3784 continue # so that we can try to find one that supports BSD flags
3791 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3794 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3795 echo "${ECHO_T}$lt_cv_path_NM" >&6
3798 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3799 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3801 if test "$LN_S" = "ln -s"; then
3802 echo "$as_me:$LINENO: result: yes" >&5
3803 echo "${ECHO_T}yes" >&6
3805 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3806 echo "${ECHO_T}no, using $LN_S" >&6
3809 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3810 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3811 if test "${lt_cv_deplibs_check_method+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 lt_cv_file_magic_cmd='$MAGIC_CMD'
3815 lt_cv_file_magic_test_file=
3816 lt_cv_deplibs_check_method='unknown'
3817 # Need to set the preceding variable on all platforms that support
3818 # interlibrary dependencies.
3819 # 'none' -- dependencies not supported.
3820 # `unknown' -- same as none, but documents that we really don't know.
3821 # 'pass_all' -- all dependencies passed with no checks.
3822 # 'test_compile' -- check by making test program.
3823 # 'file_magic [[regex]]' -- check by looking for files in library path
3824 # which responds to the $file_magic_cmd with a given extended regex.
3825 # If you have `file' or equivalent on your system and you're not sure
3826 # whether `pass_all' will *always* work, you probably want this one.
3830 lt_cv_deplibs_check_method=pass_all
3834 lt_cv_deplibs_check_method=pass_all
3838 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3839 lt_cv_file_magic_cmd='/usr/bin/file -L'
3840 lt_cv_file_magic_test_file=/shlib/libc.so
3843 cygwin* | mingw* | pw32*)
3844 # win32_libid is a shell function defined in ltmain.sh
3845 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3846 lt_cv_file_magic_cmd='win32_libid'
3849 darwin* | rhapsody*)
3850 # this will be overwritten by pass_all, but leave it in just in case
3851 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3852 lt_cv_file_magic_cmd='/usr/bin/file -L'
3854 rhapsody* | darwin1.[012])
3855 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3858 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3861 lt_cv_deplibs_check_method=pass_all
3865 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3868 # Not sure whether the presence of OpenBSD here was a mistake.
3869 # Let's accept both of them until this is cleared up.
3870 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3871 lt_cv_file_magic_cmd=/usr/bin/file
3872 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3876 lt_cv_deplibs_check_method=pass_all
3881 lt_cv_deplibs_check_method=pass_all
3884 hpux10.20* | hpux11*)
3885 lt_cv_file_magic_cmd=/usr/bin/file
3888 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3889 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3892 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]'
3893 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3896 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3897 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3902 irix5* | irix6* | nonstopux*)
3904 irix5* | nonstopux*)
3905 # this will be overridden with pass_all, but let us keep it just in case
3906 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3910 *-32|*"-32 ") libmagic=32-bit;;
3911 *-n32|*"-n32 ") libmagic=N32;;
3912 *-64|*"-64 ") libmagic=64-bit;;
3913 *) libmagic=never-match;;
3915 # this will be overridden with pass_all, but let us keep it just in case
3916 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3919 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3920 lt_cv_deplibs_check_method=pass_all
3923 # This must be Linux ELF.
3926 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3927 lt_cv_deplibs_check_method=pass_all ;;
3929 # glibc up to 2.1.1 does not perform some relocations on ARM
3930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3932 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3936 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3937 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3944 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3945 lt_cv_file_magic_cmd=/usr/bin/file
3946 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3950 lt_cv_deplibs_check_method=unknown
3954 lt_cv_file_magic_cmd=/usr/bin/file
3955 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3956 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3959 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3963 osf3* | osf4* | osf5*)
3964 # this will be overridden with pass_all, but let us keep it just in case
3965 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3966 lt_cv_file_magic_test_file=/shlib/libc.so
3967 lt_cv_deplibs_check_method=pass_all
3971 lt_cv_deplibs_check_method=pass_all
3975 lt_cv_deplibs_check_method=pass_all
3976 lt_cv_file_magic_test_file=/lib/libc.so
3979 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3980 case $host_vendor in
3982 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]'
3983 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3986 lt_cv_deplibs_check_method=pass_all
3989 lt_cv_file_magic_cmd='/bin/file'
3990 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3993 lt_cv_file_magic_cmd='/bin/file'
3994 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3995 lt_cv_file_magic_test_file=/lib/libc.so
3998 lt_cv_deplibs_check_method=pass_all
4003 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4004 lt_cv_deplibs_check_method=pass_all
4009 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4010 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4011 file_magic_cmd=$lt_cv_file_magic_cmd
4012 deplibs_check_method=$lt_cv_deplibs_check_method
4013 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4018 # If no C compiler was specified, use CC.
4021 # Allow CC to be a program name with arguments.
4024 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4025 if test "${enable_libtool_lock+set}" = set; then
4026 enableval="$enable_libtool_lock"
4029 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4031 # Some flags need to be propagated to the compiler or linker for good
4035 # Find out which ABI we are using.
4036 echo 'int i;' > conftest.$ac_ext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; then
4042 case `/usr/bin/file conftest.$ac_objext` in
4054 # Find out which ABI we are using.
4055 echo '#line 4055 "configure"' > conftest.$ac_ext
4056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4057 (eval $ac_compile) 2>&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; then
4061 if test "$lt_cv_prog_gnu_ld" = yes; then
4062 case `/usr/bin/file conftest.$ac_objext` in
4064 LD="${LD-ld} -melf32bsmip"
4067 LD="${LD-ld} -melf32bmipn32"
4070 LD="${LD-ld} -melf64bmip"
4074 case `/usr/bin/file conftest.$ac_objext` in
4090 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4091 # Find out which ABI we are using.
4092 echo 'int i;' > conftest.$ac_ext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; then
4098 case "`/usr/bin/file conftest.o`" in
4102 LD="${LD-ld} -m elf_i386"
4105 LD="${LD-ld} -m elf32ppclinux"
4108 LD="${LD-ld} -m elf_s390"
4111 LD="${LD-ld} -m elf32_sparc"
4118 LD="${LD-ld} -m elf_x86_64"
4120 ppc*-*linux*|powerpc*-*linux*)
4121 LD="${LD-ld} -m elf64ppc"
4124 LD="${LD-ld} -m elf64_s390"
4127 LD="${LD-ld} -m elf64_sparc"
4137 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4138 SAVE_CFLAGS="$CFLAGS"
4139 CFLAGS="$CFLAGS -belf"
4140 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4141 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4142 if test "${lt_cv_cc_needs_belf+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 ac_cpp='$CPP $CPPFLAGS'
4147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151 cat >conftest.$ac_ext <<_ACEOF
4152 #line $LINENO "configure"
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4167 rm -f conftest.$ac_objext conftest$ac_exeext
4168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4169 (eval $ac_link) 2>&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
4173 { ac_try='test -s conftest$ac_exeext'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 lt_cv_cc_needs_belf=yes
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4184 lt_cv_cc_needs_belf=no
4186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4195 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4196 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4197 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4198 CFLAGS="$SAVE_CFLAGS"
4204 need_locks="$enable_libtool_lock"
4208 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4209 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4210 if test "${ac_cv_header_stdc+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 cat >conftest.$ac_ext <<_ACEOF
4214 #line $LINENO "configure"
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h. */
4233 rm -f conftest.$ac_objext
4234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4235 (eval $ac_compile) 2>&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } &&
4239 { ac_try='test -s conftest.$ac_objext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_cv_header_stdc=yes
4247 echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4250 ac_cv_header_stdc=no
4252 rm -f conftest.$ac_objext conftest.$ac_ext
4254 if test $ac_cv_header_stdc = yes; then
4255 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4256 cat >conftest.$ac_ext <<_ACEOF
4257 #line $LINENO "configure"
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4267 $EGREP "memchr" >/dev/null 2>&1; then
4270 ac_cv_header_stdc=no
4276 if test $ac_cv_header_stdc = yes; then
4277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4278 cat >conftest.$ac_ext <<_ACEOF
4279 #line $LINENO "configure"
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h. */
4288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4289 $EGREP "free" >/dev/null 2>&1; then
4292 ac_cv_header_stdc=no
4298 if test $ac_cv_header_stdc = yes; then
4299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4300 if test "$cross_compiling" = yes; then
4303 cat >conftest.$ac_ext <<_ACEOF
4304 #line $LINENO "configure"
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4311 #if ((' ' & 0x0FF) == 0x020)
4312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4315 # define ISLOWER(c) \
4316 (('a' <= (c) && (c) <= 'i') \
4317 || ('j' <= (c) && (c) <= 'r') \
4318 || ('s' <= (c) && (c) <= 'z'))
4319 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4327 for (i = 0; i < 256; i++)
4328 if (XOR (islower (i), ISLOWER (i))
4329 || toupper (i) != TOUPPER (i))
4334 rm -f conftest$ac_exeext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4336 (eval $ac_link) 2>&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; }; then
4347 echo "$as_me: program exited with status $ac_status" >&5
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4352 ac_cv_header_stdc=no
4354 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4358 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4359 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4360 if test $ac_cv_header_stdc = yes; then
4362 cat >>confdefs.h <<\_ACEOF
4363 #define STDC_HEADERS 1
4368 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4378 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4379 inttypes.h stdint.h unistd.h
4381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4382 echo "$as_me:$LINENO: checking for $ac_header" >&5
4383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 cat >conftest.$ac_ext <<_ACEOF
4388 #line $LINENO "configure"
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4394 $ac_includes_default
4396 #include <$ac_header>
4398 rm -f conftest.$ac_objext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400 (eval $ac_compile) 2>&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } &&
4404 { ac_try='test -s conftest.$ac_objext'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4410 eval "$as_ac_Header=yes"
4412 echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5
4415 eval "$as_ac_Header=no"
4417 rm -f conftest.$ac_objext conftest.$ac_ext
4419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4422 cat >>confdefs.h <<_ACEOF
4423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4432 for ac_header in dlfcn.h
4434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4436 echo "$as_me:$LINENO: checking for $ac_header" >&5
4437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4444 # Is the header compilable?
4445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4447 cat >conftest.$ac_ext <<_ACEOF
4448 #line $LINENO "configure"
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 $ac_includes_default
4455 #include <$ac_header>
4457 rm -f conftest.$ac_objext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4459 (eval $ac_compile) 2>&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } &&
4463 { ac_try='test -s conftest.$ac_objext'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }; then
4469 ac_header_compiler=yes
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 ac_header_compiler=no
4476 rm -f conftest.$ac_objext conftest.$ac_ext
4477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4478 echo "${ECHO_T}$ac_header_compiler" >&6
4480 # Is the header present?
4481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4483 cat >conftest.$ac_ext <<_ACEOF
4484 #line $LINENO "configure"
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4490 #include <$ac_header>
4492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4495 grep -v '^ *+' conftest.er1 >conftest.err
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } >/dev/null; then
4500 if test -s conftest.err; then
4501 ac_cpp_err=$ac_c_preproc_warn_flag
4508 if test -z "$ac_cpp_err"; then
4509 ac_header_preproc=yes
4511 echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4514 ac_header_preproc=no
4516 rm -f conftest.err conftest.$ac_ext
4517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4518 echo "${ECHO_T}$ac_header_preproc" >&6
4520 # So? What about this header?
4521 case $ac_header_compiler:$ac_header_preproc in
4523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4529 ## ------------------------------------ ##
4530 ## Report this to bug-autoconf@gnu.org. ##
4531 ## ------------------------------------ ##
4534 sed "s/^/$as_me: WARNING: /" >&2
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4545 ## ------------------------------------ ##
4546 ## Report this to bug-autoconf@gnu.org. ##
4547 ## ------------------------------------ ##
4550 sed "s/^/$as_me: WARNING: /" >&2
4553 echo "$as_me:$LINENO: checking for $ac_header" >&5
4554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 eval "$as_ac_Header=$ac_header_preproc"
4560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4565 cat >>confdefs.h <<_ACEOF
4566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4574 ac_cpp='$CXXCPP $CPPFLAGS'
4575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4578 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4579 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4580 if test -z "$CXXCPP"; then
4581 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 # Double quotes because CXXCPP needs to be expanded
4585 for CXXCPP in "$CXX -E" "/lib/cpp"
4588 for ac_cxx_preproc_warn_flag in '' yes
4590 # Use a header file that comes with gcc, so configuring glibc
4591 # with a fresh cross-compiler works.
4592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4593 # <limits.h> exists even on freestanding compilers.
4594 # On the NeXT, cc -E runs the code through the compiler's parser,
4595 # not just through cpp. "Syntax error" is here to catch this case.
4596 cat >conftest.$ac_ext <<_ACEOF
4597 #line $LINENO "configure"
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h. */
4604 # include <limits.h>
4606 # include <assert.h>
4610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4613 grep -v '^ *+' conftest.er1 >conftest.err
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } >/dev/null; then
4618 if test -s conftest.err; then
4619 ac_cpp_err=$ac_cxx_preproc_warn_flag
4626 if test -z "$ac_cpp_err"; then
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 # Broken: fails on valid input.
4635 rm -f conftest.err conftest.$ac_ext
4637 # OK, works on sane cases. Now check whether non-existent headers
4638 # can be detected and how.
4639 cat >conftest.$ac_ext <<_ACEOF
4640 #line $LINENO "configure"
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 #include <ac_nonexistent.h>
4648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4651 grep -v '^ *+' conftest.er1 >conftest.err
4653 cat conftest.err >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } >/dev/null; then
4656 if test -s conftest.err; then
4657 ac_cpp_err=$ac_cxx_preproc_warn_flag
4664 if test -z "$ac_cpp_err"; then
4665 # Broken: success on invalid input.
4668 echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.$ac_ext >&5
4671 # Passes both tests.
4675 rm -f conftest.err conftest.$ac_ext
4678 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4679 rm -f conftest.err conftest.$ac_ext
4680 if $ac_preproc_ok; then
4685 ac_cv_prog_CXXCPP=$CXXCPP
4688 CXXCPP=$ac_cv_prog_CXXCPP
4690 ac_cv_prog_CXXCPP=$CXXCPP
4692 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4693 echo "${ECHO_T}$CXXCPP" >&6
4695 for ac_cxx_preproc_warn_flag in '' yes
4697 # Use a header file that comes with gcc, so configuring glibc
4698 # with a fresh cross-compiler works.
4699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4700 # <limits.h> exists even on freestanding compilers.
4701 # On the NeXT, cc -E runs the code through the compiler's parser,
4702 # not just through cpp. "Syntax error" is here to catch this case.
4703 cat >conftest.$ac_ext <<_ACEOF
4704 #line $LINENO "configure"
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4711 # include <limits.h>
4713 # include <assert.h>
4717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4720 grep -v '^ *+' conftest.er1 >conftest.err
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } >/dev/null; then
4725 if test -s conftest.err; then
4726 ac_cpp_err=$ac_cxx_preproc_warn_flag
4733 if test -z "$ac_cpp_err"; then
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4739 # Broken: fails on valid input.
4742 rm -f conftest.err conftest.$ac_ext
4744 # OK, works on sane cases. Now check whether non-existent headers
4745 # can be detected and how.
4746 cat >conftest.$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 #include <ac_nonexistent.h>
4755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4758 grep -v '^ *+' conftest.er1 >conftest.err
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } >/dev/null; then
4763 if test -s conftest.err; then
4764 ac_cpp_err=$ac_cxx_preproc_warn_flag
4771 if test -z "$ac_cpp_err"; then
4772 # Broken: success on invalid input.
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4778 # Passes both tests.
4782 rm -f conftest.err conftest.$ac_ext
4785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4786 rm -f conftest.err conftest.$ac_ext
4787 if $ac_preproc_ok; then
4790 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4791 See \`config.log' for more details." >&5
4792 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4793 See \`config.log' for more details." >&2;}
4794 { (exit 1); exit 1; }; }
4798 ac_cpp='$CXXCPP $CPPFLAGS'
4799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4805 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4806 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4808 if test -n "$ac_tool_prefix"; then
4809 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4813 echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4815 if test "${ac_cv_prog_F77+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 if test -n "$F77"; then
4819 ac_cv_prog_F77="$F77" # Let the user override the test.
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 if test -n "$F77"; then
4839 echo "$as_me:$LINENO: result: $F77" >&5
4840 echo "${ECHO_T}$F77" >&6
4842 echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6
4846 test -n "$F77" && break
4849 if test -z "$F77"; then
4851 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4853 # Extract the first word of "$ac_prog", so it can be a program name with args.
4854 set dummy $ac_prog; ac_word=$2
4855 echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4857 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test -n "$ac_ct_F77"; then
4861 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870 ac_cv_prog_ac_ct_F77="$ac_prog"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4880 if test -n "$ac_ct_F77"; then
4881 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4882 echo "${ECHO_T}$ac_ct_F77" >&6
4884 echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6
4888 test -n "$ac_ct_F77" && break
4895 # Provide some information about the compiler.
4896 echo "$as_me:4896:" \
4897 "checking for Fortran 77 compiler version" >&5
4898 ac_compiler=`set X $ac_compile; echo $2`
4899 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4900 (eval $ac_compiler --version </dev/null >&5) 2>&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }
4904 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4905 (eval $ac_compiler -v </dev/null >&5) 2>&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }
4909 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4910 (eval $ac_compiler -V </dev/null >&5) 2>&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }
4915 # If we don't use `.F' as extension, the preprocessor is not run on the
4919 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4920 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4921 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 cat >conftest.$ac_ext <<_ACEOF
4932 rm -f conftest.$ac_objext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934 (eval $ac_compile) 2>&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } &&
4938 { ac_try='test -s conftest.$ac_objext'
4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; }; then
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4951 rm -f conftest.$ac_objext conftest.$ac_ext
4952 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4955 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4956 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4958 G77=`test $ac_compiler_gnu = yes && echo yes`
4959 ac_test_FFLAGS=${FFLAGS+set}
4960 ac_save_FFLAGS=$FFLAGS
4962 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4963 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4964 if test "${ac_cv_prog_f77_g+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 cat >conftest.$ac_ext <<_ACEOF
4973 rm -f conftest.$ac_objext
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); } &&
4979 { ac_try='test -s conftest.$ac_objext'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; }; then
4985 ac_cv_prog_f77_g=yes
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4992 rm -f conftest.$ac_objext conftest.$ac_ext
4995 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4996 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4997 if test "$ac_test_FFLAGS" = set; then
4998 FFLAGS=$ac_save_FFLAGS
4999 elif test $ac_cv_prog_f77_g = yes; then
5000 if test "$G77" = yes; then
5006 if test "$G77" = yes; then
5013 ac_cpp='$CPP $CPPFLAGS'
5014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5022 # find the maximum length of command line arguments
5023 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5024 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5025 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 # On DJGPP, this test can blow up pretty badly due to problems in libc
5034 # (any single argument exceeding 2000 bytes causes a buffer overrun
5035 # during glob expansion). Even if it were fixed, the result of this
5036 # check would be larger than it should be.
5037 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5041 # Under GNU Hurd, this test is not required because there is
5042 # no limit to the length of command line arguments.
5043 # Libtool will interpret -1 as no limit whatsoever
5044 lt_cv_sys_max_cmd_len=-1;
5048 # On Win9x/ME, this test blows up -- it succeeds, but takes
5049 # about 5 minutes as the teststring grows exponentially.
5050 # Worse, since 9x/ME are not pre-emptively multitasking,
5051 # you end up with a "frozen" computer, even though with patience
5052 # the test eventually succeeds (with a max line length of 256k).
5053 # Instead, let's just punt: use the minimum linelength reported by
5054 # all of the supported platforms: 8192 (on NT/2K/XP).
5055 lt_cv_sys_max_cmd_len=8192;
5059 # If test is not a shell built-in, we'll probably end up computing a
5060 # maximum length that is only half of the actual maximum length, but
5062 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5063 = "XX$testring") >/dev/null 2>&1 &&
5064 new_result=`expr "X$testring" : ".*" 2>&1` &&
5065 lt_cv_sys_max_cmd_len=$new_result &&
5066 test $i != 17 # 1/2 MB should be enough
5069 testring=$testring$testring
5072 # Add a significant safety factor because C++ compilers can tack on massive
5073 # amounts of additional arguments before passing them to the linker.
5074 # It appears as though 1/2 is a usable value.
5075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5081 if test -n $lt_cv_sys_max_cmd_len ; then
5082 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5083 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5085 echo "$as_me:$LINENO: result: none" >&5
5086 echo "${ECHO_T}none" >&6
5092 # Check for command to grab the raw symbol name followed by C symbol from nm.
5093 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5094 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5095 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 # These are sane defaults that work on at least a few old systems.
5100 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5102 # Character class describing NM global symbol codes.
5103 symcode='[BCDEGRST]'
5105 # Regexp to match symbols that can be accessed directly from C.
5106 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5108 # Transform the above into a raw symbol and a C symbol.
5109 symxfrm='\1 \2\3 \3'
5111 # Transform an extracted symbol line into a proper C declaration
5112 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5114 # Transform an extracted symbol line into symbol name and symbol address
5115 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'"
5117 # Define system-specific variables.
5122 cygwin* | mingw* | pw32*)
5123 symcode='[ABCDGISTW]'
5125 hpux*) # Its linker distinguishes data from code symbols
5126 if test "$host_cpu" = ia64; then
5127 symcode='[ABCDEGRST]'
5129 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5130 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'"
5133 symcode='[BCDEGRST]'
5136 symcode='[BCDEGQRST]'
5146 # Handle CRLF in mingw tool chain
5150 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5154 # If we're using GNU nm, then use its standard symbol codes.
5155 case `$NM -V 2>&1` in
5156 *GNU* | *'with BFD'*)
5157 symcode='[ABCDGISTW]' ;;
5160 # Try without a prefix undercore, then with it.
5161 for ac_symprfx in "" "_"; do
5163 # Write the raw and C identifiers.
5164 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5166 # Check to see that the pipe works correctly.
5170 cat > conftest.$ac_ext <<EOF
5175 void nm_test_func(){}
5179 int main(){nm_test_var='a';nm_test_func();return(0);}
5182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5183 (eval $ac_compile) 2>&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; then
5187 # Now try to grab the symbols.
5189 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5190 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } && test -s "$nlist"; then
5194 # Try sorting and uniquifying the output.
5195 if sort "$nlist" | uniq > "$nlist"T; then
5196 mv -f "$nlist"T "$nlist"
5201 # Make sure that we snagged all the symbols we need.
5202 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5203 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5204 cat <<EOF > conftest.$ac_ext
5210 # Now generate the symbol file.
5211 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5213 cat <<EOF >> conftest.$ac_ext
5214 #if defined (__STDC__) && __STDC__
5215 # define lt_ptr_t void *
5217 # define lt_ptr_t char *
5221 /* The mapping between symbol names and symbols. */
5226 lt_preloaded_symbols[] =
5229 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5230 cat <<\EOF >> conftest.$ac_ext
5238 # Now try linking the two files.
5239 mv conftest.$ac_objext conftstm.$ac_objext
5240 lt_save_LIBS="$LIBS"
5241 lt_save_CFLAGS="$CFLAGS"
5242 LIBS="conftstm.$ac_objext"
5243 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5245 (eval $ac_link) 2>&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5251 LIBS="$lt_save_LIBS"
5252 CFLAGS="$lt_save_CFLAGS"
5254 echo "cannot find nm_test_func in $nlist" >&5
5257 echo "cannot find nm_test_var in $nlist" >&5
5260 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5263 echo "$progname: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5266 rm -f conftest* conftst*
5268 # Do not use the global_symbol_pipe unless it works.
5269 if test "$pipe_works" = yes; then
5272 lt_cv_sys_global_symbol_pipe=
5278 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5279 lt_cv_sys_global_symbol_to_cdecl=
5281 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5282 echo "$as_me:$LINENO: result: failed" >&5
5283 echo "${ECHO_T}failed" >&6
5285 echo "$as_me:$LINENO: result: ok" >&5
5286 echo "${ECHO_T}ok" >&6
5289 echo "$as_me:$LINENO: checking for objdir" >&5
5290 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5291 if test "${lt_cv_objdir+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 rm -f .libs 2>/dev/null
5295 mkdir .libs 2>/dev/null
5296 if test -d .libs; then
5299 # MS-DOS does not allow filenames that begin with a dot.
5302 rmdir .libs 2>/dev/null
5304 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5305 echo "${ECHO_T}$lt_cv_objdir" >&6
5306 objdir=$lt_cv_objdir
5314 # AIX sometimes has problems with the GCC collect2 program. For some
5315 # reason, if we set the COLLECT_NAMES environment variable, the problems
5316 # vanish in a puff of smoke.
5317 if test "X${COLLECT_NAMES+set}" != Xset; then
5319 export COLLECT_NAMES
5324 # Sed substitution that helps us do robust quoting. It backslashifies
5325 # metacharacters that are still active within double-quoted strings.
5326 Xsed='sed -e s/^X//'
5327 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5329 # Same as above, but do not quote variable references.
5330 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5332 # Sed substitution to delay expansion of an escaped shell variable in a
5333 # double_quote_subst'ed string.
5334 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5336 # Sed substitution to avoid accidental globbing in evaled expressions
5337 no_glob_subst='s/\*/\\\*/g'
5344 can_build_shared=yes
5346 # All known linkers require a `.a' archive for static linking (except M$VC,
5347 # which needs '.lib').
5349 ltmain="$ac_aux_dir/ltmain.sh"
5350 ofile="$default_ofile"
5351 with_gnu_ld="$lt_cv_prog_gnu_ld"
5353 if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5355 set dummy ${ac_tool_prefix}ar; ac_word=$2
5356 echo "$as_me:$LINENO: checking for $ac_word" >&5
5357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5358 if test "${ac_cv_prog_AR+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 if test -n "$AR"; then
5362 ac_cv_prog_AR="$AR" # Let the user override the test.
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5371 ac_cv_prog_AR="${ac_tool_prefix}ar"
5372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 if test -n "$AR"; then
5382 echo "$as_me:$LINENO: result: $AR" >&5
5383 echo "${ECHO_T}$AR" >&6
5385 echo "$as_me:$LINENO: result: no" >&5
5386 echo "${ECHO_T}no" >&6
5390 if test -z "$ac_cv_prog_AR"; then
5392 # Extract the first word of "ar", so it can be a program name with args.
5393 set dummy ar; ac_word=$2
5394 echo "$as_me:$LINENO: checking for $ac_word" >&5
5395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5396 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 if test -n "$ac_ct_AR"; then
5400 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_prog_ac_ct_AR="ar"
5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5419 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5420 if test -n "$ac_ct_AR"; then
5421 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5422 echo "${ECHO_T}$ac_ct_AR" >&6
5424 echo "$as_me:$LINENO: result: no" >&5
5425 echo "${ECHO_T}no" >&6
5433 if test -n "$ac_tool_prefix"; then
5434 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5435 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5436 echo "$as_me:$LINENO: checking for $ac_word" >&5
5437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5438 if test "${ac_cv_prog_RANLIB+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 if test -n "$RANLIB"; then
5442 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 RANLIB=$ac_cv_prog_RANLIB
5461 if test -n "$RANLIB"; then
5462 echo "$as_me:$LINENO: result: $RANLIB" >&5
5463 echo "${ECHO_T}$RANLIB" >&6
5465 echo "$as_me:$LINENO: result: no" >&5
5466 echo "${ECHO_T}no" >&6
5470 if test -z "$ac_cv_prog_RANLIB"; then
5471 ac_ct_RANLIB=$RANLIB
5472 # Extract the first word of "ranlib", so it can be a program name with args.
5473 set dummy ranlib; ac_word=$2
5474 echo "$as_me:$LINENO: checking for $ac_word" >&5
5475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5476 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 if test -n "$ac_ct_RANLIB"; then
5480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489 ac_cv_prog_ac_ct_RANLIB="ranlib"
5490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5500 if test -n "$ac_ct_RANLIB"; then
5501 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5502 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5504 echo "$as_me:$LINENO: result: no" >&5
5505 echo "${ECHO_T}no" >&6
5508 RANLIB=$ac_ct_RANLIB
5510 RANLIB="$ac_cv_prog_RANLIB"
5513 if test -n "$ac_tool_prefix"; then
5514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5515 set dummy ${ac_tool_prefix}strip; ac_word=$2
5516 echo "$as_me:$LINENO: checking for $ac_word" >&5
5517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5518 if test "${ac_cv_prog_STRIP+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 if test -n "$STRIP"; then
5522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 STRIP=$ac_cv_prog_STRIP
5541 if test -n "$STRIP"; then
5542 echo "$as_me:$LINENO: result: $STRIP" >&5
5543 echo "${ECHO_T}$STRIP" >&6
5545 echo "$as_me:$LINENO: result: no" >&5
5546 echo "${ECHO_T}no" >&6
5550 if test -z "$ac_cv_prog_STRIP"; then
5552 # Extract the first word of "strip", so it can be a program name with args.
5553 set dummy strip; ac_word=$2
5554 echo "$as_me:$LINENO: checking for $ac_word" >&5
5555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5556 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 if test -n "$ac_ct_STRIP"; then
5560 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569 ac_cv_prog_ac_ct_STRIP="strip"
5570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5579 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5580 if test -n "$ac_ct_STRIP"; then
5581 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5582 echo "${ECHO_T}$ac_ct_STRIP" >&6
5584 echo "$as_me:$LINENO: result: no" >&5
5585 echo "${ECHO_T}no" >&6
5590 STRIP="$ac_cv_prog_STRIP"
5595 old_CFLAGS="$CFLAGS"
5597 # Set sane defaults for various variables
5598 test -z "$AR" && AR=ar
5599 test -z "$AR_FLAGS" && AR_FLAGS=cru
5600 test -z "$AS" && AS=as
5601 test -z "$CC" && CC=cc
5602 test -z "$LTCC" && LTCC=$CC
5603 test -z "$DLLTOOL" && DLLTOOL=dlltool
5604 test -z "$LD" && LD=ld
5605 test -z "$LN_S" && LN_S="ln -s"
5606 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5607 test -z "$NM" && NM=nm
5608 test -z "$SED" && SED=sed
5609 test -z "$OBJDUMP" && OBJDUMP=objdump
5610 test -z "$RANLIB" && RANLIB=:
5611 test -z "$STRIP" && STRIP=:
5612 test -z "$ac_objext" && ac_objext=o
5614 # Determine commands to create old-style static archives.
5615 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5616 old_postinstall_cmds='chmod 644 $oldlib'
5617 old_postuninstall_cmds=
5619 if test -n "$RANLIB"; then
5622 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5625 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5628 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5631 # Only perform the check for file, if the check method requires it
5632 case $deplibs_check_method in
5634 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5635 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5636 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5637 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5645 lt_save_MAGIC_CMD="$MAGIC_CMD"
5646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5647 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5648 for ac_dir in $ac_dummy; do
5650 test -z "$ac_dir" && ac_dir=.
5651 if test -f $ac_dir/${ac_tool_prefix}file; then
5652 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5653 if test -n "$file_magic_test_file"; then
5654 case $deplibs_check_method in
5656 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5658 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5659 $EGREP "$file_magic_regex" > /dev/null; then
5664 *** Warning: the command libtool uses to detect shared libraries,
5665 *** $file_magic_cmd, produces output that libtool cannot recognize.
5666 *** The result is that libtool may fail to recognize shared libraries
5667 *** as such. This will affect the creation of libtool libraries that
5668 *** depend on shared libraries, but programs linked with such libtool
5669 *** libraries will work regardless of this problem. Nevertheless, you
5670 *** may want to report the problem to your system manager and/or to
5671 *** bug-libtool@gnu.org
5681 MAGIC_CMD="$lt_save_MAGIC_CMD"
5686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5687 if test -n "$MAGIC_CMD"; then
5688 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5689 echo "${ECHO_T}$MAGIC_CMD" >&6
5691 echo "$as_me:$LINENO: result: no" >&5
5692 echo "${ECHO_T}no" >&6
5695 if test -z "$lt_cv_path_MAGIC_CMD"; then
5696 if test -n "$ac_tool_prefix"; then
5697 echo "$as_me:$LINENO: checking for file" >&5
5698 echo $ECHO_N "checking for file... $ECHO_C" >&6
5699 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5707 lt_save_MAGIC_CMD="$MAGIC_CMD"
5708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5709 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5710 for ac_dir in $ac_dummy; do
5712 test -z "$ac_dir" && ac_dir=.
5713 if test -f $ac_dir/file; then
5714 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5715 if test -n "$file_magic_test_file"; then
5716 case $deplibs_check_method in
5718 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5720 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5721 $EGREP "$file_magic_regex" > /dev/null; then
5726 *** Warning: the command libtool uses to detect shared libraries,
5727 *** $file_magic_cmd, produces output that libtool cannot recognize.
5728 *** The result is that libtool may fail to recognize shared libraries
5729 *** as such. This will affect the creation of libtool libraries that
5730 *** depend on shared libraries, but programs linked with such libtool
5731 *** libraries will work regardless of this problem. Nevertheless, you
5732 *** may want to report the problem to your system manager and/or to
5733 *** bug-libtool@gnu.org
5743 MAGIC_CMD="$lt_save_MAGIC_CMD"
5748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5749 if test -n "$MAGIC_CMD"; then
5750 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5751 echo "${ECHO_T}$MAGIC_CMD" >&6
5753 echo "$as_me:$LINENO: result: no" >&5
5754 echo "${ECHO_T}no" >&6
5769 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5770 if test "${enable_libtool_lock+set}" = set; then
5771 enableval="$enable_libtool_lock"
5774 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5777 # Check whether --with-pic or --without-pic was given.
5778 if test "${with_pic+set}" = set; then
5784 test -z "$pic_mode" && pic_mode=default
5786 # Use C for the default configuration in the libtool script
5790 ac_cpp='$CPP $CPPFLAGS'
5791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5796 # Source file extension for C test sources.
5799 # Object file extension for compiled C test sources.
5803 # Code to be used in simple compile tests
5804 lt_simple_compile_test_code="int some_variable = 0;\n"
5806 # Code to be used in simple link tests
5807 lt_simple_link_test_code='int main(){return(0);}\n'
5810 # If no C compiler was specified, use CC.
5813 # Allow CC to be a program name with arguments.
5818 # Check for any special shared library compilation flags.
5821 if test "$GCC" = no; then
5824 lt_prog_cc_shlib='-belf'
5828 if test -n "$lt_prog_cc_shlib"; then
5829 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5830 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5831 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5833 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5834 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5835 lt_cv_prog_cc_can_build_shared=no
5841 # Check to make sure the static flag actually works.
5843 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5844 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5845 if test "${lt_prog_compiler_static_works+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 lt_prog_compiler_static_works=no
5849 save_LDFLAGS="$LDFLAGS"
5850 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5851 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5852 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5853 # The compiler can only warn and ignore the option if not recognized
5854 # So say no if there are warnings
5855 if test -s conftest.err; then
5856 # Append any errors to the config.log.
5857 cat conftest.err 1>&5
5859 lt_prog_compiler_static_works=yes
5863 LDFLAGS="$save_LDFLAGS"
5866 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5867 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5869 if test x"$lt_prog_compiler_static_works" = xyes; then
5872 lt_prog_compiler_static=
5878 lt_prog_compiler_no_builtin_flag=
5880 if test "$GCC" = yes; then
5881 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5883 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5884 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5885 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 lt_cv_prog_compiler_rtti_exceptions=no
5889 ac_outfile=conftest.$ac_objext
5890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5891 lt_compiler_flag="-fno-rtti -fno-exceptions"
5892 # Insert the option either (1) after the last *FLAGS variable, or
5893 # (2) before a word containing "conftest.", or (3) at the end.
5894 # Note that $ac_compile itself does not contain backslashes and begins
5895 # with a dollar sign (not a hyphen), so the echo should work correctly.
5896 # The option is referenced via a variable to avoid confusing sed.
5897 lt_compile=`echo "$ac_compile" | $SED \
5898 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5900 -e 's:$: $lt_compiler_flag:'`
5901 (eval echo "\"\$as_me:5901: $lt_compile\"" >&5)
5902 (eval "$lt_compile" 2>conftest.err)
5904 cat conftest.err >&5
5905 echo "$as_me:5905: \$? = $ac_status" >&5
5906 if (exit $ac_status) && test -s "$ac_outfile"; then
5907 # The compiler can only warn and ignore the option if not recognized
5908 # So say no if there are warnings
5909 if test ! -s conftest.err; then
5910 lt_cv_prog_compiler_rtti_exceptions=yes
5916 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5917 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5919 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5920 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5927 lt_prog_compiler_wl=
5928 lt_prog_compiler_pic=
5929 lt_prog_compiler_static=
5931 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5932 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5934 if test "$GCC" = yes; then
5935 lt_prog_compiler_wl='-Wl,'
5936 lt_prog_compiler_static='-static'
5940 # All AIX code is PIC.
5941 if test "$host_cpu" = ia64; then
5942 # AIX 5 now supports IA64 processor
5943 lt_prog_compiler_static='-Bstatic'
5948 # FIXME: we need at least 68020 code to build shared libraries, but
5949 # adding the `-m68020' flag to GCC prevents building anything better,
5951 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5954 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5955 # PIC is the default for these OSes.
5958 mingw* | pw32* | os2*)
5959 # This hack is so that the source file can tell whether it is being
5960 # built for inclusion in a dll (and should export symbols for example).
5961 lt_prog_compiler_pic='-DDLL_EXPORT'
5964 darwin* | rhapsody*)
5965 # PIC is the default on this platform
5966 # Common symbols not allowed in MH_DYLIB files
5967 lt_prog_compiler_pic='-fno-common'
5971 # Just because we use GCC doesn't mean we suddenly get shared libraries
5972 # on systems that don't support them.
5973 lt_prog_compiler_can_build_shared=no
5978 if test -d /usr/nec; then
5979 lt_prog_compiler_pic=-Kconform_pic
5984 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5991 lt_prog_compiler_pic='-fPIC'
5997 lt_prog_compiler_pic='-fPIC'
6001 # PORTME Check for flag to pass linker flags through the system compiler.
6004 lt_prog_compiler_wl='-Wl,'
6005 if test "$host_cpu" = ia64; then
6006 # AIX 5 now supports IA64 processor
6007 lt_prog_compiler_static='-Bstatic'
6009 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6013 mingw* | pw32* | os2*)
6014 # This hack is so that the source file can tell whether it is being
6015 # built for inclusion in a dll (and should export symbols for example).
6016 lt_prog_compiler_pic='-DDLL_EXPORT'
6019 hpux9* | hpux10* | hpux11*)
6020 lt_prog_compiler_wl='-Wl,'
6021 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6028 lt_prog_compiler_pic='+Z'
6031 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6032 lt_prog_compiler_static='${wl}-a ${wl}archive'
6035 irix5* | irix6* | nonstopux*)
6036 lt_prog_compiler_wl='-Wl,'
6037 # PIC (with -KPIC) is the default.
6038 lt_prog_compiler_static='-non_shared'
6042 lt_prog_compiler_pic='-KPIC'
6043 lt_prog_compiler_static='-Bstatic'
6049 lt_prog_compiler_wl='-Wl,'
6050 lt_prog_compiler_pic='-KPIC'
6051 lt_prog_compiler_static='-static'
6054 lt_prog_compiler_wl='-Wl,'
6055 # All Alpha code is PIC.
6056 lt_prog_compiler_static='-non_shared'
6061 osf3* | osf4* | osf5*)
6062 lt_prog_compiler_wl='-Wl,'
6063 # All OSF/1 code is PIC.
6064 lt_prog_compiler_static='-non_shared'
6068 lt_prog_compiler_pic='-Kpic'
6069 lt_prog_compiler_static='-dn'
6073 lt_prog_compiler_wl='-Wl,'
6074 lt_prog_compiler_pic='-KPIC'
6075 lt_prog_compiler_static='-Bstatic'
6079 lt_prog_compiler_wl='-Qoption ld '
6080 lt_prog_compiler_pic='-PIC'
6081 lt_prog_compiler_static='-Bstatic'
6084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6085 lt_prog_compiler_wl='-Wl,'
6086 lt_prog_compiler_pic='-KPIC'
6087 lt_prog_compiler_static='-Bstatic'
6091 if test -d /usr/nec ;then
6092 lt_prog_compiler_pic='-Kconform_pic'
6093 lt_prog_compiler_static='-Bstatic'
6098 lt_prog_compiler_pic='-pic'
6099 lt_prog_compiler_static='-Bstatic'
6103 lt_prog_compiler_can_build_shared=no
6108 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6109 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6112 # Check to make sure the PIC flag actually works.
6114 if test -n "$lt_prog_compiler_pic"; then
6115 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6116 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6117 if test "${lt_prog_compiler_pic_works+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 lt_prog_compiler_pic_works=no
6121 ac_outfile=conftest.$ac_objext
6122 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6123 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6124 # Insert the option either (1) after the last *FLAGS variable, or
6125 # (2) before a word containing "conftest.", or (3) at the end.
6126 # Note that $ac_compile itself does not contain backslashes and begins
6127 # with a dollar sign (not a hyphen), so the echo should work correctly.
6128 # The option is referenced via a variable to avoid confusing sed.
6129 lt_compile=`echo "$ac_compile" | $SED \
6130 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6132 -e 's:$: $lt_compiler_flag:'`
6133 (eval echo "\"\$as_me:6133: $lt_compile\"" >&5)
6134 (eval "$lt_compile" 2>conftest.err)
6136 cat conftest.err >&5
6137 echo "$as_me:6137: \$? = $ac_status" >&5
6138 if (exit $ac_status) && test -s "$ac_outfile"; then
6139 # The compiler can only warn and ignore the option if not recognized
6140 # So say no if there are warnings
6141 if test ! -s conftest.err; then
6142 lt_prog_compiler_pic_works=yes
6148 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6149 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6151 if test x"$lt_prog_compiler_pic_works" = xyes; then
6152 case $lt_prog_compiler_pic in
6154 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6157 lt_prog_compiler_pic=
6158 lt_prog_compiler_can_build_shared=no
6163 # For platforms which do not support PIC, -DPIC is meaningless:
6165 lt_prog_compiler_pic=
6168 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6172 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6173 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6174 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 lt_cv_prog_compiler_c_o=no
6178 $rm -r conftest 2>/dev/null
6182 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6184 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6185 # that will create temporary files in the current directory regardless of
6186 # the output directory. Thus, making CWD read-only will cause this test
6187 # to fail, enabling locking or at least warning the user not to do parallel
6191 lt_compiler_flag="-o out/conftest2.$ac_objext"
6192 # Insert the option either (1) after the last *FLAGS variable, or
6193 # (2) before a word containing "conftest.", or (3) at the end.
6194 # Note that $ac_compile itself does not contain backslashes and begins
6195 # with a dollar sign (not a hyphen), so the echo should work correctly.
6196 lt_compile=`echo "$ac_compile" | $SED \
6197 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6199 -e 's:$: $lt_compiler_flag:'`
6200 (eval echo "\"\$as_me:6200: $lt_compile\"" >&5)
6201 (eval "$lt_compile" 2>out/conftest.err)
6203 cat out/conftest.err >&5
6204 echo "$as_me:6204: \$? = $ac_status" >&5
6205 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6207 # The compiler can only warn and ignore the option if not recognized
6208 # So say no if there are warnings
6209 if test ! -s out/conftest.err; then
6210 lt_cv_prog_compiler_c_o=yes
6221 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6222 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6225 hard_links="nottested"
6226 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6227 # do not overwrite the value of need_locks provided by the user
6228 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6229 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6232 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6234 ln conftest.a conftest.b 2>&5 || hard_links=no
6235 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6236 echo "$as_me:$LINENO: result: $hard_links" >&5
6237 echo "${ECHO_T}$hard_links" >&6
6238 if test "$hard_links" = no; then
6239 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6240 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6247 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6248 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6251 allow_undefined_flag=
6252 enable_shared_with_static_runtimes=no
6254 archive_expsym_cmds=
6255 old_archive_From_new_cmds=
6256 old_archive_from_expsyms_cmds=
6257 export_dynamic_flag_spec=
6258 whole_archive_flag_spec=
6259 thread_safe_flag_spec=
6260 hardcode_libdir_flag_spec=
6261 hardcode_libdir_flag_spec_ld=
6262 hardcode_libdir_separator=
6265 hardcode_shlibpath_var=unsupported
6266 link_all_deplibs=unknown
6267 hardcode_automatic=no
6270 always_export_symbols=no
6271 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6272 # include_expsyms should be a list of space-separated symbols to be *always*
6273 # included in the symbol list
6275 # exclude_expsyms can be an extended regexp of symbols to exclude
6276 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6277 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6278 # as well as any symbol that contains `d'.
6279 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6280 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6281 # platforms (ab)use it in PIC code, but their linkers get confused if
6282 # the symbol is explicitly referenced. Since portable code cannot
6283 # rely on this symbol name, it's probably fine to never include it in
6284 # preloaded symbol tables.
6285 extract_expsyms_cmds=
6288 cygwin* | mingw* | pw32*)
6289 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6290 # When not using gcc, we currently assume that we are using
6291 # Microsoft Visual C++.
6292 if test "$GCC" != yes; then
6302 if test "$with_gnu_ld" = yes; then
6303 # If archive_cmds runs LD, not CC, wlarc should be empty
6306 # See if GNU ld supports shared libraries.
6308 aix3* | aix4* | aix5*)
6309 # On AIX/PPC, the GNU linker is very broken
6310 if test "$host_cpu" != ia64; then
6314 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6315 *** to be unable to reliably create shared libraries on AIX.
6316 *** Therefore, libtool is disabling shared libraries support. If you
6317 *** really care for shared libraries, you may want to modify your PATH
6318 *** so that a non-GNU linker is found, and then restart.
6325 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)'
6326 hardcode_libdir_flag_spec='-L$libdir'
6327 hardcode_minus_L=yes
6329 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6330 # that the semantics of dynamic libraries on AmigaOS, at least up
6331 # to version 4, is to share data among multiple programs linked
6332 # with the same dynamic library. Since this doesn't match the
6333 # behavior of shared libraries on other platforms, we can't use
6339 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6340 allow_undefined_flag=unsupported
6341 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6342 # support --undefined. This deserves some investigation. FIXME
6343 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6349 cygwin* | mingw* | pw32*)
6350 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6351 # as there is no search path for DLLs.
6352 hardcode_libdir_flag_spec='-L$libdir'
6353 allow_undefined_flag=unsupported
6354 always_export_symbols=no
6355 enable_shared_with_static_runtimes=yes
6356 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6358 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6360 # If the export-symbols file already is a .def file (1st line
6361 # is EXPORTS), use it as is; otherwise, prepend...
6362 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6363 cp $export_symbols $output_objdir/$soname.def;
6365 echo EXPORTS > $output_objdir/$soname.def;
6366 cat $export_symbols >> $output_objdir/$soname.def;
6368 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6376 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6380 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6385 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6389 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6390 *** create shared libraries on Solaris systems. Therefore, libtool
6391 *** is disabling shared libraries support. We urge you to upgrade GNU
6392 *** binutils to release 2.9.1 or newer. Another option is to modify
6393 *** your PATH or compiler configuration so that the native linker is
6394 *** used, and then restart.
6397 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6406 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6409 hardcode_shlibpath_var=no
6413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6415 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6422 if test "$ld_shlibs" = yes; then
6423 runpath_var=LD_RUN_PATH
6424 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6425 export_dynamic_flag_spec='${wl}--export-dynamic'
6426 # ancient GNU ld didn't support --whole-archive et. al.
6427 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6428 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6430 whole_archive_flag_spec=
6434 # PORTME fill in a description of your system's linker (not GNU ld)
6437 allow_undefined_flag=unsupported
6438 always_export_symbols=yes
6439 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'
6440 # Note: this linker hardcodes the directories in LIBPATH if there
6441 # are no directories specified by -L.
6442 hardcode_minus_L=yes
6443 if test "$GCC" = yes && test -z "$link_static_flag"; then
6444 # Neither direct hardcoding nor static linking is supported with a
6446 hardcode_direct=unsupported
6451 if test "$host_cpu" = ia64; then
6452 # On IA64, the linker does run time linking by default, so we don't
6453 # have to do anything special.
6454 aix_use_runtimelinking=no
6455 exp_sym_flag='-Bexport'
6458 # If we're using GNU nm, then we don't want the "-C" option.
6459 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6460 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6461 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'
6463 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'
6465 aix_use_runtimelinking=no
6467 # Test if we are trying to use run time linking or normal
6468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6469 # need to do runtime linking.
6470 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6471 for ld_flag in $LDFLAGS; do
6472 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6473 aix_use_runtimelinking=yes
6479 exp_sym_flag='-bexport'
6480 no_entry_flag='-bnoentry'
6483 # When large executables or shared objects are built, AIX ld can
6484 # have problems creating the table of contents. If linking a library
6485 # or program results in "error TOC overflow" add -mminimal-toc to
6486 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6487 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6491 hardcode_libdir_separator=':'
6492 link_all_deplibs=yes
6494 if test "$GCC" = yes; then
6495 case $host_os in aix4.012|aix4.012.*)
6496 # We only want to do this on AIX 4.2 and lower, the check
6497 # below for broken collect2 doesn't work under 4.3+
6498 collect2name=`${CC} -print-prog-name=collect2`
6499 if test -f "$collect2name" && \
6500 strings "$collect2name" | grep resolve_lib_name >/dev/null
6502 # We have reworked collect2
6505 # We have old collect2
6506 hardcode_direct=unsupported
6507 # It fails to find uninstalled libraries when the uninstalled
6508 # path is not listed in the libpath. Setting hardcode_minus_L
6509 # to unsupported forces relinking
6510 hardcode_minus_L=yes
6511 hardcode_libdir_flag_spec='-L$libdir'
6512 hardcode_libdir_separator=
6515 shared_flag='-shared'
6518 if test "$host_cpu" = ia64; then
6519 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6520 # chokes on -Wl,-G. The following line is correct:
6523 if test "$aix_use_runtimelinking" = yes; then
6524 shared_flag='${wl}-G'
6526 shared_flag='${wl}-bM:SRE'
6531 # It seems that -bexpall does not export symbols beginning with
6532 # underscore (_), so it is better to generate a list of symbols to export.
6533 always_export_symbols=yes
6534 if test "$aix_use_runtimelinking" = yes; then
6535 # Warning - without using the other runtime loading flags (-brtl),
6536 # -berok will link without error, but may produce a broken library.
6537 allow_undefined_flag='-berok'
6538 # Determine the default libpath from the value encoded in an empty executable.
6539 cat >conftest.$ac_ext <<_ACEOF
6540 #line $LINENO "configure"
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6555 rm -f conftest.$ac_objext conftest$ac_exeext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6557 (eval $ac_link) 2>&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
6561 { ac_try='test -s conftest$ac_exeext'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
6568 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6570 # Check for a 64-bit object if we didn't find anything.
6571 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; }
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6579 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6581 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6582 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"
6584 if test "$host_cpu" = ia64; then
6585 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6586 allow_undefined_flag="-z nodefs"
6587 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"
6589 # Determine the default libpath from the value encoded in an empty executable.
6590 cat >conftest.$ac_ext <<_ACEOF
6591 #line $LINENO "configure"
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h. */
6606 rm -f conftest.$ac_objext conftest$ac_exeext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6608 (eval $ac_link) 2>&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } &&
6612 { ac_try='test -s conftest$ac_exeext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6619 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6621 # Check for a 64-bit object if we didn't find anything.
6622 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; }
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6632 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6633 # Warning - without using the other run time loading flags,
6634 # -berok will link without error, but may produce a broken library.
6635 no_undefined_flag=' ${wl}-bernotok'
6636 allow_undefined_flag=' ${wl}-berok'
6637 # -bexpall does not export symbols beginning with underscore (_)
6638 always_export_symbols=yes
6639 # Exported symbols can be pulled into shared objects from archives
6640 whole_archive_flag_spec=' '
6641 archive_cmds_need_lc=yes
6642 # This is similar to how AIX traditionally builds it's shared libraries.
6643 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'
6649 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)'
6650 hardcode_libdir_flag_spec='-L$libdir'
6651 hardcode_minus_L=yes
6652 # see comment about different semantics on the GNU ld section
6657 export_dynamic_flag_spec=-rdynamic
6660 cygwin* | mingw* | pw32*)
6661 # When not using gcc, we currently assume that we are using
6662 # Microsoft Visual C++.
6663 # hardcode_libdir_flag_spec is actually meaningless, as there is
6664 # no search path for DLLs.
6665 hardcode_libdir_flag_spec=' '
6666 allow_undefined_flag=unsupported
6667 # Tell ltmain to make .lib files, not .a files.
6669 # Tell ltmain to make .dll files, not .so files.
6671 # FIXME: Setting linknames here is a bad hack.
6672 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6673 # The linker will automatically build a .lib file if we build a DLL.
6674 old_archive_From_new_cmds='true'
6675 # FIXME: Should let the user specify the lib program.
6676 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6677 fix_srcfile_path='`cygpath -w "$srcfile"`'
6678 enable_shared_with_static_runtimes=yes
6681 darwin* | rhapsody*)
6682 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6683 archive_cmds_need_lc=no
6685 rhapsody* | darwin1.[012])
6686 allow_undefined_flag='-undefined suppress'
6689 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6692 # FIXME: Relying on posixy $() will cause problems for
6693 # cross-compilation, but unfortunately the echo tests do not
6694 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6695 # `"' quotes if we put them in here... so don't!
6696 lt_int_apple_cc_single_mod=no
6697 output_verbose_link_cmd='echo'
6698 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6699 lt_int_apple_cc_single_mod=yes
6701 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6702 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6704 archive_cmds='$CC -r ${wl}-bind_at_load -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'
6706 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6707 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6708 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6709 archive_expsym_cmds='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}'
6711 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
6713 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6715 hardcode_automatic=yes
6716 hardcode_shlibpath_var=unsupported
6717 whole_archive_flag_spec='-all_load $convenience'
6718 link_all_deplibs=yes
6723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6724 hardcode_libdir_flag_spec='-L$libdir'
6725 hardcode_shlibpath_var=no
6732 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6733 # support. Future versions do this automatically, but an explicit c++rt0.o
6734 # does not break anything, and helps significantly (at the cost of a little
6737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6738 hardcode_libdir_flag_spec='-R$libdir'
6740 hardcode_shlibpath_var=no
6743 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6745 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6747 hardcode_minus_L=yes
6748 hardcode_shlibpath_var=no
6751 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6753 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6754 hardcode_libdir_flag_spec='-R$libdir'
6756 hardcode_shlibpath_var=no
6760 if test "$GCC" = yes; then
6761 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'
6763 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'
6765 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6766 hardcode_libdir_separator=:
6769 # hardcode_minus_L: Not really in the search PATH,
6770 # but as the default location of the library.
6771 hardcode_minus_L=yes
6772 export_dynamic_flag_spec='${wl}-E'
6776 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6779 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6782 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6788 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6791 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6795 if test "$with_gnu_ld" = no; then
6798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6799 hardcode_libdir_flag_spec_ld='+b $libdir'
6800 hardcode_libdir_separator=:
6802 hardcode_shlibpath_var=no
6805 hardcode_libdir_flag_spec='-L$libdir'
6807 hardcode_shlibpath_var=no
6809 # hardcode_minus_L: Not really in the search PATH,
6810 # but as the default location of the library.
6811 hardcode_minus_L=yes
6814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6815 hardcode_libdir_separator=:
6817 export_dynamic_flag_spec='${wl}-E'
6819 # hardcode_minus_L: Not really in the search PATH,
6820 # but as the default location of the library.
6821 hardcode_minus_L=yes
6827 irix5* | irix6* | nonstopux*)
6828 if test "$GCC" = yes; then
6829 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'
6831 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'
6832 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6835 hardcode_libdir_separator=:
6836 link_all_deplibs=yes
6840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6843 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6845 hardcode_libdir_flag_spec='-R$libdir'
6847 hardcode_shlibpath_var=no
6851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6854 hardcode_libdir_separator=:
6855 hardcode_shlibpath_var=no
6860 hardcode_shlibpath_var=no
6861 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6862 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6863 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6864 export_dynamic_flag_spec='${wl}-E'
6867 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6869 hardcode_libdir_flag_spec='-R$libdir'
6872 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6873 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6880 hardcode_libdir_flag_spec='-L$libdir'
6881 hardcode_minus_L=yes
6882 allow_undefined_flag=unsupported
6883 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'
6884 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6888 if test "$GCC" = yes; then
6889 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6890 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'
6892 allow_undefined_flag=' -expect_unresolved \*'
6893 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'
6895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6896 hardcode_libdir_separator=:
6899 osf4* | osf5*) # as osf3* with the addition of -msym flag
6900 if test "$GCC" = yes; then
6901 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6902 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'
6903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6905 allow_undefined_flag=' -expect_unresolved \*'
6906 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'
6907 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6908 $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'
6910 # Both c and cxx compiler support -rpath directly
6911 hardcode_libdir_flag_spec='-rpath $libdir'
6913 hardcode_libdir_separator=:
6917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6918 hardcode_shlibpath_var=no
6919 export_dynamic_flag_spec='${wl}-Bexport'
6920 runpath_var=LD_RUN_PATH
6921 hardcode_runpath_var=yes
6925 no_undefined_flag=' -z text'
6926 if test "$GCC" = yes; then
6927 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6928 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6929 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6931 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6932 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6933 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6935 hardcode_libdir_flag_spec='-R$libdir'
6936 hardcode_shlibpath_var=no
6938 solaris2.[0-5] | solaris2.[0-5].*) ;;
6939 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6940 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6942 link_all_deplibs=yes
6946 if test "x$host_vendor" = xsequent; then
6947 # Use $CC to link under sequent, because it throws in some extra .o
6948 # files that make .init and .fini sections work.
6949 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6951 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6953 hardcode_libdir_flag_spec='-L$libdir'
6955 hardcode_minus_L=yes
6956 hardcode_shlibpath_var=no
6960 case $host_vendor in
6962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6963 hardcode_direct=yes # is this really true???
6966 ## LD is ld it makes a PLAMLIB
6967 ## CC just makes a GrossModule.
6968 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6969 reload_cmds='$CC -r -o $output$reload_objs'
6973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6974 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6977 runpath_var='LD_RUN_PATH'
6978 hardcode_shlibpath_var=no
6982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6983 hardcode_shlibpath_var=no
6984 export_dynamic_flag_spec='-Bexport'
6988 if test -d /usr/nec; then
6989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6990 hardcode_shlibpath_var=no
6991 runpath_var=LD_RUN_PATH
6992 hardcode_runpath_var=yes
6998 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7001 hardcode_shlibpath_var=no
7002 hardcode_runpath_var=yes
7003 runpath_var=LD_RUN_PATH
7006 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7007 no_undefined_flag='${wl}-z ${wl}text'
7008 if test "$GCC" = yes; then
7009 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7011 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7013 runpath_var='LD_RUN_PATH'
7014 hardcode_shlibpath_var=no
7018 no_undefined_flag=' -z text'
7019 # $CC -shared without GNU ld will not create a library from C++
7020 # object files and a static libstdc++, better avoid it by now
7021 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7022 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7023 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7024 hardcode_libdir_flag_spec=
7025 hardcode_shlibpath_var=no
7026 runpath_var='LD_RUN_PATH'
7030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7031 hardcode_libdir_flag_spec='-L$libdir'
7032 hardcode_shlibpath_var=no
7041 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7042 echo "${ECHO_T}$ld_shlibs" >&6
7043 test "$ld_shlibs" = no && can_build_shared=no
7045 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7046 if test "$GCC" = yes; then
7047 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7051 # Do we need to explicitly link libc?
7053 case "x$archive_cmds_need_lc" in
7055 # Assume -lc should be added
7056 archive_cmds_need_lc=yes
7058 if test "$enable_shared" = yes && test "$GCC" = yes; then
7059 case $archive_cmds in
7061 # FIXME: we may have to deal with multi-command sequences.
7064 # Test whether the compiler implicitly links with -lc since on some
7065 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7066 # to ld, don't add -lc before -lgcc.
7067 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7068 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7070 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7073 (eval $ac_compile) 2>&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } 2>conftest.err; then
7079 libobjs=conftest.$ac_objext
7081 wl=$lt_prog_compiler_wl
7087 lt_save_allow_undefined_flag=$allow_undefined_flag
7088 allow_undefined_flag=
7089 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7090 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }
7095 archive_cmds_need_lc=no
7097 archive_cmds_need_lc=yes
7099 allow_undefined_flag=$lt_save_allow_undefined_flag
7101 cat conftest.err 1>&5
7104 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7105 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7112 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7113 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7115 if test -n "$hardcode_libdir_flag_spec" || \
7116 test -n "$runpath_var " || \
7117 test "X$hardcode_automatic"="Xyes" ; then
7119 # We can hardcode non-existant directories.
7120 if test "$hardcode_direct" != no &&
7121 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7122 # have to relink, otherwise we might link with an installed library
7123 # when we should be linking with a yet-to-be-installed one
7124 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7125 test "$hardcode_minus_L" != no; then
7126 # Linking always hardcodes the temporary library directory.
7127 hardcode_action=relink
7129 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7130 hardcode_action=immediate
7133 # We cannot hardcode anything, or else we can only hardcode existing
7135 hardcode_action=unsupported
7137 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7138 echo "${ECHO_T}$hardcode_action" >&6
7140 if test "$hardcode_action" = relink; then
7141 # Fast installation is not supported
7142 enable_fast_install=no
7143 elif test "$shlibpath_overrides_runpath" = yes ||
7144 test "$enable_shared" = no; then
7145 # Fast installation is not necessary
7146 enable_fast_install=needless
7151 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7152 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7153 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7154 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7155 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7156 echo "$as_me:$LINENO: result: yes" >&5
7157 echo "${ECHO_T}yes" >&6
7159 # FIXME - insert some real tests, host_os isn't really good enough
7162 if test -n "$STRIP" ; then
7163 striplib="$STRIP -x"
7164 echo "$as_me:$LINENO: result: yes" >&5
7165 echo "${ECHO_T}yes" >&6
7167 echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6
7172 echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6
7178 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7179 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7181 libname_spec='lib$name'
7189 shlibpath_overrides_runpath=unknown
7191 dynamic_linker="$host_os ld.so"
7192 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7193 if test "$GCC" = yes; then
7194 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7195 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7196 # if the path contains ";" then we assume it to be the separator
7197 # otherwise default to the standard path separator (i.e. ":") - it is
7198 # assumed that no part of a normal pathname contains ";" but that should
7199 # okay in the real world where ";" in dirpaths is itself problematic.
7200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7202 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7205 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7207 need_lib_prefix=unknown
7208 hardcode_into_libs=no
7210 # when you set need_version to no, make sure it does not cause -set_version
7211 # flags to be left without arguments
7212 need_version=unknown
7217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7218 shlibpath_var=LIBPATH
7220 # AIX 3 has no versioning support, so we append a major version to the name.
7221 soname_spec='${libname}${release}${shared_ext}$major'
7228 hardcode_into_libs=yes
7229 if test "$host_cpu" = ia64; then
7230 # AIX 5 supports IA64
7231 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7232 shlibpath_var=LD_LIBRARY_PATH
7234 # With GCC up to 2.95.x, collect2 would create an import file
7235 # for dependence libraries. The import file would start with
7236 # the line `#! .'. This would cause the generated library to
7237 # depend on `.', always an invalid library. This was fixed in
7238 # development snapshots of GCC prior to 3.0.
7240 aix4 | aix4.[01] | aix4.[01].*)
7241 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7243 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7250 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7251 # soname into executable. Probably we can add versioning support to
7252 # collect2, so additional links can be useful in future.
7253 if test "$aix_use_runtimelinking" = yes; then
7254 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7255 # instead of lib<name>.a to let people know that these are not
7256 # typical AIX shared libraries.
7257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7259 # We preserve .a as extension for shared libraries through AIX4.2
7260 # and later when we are not doing run time linking.
7261 library_names_spec='${libname}${release}.a $libname.a'
7262 soname_spec='${libname}${release}${shared_ext}$major'
7264 shlibpath_var=LIBPATH
7269 library_names_spec='$libname.ixlibrary $libname.a'
7270 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7271 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'
7275 library_names_spec='${libname}${shared_ext}'
7276 dynamic_linker="$host_os ld.so"
7277 shlibpath_var=LIBRARY_PATH
7283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7284 soname_spec='${libname}${release}${shared_ext}$major'
7285 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7286 shlibpath_var=LD_LIBRARY_PATH
7287 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7288 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7289 # the default ld.so.conf also contains /usr/contrib/lib and
7290 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7291 # libtool to hard-code these into programs
7294 cygwin* | mingw* | pw32*)
7295 version_type=windows
7300 case $GCC,$host_os in
7301 yes,cygwin* | yes,mingw* | yes,pw32*)
7302 library_names_spec='$libname.dll.a'
7303 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7304 postinstall_cmds='base_file=`basename \${file}`~
7305 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7306 dldir=$destdir/`dirname \$dlpath`~
7307 test -d \$dldir || mkdir -p \$dldir~
7308 $install_prog $dir/$dlname \$dldir/$dlname'
7309 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7310 dlpath=$dir/\$dldll~
7312 shlibpath_overrides_runpath=yes
7316 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7317 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7318 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7321 # MinGW DLLs use traditional 'lib' prefix
7322 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7323 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7324 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7325 # It is most probably a Windows format PATH printed by
7326 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7327 # path with ; separators, and with drive letters. We can handle the
7328 # drive letters (cygwin fileutils understands them), so leave them,
7329 # especially as we might pass files found there to a mingw objdump,
7330 # which wouldn't understand a cygwinified path. Ahh.
7331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7333 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7337 # pw32 DLLs use 'pw' prefix rather than 'lib'
7338 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7344 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7347 dynamic_linker='Win32 ld.exe'
7348 # FIXME: first we should search . and the directory the executable is in
7352 darwin* | rhapsody*)
7353 dynamic_linker="$host_os dyld"
7357 # FIXME: Relying on posixy $() will cause problems for
7358 # cross-compilation, but unfortunately the echo tests do not
7359 # yet detect zsh echo's removal of \ escapes.
7360 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7361 soname_spec='${libname}${release}${major}$shared_ext'
7362 shlibpath_overrides_runpath=yes
7363 shlibpath_var=DYLD_LIBRARY_PATH
7364 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7365 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7366 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7367 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"`
7369 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7377 soname_spec='${libname}${release}${shared_ext}$major'
7378 shlibpath_var=LD_LIBRARY_PATH
7386 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7387 version_type=freebsd-$objformat
7388 case $version_type in
7390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7395 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7399 shlibpath_var=LD_LIBRARY_PATH
7402 shlibpath_overrides_runpath=yes
7404 freebsd3.01* | freebsdelf3.01*)
7405 shlibpath_overrides_runpath=yes
7406 hardcode_into_libs=yes
7409 shlibpath_overrides_runpath=no
7410 hardcode_into_libs=yes
7419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7420 soname_spec='${libname}${release}${shared_ext}$major'
7421 shlibpath_var=LD_LIBRARY_PATH
7422 hardcode_into_libs=yes
7425 hpux9* | hpux10* | hpux11*)
7426 # Give a soname corresponding to the major version so that dld.sl refuses to
7427 # link against other versions.
7434 hardcode_into_libs=yes
7435 dynamic_linker="$host_os dld.so"
7436 shlibpath_var=LD_LIBRARY_PATH
7437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7439 soname_spec='${libname}${release}${shared_ext}$major'
7440 if test "X$HPUX_IA64_MODE" = X32; then
7441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7449 hardcode_into_libs=yes
7450 dynamic_linker="$host_os dld.sl"
7451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7454 soname_spec='${libname}${release}${shared_ext}$major'
7455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7460 dynamic_linker="$host_os dld.sl"
7461 shlibpath_var=SHLIB_PATH
7462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7464 soname_spec='${libname}${release}${shared_ext}$major'
7467 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7468 postinstall_cmds='chmod 555 $lib'
7471 irix5* | irix6* | nonstopux*)
7473 nonstopux*) version_type=nonstopux ;;
7475 if test "$lt_cv_prog_gnu_ld" = yes; then
7483 soname_spec='${libname}${release}${shared_ext}$major'
7484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7486 irix5* | nonstopux*)
7490 case $LD in # libtool.m4 will add one of these switches to LD
7491 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7492 libsuff= shlibsuff= libmagic=32-bit;;
7493 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7494 libsuff=32 shlibsuff=N32 libmagic=N32;;
7495 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7496 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7497 *) libsuff= shlibsuff= libmagic=never-match;;
7501 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7502 shlibpath_overrides_runpath=no
7503 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7504 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7505 hardcode_into_libs=yes
7508 # No shared lib support for Linux oldld, aout, or coff.
7509 linux*oldld* | linux*aout* | linux*coff*)
7513 # This must be Linux ELF.
7518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7519 soname_spec='${libname}${release}${shared_ext}$major'
7520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7521 shlibpath_var=LD_LIBRARY_PATH
7522 shlibpath_overrides_runpath=no
7523 # This implies no fast_install, which is unacceptable.
7524 # Some rework will be needed to allow for fast_install
7525 # before this can be enabled.
7526 hardcode_into_libs=yes
7528 # We used to test for /lib/ld.so.1 and disable shared libraries on
7529 # powerpc, because MkLinux only supported shared libraries with the
7530 # GNU dynamic linker. Since this was broken with cross compilers,
7531 # most powerpc-linux boxes support dynamic linking these days and
7532 # people can always --disable-shared, the test was removed, and we
7533 # assume the GNU/Linux dynamic linker is in use.
7534 dynamic_linker='GNU/Linux ld.so'
7541 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7544 dynamic_linker='NetBSD (a.out) ld.so'
7546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7547 soname_spec='${libname}${release}${shared_ext}$major'
7548 dynamic_linker='NetBSD ld.elf_so'
7550 shlibpath_var=LD_LIBRARY_PATH
7551 shlibpath_overrides_runpath=yes
7552 hardcode_into_libs=yes
7557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7558 shlibpath_var=LD_LIBRARY_PATH
7559 shlibpath_overrides_runpath=yes
7566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7567 soname_spec='${libname}${release}${shared_ext}$major'
7568 shlibpath_var=LD_LIBRARY_PATH
7569 shlibpath_overrides_runpath=yes
7576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7578 shlibpath_var=LD_LIBRARY_PATH
7579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7581 openbsd2.[89] | openbsd2.[89].*)
7582 shlibpath_overrides_runpath=no
7585 shlibpath_overrides_runpath=yes
7589 shlibpath_overrides_runpath=yes
7594 libname_spec='$name'
7597 library_names_spec='$libname${shared_ext} $libname.a'
7598 dynamic_linker='OS/2 ld.exe'
7599 shlibpath_var=LIBPATH
7602 osf3* | osf4* | osf5*)
7606 soname_spec='${libname}${release}${shared_ext}$major'
7607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7608 shlibpath_var=LD_LIBRARY_PATH
7609 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7610 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7615 soname_spec='${libname}${release}${shared_ext}$major'
7616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7617 shlibpath_var=LD_LIBRARY_PATH
7624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7625 soname_spec='${libname}${release}${shared_ext}$major'
7626 shlibpath_var=LD_LIBRARY_PATH
7627 shlibpath_overrides_runpath=yes
7628 hardcode_into_libs=yes
7629 # ldd complains unless libraries are executable
7630 postinstall_cmds='chmod +x $lib'
7635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7636 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7637 shlibpath_var=LD_LIBRARY_PATH
7638 shlibpath_overrides_runpath=yes
7639 if test "$with_gnu_ld" = yes; then
7645 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7648 soname_spec='${libname}${release}${shared_ext}$major'
7649 shlibpath_var=LD_LIBRARY_PATH
7650 case $host_vendor in
7652 shlibpath_overrides_runpath=no
7654 export_dynamic_flag_spec='${wl}-Blargedynsym'
7655 runpath_var=LD_RUN_PATH
7663 shlibpath_overrides_runpath=no
7664 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7670 if test -d /usr/nec ;then
7672 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7673 soname_spec='$libname${shared_ext}.$major'
7674 shlibpath_var=LD_LIBRARY_PATH
7680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7681 soname_spec='${libname}${release}${shared_ext}$major'
7682 shlibpath_var=LD_LIBRARY_PATH
7689 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7690 echo "${ECHO_T}$dynamic_linker" >&6
7691 test "$dynamic_linker" = no && can_build_shared=no
7693 if test "x$enable_dlopen" != xyes; then
7694 enable_dlopen=unknown
7695 enable_dlopen_self=unknown
7696 enable_dlopen_self_static=unknown
7703 lt_cv_dlopen="load_add_on"
7705 lt_cv_dlopen_self=yes
7709 lt_cv_dlopen="LoadLibrary"
7714 lt_cv_dlopen="dlopen"
7719 # if libdl is installed we need to link against it
7720 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7721 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7722 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 ac_check_lib_save_LIBS=$LIBS
7727 cat >conftest.$ac_ext <<_ACEOF
7728 #line $LINENO "configure"
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7735 /* Override any gcc2 internal prototype to avoid an error. */
7739 /* We use char because int might match the return type of a gcc2
7740 builtin and then its argument prototype would still apply. */
7750 rm -f conftest.$ac_objext conftest$ac_exeext
7751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7752 (eval $ac_link) 2>&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
7756 { ac_try='test -s conftest$ac_exeext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 ac_cv_lib_dl_dlopen=yes
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.$ac_ext >&5
7767 ac_cv_lib_dl_dlopen=no
7769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7770 LIBS=$ac_check_lib_save_LIBS
7772 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7773 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7774 if test $ac_cv_lib_dl_dlopen = yes; then
7775 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7780 lt_cv_dlopen_self=yes
7787 echo "$as_me:$LINENO: checking for shl_load" >&5
7788 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7789 if test "${ac_cv_func_shl_load+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 cat >conftest.$ac_ext <<_ACEOF
7793 #line $LINENO "configure"
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7799 /* System header to define __stub macros and hopefully few prototypes,
7800 which can conflict with char shl_load (); below.
7801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7802 <limits.h> exists even on freestanding compilers. */
7804 # include <limits.h>
7806 # include <assert.h>
7808 /* Override any gcc2 internal prototype to avoid an error. */
7813 /* We use char because int might match the return type of a gcc2
7814 builtin and then its argument prototype would still apply. */
7816 /* The GNU C library defines this for functions which it implements
7817 to always fail with ENOSYS. Some functions are actually named
7818 something starting with __ and the normal name is an alias. */
7819 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7822 char (*f) () = shl_load;
7831 return f != shl_load;
7836 rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838 (eval $ac_link) 2>&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try='test -s conftest$ac_exeext'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_func_shl_load=yes
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 ac_cv_func_shl_load=no
7855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7857 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7858 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7859 if test $ac_cv_func_shl_load = yes; then
7860 lt_cv_dlopen="shl_load"
7862 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7863 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7864 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
7867 ac_check_lib_save_LIBS=$LIBS
7869 cat >conftest.$ac_ext <<_ACEOF
7870 #line $LINENO "configure"
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7877 /* Override any gcc2 internal prototype to avoid an error. */
7881 /* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7892 rm -f conftest.$ac_objext conftest$ac_exeext
7893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894 (eval $ac_link) 2>&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try='test -s conftest$ac_exeext'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; }; then
7904 ac_cv_lib_dld_shl_load=yes
7906 echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7909 ac_cv_lib_dld_shl_load=no
7911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7912 LIBS=$ac_check_lib_save_LIBS
7914 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7915 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7916 if test $ac_cv_lib_dld_shl_load = yes; then
7917 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7919 echo "$as_me:$LINENO: checking for dlopen" >&5
7920 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7921 if test "${ac_cv_func_dlopen+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 cat >conftest.$ac_ext <<_ACEOF
7925 #line $LINENO "configure"
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7931 /* System header to define __stub macros and hopefully few prototypes,
7932 which can conflict with char dlopen (); below.
7933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7934 <limits.h> exists even on freestanding compilers. */
7936 # include <limits.h>
7938 # include <assert.h>
7940 /* Override any gcc2 internal prototype to avoid an error. */
7945 /* We use char because int might match the return type of a gcc2
7946 builtin and then its argument prototype would still apply. */
7948 /* The GNU C library defines this for functions which it implements
7949 to always fail with ENOSYS. Some functions are actually named
7950 something starting with __ and the normal name is an alias. */
7951 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7954 char (*f) () = dlopen;
7968 rm -f conftest.$ac_objext conftest$ac_exeext
7969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7970 (eval $ac_link) 2>&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } &&
7974 { ac_try='test -s conftest$ac_exeext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_func_dlopen=yes
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7985 ac_cv_func_dlopen=no
7987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7989 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7990 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7991 if test $ac_cv_func_dlopen = yes; then
7992 lt_cv_dlopen="dlopen"
7994 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7995 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7996 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 ac_check_lib_save_LIBS=$LIBS
8001 cat >conftest.$ac_ext <<_ACEOF
8002 #line $LINENO "configure"
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8009 /* Override any gcc2 internal prototype to avoid an error. */
8013 /* We use char because int might match the return type of a gcc2
8014 builtin and then its argument prototype would still apply. */
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026 (eval $ac_link) 2>&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } &&
8030 { ac_try='test -s conftest$ac_exeext'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8036 ac_cv_lib_dl_dlopen=yes
8038 echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8041 ac_cv_lib_dl_dlopen=no
8043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8044 LIBS=$ac_check_lib_save_LIBS
8046 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8047 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8048 if test $ac_cv_lib_dl_dlopen = yes; then
8049 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8051 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8052 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8053 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 ac_check_lib_save_LIBS=$LIBS
8058 cat >conftest.$ac_ext <<_ACEOF
8059 #line $LINENO "configure"
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8066 /* Override any gcc2 internal prototype to avoid an error. */
8070 /* We use char because int might match the return type of a gcc2
8071 builtin and then its argument prototype would still apply. */
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8083 (eval $ac_link) 2>&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -s conftest$ac_exeext'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8093 ac_cv_lib_svld_dlopen=yes
8095 echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8098 ac_cv_lib_svld_dlopen=no
8100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8101 LIBS=$ac_check_lib_save_LIBS
8103 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8104 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8105 if test $ac_cv_lib_svld_dlopen = yes; then
8106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8108 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8109 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8110 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 ac_check_lib_save_LIBS=$LIBS
8115 cat >conftest.$ac_ext <<_ACEOF
8116 #line $LINENO "configure"
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8123 /* Override any gcc2 internal prototype to avoid an error. */
8127 /* We use char because int might match the return type of a gcc2
8128 builtin and then its argument prototype would still apply. */
8138 rm -f conftest.$ac_objext conftest$ac_exeext
8139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8140 (eval $ac_link) 2>&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try='test -s conftest$ac_exeext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_cv_lib_dld_dld_link=yes
8152 echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8155 ac_cv_lib_dld_dld_link=no
8157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8158 LIBS=$ac_check_lib_save_LIBS
8160 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8161 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8162 if test $ac_cv_lib_dld_dld_link = yes; then
8163 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8184 if test "x$lt_cv_dlopen" != xno; then
8190 case $lt_cv_dlopen in
8192 save_CPPFLAGS="$CPPFLAGS"
8193 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8195 save_LDFLAGS="$LDFLAGS"
8196 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8199 LIBS="$lt_cv_dlopen_libs $LIBS"
8201 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8202 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8203 if test "${lt_cv_dlopen_self+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 if test "$cross_compiling" = yes; then :
8207 lt_cv_dlopen_self=cross
8209 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8210 lt_status=$lt_dlunknown
8211 cat > conftest.$ac_ext <<EOF
8212 #line 8212 "configure"
8213 #include "confdefs.h"
8222 # define LT_DLGLOBAL RTLD_GLOBAL
8225 # define LT_DLGLOBAL DL_GLOBAL
8227 # define LT_DLGLOBAL 0
8231 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8232 find out it does not work in some platform. */
8233 #ifndef LT_DLLAZY_OR_NOW
8235 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8238 # define LT_DLLAZY_OR_NOW DL_LAZY
8241 # define LT_DLLAZY_OR_NOW RTLD_NOW
8244 # define LT_DLLAZY_OR_NOW DL_NOW
8246 # define LT_DLLAZY_OR_NOW 0
8254 extern "C" void exit (int);
8257 void fnord() { int i=42;}
8260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8261 int status = $lt_dlunknown;
8265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8266 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8267 /* dlclose (self); */
8273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8274 (eval $ac_link) 2>&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8278 (./conftest; exit; ) 2>/dev/null
8281 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8282 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8283 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8286 # compilation failed
8287 lt_cv_dlopen_self=no
8294 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8295 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8297 if test "x$lt_cv_dlopen_self" = xyes; then
8298 LDFLAGS="$LDFLAGS $link_static_flag"
8299 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8300 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8301 if test "${lt_cv_dlopen_self_static+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 if test "$cross_compiling" = yes; then :
8305 lt_cv_dlopen_self_static=cross
8307 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8308 lt_status=$lt_dlunknown
8309 cat > conftest.$ac_ext <<EOF
8310 #line 8310 "configure"
8311 #include "confdefs.h"
8320 # define LT_DLGLOBAL RTLD_GLOBAL
8323 # define LT_DLGLOBAL DL_GLOBAL
8325 # define LT_DLGLOBAL 0
8329 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8330 find out it does not work in some platform. */
8331 #ifndef LT_DLLAZY_OR_NOW
8333 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8336 # define LT_DLLAZY_OR_NOW DL_LAZY
8339 # define LT_DLLAZY_OR_NOW RTLD_NOW
8342 # define LT_DLLAZY_OR_NOW DL_NOW
8344 # define LT_DLLAZY_OR_NOW 0
8352 extern "C" void exit (int);
8355 void fnord() { int i=42;}
8358 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8359 int status = $lt_dlunknown;
8363 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8364 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8365 /* dlclose (self); */
8371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372 (eval $ac_link) 2>&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8376 (./conftest; exit; ) 2>/dev/null
8379 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8380 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8381 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8384 # compilation failed
8385 lt_cv_dlopen_self_static=no
8392 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8393 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8396 CPPFLAGS="$save_CPPFLAGS"
8397 LDFLAGS="$save_LDFLAGS"
8402 case $lt_cv_dlopen_self in
8403 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8404 *) enable_dlopen_self=unknown ;;
8407 case $lt_cv_dlopen_self_static in
8408 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8409 *) enable_dlopen_self_static=unknown ;;
8414 # Report which librarie types wil actually be built
8415 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8416 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8417 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8418 echo "${ECHO_T}$can_build_shared" >&6
8420 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8421 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8422 test "$can_build_shared" = "no" && enable_shared=no
8424 # On AIX, shared libraries and static libraries use the same namespace, and
8425 # are all built from PIC.
8428 test "$enable_shared" = yes && enable_static=no
8429 if test -n "$RANLIB"; then
8430 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8431 postinstall_cmds='$RANLIB $lib'
8436 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8437 test "$enable_shared" = yes && enable_static=no
8440 darwin* | rhapsody*)
8441 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8442 archive_cmds_need_lc=no
8444 rhapsody* | darwin1.[012])
8445 allow_undefined_flag='-undefined suppress'
8448 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8451 # FIXME: Relying on posixy $() will cause problems for
8452 # cross-compilation, but unfortunately the echo tests do not
8453 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8454 # `"' quotes if we put them in here... so don't!
8455 output_verbose_link_cmd='echo'
8456 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8457 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8458 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8459 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}'
8460 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8462 hardcode_automatic=yes
8463 hardcode_shlibpath_var=unsupported
8464 whole_archive_flag_spec='-all_load $convenience'
8465 link_all_deplibs=yes
8469 echo "$as_me:$LINENO: result: $enable_shared" >&5
8470 echo "${ECHO_T}$enable_shared" >&6
8472 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8473 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8474 # Make sure either enable_shared or enable_static is yes.
8475 test "$enable_shared" = yes || enable_static=yes
8476 echo "$as_me:$LINENO: result: $enable_static" >&5
8477 echo "${ECHO_T}$enable_static" >&6
8479 # The else clause should only fire when bootstrapping the
8480 # libtool distribution, otherwise you forgot to ship ltmain.sh
8481 # with your package, and you will get complaints that there are
8482 # no rules to generate ltmain.sh.
8483 if test -f "$ltmain"; then
8484 # See if we are running on zsh, and set the options which allow our commands through
8485 # without removal of \ escapes.
8486 if test -n "${ZSH_VERSION+set}" ; then
8487 setopt NO_GLOB_SUBST
8489 # Now quote all the things that may contain metacharacters while being
8490 # careful not to overquote the AC_SUBSTed values. We take copies of the
8491 # variables and quote the copies for generation of the libtool script.
8492 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8493 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8494 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8495 deplibs_check_method reload_flag reload_cmds need_locks \
8496 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8497 lt_cv_sys_global_symbol_to_c_name_address \
8498 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8499 old_postinstall_cmds old_postuninstall_cmds \
8503 lt_prog_compiler_wl \
8504 lt_prog_compiler_pic \
8505 lt_prog_compiler_static \
8506 lt_prog_compiler_no_builtin_flag \
8507 export_dynamic_flag_spec \
8508 thread_safe_flag_spec \
8509 whole_archive_flag_spec \
8510 enable_shared_with_static_runtimes \
8512 old_archive_from_new_cmds \
8517 compiler_lib_search_path \
8519 archive_expsym_cmds \
8521 postuninstall_cmds \
8522 old_archive_from_expsyms_cmds \
8523 allow_undefined_flag \
8525 export_symbols_cmds \
8526 hardcode_libdir_flag_spec \
8527 hardcode_libdir_flag_spec_ld \
8528 hardcode_libdir_separator \
8529 hardcode_automatic \
8531 module_expsym_cmds \
8532 lt_cv_prog_compiler_c_o \
8537 old_archive_cmds | \
8538 old_archive_from_new_cmds | \
8540 archive_expsym_cmds | \
8542 module_expsym_cmds | \
8543 old_archive_from_expsyms_cmds | \
8544 export_symbols_cmds | \
8545 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8546 postinstall_cmds | postuninstall_cmds | \
8547 old_postinstall_cmds | old_postuninstall_cmds | \
8548 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8549 # Double-quote double-evaled strings.
8550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8553 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8559 *'\$0 --fallback-echo"')
8560 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8565 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8567 { echo "$as_me:$LINENO: creating $ofile" >&5
8568 echo "$as_me: creating $ofile" >&6;}
8570 cat <<__EOF__ >> "$cfgfile"
8573 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8574 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8575 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8577 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8578 # Free Software Foundation, Inc.
8580 # This file is part of GNU Libtool:
8581 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8583 # This program is free software; you can redistribute it and/or modify
8584 # it under the terms of the GNU General Public License as published by
8585 # the Free Software Foundation; either version 2 of the License, or
8586 # (at your option) any later version.
8588 # This program is distributed in the hope that it will be useful, but
8589 # WITHOUT ANY WARRANTY; without even the implied warranty of
8590 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8591 # General Public License for more details.
8593 # You should have received a copy of the GNU General Public License
8594 # along with this program; if not, write to the Free Software
8595 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8597 # As a special exception to the GNU General Public License, if you
8598 # distribute this file as part of a program that contains a
8599 # configuration script generated by Autoconf, you may include it under
8600 # the same distribution terms that you use for the rest of that program.
8602 # A sed program that does not truncate output.
8605 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8606 Xsed="$SED -e s/^X//"
8608 # The HP-UX ksh and POSIX shell print the target directory to stdout
8610 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8612 # The names of the tagged configurations supported by this script.
8615 # ### BEGIN LIBTOOL CONFIG
8617 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8619 # Shell to use when invoking shell scripts.
8622 # Whether or not to build shared libraries.
8623 build_libtool_libs=$enable_shared
8625 # Whether or not to build static libraries.
8626 build_old_libs=$enable_static
8628 # Whether or not to add -lc for building shared libraries.
8629 build_libtool_need_lc=$archive_cmds_need_lc
8631 # Whether or not to disallow shared libs when runtime libs are static
8632 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8634 # Whether or not to optimize for fast installation.
8635 fast_install=$enable_fast_install
8638 host_alias=$host_alias
8641 # An echo program that does not interpret backslashes.
8646 AR_FLAGS=$lt_AR_FLAGS
8651 # A language-specific compiler.
8654 # Is the compiler the GNU C compiler?
8660 # The linker used to build libraries.
8663 # Whether we need hard or soft links.
8666 # A BSD-compatible nm program.
8669 # A symbol stripping program
8672 # Used to examine libraries when file_magic_cmd begins "file"
8673 MAGIC_CMD=$MAGIC_CMD
8675 # Used on cygwin: DLL creation program.
8678 # Used on cygwin: object dumper.
8681 # Used on cygwin: assembler.
8684 # The name of the directory that contains temporary libtool files.
8687 # How to create reloadable object files.
8688 reload_flag=$lt_reload_flag
8689 reload_cmds=$lt_reload_cmds
8691 # How to pass a linker flag through the compiler.
8692 wl=$lt_lt_prog_compiler_wl
8694 # Object file suffix (normally "o").
8697 # Old archive suffix (normally "a").
8700 # Shared library suffix (normally ".so").
8703 # Executable file suffix (normally "").
8706 # Additional compiler flags for building library objects.
8707 pic_flag=$lt_lt_prog_compiler_pic
8710 # What is the maximum length of a command?
8711 max_cmd_len=$lt_cv_sys_max_cmd_len
8713 # Does compiler simultaneously support -c and -o options?
8714 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8716 # Must we lock files when doing compilation ?
8717 need_locks=$lt_need_locks
8719 # Do we need the lib prefix for modules?
8720 need_lib_prefix=$need_lib_prefix
8722 # Do we need a version for libraries?
8723 need_version=$need_version
8725 # Whether dlopen is supported.
8726 dlopen_support=$enable_dlopen
8728 # Whether dlopen of programs is supported.
8729 dlopen_self=$enable_dlopen_self
8731 # Whether dlopen of statically linked programs is supported.
8732 dlopen_self_static=$enable_dlopen_self_static
8734 # Compiler flag to prevent dynamic linking.
8735 link_static_flag=$lt_lt_prog_compiler_static
8737 # Compiler flag to turn off builtin functions.
8738 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8740 # Compiler flag to allow reflexive dlopens.
8741 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8743 # Compiler flag to generate shared objects directly from archives.
8744 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8746 # Compiler flag to generate thread-safe objects.
8747 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8749 # Library versioning type.
8750 version_type=$version_type
8752 # Format of library name prefix.
8753 libname_spec=$lt_libname_spec
8755 # List of archive names. First name is the real one, the rest are links.
8756 # The last name is the one that the linker finds with -lNAME.
8757 library_names_spec=$lt_library_names_spec
8759 # The coded name of the library, if different from the real name.
8760 soname_spec=$lt_soname_spec
8762 # Commands used to build and install an old-style archive.
8764 old_archive_cmds=$lt_old_archive_cmds
8765 old_postinstall_cmds=$lt_old_postinstall_cmds
8766 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8768 # Create an old-style archive from a shared archive.
8769 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8771 # Create a temporary old-style archive to link instead of a shared archive.
8772 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8774 # Commands used to build and install a shared archive.
8775 archive_cmds=$lt_archive_cmds
8776 archive_expsym_cmds=$lt_archive_expsym_cmds
8777 postinstall_cmds=$lt_postinstall_cmds
8778 postuninstall_cmds=$lt_postuninstall_cmds
8780 # Commands used to build a loadable module (assumed same as above if empty)
8781 module_cmds=$lt_module_cmds
8782 module_expsym_cmds=$lt_module_expsym_cmds
8784 # Commands to strip libraries.
8785 old_striplib=$lt_old_striplib
8786 striplib=$lt_striplib
8788 # Dependencies to place before the objects being linked to create a
8790 predep_objects=$lt_predep_objects
8792 # Dependencies to place after the objects being linked to create a
8794 postdep_objects=$lt_postdep_objects
8796 # Dependencies to place before the objects being linked to create a
8800 # Dependencies to place after the objects being linked to create a
8802 postdeps=$lt_postdeps
8804 # The library search path used internally by the compiler when linking
8806 compiler_lib_search_path=$lt_compiler_lib_search_path
8808 # Method to check whether dependent libraries are shared objects.
8809 deplibs_check_method=$lt_deplibs_check_method
8811 # Command to use when deplibs_check_method == file_magic.
8812 file_magic_cmd=$lt_file_magic_cmd
8814 # Flag that allows shared libraries with undefined symbols to be built.
8815 allow_undefined_flag=$lt_allow_undefined_flag
8817 # Flag that forces no undefined symbols.
8818 no_undefined_flag=$lt_no_undefined_flag
8820 # Commands used to finish a libtool library installation in a directory.
8821 finish_cmds=$lt_finish_cmds
8823 # Same as above, but a single script fragment to be evaled but not shown.
8824 finish_eval=$lt_finish_eval
8826 # Take the output of nm and produce a listing of raw symbols and C names.
8827 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8829 # Transform the output of nm in a proper C declaration
8830 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8832 # Transform the output of nm in a C name address pair
8833 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8835 # This is the shared library runtime path variable.
8836 runpath_var=$runpath_var
8838 # This is the shared library path variable.
8839 shlibpath_var=$shlibpath_var
8841 # Is shlibpath searched before the hard-coded library search path?
8842 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8844 # How to hardcode a shared library path into an executable.
8845 hardcode_action=$hardcode_action
8847 # Whether we should hardcode library paths into libraries.
8848 hardcode_into_libs=$hardcode_into_libs
8850 # Flag to hardcode \$libdir into a binary during linking.
8851 # This must work even if \$libdir does not exist.
8852 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8854 # If ld is used when linking, flag to hardcode \$libdir into
8855 # a binary during linking. This must work even if \$libdir does
8857 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8859 # Whether we need a single -rpath flag with a separated argument.
8860 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8862 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8864 hardcode_direct=$hardcode_direct
8866 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8868 hardcode_minus_L=$hardcode_minus_L
8870 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8871 # the resulting binary.
8872 hardcode_shlibpath_var=$hardcode_shlibpath_var
8874 # Set to yes if building a shared library automatically hardcodes DIR into the library
8875 # and all subsequent libraries and executables linked against it.
8876 hardcode_automatic=$hardcode_automatic
8878 # Variables whose values should be saved in libtool wrapper scripts and
8879 # restored at relink time.
8880 variables_saved_for_relink="$variables_saved_for_relink"
8882 # Whether libtool must link a program against all its dependency libraries.
8883 link_all_deplibs=$link_all_deplibs
8885 # Compile-time system search path for libraries
8886 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8888 # Run-time system search path for libraries
8889 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8891 # Fix the shell variable \$srcfile for the compiler.
8892 fix_srcfile_path="$fix_srcfile_path"
8894 # Set to yes if exported symbols are required.
8895 always_export_symbols=$always_export_symbols
8897 # The commands to list exported symbols.
8898 export_symbols_cmds=$lt_export_symbols_cmds
8900 # The commands to extract the exported symbol list from a shared archive.
8901 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8903 # Symbols that should not be listed in the preloaded symbols.
8904 exclude_expsyms=$lt_exclude_expsyms
8906 # Symbols that must always be exported.
8907 include_expsyms=$lt_include_expsyms
8909 # ### END LIBTOOL CONFIG
8916 cat <<\EOF >> "$cfgfile"
8918 # AIX sometimes has problems with the GCC collect2 program. For some
8919 # reason, if we set the COLLECT_NAMES environment variable, the problems
8920 # vanish in a puff of smoke.
8921 if test "X${COLLECT_NAMES+set}" != Xset; then
8923 export COLLECT_NAMES
8929 # We use sed instead of cat because bash on DJGPP gets confused if
8930 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8931 # text mode, it properly converts lines to CR/LF. This bash problem
8932 # is reportedly fixed, but why not run on old versions too?
8933 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8935 mv -f "$cfgfile" "$ofile" || \
8936 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8940 # If there is no Makefile yet, we rely on a make rule to execute
8941 # `config.status --recheck' to rerun these tests and create the
8942 # libtool script then.
8943 test -f Makefile && make "$ltmain"
8948 ac_cpp='$CPP $CPPFLAGS'
8949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8956 # Check whether --with-tags or --without-tags was given.
8957 if test "${with_tags+set}" = set; then
8958 withval="$with_tags"
8962 if test -f "$ltmain" && test -n "$tagnames"; then
8963 if test ! -f "${ofile}"; then
8964 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8965 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8968 if test -z "$LTCC"; then
8969 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8970 if test -z "$LTCC"; then
8971 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8972 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8974 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8975 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8979 # Extract list of available tagged configurations in $ofile.
8980 # Note that this assumes the entire list is on one line.
8981 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8983 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8984 for tagname in $tagnames; do
8986 # Check whether tagname contains only valid characters
8987 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8989 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8990 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8991 { (exit 1); exit 1; }; }
8995 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8997 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8998 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8999 { (exit 1); exit 1; }; }
9002 # Update the list of available tags.
9003 if test -n "$tagname"; then
9004 echo appending configuration tag \"$tagname\" to $ofile
9008 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9010 ac_cpp='$CXXCPP $CPPFLAGS'
9011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9018 archive_cmds_need_lc_CXX=no
9019 allow_undefined_flag_CXX=
9020 always_export_symbols_CXX=no
9021 archive_expsym_cmds_CXX=
9022 export_dynamic_flag_spec_CXX=
9023 hardcode_direct_CXX=no
9024 hardcode_libdir_flag_spec_CXX=
9025 hardcode_libdir_flag_spec_ld_CXX=
9026 hardcode_libdir_separator_CXX=
9027 hardcode_minus_L_CXX=no
9028 hardcode_automatic_CXX=no
9030 module_expsym_cmds_CXX=
9031 link_all_deplibs_CXX=unknown
9032 old_archive_cmds_CXX=$old_archive_cmds
9033 no_undefined_flag_CXX=
9034 whole_archive_flag_spec_CXX=
9035 enable_shared_with_static_runtimes_CXX=no
9037 # Dependencies to place before and after the object being linked:
9039 postdep_objects_CXX=
9042 compiler_lib_search_path_CXX=
9044 # Source file extension for C++ test sources.
9047 # Object file extension for compiled C++ test sources.
9051 # Code to be used in simple compile tests
9052 lt_simple_compile_test_code="int some_variable = 0;\n"
9054 # Code to be used in simple link tests
9055 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9057 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9059 # If no C compiler was specified, use CC.
9062 # Allow CC to be a program name with arguments.
9066 # Allow CC to be a program name with arguments.
9071 lt_save_with_gnu_ld=$with_gnu_ld
9072 lt_save_path_LD=$lt_cv_path_LD
9073 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9074 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9076 unset lt_cv_prog_gnu_ld
9078 if test -n "${lt_cv_path_LDCXX+set}"; then
9079 lt_cv_path_LD=$lt_cv_path_LDCXX
9083 test -z "${LDCXX+set}" || LD=$LDCXX
9087 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9089 # We don't want -fno-exception wen compiling C++ code, so set the
9090 # no_builtin_flag separately
9091 if test "$GXX" = yes; then
9092 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9094 lt_prog_compiler_no_builtin_flag_CXX=
9097 if test "$GXX" = yes; then
9098 # Set up default GNU C++ configuration
9101 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9102 if test "${with_gnu_ld+set}" = set; then
9103 withval="$with_gnu_ld"
9104 test "$withval" = no || with_gnu_ld=yes
9109 if test "$GCC" = yes; then
9110 # Check if gcc -print-prog-name=ld gives a path.
9111 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9112 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9115 # gcc leaves a trailing carriage return which upsets mingw
9116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9121 # Accept absolute paths.
9123 re_direlt='/[^/][^/]*/\.\./'
9124 # Canonicalize the path of ld
9125 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9126 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9127 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9129 test -z "$LD" && LD="$ac_prog"
9132 # If it fails, then pretend we aren't using GCC.
9136 # If it is relative, then search for the first ld in PATH.
9140 elif test "$with_gnu_ld" = yes; then
9141 echo "$as_me:$LINENO: checking for GNU ld" >&5
9142 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9144 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9145 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9147 if test "${lt_cv_path_LD+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9150 if test -z "$LD"; then
9151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9152 for ac_dir in $PATH; do
9154 test -z "$ac_dir" && ac_dir=.
9155 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9156 lt_cv_path_LD="$ac_dir/$ac_prog"
9157 # Check to see if the program is GNU ld. I'd rather use --version,
9158 # but apparently some GNU ld's only accept -v.
9159 # Break only if it was the GNU/non-GNU ld that we prefer.
9160 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9161 *GNU* | *'with BFD'*)
9162 test "$with_gnu_ld" != no && break
9165 test "$with_gnu_ld" != yes && break
9172 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9177 if test -n "$LD"; then
9178 echo "$as_me:$LINENO: result: $LD" >&5
9179 echo "${ECHO_T}$LD" >&6
9181 echo "$as_me:$LINENO: result: no" >&5
9182 echo "${ECHO_T}no" >&6
9184 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9185 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9186 { (exit 1); exit 1; }; }
9187 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9188 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9189 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9193 case `"$LD" -v 2>&1 </dev/null` in
9194 *GNU* | *'with BFD'*)
9195 lt_cv_prog_gnu_ld=yes
9198 lt_cv_prog_gnu_ld=no
9202 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9203 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9204 with_gnu_ld=$lt_cv_prog_gnu_ld
9208 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9209 # archiving commands below assume that GNU ld is being used.
9210 if test "$with_gnu_ld" = yes; then
9211 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9212 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'
9214 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9215 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9217 # If archive_cmds runs LD, not CC, wlarc should be empty
9218 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9219 # investigate it a little bit more. (MM)
9222 # ancient GNU ld didn't support --whole-archive et. al.
9223 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9224 grep 'no-whole-archive' > /dev/null; then
9225 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9227 whole_archive_flag_spec_CXX=
9233 # A generic and very simple default shared library creation
9234 # command for GNU C++ for the case where it uses the native
9235 # linker, instead of GNU ld. If possible, this setting should
9236 # overridden to take advantage of the native linker features on
9237 # the platform it is being used on.
9238 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9241 # Commands to make compiler produce verbose output that lists
9242 # what "hidden" libraries, object files and flags are used when
9243 # linking a shared library.
9244 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9252 # PORTME: fill in a description of your system's C++ link characteristics
9253 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9254 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9258 # FIXME: insert proper C++ library support
9262 if test "$host_cpu" = ia64; then
9263 # On IA64, the linker does run time linking by default, so we don't
9264 # have to do anything special.
9265 aix_use_runtimelinking=no
9266 exp_sym_flag='-Bexport'
9269 aix_use_runtimelinking=no
9271 # Test if we are trying to use run time linking or normal
9272 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9273 # need to do runtime linking.
9274 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9275 for ld_flag in $LDFLAGS; do
9278 aix_use_runtimelinking=yes
9285 exp_sym_flag='-bexport'
9286 no_entry_flag='-bnoentry'
9289 # When large executables or shared objects are built, AIX ld can
9290 # have problems creating the table of contents. If linking a library
9291 # or program results in "error TOC overflow" add -mminimal-toc to
9292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9296 hardcode_direct_CXX=yes
9297 hardcode_libdir_separator_CXX=':'
9298 link_all_deplibs_CXX=yes
9300 if test "$GXX" = yes; then
9301 case $host_os in aix4.012|aix4.012.*)
9302 # We only want to do this on AIX 4.2 and lower, the check
9303 # below for broken collect2 doesn't work under 4.3+
9304 collect2name=`${CC} -print-prog-name=collect2`
9305 if test -f "$collect2name" && \
9306 strings "$collect2name" | grep resolve_lib_name >/dev/null
9308 # We have reworked collect2
9309 hardcode_direct_CXX=yes
9311 # We have old collect2
9312 hardcode_direct_CXX=unsupported
9313 # It fails to find uninstalled libraries when the uninstalled
9314 # path is not listed in the libpath. Setting hardcode_minus_L
9315 # to unsupported forces relinking
9316 hardcode_minus_L_CXX=yes
9317 hardcode_libdir_flag_spec_CXX='-L$libdir'
9318 hardcode_libdir_separator_CXX=
9321 shared_flag='-shared'
9324 if test "$host_cpu" = ia64; then
9325 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9326 # chokes on -Wl,-G. The following line is correct:
9329 if test "$aix_use_runtimelinking" = yes; then
9330 shared_flag='${wl}-G'
9332 shared_flag='${wl}-bM:SRE'
9337 # It seems that -bexpall does not export symbols beginning with
9338 # underscore (_), so it is better to generate a list of symbols to export.
9339 always_export_symbols_CXX=yes
9340 if test "$aix_use_runtimelinking" = yes; then
9341 # Warning - without using the other runtime loading flags (-brtl),
9342 # -berok will link without error, but may produce a broken library.
9343 allow_undefined_flag_CXX='-berok'
9344 # Determine the default libpath from the value encoded in an empty executable.
9345 cat >conftest.$ac_ext <<_ACEOF
9346 #line $LINENO "configure"
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9361 rm -f conftest.$ac_objext conftest$ac_exeext
9362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9363 (eval $ac_link) 2>&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } &&
9367 { ac_try='test -s conftest$ac_exeext'
9368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; }; then
9374 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9376 # Check for a 64-bit object if we didn't find anything.
9377 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; }
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9385 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9387 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9389 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"
9391 if test "$host_cpu" = ia64; then
9392 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9393 allow_undefined_flag_CXX="-z nodefs"
9394 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"
9396 # Determine the default libpath from the value encoded in an empty executable.
9397 cat >conftest.$ac_ext <<_ACEOF
9398 #line $LINENO "configure"
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9413 rm -f conftest.$ac_objext conftest$ac_exeext
9414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9415 (eval $ac_link) 2>&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -s conftest$ac_exeext'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9426 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9428 # Check for a 64-bit object if we didn't find anything.
9429 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; }
9432 echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.$ac_ext >&5
9436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9437 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9439 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9440 # Warning - without using the other run time loading flags,
9441 # -berok will link without error, but may produce a broken library.
9442 no_undefined_flag_CXX=' ${wl}-bernotok'
9443 allow_undefined_flag_CXX=' ${wl}-berok'
9444 # -bexpall does not export symbols beginning with underscore (_)
9445 always_export_symbols_CXX=yes
9446 # Exported symbols can be pulled into shared objects from archives
9447 whole_archive_flag_spec_CXX=' '
9448 archive_cmds_need_lc_CXX=yes
9449 # This is similar to how AIX traditionally builds it's shared libraries.
9450 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'
9455 case $cc_basename in
9457 # FIXME: insert proper C++ library support
9463 cygwin* | mingw* | pw32*)
9464 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9465 # as there is no search path for DLLs.
9466 hardcode_libdir_flag_spec_CXX='-L$libdir'
9467 allow_undefined_flag_CXX=unsupported
9468 always_export_symbols_CXX=no
9469 enable_shared_with_static_runtimes_CXX=yes
9471 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9472 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'
9473 # If the export-symbols file already is a .def file (1st line
9474 # is EXPORTS), use it as is; otherwise, prepend...
9475 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9476 cp $export_symbols $output_objdir/$soname.def;
9478 echo EXPORTS > $output_objdir/$soname.def;
9479 cat $export_symbols >> $output_objdir/$soname.def;
9481 $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'
9487 darwin* | rhapsody*)
9488 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9489 archive_cmds_need_lc_CXX=no
9491 rhapsody* | darwin1.[012])
9492 allow_undefined_flag_CXX='-undefined suppress'
9495 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9498 lt_int_apple_cc_single_mod=no
9499 output_verbose_link_cmd='echo'
9500 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9501 lt_int_apple_cc_single_mod=yes
9503 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9504 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9506 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9508 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9510 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9511 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9512 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}'
9514 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9516 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9517 hardcode_direct_CXX=no
9518 hardcode_automatic_CXX=yes
9519 hardcode_shlibpath_var_CXX=unsupported
9520 whole_archive_flag_spec_CXX='-all_load $convenience'
9521 link_all_deplibs_CXX=yes
9526 case $cc_basename in
9528 # FIXME: insert proper C++ library support
9532 # Green Hills C++ Compiler
9533 # FIXME: insert proper C++ library support
9537 # FIXME: insert proper C++ library support
9543 # C++ shared libraries reported to be fairly broken before switch to ELF
9547 archive_cmds_need_lc_CXX=no
9550 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9557 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9558 hardcode_libdir_separator_CXX=:
9559 export_dynamic_flag_spec_CXX='${wl}-E'
9560 hardcode_direct_CXX=yes
9561 hardcode_minus_L_CXX=yes # Not in the search PATH,
9562 # but as the default
9563 # location of the library.
9565 case $cc_basename in
9567 # FIXME: insert proper C++ library support
9571 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'
9572 # Commands to make compiler produce verbose output that lists
9573 # what "hidden" libraries, object files and flags are used when
9574 # linking a shared library.
9576 # There doesn't appear to be a way to prevent this compiler from
9577 # explicitly linking system object files so we need to strip them
9578 # from the output so that they don't get included in the library
9580 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9583 if test "$GXX" = yes; then
9584 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'
9586 # FIXME: insert proper C++ library support
9593 if test $with_gnu_ld = no; then
9596 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9597 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9598 hardcode_libdir_separator_CXX=:
9601 hardcode_libdir_flag_spec_CXX='-L$libdir'
9604 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9605 hardcode_libdir_separator_CXX=:
9606 export_dynamic_flag_spec_CXX='${wl}-E'
9612 hardcode_direct_CXX=no
9613 hardcode_shlibpath_var_CXX=no
9616 hardcode_direct_CXX=no
9617 hardcode_shlibpath_var_CXX=no
9618 hardcode_minus_L_CXX=yes # Not in the search PATH,
9619 # but as the default
9620 # location of the library.
9623 hardcode_direct_CXX=yes
9624 hardcode_minus_L_CXX=yes # Not in the search PATH,
9625 # but as the default
9626 # location of the library.
9630 case $cc_basename in
9632 # FIXME: insert proper C++ library support
9638 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9641 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9644 # Commands to make compiler produce verbose output that lists
9645 # what "hidden" libraries, object files and flags are used when
9646 # linking a shared library.
9648 # There doesn't appear to be a way to prevent this compiler from
9649 # explicitly linking system object files so we need to strip them
9650 # from the output so that they don't get included in the library
9652 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'
9655 if test "$GXX" = yes; then
9656 if test $with_gnu_ld = no; then
9659 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9662 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'
9667 # FIXME: insert proper C++ library support
9674 case $cc_basename in
9677 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'
9679 # Archives containing C++ object files must be created using
9680 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9681 # necessary to make sure instantiated templates are included
9683 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9686 if test "$GXX" = yes; then
9687 if test "$with_gnu_ld" = no; then
9688 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'
9690 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'
9693 link_all_deplibs_CXX=yes
9696 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9697 hardcode_libdir_separator_CXX=:
9700 case $cc_basename in
9702 # Kuck and Associates, Inc. (KAI) C++ Compiler
9704 # KCC will only create a shared library if the output file
9705 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9706 # to its proper name (with version) after linking.
9707 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'
9708 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'
9709 # Commands to make compiler produce verbose output that lists
9710 # what "hidden" libraries, object files and flags are used when
9711 # linking a shared library.
9713 # There doesn't appear to be a way to prevent this compiler from
9714 # explicitly linking system object files so we need to strip them
9715 # from the output so that they don't get included in the library
9717 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'
9719 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9720 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9722 # Archives containing C++ object files must be created using
9723 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9724 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9729 archive_cmds_need_lc_CXX=no
9730 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731 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'
9732 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9733 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9734 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9738 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9739 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'
9741 runpath_var=LD_RUN_PATH
9742 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9743 hardcode_libdir_separator_CXX=:
9745 # Commands to make compiler produce verbose output that lists
9746 # what "hidden" libraries, object files and flags are used when
9747 # linking a shared library.
9749 # There doesn't appear to be a way to prevent this compiler from
9750 # explicitly linking system object files so we need to strip them
9751 # from the output so that they don't get included in the library
9753 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'
9758 # FIXME: insert proper C++ library support
9762 # FIXME: insert proper C++ library support
9766 case $cc_basename in
9768 # FIXME: insert proper C++ library support
9772 # FIXME: insert proper C++ library support
9778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9779 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9781 hardcode_libdir_flag_spec_CXX='-R$libdir'
9782 hardcode_direct_CXX=yes
9783 hardcode_shlibpath_var_CXX=no
9785 # Workaround some broken pre-1.5 toolchains
9786 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9789 case $cc_basename in
9791 # Kuck and Associates, Inc. (KAI) C++ Compiler
9793 # KCC will only create a shared library if the output file
9794 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9795 # to its proper name (with version) after linking.
9796 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'
9798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9799 hardcode_libdir_separator_CXX=:
9801 # Archives containing C++ object files must be created using
9802 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9803 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9807 # Rational C++ 2.4.1
9808 # FIXME: insert proper C++ library support
9812 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9813 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'
9815 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9816 hardcode_libdir_separator_CXX=:
9818 # Commands to make compiler produce verbose output that lists
9819 # what "hidden" libraries, object files and flags are used when
9820 # linking a shared library.
9822 # There doesn't appear to be a way to prevent this compiler from
9823 # explicitly linking system object files so we need to strip them
9824 # from the output so that they don't get included in the library
9826 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'
9829 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9830 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9831 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'
9833 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9834 hardcode_libdir_separator_CXX=:
9836 # Commands to make compiler produce verbose output that lists
9837 # what "hidden" libraries, object files and flags are used when
9838 # linking a shared library.
9839 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9842 # FIXME: insert proper C++ library support
9849 case $cc_basename in
9851 # Kuck and Associates, Inc. (KAI) C++ Compiler
9853 # KCC will only create a shared library if the output file
9854 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9855 # to its proper name (with version) after linking.
9856 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'
9858 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9859 hardcode_libdir_separator_CXX=:
9861 # Archives containing C++ object files must be created using
9862 # the KAI C++ compiler.
9863 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9866 # Rational C++ 2.4.1
9867 # FIXME: insert proper C++ library support
9871 allow_undefined_flag_CXX=' -expect_unresolved \*'
9872 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'
9873 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9874 echo "-hidden">> $lib.exp~
9875 $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~
9878 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9879 hardcode_libdir_separator_CXX=:
9881 # Commands to make compiler produce verbose output that lists
9882 # what "hidden" libraries, object files and flags are used when
9883 # linking a shared library.
9885 # There doesn't appear to be a way to prevent this compiler from
9886 # explicitly linking system object files so we need to strip them
9887 # from the output so that they don't get included in the library
9889 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'
9892 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9893 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9894 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'
9896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9897 hardcode_libdir_separator_CXX=:
9899 # Commands to make compiler produce verbose output that lists
9900 # what "hidden" libraries, object files and flags are used when
9901 # linking a shared library.
9902 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9905 # FIXME: insert proper C++ library support
9912 # FIXME: insert proper C++ library support
9916 archive_cmds_need_lc_CXX=no
9917 case $cc_basename in
9919 # FIXME: insert proper C++ library support
9923 # FIXME: insert proper C++ library support
9929 case $cc_basename in
9932 # FIXME: insert proper C++ library support
9937 # FIXME: insert proper C++ library support
9941 # FIXME: insert proper C++ library support
9947 case $cc_basename in
9949 # Sun C++ 4.2, 5.x and Centerline C++
9950 no_undefined_flag_CXX=' -zdefs'
9951 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9952 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9953 $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'
9955 hardcode_libdir_flag_spec_CXX='-R$libdir'
9956 hardcode_shlibpath_var_CXX=no
9958 solaris2.0-5 | solaris2.0-5.*) ;;
9960 # The C++ compiler is used as linker so we must use $wl
9961 # flag to pass the commands to the underlying system
9963 # Supported since Solaris 2.6 (maybe 2.5.1?)
9964 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9967 link_all_deplibs_CXX=yes
9969 # Commands to make compiler produce verbose output that lists
9970 # what "hidden" libraries, object files and flags are used when
9971 # linking a shared library.
9973 # There doesn't appear to be a way to prevent this compiler from
9974 # explicitly linking system object files so we need to strip them
9975 # from the output so that they don't get included in the library
9977 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'
9979 # Archives containing C++ object files must be created using
9980 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9981 # necessary to make sure instantiated templates are included
9983 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9986 # Green Hills C++ Compiler
9987 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9989 # The C++ compiler must be used to create the archive.
9990 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9993 # GNU C++ compiler with Solaris linker
9994 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9995 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9996 if $CC --version | grep -v '^2\.7' > /dev/null; then
9997 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9998 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9999 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10001 # Commands to make compiler produce verbose output that lists
10002 # what "hidden" libraries, object files and flags are used when
10003 # linking a shared library.
10004 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10006 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10008 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10009 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10010 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10012 # Commands to make compiler produce verbose output that lists
10013 # what "hidden" libraries, object files and flags are used when
10014 # linking a shared library.
10015 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10018 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10023 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10024 archive_cmds_need_lc_CXX=no
10027 case $cc_basename in
10029 # NonStop-UX NCC 3.20
10030 # FIXME: insert proper C++ library support
10034 # FIXME: insert proper C++ library support
10040 # FIXME: insert proper C++ library support
10044 # FIXME: insert proper C++ library support
10048 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10049 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10050 test "$ld_shlibs_CXX" = no && can_build_shared=no
10056 cat > conftest.$ac_ext <<EOF
10060 Foo (void) { a = 0; }
10066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10067 (eval $ac_compile) 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; then
10071 # Parse the compiler output and extract the necessary
10072 # objects, libraries and library flags.
10074 # Sentinel used to keep track of whether or not we are before
10075 # the conftest object file.
10076 pre_test_object_deps_done=no
10078 # The `*' in the case matches for architectures that use `case' in
10079 # $output_verbose_cmd can trigger glob expansion during the loop
10080 # eval without this substitution.
10081 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10083 for p in `eval $output_verbose_link_cmd`; do
10087 # Some compilers place space between "-{L,R}" and the path.
10088 # Remove the space.
10089 if test $p = "-L" \
10090 || test $p = "-R"; then
10097 if test "$pre_test_object_deps_done" = no; then
10100 # Internal compiler library paths should come after those
10101 # provided the user. The postdeps already come after the
10102 # user supplied libs so there is no need to process them.
10103 if test -z "$compiler_lib_search_path_CXX"; then
10104 compiler_lib_search_path_CXX="${prev}${p}"
10106 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10109 # The "-l" case would never come before the object being
10110 # linked, so don't bother handling this case.
10113 if test -z "$postdeps_CXX"; then
10114 postdeps_CXX="${prev}${p}"
10116 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10122 # This assumes that the test object file only shows up
10123 # once in the compiler output.
10124 if test "$p" = "conftest.$objext"; then
10125 pre_test_object_deps_done=yes
10129 if test "$pre_test_object_deps_done" = no; then
10130 if test -z "$predep_objects_CXX"; then
10131 predep_objects_CXX="$p"
10133 predep_objects_CXX="$predep_objects_CXX $p"
10136 if test -z "$postdep_objects_CXX"; then
10137 postdep_objects_CXX="$p"
10139 postdep_objects_CXX="$postdep_objects_CXX $p"
10144 *) ;; # Ignore the rest.
10152 echo "libtool.m4: error: problem compiling CXX test program"
10155 $rm -f confest.$objext
10157 case " $postdeps_CXX " in
10158 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10161 lt_prog_compiler_wl_CXX=
10162 lt_prog_compiler_pic_CXX=
10163 lt_prog_compiler_static_CXX=
10165 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10166 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10168 # C++ specific cases for pic, static, wl, etc.
10169 if test "$GXX" = yes; then
10170 lt_prog_compiler_wl_CXX='-Wl,'
10171 lt_prog_compiler_static_CXX='-static'
10175 # All AIX code is PIC.
10176 if test "$host_cpu" = ia64; then
10177 # AIX 5 now supports IA64 processor
10178 lt_prog_compiler_static_CXX='-Bstatic'
10182 # FIXME: we need at least 68020 code to build shared libraries, but
10183 # adding the `-m68020' flag to GCC prevents building anything better,
10185 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10187 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10188 # PIC is the default for these OSes.
10190 mingw* | os2* | pw32*)
10191 # This hack is so that the source file can tell whether it is being
10192 # built for inclusion in a dll (and should export symbols for example).
10193 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10195 darwin* | rhapsody*)
10196 # PIC is the default on this platform
10197 # Common symbols not allowed in MH_DYLIB files
10198 lt_prog_compiler_pic_CXX='-fno-common'
10201 # DJGPP does not support shared libraries at all
10202 lt_prog_compiler_pic_CXX=
10205 if test -d /usr/nec; then
10206 lt_prog_compiler_pic_CXX=-Kconform_pic
10210 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10211 # not for PA HP-UX.
10212 case "$host_cpu" in
10216 lt_prog_compiler_pic_CXX='-fPIC'
10221 lt_prog_compiler_pic_CXX='-fPIC'
10227 # All AIX code is PIC.
10228 if test "$host_cpu" = ia64; then
10229 # AIX 5 now supports IA64 processor
10230 lt_prog_compiler_static_CXX='-Bstatic'
10232 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10236 case $cc_basename in
10238 # Green Hills C++ Compiler
10239 # _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"
10244 case $cc_basename in
10246 lt_prog_compiler_pic_CXX='-KPIC'
10249 # Green Hills C++ Compiler
10250 lt_prog_compiler_pic_CXX='-pic'
10257 # FreeBSD uses GNU C++
10259 hpux9* | hpux10* | hpux11*)
10260 case $cc_basename in
10262 lt_prog_compiler_wl_CXX='-Wl,'
10263 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10264 if test "$host_cpu" != ia64; then
10265 lt_prog_compiler_pic_CXX='+Z'
10269 lt_prog_compiler_wl_CXX='-Wl,'
10270 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10271 case "$host_cpu" in
10276 lt_prog_compiler_pic_CXX='+Z'
10284 irix5* | irix6* | nonstopux*)
10285 case $cc_basename in
10287 lt_prog_compiler_wl_CXX='-Wl,'
10288 lt_prog_compiler_static_CXX='-non_shared'
10289 # CC pic flag -KPIC is the default.
10296 case $cc_basename in
10299 lt_prog_compiler_wl_CXX='--backend -Wl,'
10300 lt_prog_compiler_pic_CXX='-fPIC'
10304 lt_prog_compiler_wl_CXX='-Wl,'
10305 lt_prog_compiler_pic_CXX='-KPIC'
10306 lt_prog_compiler_static_CXX='-static'
10310 # Make sure the PIC flag is empty. It appears that all Alpha
10311 # Linux and Compaq Tru64 Unix objects are PIC.
10312 lt_prog_compiler_pic_CXX=
10313 lt_prog_compiler_static_CXX='-non_shared'
10324 case $cc_basename in
10326 lt_prog_compiler_pic_CXX='-W c,exportall'
10334 osf3* | osf4* | osf5*)
10335 case $cc_basename in
10337 lt_prog_compiler_wl_CXX='--backend -Wl,'
10340 # Rational C++ 2.4.1
10341 lt_prog_compiler_pic_CXX='-pic'
10344 # Digital/Compaq C++
10345 lt_prog_compiler_wl_CXX='-Wl,'
10346 # Make sure the PIC flag is empty. It appears that all Alpha
10347 # Linux and Compaq Tru64 Unix objects are PIC.
10348 lt_prog_compiler_pic_CXX=
10349 lt_prog_compiler_static_CXX='-non_shared'
10358 case $cc_basename in
10360 lt_prog_compiler_pic_CXX='-fPIC'
10367 case $cc_basename in
10369 # Sun C++ 4.2, 5.x and Centerline C++
10370 lt_prog_compiler_pic_CXX='-KPIC'
10371 lt_prog_compiler_static_CXX='-Bstatic'
10372 lt_prog_compiler_wl_CXX='-Qoption ld '
10375 # Green Hills C++ Compiler
10376 lt_prog_compiler_pic_CXX='-PIC'
10383 case $cc_basename in
10386 lt_prog_compiler_pic_CXX='-pic'
10387 lt_prog_compiler_static_CXX='-Bstatic'
10391 lt_prog_compiler_pic_CXX='-pic'
10398 case $cc_basename in
10400 # NonStop-UX NCC 3.20
10401 lt_prog_compiler_pic_CXX='-KPIC'
10412 lt_prog_compiler_can_build_shared_CXX=no
10417 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10418 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10421 # Check to make sure the PIC flag actually works.
10423 if test -n "$lt_prog_compiler_pic_CXX"; then
10424 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10425 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10426 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 lt_prog_compiler_pic_works_CXX=no
10430 ac_outfile=conftest.$ac_objext
10431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10432 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10433 # Insert the option either (1) after the last *FLAGS variable, or
10434 # (2) before a word containing "conftest.", or (3) at the end.
10435 # Note that $ac_compile itself does not contain backslashes and begins
10436 # with a dollar sign (not a hyphen), so the echo should work correctly.
10437 # The option is referenced via a variable to avoid confusing sed.
10438 lt_compile=`echo "$ac_compile" | $SED \
10439 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10441 -e 's:$: $lt_compiler_flag:'`
10442 (eval echo "\"\$as_me:10442: $lt_compile\"" >&5)
10443 (eval "$lt_compile" 2>conftest.err)
10445 cat conftest.err >&5
10446 echo "$as_me:10446: \$? = $ac_status" >&5
10447 if (exit $ac_status) && test -s "$ac_outfile"; then
10448 # The compiler can only warn and ignore the option if not recognized
10449 # So say no if there are warnings
10450 if test ! -s conftest.err; then
10451 lt_prog_compiler_pic_works_CXX=yes
10457 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10458 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10460 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10461 case $lt_prog_compiler_pic_CXX in
10463 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10466 lt_prog_compiler_pic_CXX=
10467 lt_prog_compiler_can_build_shared_CXX=no
10472 # For platforms which do not support PIC, -DPIC is meaningless:
10474 lt_prog_compiler_pic_CXX=
10477 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10481 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10482 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10483 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 lt_cv_prog_compiler_c_o_CXX=no
10487 $rm -r conftest 2>/dev/null
10491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10493 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10494 # that will create temporary files in the current directory regardless of
10495 # the output directory. Thus, making CWD read-only will cause this test
10496 # to fail, enabling locking or at least warning the user not to do parallel
10500 lt_compiler_flag="-o out/conftest2.$ac_objext"
10501 # Insert the option either (1) after the last *FLAGS variable, or
10502 # (2) before a word containing "conftest.", or (3) at the end.
10503 # Note that $ac_compile itself does not contain backslashes and begins
10504 # with a dollar sign (not a hyphen), so the echo should work correctly.
10505 lt_compile=`echo "$ac_compile" | $SED \
10506 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10508 -e 's:$: $lt_compiler_flag:'`
10509 (eval echo "\"\$as_me:10509: $lt_compile\"" >&5)
10510 (eval "$lt_compile" 2>out/conftest.err)
10512 cat out/conftest.err >&5
10513 echo "$as_me:10513: \$? = $ac_status" >&5
10514 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10516 # The compiler can only warn and ignore the option if not recognized
10517 # So say no if there are warnings
10518 if test ! -s out/conftest.err; then
10519 lt_cv_prog_compiler_c_o_CXX=yes
10523 $rm conftest* out/*
10530 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10531 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10534 hard_links="nottested"
10535 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10536 # do not overwrite the value of need_locks provided by the user
10537 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10538 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10541 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10543 ln conftest.a conftest.b 2>&5 || hard_links=no
10544 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10545 echo "$as_me:$LINENO: result: $hard_links" >&5
10546 echo "${ECHO_T}$hard_links" >&6
10547 if test "$hard_links" = no; then
10548 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10549 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10556 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10557 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10559 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10562 # If we're using GNU nm, then we don't want the "-C" option.
10563 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10564 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10565 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'
10567 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'
10571 export_symbols_cmds_CXX="$ltdll_cmds"
10574 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10577 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10581 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10582 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10583 test "$ld_shlibs_CXX" = no && can_build_shared=no
10585 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10586 if test "$GCC" = yes; then
10587 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10591 # Do we need to explicitly link libc?
10593 case "x$archive_cmds_need_lc_CXX" in
10595 # Assume -lc should be added
10596 archive_cmds_need_lc_CXX=yes
10598 if test "$enable_shared" = yes && test "$GCC" = yes; then
10599 case $archive_cmds_CXX in
10601 # FIXME: we may have to deal with multi-command sequences.
10604 # Test whether the compiler implicitly links with -lc since on some
10605 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10606 # to ld, don't add -lc before -lgcc.
10607 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10608 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10610 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10613 (eval $ac_compile) 2>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } 2>conftest.err; then
10619 libobjs=conftest.$ac_objext
10621 wl=$lt_prog_compiler_wl_CXX
10627 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10628 allow_undefined_flag_CXX=
10629 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10630 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }
10635 archive_cmds_need_lc_CXX=no
10637 archive_cmds_need_lc_CXX=yes
10639 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10641 cat conftest.err 1>&5
10644 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10645 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10652 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10653 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10654 hardcode_action_CXX=
10655 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10656 test -n "$runpath_var CXX" || \
10657 test "X$hardcode_automatic_CXX"="Xyes" ; then
10659 # We can hardcode non-existant directories.
10660 if test "$hardcode_direct_CXX" != no &&
10661 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10662 # have to relink, otherwise we might link with an installed library
10663 # when we should be linking with a yet-to-be-installed one
10664 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10665 test "$hardcode_minus_L_CXX" != no; then
10666 # Linking always hardcodes the temporary library directory.
10667 hardcode_action_CXX=relink
10669 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10670 hardcode_action_CXX=immediate
10673 # We cannot hardcode anything, or else we can only hardcode existing
10675 hardcode_action_CXX=unsupported
10677 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10678 echo "${ECHO_T}$hardcode_action_CXX" >&6
10680 if test "$hardcode_action_CXX" = relink; then
10681 # Fast installation is not supported
10682 enable_fast_install=no
10683 elif test "$shlibpath_overrides_runpath" = yes ||
10684 test "$enable_shared" = no; then
10685 # Fast installation is not necessary
10686 enable_fast_install=needless
10691 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10692 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10693 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10694 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10695 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10696 echo "$as_me:$LINENO: result: yes" >&5
10697 echo "${ECHO_T}yes" >&6
10699 # FIXME - insert some real tests, host_os isn't really good enough
10702 if test -n "$STRIP" ; then
10703 striplib="$STRIP -x"
10704 echo "$as_me:$LINENO: result: yes" >&5
10705 echo "${ECHO_T}yes" >&6
10707 echo "$as_me:$LINENO: result: no" >&5
10708 echo "${ECHO_T}no" >&6
10712 echo "$as_me:$LINENO: result: no" >&5
10713 echo "${ECHO_T}no" >&6
10718 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10719 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10720 library_names_spec=
10721 libname_spec='lib$name'
10725 postuninstall_cmds=
10729 shlibpath_overrides_runpath=unknown
10731 dynamic_linker="$host_os ld.so"
10732 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10733 if test "$GCC" = yes; then
10734 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10735 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10736 # if the path contains ";" then we assume it to be the separator
10737 # otherwise default to the standard path separator (i.e. ":") - it is
10738 # assumed that no part of a normal pathname contains ";" but that should
10739 # okay in the real world where ";" in dirpaths is itself problematic.
10740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10742 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10745 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10747 need_lib_prefix=unknown
10748 hardcode_into_libs=no
10750 # when you set need_version to no, make sure it does not cause -set_version
10751 # flags to be left without arguments
10752 need_version=unknown
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10758 shlibpath_var=LIBPATH
10760 # AIX 3 has no versioning support, so we append a major version to the name.
10761 soname_spec='${libname}${release}${shared_ext}$major'
10768 hardcode_into_libs=yes
10769 if test "$host_cpu" = ia64; then
10770 # AIX 5 supports IA64
10771 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10772 shlibpath_var=LD_LIBRARY_PATH
10774 # With GCC up to 2.95.x, collect2 would create an import file
10775 # for dependence libraries. The import file would start with
10776 # the line `#! .'. This would cause the generated library to
10777 # depend on `.', always an invalid library. This was fixed in
10778 # development snapshots of GCC prior to 3.0.
10780 aix4 | aix4.[01] | aix4.[01].*)
10781 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10783 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10786 can_build_shared=no
10790 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10791 # soname into executable. Probably we can add versioning support to
10792 # collect2, so additional links can be useful in future.
10793 if test "$aix_use_runtimelinking" = yes; then
10794 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10795 # instead of lib<name>.a to let people know that these are not
10796 # typical AIX shared libraries.
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 # We preserve .a as extension for shared libraries through AIX4.2
10800 # and later when we are not doing run time linking.
10801 library_names_spec='${libname}${release}.a $libname.a'
10802 soname_spec='${libname}${release}${shared_ext}$major'
10804 shlibpath_var=LIBPATH
10809 library_names_spec='$libname.ixlibrary $libname.a'
10810 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10811 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'
10815 library_names_spec='${libname}${shared_ext}'
10816 dynamic_linker="$host_os ld.so"
10817 shlibpath_var=LIBRARY_PATH
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824 soname_spec='${libname}${release}${shared_ext}$major'
10825 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10826 shlibpath_var=LD_LIBRARY_PATH
10827 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10828 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10829 # the default ld.so.conf also contains /usr/contrib/lib and
10830 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10831 # libtool to hard-code these into programs
10834 cygwin* | mingw* | pw32*)
10835 version_type=windows
10840 case $GCC,$host_os in
10841 yes,cygwin* | yes,mingw* | yes,pw32*)
10842 library_names_spec='$libname.dll.a'
10843 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10844 postinstall_cmds='base_file=`basename \${file}`~
10845 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10846 dldir=$destdir/`dirname \$dlpath`~
10847 test -d \$dldir || mkdir -p \$dldir~
10848 $install_prog $dir/$dlname \$dldir/$dlname'
10849 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10850 dlpath=$dir/\$dldll~
10852 shlibpath_overrides_runpath=yes
10856 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10857 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10858 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10861 # MinGW DLLs use traditional 'lib' prefix
10862 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10863 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10864 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10865 # It is most probably a Windows format PATH printed by
10866 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10867 # path with ; separators, and with drive letters. We can handle the
10868 # drive letters (cygwin fileutils understands them), so leave them,
10869 # especially as we might pass files found there to a mingw objdump,
10870 # which wouldn't understand a cygwinified path. Ahh.
10871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10873 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10877 # pw32 DLLs use 'pw' prefix rather than 'lib'
10878 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10884 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10887 dynamic_linker='Win32 ld.exe'
10888 # FIXME: first we should search . and the directory the executable is in
10892 darwin* | rhapsody*)
10893 dynamic_linker="$host_os dyld"
10894 version_type=darwin
10897 # FIXME: Relying on posixy $() will cause problems for
10898 # cross-compilation, but unfortunately the echo tests do not
10899 # yet detect zsh echo's removal of \ escapes.
10900 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10901 soname_spec='${libname}${release}${major}$shared_ext'
10902 shlibpath_overrides_runpath=yes
10903 shlibpath_var=DYLD_LIBRARY_PATH
10904 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10905 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10906 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10907 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"`
10909 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10917 soname_spec='${libname}${release}${shared_ext}$major'
10918 shlibpath_var=LD_LIBRARY_PATH
10926 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10927 version_type=freebsd-$objformat
10928 case $version_type in
10930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10939 shlibpath_var=LD_LIBRARY_PATH
10942 shlibpath_overrides_runpath=yes
10944 freebsd3.01* | freebsdelf3.01*)
10945 shlibpath_overrides_runpath=yes
10946 hardcode_into_libs=yes
10949 shlibpath_overrides_runpath=no
10950 hardcode_into_libs=yes
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 hardcode_into_libs=yes
10965 hpux9* | hpux10* | hpux11*)
10966 # Give a soname corresponding to the major version so that dld.sl refuses to
10967 # link against other versions.
10971 case "$host_cpu" in
10974 hardcode_into_libs=yes
10975 dynamic_linker="$host_os dld.so"
10976 shlibpath_var=LD_LIBRARY_PATH
10977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979 soname_spec='${libname}${release}${shared_ext}$major'
10980 if test "X$HPUX_IA64_MODE" = X32; then
10981 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10983 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10989 hardcode_into_libs=yes
10990 dynamic_linker="$host_os dld.sl"
10991 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10992 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994 soname_spec='${libname}${release}${shared_ext}$major'
10995 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11000 dynamic_linker="$host_os dld.sl"
11001 shlibpath_var=SHLIB_PATH
11002 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11004 soname_spec='${libname}${release}${shared_ext}$major'
11007 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11008 postinstall_cmds='chmod 555 $lib'
11011 irix5* | irix6* | nonstopux*)
11013 nonstopux*) version_type=nonstopux ;;
11015 if test "$lt_cv_prog_gnu_ld" = yes; then
11023 soname_spec='${libname}${release}${shared_ext}$major'
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11026 irix5* | nonstopux*)
11027 libsuff= shlibsuff=
11030 case $LD in # libtool.m4 will add one of these switches to LD
11031 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11032 libsuff= shlibsuff= libmagic=32-bit;;
11033 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11034 libsuff=32 shlibsuff=N32 libmagic=N32;;
11035 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11036 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11037 *) libsuff= shlibsuff= libmagic=never-match;;
11041 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11042 shlibpath_overrides_runpath=no
11043 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11044 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11045 hardcode_into_libs=yes
11048 # No shared lib support for Linux oldld, aout, or coff.
11049 linux*oldld* | linux*aout* | linux*coff*)
11053 # This must be Linux ELF.
11058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11059 soname_spec='${libname}${release}${shared_ext}$major'
11060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11061 shlibpath_var=LD_LIBRARY_PATH
11062 shlibpath_overrides_runpath=no
11063 # This implies no fast_install, which is unacceptable.
11064 # Some rework will be needed to allow for fast_install
11065 # before this can be enabled.
11066 hardcode_into_libs=yes
11068 # We used to test for /lib/ld.so.1 and disable shared libraries on
11069 # powerpc, because MkLinux only supported shared libraries with the
11070 # GNU dynamic linker. Since this was broken with cross compilers,
11071 # most powerpc-linux boxes support dynamic linking these days and
11072 # people can always --disable-shared, the test was removed, and we
11073 # assume the GNU/Linux dynamic linker is in use.
11074 dynamic_linker='GNU/Linux ld.so'
11081 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11084 dynamic_linker='NetBSD (a.out) ld.so'
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11087 soname_spec='${libname}${release}${shared_ext}$major'
11088 dynamic_linker='NetBSD ld.elf_so'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=yes
11092 hardcode_into_libs=yes
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 shlibpath_overrides_runpath=yes
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=yes
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11121 openbsd2.[89] | openbsd2.[89].*)
11122 shlibpath_overrides_runpath=no
11125 shlibpath_overrides_runpath=yes
11129 shlibpath_overrides_runpath=yes
11134 libname_spec='$name'
11137 library_names_spec='$libname${shared_ext} $libname.a'
11138 dynamic_linker='OS/2 ld.exe'
11139 shlibpath_var=LIBPATH
11142 osf3* | osf4* | osf5*)
11146 soname_spec='${libname}${release}${shared_ext}$major'
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11148 shlibpath_var=LD_LIBRARY_PATH
11149 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11150 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11155 soname_spec='${libname}${release}${shared_ext}$major'
11156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157 shlibpath_var=LD_LIBRARY_PATH
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 shlibpath_overrides_runpath=yes
11168 hardcode_into_libs=yes
11169 # ldd complains unless libraries are executable
11170 postinstall_cmds='chmod +x $lib'
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11176 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11177 shlibpath_var=LD_LIBRARY_PATH
11178 shlibpath_overrides_runpath=yes
11179 if test "$with_gnu_ld" = yes; then
11185 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 soname_spec='${libname}${release}${shared_ext}$major'
11189 shlibpath_var=LD_LIBRARY_PATH
11190 case $host_vendor in
11192 shlibpath_overrides_runpath=no
11194 export_dynamic_flag_spec='${wl}-Blargedynsym'
11195 runpath_var=LD_RUN_PATH
11203 shlibpath_overrides_runpath=no
11204 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11210 if test -d /usr/nec ;then
11212 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11213 soname_spec='$libname${shared_ext}.$major'
11214 shlibpath_var=LD_LIBRARY_PATH
11220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11221 soname_spec='${libname}${release}${shared_ext}$major'
11222 shlibpath_var=LD_LIBRARY_PATH
11229 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11230 echo "${ECHO_T}$dynamic_linker" >&6
11231 test "$dynamic_linker" = no && can_build_shared=no
11233 if test "x$enable_dlopen" != xyes; then
11234 enable_dlopen=unknown
11235 enable_dlopen_self=unknown
11236 enable_dlopen_self_static=unknown
11243 lt_cv_dlopen="load_add_on"
11245 lt_cv_dlopen_self=yes
11249 lt_cv_dlopen="LoadLibrary"
11254 lt_cv_dlopen="dlopen"
11259 # if libdl is installed we need to link against it
11260 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11261 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11262 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 ac_check_lib_save_LIBS=$LIBS
11267 cat >conftest.$ac_ext <<_ACEOF
11268 #line $LINENO "configure"
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h. */
11275 /* Override any gcc2 internal prototype to avoid an error. */
11279 /* We use char because int might match the return type of a gcc2
11280 builtin and then its argument prototype would still apply. */
11290 rm -f conftest.$ac_objext conftest$ac_exeext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292 (eval $ac_link) 2>&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } &&
11296 { ac_try='test -s conftest$ac_exeext'
11297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298 (eval $ac_try) 2>&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }; then
11302 ac_cv_lib_dl_dlopen=yes
11304 echo "$as_me: failed program was:" >&5
11305 sed 's/^/| /' conftest.$ac_ext >&5
11307 ac_cv_lib_dl_dlopen=no
11309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11310 LIBS=$ac_check_lib_save_LIBS
11312 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11313 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11314 if test $ac_cv_lib_dl_dlopen = yes; then
11315 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11318 lt_cv_dlopen="dyld"
11320 lt_cv_dlopen_self=yes
11327 echo "$as_me:$LINENO: checking for shl_load" >&5
11328 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11329 if test "${ac_cv_func_shl_load+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 cat >conftest.$ac_ext <<_ACEOF
11333 #line $LINENO "configure"
11336 cat confdefs.h >>conftest.$ac_ext
11337 cat >>conftest.$ac_ext <<_ACEOF
11338 /* end confdefs.h. */
11339 /* System header to define __stub macros and hopefully few prototypes,
11340 which can conflict with char shl_load (); below.
11341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11342 <limits.h> exists even on freestanding compilers. */
11344 # include <limits.h>
11346 # include <assert.h>
11348 /* Override any gcc2 internal prototype to avoid an error. */
11353 /* We use char because int might match the return type of a gcc2
11354 builtin and then its argument prototype would still apply. */
11356 /* The GNU C library defines this for functions which it implements
11357 to always fail with ENOSYS. Some functions are actually named
11358 something starting with __ and the normal name is an alias. */
11359 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11362 char (*f) () = shl_load;
11371 return f != shl_load;
11376 rm -f conftest.$ac_objext conftest$ac_exeext
11377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11378 (eval $ac_link) 2>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -s conftest$ac_exeext'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 ac_cv_func_shl_load=yes
11390 echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11393 ac_cv_func_shl_load=no
11395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11397 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11398 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11399 if test $ac_cv_func_shl_load = yes; then
11400 lt_cv_dlopen="shl_load"
11402 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11403 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11404 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11407 ac_check_lib_save_LIBS=$LIBS
11409 cat >conftest.$ac_ext <<_ACEOF
11410 #line $LINENO "configure"
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11417 /* Override any gcc2 internal prototype to avoid an error. */
11421 /* We use char because int might match the return type of a gcc2
11422 builtin and then its argument prototype would still apply. */
11432 rm -f conftest.$ac_objext conftest$ac_exeext
11433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11434 (eval $ac_link) 2>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -s conftest$ac_exeext'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
11444 ac_cv_lib_dld_shl_load=yes
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11449 ac_cv_lib_dld_shl_load=no
11451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11452 LIBS=$ac_check_lib_save_LIBS
11454 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11455 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11456 if test $ac_cv_lib_dld_shl_load = yes; then
11457 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11459 echo "$as_me:$LINENO: checking for dlopen" >&5
11460 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11461 if test "${ac_cv_func_dlopen+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 cat >conftest.$ac_ext <<_ACEOF
11465 #line $LINENO "configure"
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 /* System header to define __stub macros and hopefully few prototypes,
11472 which can conflict with char dlopen (); below.
11473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11474 <limits.h> exists even on freestanding compilers. */
11476 # include <limits.h>
11478 # include <assert.h>
11480 /* Override any gcc2 internal prototype to avoid an error. */
11485 /* We use char because int might match the return type of a gcc2
11486 builtin and then its argument prototype would still apply. */
11488 /* The GNU C library defines this for functions which it implements
11489 to always fail with ENOSYS. Some functions are actually named
11490 something starting with __ and the normal name is an alias. */
11491 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11494 char (*f) () = dlopen;
11503 return f != dlopen;
11508 rm -f conftest.$ac_objext conftest$ac_exeext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11510 (eval $ac_link) 2>&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); } &&
11514 { ac_try='test -s conftest$ac_exeext'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
11520 ac_cv_func_dlopen=yes
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11525 ac_cv_func_dlopen=no
11527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11529 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11530 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11531 if test $ac_cv_func_dlopen = yes; then
11532 lt_cv_dlopen="dlopen"
11534 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11535 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11536 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 ac_check_lib_save_LIBS=$LIBS
11541 cat >conftest.$ac_ext <<_ACEOF
11542 #line $LINENO "configure"
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11549 /* Override any gcc2 internal prototype to avoid an error. */
11553 /* We use char because int might match the return type of a gcc2
11554 builtin and then its argument prototype would still apply. */
11564 rm -f conftest.$ac_objext conftest$ac_exeext
11565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11566 (eval $ac_link) 2>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try='test -s conftest$ac_exeext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 ac_cv_lib_dl_dlopen=yes
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11581 ac_cv_lib_dl_dlopen=no
11583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11584 LIBS=$ac_check_lib_save_LIBS
11586 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11587 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11588 if test $ac_cv_lib_dl_dlopen = yes; then
11589 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11591 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11592 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11593 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 ac_check_lib_save_LIBS=$LIBS
11597 LIBS="-lsvld $LIBS"
11598 cat >conftest.$ac_ext <<_ACEOF
11599 #line $LINENO "configure"
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11606 /* Override any gcc2 internal prototype to avoid an error. */
11610 /* We use char because int might match the return type of a gcc2
11611 builtin and then its argument prototype would still apply. */
11621 rm -f conftest.$ac_objext conftest$ac_exeext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11623 (eval $ac_link) 2>&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -s conftest$ac_exeext'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; }; then
11633 ac_cv_lib_svld_dlopen=yes
11635 echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11638 ac_cv_lib_svld_dlopen=no
11640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11641 LIBS=$ac_check_lib_save_LIBS
11643 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11644 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11645 if test $ac_cv_lib_svld_dlopen = yes; then
11646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11648 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11649 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11650 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 ac_check_lib_save_LIBS=$LIBS
11655 cat >conftest.$ac_ext <<_ACEOF
11656 #line $LINENO "configure"
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11663 /* Override any gcc2 internal prototype to avoid an error. */
11667 /* We use char because int might match the return type of a gcc2
11668 builtin and then its argument prototype would still apply. */
11678 rm -f conftest.$ac_objext conftest$ac_exeext
11679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11680 (eval $ac_link) 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -s conftest$ac_exeext'
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; }; then
11690 ac_cv_lib_dld_dld_link=yes
11692 echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11695 ac_cv_lib_dld_dld_link=no
11697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11698 LIBS=$ac_check_lib_save_LIBS
11700 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11701 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11702 if test $ac_cv_lib_dld_dld_link = yes; then
11703 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11724 if test "x$lt_cv_dlopen" != xno; then
11730 case $lt_cv_dlopen in
11732 save_CPPFLAGS="$CPPFLAGS"
11733 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11735 save_LDFLAGS="$LDFLAGS"
11736 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11739 LIBS="$lt_cv_dlopen_libs $LIBS"
11741 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11742 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11743 if test "${lt_cv_dlopen_self+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 if test "$cross_compiling" = yes; then :
11747 lt_cv_dlopen_self=cross
11749 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11750 lt_status=$lt_dlunknown
11751 cat > conftest.$ac_ext <<EOF
11752 #line 11752 "configure"
11753 #include "confdefs.h"
11762 # define LT_DLGLOBAL RTLD_GLOBAL
11765 # define LT_DLGLOBAL DL_GLOBAL
11767 # define LT_DLGLOBAL 0
11771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11772 find out it does not work in some platform. */
11773 #ifndef LT_DLLAZY_OR_NOW
11775 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11778 # define LT_DLLAZY_OR_NOW DL_LAZY
11781 # define LT_DLLAZY_OR_NOW RTLD_NOW
11784 # define LT_DLLAZY_OR_NOW DL_NOW
11786 # define LT_DLLAZY_OR_NOW 0
11794 extern "C" void exit (int);
11797 void fnord() { int i=42;}
11800 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11801 int status = $lt_dlunknown;
11805 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11806 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11807 /* dlclose (self); */
11813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11814 (eval $ac_link) 2>&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11818 (./conftest; exit; ) 2>/dev/null
11820 case x$lt_status in
11821 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11822 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11823 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11826 # compilation failed
11827 lt_cv_dlopen_self=no
11834 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11835 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11837 if test "x$lt_cv_dlopen_self" = xyes; then
11838 LDFLAGS="$LDFLAGS $link_static_flag"
11839 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11840 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11841 if test "${lt_cv_dlopen_self_static+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11844 if test "$cross_compiling" = yes; then :
11845 lt_cv_dlopen_self_static=cross
11847 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11848 lt_status=$lt_dlunknown
11849 cat > conftest.$ac_ext <<EOF
11850 #line 11850 "configure"
11851 #include "confdefs.h"
11860 # define LT_DLGLOBAL RTLD_GLOBAL
11863 # define LT_DLGLOBAL DL_GLOBAL
11865 # define LT_DLGLOBAL 0
11869 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11870 find out it does not work in some platform. */
11871 #ifndef LT_DLLAZY_OR_NOW
11873 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11876 # define LT_DLLAZY_OR_NOW DL_LAZY
11879 # define LT_DLLAZY_OR_NOW RTLD_NOW
11882 # define LT_DLLAZY_OR_NOW DL_NOW
11884 # define LT_DLLAZY_OR_NOW 0
11892 extern "C" void exit (int);
11895 void fnord() { int i=42;}
11898 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11899 int status = $lt_dlunknown;
11903 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11904 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11905 /* dlclose (self); */
11911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11912 (eval $ac_link) 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11916 (./conftest; exit; ) 2>/dev/null
11918 case x$lt_status in
11919 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11920 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11921 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11924 # compilation failed
11925 lt_cv_dlopen_self_static=no
11932 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11933 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11936 CPPFLAGS="$save_CPPFLAGS"
11937 LDFLAGS="$save_LDFLAGS"
11942 case $lt_cv_dlopen_self in
11943 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11944 *) enable_dlopen_self=unknown ;;
11947 case $lt_cv_dlopen_self_static in
11948 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11949 *) enable_dlopen_self_static=unknown ;;
11954 # The else clause should only fire when bootstrapping the
11955 # libtool distribution, otherwise you forgot to ship ltmain.sh
11956 # with your package, and you will get complaints that there are
11957 # no rules to generate ltmain.sh.
11958 if test -f "$ltmain"; then
11959 # See if we are running on zsh, and set the options which allow our commands through
11960 # without removal of \ escapes.
11961 if test -n "${ZSH_VERSION+set}" ; then
11962 setopt NO_GLOB_SUBST
11964 # Now quote all the things that may contain metacharacters while being
11965 # careful not to overquote the AC_SUBSTed values. We take copies of the
11966 # variables and quote the copies for generation of the libtool script.
11967 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11968 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11969 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11970 deplibs_check_method reload_flag reload_cmds need_locks \
11971 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11972 lt_cv_sys_global_symbol_to_c_name_address \
11973 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11974 old_postinstall_cmds old_postuninstall_cmds \
11978 lt_prog_compiler_wl_CXX \
11979 lt_prog_compiler_pic_CXX \
11980 lt_prog_compiler_static_CXX \
11981 lt_prog_compiler_no_builtin_flag_CXX \
11982 export_dynamic_flag_spec_CXX \
11983 thread_safe_flag_spec_CXX \
11984 whole_archive_flag_spec_CXX \
11985 enable_shared_with_static_runtimes_CXX \
11986 old_archive_cmds_CXX \
11987 old_archive_from_new_cmds_CXX \
11988 predep_objects_CXX \
11989 postdep_objects_CXX \
11992 compiler_lib_search_path_CXX \
11994 archive_expsym_cmds_CXX \
11995 postinstall_cmds_CXX \
11996 postuninstall_cmds_CXX \
11997 old_archive_from_expsyms_cmds_CXX \
11998 allow_undefined_flag_CXX \
11999 no_undefined_flag_CXX \
12000 export_symbols_cmds_CXX \
12001 hardcode_libdir_flag_spec_CXX \
12002 hardcode_libdir_flag_spec_ld_CXX \
12003 hardcode_libdir_separator_CXX \
12004 hardcode_automatic_CXX \
12006 module_expsym_cmds_CXX \
12007 lt_cv_prog_compiler_c_o_CXX \
12008 exclude_expsyms_CXX \
12009 include_expsyms_CXX; do
12012 old_archive_cmds_CXX | \
12013 old_archive_from_new_cmds_CXX | \
12014 archive_cmds_CXX | \
12015 archive_expsym_cmds_CXX | \
12016 module_cmds_CXX | \
12017 module_expsym_cmds_CXX | \
12018 old_archive_from_expsyms_cmds_CXX | \
12019 export_symbols_cmds_CXX | \
12020 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12021 postinstall_cmds | postuninstall_cmds | \
12022 old_postinstall_cmds | old_postuninstall_cmds | \
12023 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12024 # Double-quote double-evaled strings.
12025 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12028 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12034 *'\$0 --fallback-echo"')
12035 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12041 cat <<__EOF__ >> "$cfgfile"
12042 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12044 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12046 # Shell to use when invoking shell scripts.
12049 # Whether or not to build shared libraries.
12050 build_libtool_libs=$enable_shared
12052 # Whether or not to build static libraries.
12053 build_old_libs=$enable_static
12055 # Whether or not to add -lc for building shared libraries.
12056 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12058 # Whether or not to disallow shared libs when runtime libs are static
12059 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12061 # Whether or not to optimize for fast installation.
12062 fast_install=$enable_fast_install
12065 host_alias=$host_alias
12068 # An echo program that does not interpret backslashes.
12073 AR_FLAGS=$lt_AR_FLAGS
12078 # A language-specific compiler.
12079 CC=$lt_compiler_CXX
12081 # Is the compiler the GNU C compiler?
12087 # The linker used to build libraries.
12090 # Whether we need hard or soft links.
12093 # A BSD-compatible nm program.
12096 # A symbol stripping program
12099 # Used to examine libraries when file_magic_cmd begins "file"
12100 MAGIC_CMD=$MAGIC_CMD
12102 # Used on cygwin: DLL creation program.
12105 # Used on cygwin: object dumper.
12108 # Used on cygwin: assembler.
12111 # The name of the directory that contains temporary libtool files.
12114 # How to create reloadable object files.
12115 reload_flag=$lt_reload_flag
12116 reload_cmds=$lt_reload_cmds
12118 # How to pass a linker flag through the compiler.
12119 wl=$lt_lt_prog_compiler_wl_CXX
12121 # Object file suffix (normally "o").
12122 objext="$ac_objext"
12124 # Old archive suffix (normally "a").
12127 # Shared library suffix (normally ".so").
12130 # Executable file suffix (normally "").
12133 # Additional compiler flags for building library objects.
12134 pic_flag=$lt_lt_prog_compiler_pic_CXX
12137 # What is the maximum length of a command?
12138 max_cmd_len=$lt_cv_sys_max_cmd_len
12140 # Does compiler simultaneously support -c and -o options?
12141 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12143 # Must we lock files when doing compilation ?
12144 need_locks=$lt_need_locks
12146 # Do we need the lib prefix for modules?
12147 need_lib_prefix=$need_lib_prefix
12149 # Do we need a version for libraries?
12150 need_version=$need_version
12152 # Whether dlopen is supported.
12153 dlopen_support=$enable_dlopen
12155 # Whether dlopen of programs is supported.
12156 dlopen_self=$enable_dlopen_self
12158 # Whether dlopen of statically linked programs is supported.
12159 dlopen_self_static=$enable_dlopen_self_static
12161 # Compiler flag to prevent dynamic linking.
12162 link_static_flag=$lt_lt_prog_compiler_static_CXX
12164 # Compiler flag to turn off builtin functions.
12165 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12167 # Compiler flag to allow reflexive dlopens.
12168 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12170 # Compiler flag to generate shared objects directly from archives.
12171 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12173 # Compiler flag to generate thread-safe objects.
12174 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12176 # Library versioning type.
12177 version_type=$version_type
12179 # Format of library name prefix.
12180 libname_spec=$lt_libname_spec
12182 # List of archive names. First name is the real one, the rest are links.
12183 # The last name is the one that the linker finds with -lNAME.
12184 library_names_spec=$lt_library_names_spec
12186 # The coded name of the library, if different from the real name.
12187 soname_spec=$lt_soname_spec
12189 # Commands used to build and install an old-style archive.
12191 old_archive_cmds=$lt_old_archive_cmds_CXX
12192 old_postinstall_cmds=$lt_old_postinstall_cmds
12193 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12195 # Create an old-style archive from a shared archive.
12196 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12198 # Create a temporary old-style archive to link instead of a shared archive.
12199 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12201 # Commands used to build and install a shared archive.
12202 archive_cmds=$lt_archive_cmds_CXX
12203 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12204 postinstall_cmds=$lt_postinstall_cmds
12205 postuninstall_cmds=$lt_postuninstall_cmds
12207 # Commands used to build a loadable module (assumed same as above if empty)
12208 module_cmds=$lt_module_cmds_CXX
12209 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12211 # Commands to strip libraries.
12212 old_striplib=$lt_old_striplib
12213 striplib=$lt_striplib
12215 # Dependencies to place before the objects being linked to create a
12217 predep_objects=$lt_predep_objects_CXX
12219 # Dependencies to place after the objects being linked to create a
12221 postdep_objects=$lt_postdep_objects_CXX
12223 # Dependencies to place before the objects being linked to create a
12225 predeps=$lt_predeps_CXX
12227 # Dependencies to place after the objects being linked to create a
12229 postdeps=$lt_postdeps_CXX
12231 # The library search path used internally by the compiler when linking
12232 # a shared library.
12233 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12235 # Method to check whether dependent libraries are shared objects.
12236 deplibs_check_method=$lt_deplibs_check_method
12238 # Command to use when deplibs_check_method == file_magic.
12239 file_magic_cmd=$lt_file_magic_cmd
12241 # Flag that allows shared libraries with undefined symbols to be built.
12242 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12244 # Flag that forces no undefined symbols.
12245 no_undefined_flag=$lt_no_undefined_flag_CXX
12247 # Commands used to finish a libtool library installation in a directory.
12248 finish_cmds=$lt_finish_cmds
12250 # Same as above, but a single script fragment to be evaled but not shown.
12251 finish_eval=$lt_finish_eval
12253 # Take the output of nm and produce a listing of raw symbols and C names.
12254 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12256 # Transform the output of nm in a proper C declaration
12257 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12259 # Transform the output of nm in a C name address pair
12260 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12262 # This is the shared library runtime path variable.
12263 runpath_var=$runpath_var
12265 # This is the shared library path variable.
12266 shlibpath_var=$shlibpath_var
12268 # Is shlibpath searched before the hard-coded library search path?
12269 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12271 # How to hardcode a shared library path into an executable.
12272 hardcode_action=$hardcode_action_CXX
12274 # Whether we should hardcode library paths into libraries.
12275 hardcode_into_libs=$hardcode_into_libs
12277 # Flag to hardcode \$libdir into a binary during linking.
12278 # This must work even if \$libdir does not exist.
12279 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12281 # If ld is used when linking, flag to hardcode \$libdir into
12282 # a binary during linking. This must work even if \$libdir does
12284 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12286 # Whether we need a single -rpath flag with a separated argument.
12287 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12289 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12290 # resulting binary.
12291 hardcode_direct=$hardcode_direct_CXX
12293 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12294 # resulting binary.
12295 hardcode_minus_L=$hardcode_minus_L_CXX
12297 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12298 # the resulting binary.
12299 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12301 # Set to yes if building a shared library automatically hardcodes DIR into the library
12302 # and all subsequent libraries and executables linked against it.
12303 hardcode_automatic=$hardcode_automatic_CXX
12305 # Variables whose values should be saved in libtool wrapper scripts and
12306 # restored at relink time.
12307 variables_saved_for_relink="$variables_saved_for_relink"
12309 # Whether libtool must link a program against all its dependency libraries.
12310 link_all_deplibs=$link_all_deplibs_CXX
12312 # Compile-time system search path for libraries
12313 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12315 # Run-time system search path for libraries
12316 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12318 # Fix the shell variable \$srcfile for the compiler.
12319 fix_srcfile_path="$fix_srcfile_path_CXX"
12321 # Set to yes if exported symbols are required.
12322 always_export_symbols=$always_export_symbols_CXX
12324 # The commands to list exported symbols.
12325 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12327 # The commands to extract the exported symbol list from a shared archive.
12328 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12330 # Symbols that should not be listed in the preloaded symbols.
12331 exclude_expsyms=$lt_exclude_expsyms_CXX
12333 # Symbols that must always be exported.
12334 include_expsyms=$lt_include_expsyms_CXX
12336 # ### END LIBTOOL TAG CONFIG: $tagname
12342 # If there is no Makefile yet, we rely on a make rule to execute
12343 # `config.status --recheck' to rerun these tests and create the
12344 # libtool script then.
12345 test -f Makefile && make "$ltmain"
12350 ac_cpp='$CPP $CPPFLAGS'
12351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12359 with_gnu_ldcxx=$with_gnu_ld
12360 with_gnu_ld=$lt_save_with_gnu_ld
12361 lt_cv_path_LDCXX=$lt_cv_path_LD
12362 lt_cv_path_LD=$lt_save_path_LD
12363 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12364 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12372 if test -n "$F77" && test "X$F77" != "Xno"; then
12375 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12376 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12377 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12380 archive_cmds_need_lc_F77=no
12381 allow_undefined_flag_F77=
12382 always_export_symbols_F77=no
12383 archive_expsym_cmds_F77=
12384 export_dynamic_flag_spec_F77=
12385 hardcode_direct_F77=no
12386 hardcode_libdir_flag_spec_F77=
12387 hardcode_libdir_flag_spec_ld_F77=
12388 hardcode_libdir_separator_F77=
12389 hardcode_minus_L_F77=no
12390 hardcode_automatic_F77=no
12392 module_expsym_cmds_F77=
12393 link_all_deplibs_F77=unknown
12394 old_archive_cmds_F77=$old_archive_cmds
12395 no_undefined_flag_F77=
12396 whole_archive_flag_spec_F77=
12397 enable_shared_with_static_runtimes_F77=no
12399 # Source file extension for f77 test sources.
12402 # Object file extension for compiled f77 test sources.
12406 # Code to be used in simple compile tests
12407 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12409 # Code to be used in simple link tests
12410 lt_simple_link_test_code=" program t\n end\n"
12412 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12414 # If no C compiler was specified, use CC.
12417 # Allow CC to be a program name with arguments.
12421 # Allow CC to be a program name with arguments.
12426 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12428 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12429 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12430 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12431 echo "${ECHO_T}$can_build_shared" >&6
12433 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12434 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12435 test "$can_build_shared" = "no" && enable_shared=no
12437 # On AIX, shared libraries and static libraries use the same namespace, and
12438 # are all built from PIC.
12441 test "$enable_shared" = yes && enable_static=no
12442 if test -n "$RANLIB"; then
12443 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12444 postinstall_cmds='$RANLIB $lib'
12448 test "$enable_shared" = yes && enable_static=no
12451 echo "$as_me:$LINENO: result: $enable_shared" >&5
12452 echo "${ECHO_T}$enable_shared" >&6
12454 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12455 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12456 # Make sure either enable_shared or enable_static is yes.
12457 test "$enable_shared" = yes || enable_static=yes
12458 echo "$as_me:$LINENO: result: $enable_static" >&5
12459 echo "${ECHO_T}$enable_static" >&6
12461 test "$ld_shlibs_F77" = no && can_build_shared=no
12466 lt_prog_compiler_wl_F77=
12467 lt_prog_compiler_pic_F77=
12468 lt_prog_compiler_static_F77=
12470 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12471 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12473 if test "$GCC" = yes; then
12474 lt_prog_compiler_wl_F77='-Wl,'
12475 lt_prog_compiler_static_F77='-static'
12479 # All AIX code is PIC.
12480 if test "$host_cpu" = ia64; then
12481 # AIX 5 now supports IA64 processor
12482 lt_prog_compiler_static_F77='-Bstatic'
12487 # FIXME: we need at least 68020 code to build shared libraries, but
12488 # adding the `-m68020' flag to GCC prevents building anything better,
12490 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12493 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12494 # PIC is the default for these OSes.
12497 mingw* | pw32* | os2*)
12498 # This hack is so that the source file can tell whether it is being
12499 # built for inclusion in a dll (and should export symbols for example).
12500 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12503 darwin* | rhapsody*)
12504 # PIC is the default on this platform
12505 # Common symbols not allowed in MH_DYLIB files
12506 lt_prog_compiler_pic_F77='-fno-common'
12510 # Just because we use GCC doesn't mean we suddenly get shared libraries
12511 # on systems that don't support them.
12512 lt_prog_compiler_can_build_shared_F77=no
12517 if test -d /usr/nec; then
12518 lt_prog_compiler_pic_F77=-Kconform_pic
12523 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12524 # not for PA HP-UX.
12525 case "$host_cpu" in
12530 lt_prog_compiler_pic_F77='-fPIC'
12536 lt_prog_compiler_pic_F77='-fPIC'
12540 # PORTME Check for flag to pass linker flags through the system compiler.
12543 lt_prog_compiler_wl_F77='-Wl,'
12544 if test "$host_cpu" = ia64; then
12545 # AIX 5 now supports IA64 processor
12546 lt_prog_compiler_static_F77='-Bstatic'
12548 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12552 mingw* | pw32* | os2*)
12553 # This hack is so that the source file can tell whether it is being
12554 # built for inclusion in a dll (and should export symbols for example).
12555 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12558 hpux9* | hpux10* | hpux11*)
12559 lt_prog_compiler_wl_F77='-Wl,'
12560 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12561 # not for PA HP-UX.
12562 case "$host_cpu" in
12567 lt_prog_compiler_pic_F77='+Z'
12570 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12571 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12574 irix5* | irix6* | nonstopux*)
12575 lt_prog_compiler_wl_F77='-Wl,'
12576 # PIC (with -KPIC) is the default.
12577 lt_prog_compiler_static_F77='-non_shared'
12581 lt_prog_compiler_pic_F77='-KPIC'
12582 lt_prog_compiler_static_F77='-Bstatic'
12588 lt_prog_compiler_wl_F77='-Wl,'
12589 lt_prog_compiler_pic_F77='-KPIC'
12590 lt_prog_compiler_static_F77='-static'
12593 lt_prog_compiler_wl_F77='-Wl,'
12594 # All Alpha code is PIC.
12595 lt_prog_compiler_static_F77='-non_shared'
12600 osf3* | osf4* | osf5*)
12601 lt_prog_compiler_wl_F77='-Wl,'
12602 # All OSF/1 code is PIC.
12603 lt_prog_compiler_static_F77='-non_shared'
12607 lt_prog_compiler_pic_F77='-Kpic'
12608 lt_prog_compiler_static_F77='-dn'
12612 lt_prog_compiler_wl_F77='-Wl,'
12613 lt_prog_compiler_pic_F77='-KPIC'
12614 lt_prog_compiler_static_F77='-Bstatic'
12618 lt_prog_compiler_wl_F77='-Qoption ld '
12619 lt_prog_compiler_pic_F77='-PIC'
12620 lt_prog_compiler_static_F77='-Bstatic'
12623 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12624 lt_prog_compiler_wl_F77='-Wl,'
12625 lt_prog_compiler_pic_F77='-KPIC'
12626 lt_prog_compiler_static_F77='-Bstatic'
12630 if test -d /usr/nec ;then
12631 lt_prog_compiler_pic_F77='-Kconform_pic'
12632 lt_prog_compiler_static_F77='-Bstatic'
12637 lt_prog_compiler_pic_F77='-pic'
12638 lt_prog_compiler_static_F77='-Bstatic'
12642 lt_prog_compiler_can_build_shared_F77=no
12647 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12648 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12651 # Check to make sure the PIC flag actually works.
12653 if test -n "$lt_prog_compiler_pic_F77"; then
12654 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12655 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12656 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12659 lt_prog_compiler_pic_works_F77=no
12660 ac_outfile=conftest.$ac_objext
12661 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12662 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12663 # Insert the option either (1) after the last *FLAGS variable, or
12664 # (2) before a word containing "conftest.", or (3) at the end.
12665 # Note that $ac_compile itself does not contain backslashes and begins
12666 # with a dollar sign (not a hyphen), so the echo should work correctly.
12667 # The option is referenced via a variable to avoid confusing sed.
12668 lt_compile=`echo "$ac_compile" | $SED \
12669 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12671 -e 's:$: $lt_compiler_flag:'`
12672 (eval echo "\"\$as_me:12672: $lt_compile\"" >&5)
12673 (eval "$lt_compile" 2>conftest.err)
12675 cat conftest.err >&5
12676 echo "$as_me:12676: \$? = $ac_status" >&5
12677 if (exit $ac_status) && test -s "$ac_outfile"; then
12678 # The compiler can only warn and ignore the option if not recognized
12679 # So say no if there are warnings
12680 if test ! -s conftest.err; then
12681 lt_prog_compiler_pic_works_F77=yes
12687 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12688 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12690 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12691 case $lt_prog_compiler_pic_F77 in
12693 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12696 lt_prog_compiler_pic_F77=
12697 lt_prog_compiler_can_build_shared_F77=no
12702 # For platforms which do not support PIC, -DPIC is meaningless:
12704 lt_prog_compiler_pic_F77=
12707 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12711 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12712 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12713 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12716 lt_cv_prog_compiler_c_o_F77=no
12717 $rm -r conftest 2>/dev/null
12721 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12723 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12724 # that will create temporary files in the current directory regardless of
12725 # the output directory. Thus, making CWD read-only will cause this test
12726 # to fail, enabling locking or at least warning the user not to do parallel
12730 lt_compiler_flag="-o out/conftest2.$ac_objext"
12731 # Insert the option either (1) after the last *FLAGS variable, or
12732 # (2) before a word containing "conftest.", or (3) at the end.
12733 # Note that $ac_compile itself does not contain backslashes and begins
12734 # with a dollar sign (not a hyphen), so the echo should work correctly.
12735 lt_compile=`echo "$ac_compile" | $SED \
12736 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12738 -e 's:$: $lt_compiler_flag:'`
12739 (eval echo "\"\$as_me:12739: $lt_compile\"" >&5)
12740 (eval "$lt_compile" 2>out/conftest.err)
12742 cat out/conftest.err >&5
12743 echo "$as_me:12743: \$? = $ac_status" >&5
12744 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12746 # The compiler can only warn and ignore the option if not recognized
12747 # So say no if there are warnings
12748 if test ! -s out/conftest.err; then
12749 lt_cv_prog_compiler_c_o_F77=yes
12753 $rm conftest* out/*
12760 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12761 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12764 hard_links="nottested"
12765 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12766 # do not overwrite the value of need_locks provided by the user
12767 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12768 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12771 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12773 ln conftest.a conftest.b 2>&5 || hard_links=no
12774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12775 echo "$as_me:$LINENO: result: $hard_links" >&5
12776 echo "${ECHO_T}$hard_links" >&6
12777 if test "$hard_links" = no; then
12778 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12779 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12786 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12787 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12790 allow_undefined_flag_F77=
12791 enable_shared_with_static_runtimes_F77=no
12793 archive_expsym_cmds_F77=
12794 old_archive_From_new_cmds_F77=
12795 old_archive_from_expsyms_cmds_F77=
12796 export_dynamic_flag_spec_F77=
12797 whole_archive_flag_spec_F77=
12798 thread_safe_flag_spec_F77=
12799 hardcode_libdir_flag_spec_F77=
12800 hardcode_libdir_flag_spec_ld_F77=
12801 hardcode_libdir_separator_F77=
12802 hardcode_direct_F77=no
12803 hardcode_minus_L_F77=no
12804 hardcode_shlibpath_var_F77=unsupported
12805 link_all_deplibs_F77=unknown
12806 hardcode_automatic_F77=no
12808 module_expsym_cmds_F77=
12809 always_export_symbols_F77=no
12810 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12811 # include_expsyms should be a list of space-separated symbols to be *always*
12812 # included in the symbol list
12813 include_expsyms_F77=
12814 # exclude_expsyms can be an extended regexp of symbols to exclude
12815 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12816 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12817 # as well as any symbol that contains `d'.
12818 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12819 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12820 # platforms (ab)use it in PIC code, but their linkers get confused if
12821 # the symbol is explicitly referenced. Since portable code cannot
12822 # rely on this symbol name, it's probably fine to never include it in
12823 # preloaded symbol tables.
12824 extract_expsyms_cmds=
12827 cygwin* | mingw* | pw32*)
12828 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12829 # When not using gcc, we currently assume that we are using
12830 # Microsoft Visual C++.
12831 if test "$GCC" != yes; then
12841 if test "$with_gnu_ld" = yes; then
12842 # If archive_cmds runs LD, not CC, wlarc should be empty
12845 # See if GNU ld supports shared libraries.
12847 aix3* | aix4* | aix5*)
12848 # On AIX/PPC, the GNU linker is very broken
12849 if test "$host_cpu" != ia64; then
12853 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12854 *** to be unable to reliably create shared libraries on AIX.
12855 *** Therefore, libtool is disabling shared libraries support. If you
12856 *** really care for shared libraries, you may want to modify your PATH
12857 *** so that a non-GNU linker is found, and then restart.
12864 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)'
12865 hardcode_libdir_flag_spec_F77='-L$libdir'
12866 hardcode_minus_L_F77=yes
12868 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12869 # that the semantics of dynamic libraries on AmigaOS, at least up
12870 # to version 4, is to share data among multiple programs linked
12871 # with the same dynamic library. Since this doesn't match the
12872 # behavior of shared libraries on other platforms, we can't use
12878 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12879 allow_undefined_flag_F77=unsupported
12880 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12881 # support --undefined. This deserves some investigation. FIXME
12882 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12888 cygwin* | mingw* | pw32*)
12889 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12890 # as there is no search path for DLLs.
12891 hardcode_libdir_flag_spec_F77='-L$libdir'
12892 allow_undefined_flag_F77=unsupported
12893 always_export_symbols_F77=no
12894 enable_shared_with_static_runtimes_F77=yes
12895 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12897 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12898 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12899 # If the export-symbols file already is a .def file (1st line
12900 # is EXPORTS), use it as is; otherwise, prepend...
12901 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12902 cp $export_symbols $output_objdir/$soname.def;
12904 echo EXPORTS > $output_objdir/$soname.def;
12905 cat $export_symbols >> $output_objdir/$soname.def;
12907 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12914 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12915 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12918 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12919 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12924 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12928 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12929 *** create shared libraries on Solaris systems. Therefore, libtool
12930 *** is disabling shared libraries support. We urge you to upgrade GNU
12931 *** binutils to release 2.9.1 or newer. Another option is to modify
12932 *** your PATH or compiler configuration so that the native linker is
12933 *** used, and then restart.
12936 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12937 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12938 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12945 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12947 hardcode_direct_F77=yes
12948 hardcode_shlibpath_var_F77=no
12952 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12953 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12954 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12961 if test "$ld_shlibs_F77" = yes; then
12962 runpath_var=LD_RUN_PATH
12963 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12964 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12965 # ancient GNU ld didn't support --whole-archive et. al.
12966 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12967 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12969 whole_archive_flag_spec_F77=
12973 # PORTME fill in a description of your system's linker (not GNU ld)
12976 allow_undefined_flag_F77=unsupported
12977 always_export_symbols_F77=yes
12978 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'
12979 # Note: this linker hardcodes the directories in LIBPATH if there
12980 # are no directories specified by -L.
12981 hardcode_minus_L_F77=yes
12982 if test "$GCC" = yes && test -z "$link_static_flag"; then
12983 # Neither direct hardcoding nor static linking is supported with a
12985 hardcode_direct_F77=unsupported
12990 if test "$host_cpu" = ia64; then
12991 # On IA64, the linker does run time linking by default, so we don't
12992 # have to do anything special.
12993 aix_use_runtimelinking=no
12994 exp_sym_flag='-Bexport'
12997 # If we're using GNU nm, then we don't want the "-C" option.
12998 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12999 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13000 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'
13002 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'
13004 aix_use_runtimelinking=no
13006 # Test if we are trying to use run time linking or normal
13007 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13008 # need to do runtime linking.
13009 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13010 for ld_flag in $LDFLAGS; do
13011 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13012 aix_use_runtimelinking=yes
13018 exp_sym_flag='-bexport'
13019 no_entry_flag='-bnoentry'
13022 # When large executables or shared objects are built, AIX ld can
13023 # have problems creating the table of contents. If linking a library
13024 # or program results in "error TOC overflow" add -mminimal-toc to
13025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13028 archive_cmds_F77=''
13029 hardcode_direct_F77=yes
13030 hardcode_libdir_separator_F77=':'
13031 link_all_deplibs_F77=yes
13033 if test "$GCC" = yes; then
13034 case $host_os in aix4.012|aix4.012.*)
13035 # We only want to do this on AIX 4.2 and lower, the check
13036 # below for broken collect2 doesn't work under 4.3+
13037 collect2name=`${CC} -print-prog-name=collect2`
13038 if test -f "$collect2name" && \
13039 strings "$collect2name" | grep resolve_lib_name >/dev/null
13041 # We have reworked collect2
13042 hardcode_direct_F77=yes
13044 # We have old collect2
13045 hardcode_direct_F77=unsupported
13046 # It fails to find uninstalled libraries when the uninstalled
13047 # path is not listed in the libpath. Setting hardcode_minus_L
13048 # to unsupported forces relinking
13049 hardcode_minus_L_F77=yes
13050 hardcode_libdir_flag_spec_F77='-L$libdir'
13051 hardcode_libdir_separator_F77=
13054 shared_flag='-shared'
13057 if test "$host_cpu" = ia64; then
13058 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13059 # chokes on -Wl,-G. The following line is correct:
13062 if test "$aix_use_runtimelinking" = yes; then
13063 shared_flag='${wl}-G'
13065 shared_flag='${wl}-bM:SRE'
13070 # It seems that -bexpall does not export symbols beginning with
13071 # underscore (_), so it is better to generate a list of symbols to export.
13072 always_export_symbols_F77=yes
13073 if test "$aix_use_runtimelinking" = yes; then
13074 # Warning - without using the other runtime loading flags (-brtl),
13075 # -berok will link without error, but may produce a broken library.
13076 allow_undefined_flag_F77='-berok'
13077 # Determine the default libpath from the value encoded in an empty executable.
13078 cat >conftest.$ac_ext <<_ACEOF
13083 rm -f conftest.$ac_objext conftest$ac_exeext
13084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13085 (eval $ac_link) 2>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } &&
13089 { ac_try='test -s conftest$ac_exeext'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13096 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13098 # Check for a 64-bit object if we didn't find anything.
13099 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; }
13102 echo "$as_me: failed program was:" >&5
13103 sed 's/^/| /' conftest.$ac_ext >&5
13106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13107 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13109 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13110 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"
13112 if test "$host_cpu" = ia64; then
13113 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13114 allow_undefined_flag_F77="-z nodefs"
13115 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"
13117 # Determine the default libpath from the value encoded in an empty executable.
13118 cat >conftest.$ac_ext <<_ACEOF
13123 rm -f conftest.$ac_objext conftest$ac_exeext
13124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13125 (eval $ac_link) 2>&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } &&
13129 { ac_try='test -s conftest$ac_exeext'
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; }; then
13136 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13138 # Check for a 64-bit object if we didn't find anything.
13139 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; }
13142 echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13147 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13149 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13150 # Warning - without using the other run time loading flags,
13151 # -berok will link without error, but may produce a broken library.
13152 no_undefined_flag_F77=' ${wl}-bernotok'
13153 allow_undefined_flag_F77=' ${wl}-berok'
13154 # -bexpall does not export symbols beginning with underscore (_)
13155 always_export_symbols_F77=yes
13156 # Exported symbols can be pulled into shared objects from archives
13157 whole_archive_flag_spec_F77=' '
13158 archive_cmds_need_lc_F77=yes
13159 # This is similar to how AIX traditionally builds it's shared libraries.
13160 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'
13166 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)'
13167 hardcode_libdir_flag_spec_F77='-L$libdir'
13168 hardcode_minus_L_F77=yes
13169 # see comment about different semantics on the GNU ld section
13174 export_dynamic_flag_spec_F77=-rdynamic
13177 cygwin* | mingw* | pw32*)
13178 # When not using gcc, we currently assume that we are using
13179 # Microsoft Visual C++.
13180 # hardcode_libdir_flag_spec is actually meaningless, as there is
13181 # no search path for DLLs.
13182 hardcode_libdir_flag_spec_F77=' '
13183 allow_undefined_flag_F77=unsupported
13184 # Tell ltmain to make .lib files, not .a files.
13186 # Tell ltmain to make .dll files, not .so files.
13188 # FIXME: Setting linknames here is a bad hack.
13189 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13190 # The linker will automatically build a .lib file if we build a DLL.
13191 old_archive_From_new_cmds_F77='true'
13192 # FIXME: Should let the user specify the lib program.
13193 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13194 fix_srcfile_path='`cygpath -w "$srcfile"`'
13195 enable_shared_with_static_runtimes_F77=yes
13198 darwin* | rhapsody*)
13199 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13200 archive_cmds_need_lc_F77=no
13202 rhapsody* | darwin1.[012])
13203 allow_undefined_flag_F77='-undefined suppress'
13206 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13209 # FIXME: Relying on posixy $() will cause problems for
13210 # cross-compilation, but unfortunately the echo tests do not
13211 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13212 # `"' quotes if we put them in here... so don't!
13213 lt_int_apple_cc_single_mod=no
13214 output_verbose_link_cmd='echo'
13215 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13216 lt_int_apple_cc_single_mod=yes
13218 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13219 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13221 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13223 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13224 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13225 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13226 archive_expsym_cmds_F77='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}'
13228 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13230 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13231 hardcode_direct_F77=no
13232 hardcode_automatic_F77=yes
13233 hardcode_shlibpath_var_F77=unsupported
13234 whole_archive_flag_spec_F77='-all_load $convenience'
13235 link_all_deplibs_F77=yes
13240 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13241 hardcode_libdir_flag_spec_F77='-L$libdir'
13242 hardcode_shlibpath_var_F77=no
13249 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13250 # support. Future versions do this automatically, but an explicit c++rt0.o
13251 # does not break anything, and helps significantly (at the cost of a little
13254 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13255 hardcode_libdir_flag_spec_F77='-R$libdir'
13256 hardcode_direct_F77=yes
13257 hardcode_shlibpath_var_F77=no
13260 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13262 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13263 hardcode_direct_F77=yes
13264 hardcode_minus_L_F77=yes
13265 hardcode_shlibpath_var_F77=no
13268 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13270 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13271 hardcode_libdir_flag_spec_F77='-R$libdir'
13272 hardcode_direct_F77=yes
13273 hardcode_shlibpath_var_F77=no
13277 if test "$GCC" = yes; then
13278 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'
13280 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'
13282 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13283 hardcode_libdir_separator_F77=:
13284 hardcode_direct_F77=yes
13286 # hardcode_minus_L: Not really in the search PATH,
13287 # but as the default location of the library.
13288 hardcode_minus_L_F77=yes
13289 export_dynamic_flag_spec_F77='${wl}-E'
13293 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13294 case "$host_cpu" in
13296 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13299 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13303 case "$host_cpu" in
13305 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13308 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13312 if test "$with_gnu_ld" = no; then
13313 case "$host_cpu" in
13315 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13316 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13317 hardcode_libdir_separator_F77=:
13318 hardcode_direct_F77=no
13319 hardcode_shlibpath_var_F77=no
13322 hardcode_libdir_flag_spec_F77='-L$libdir'
13323 hardcode_direct_F77=no
13324 hardcode_shlibpath_var_F77=no
13326 # hardcode_minus_L: Not really in the search PATH,
13327 # but as the default location of the library.
13328 hardcode_minus_L_F77=yes
13331 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13332 hardcode_libdir_separator_F77=:
13333 hardcode_direct_F77=yes
13334 export_dynamic_flag_spec_F77='${wl}-E'
13336 # hardcode_minus_L: Not really in the search PATH,
13337 # but as the default location of the library.
13338 hardcode_minus_L_F77=yes
13344 irix5* | irix6* | nonstopux*)
13345 if test "$GCC" = yes; then
13346 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'
13348 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'
13349 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13351 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13352 hardcode_libdir_separator_F77=:
13353 link_all_deplibs_F77=yes
13357 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13358 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13360 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13362 hardcode_libdir_flag_spec_F77='-R$libdir'
13363 hardcode_direct_F77=yes
13364 hardcode_shlibpath_var_F77=no
13368 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13369 hardcode_direct_F77=yes
13370 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13371 hardcode_libdir_separator_F77=:
13372 hardcode_shlibpath_var_F77=no
13376 hardcode_direct_F77=yes
13377 hardcode_shlibpath_var_F77=no
13378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13379 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13380 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13381 export_dynamic_flag_spec_F77='${wl}-E'
13384 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13385 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13386 hardcode_libdir_flag_spec_F77='-R$libdir'
13389 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13390 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13397 hardcode_libdir_flag_spec_F77='-L$libdir'
13398 hardcode_minus_L_F77=yes
13399 allow_undefined_flag_F77=unsupported
13400 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'
13401 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13405 if test "$GCC" = yes; then
13406 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13407 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'
13409 allow_undefined_flag_F77=' -expect_unresolved \*'
13410 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'
13412 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13413 hardcode_libdir_separator_F77=:
13416 osf4* | osf5*) # as osf3* with the addition of -msym flag
13417 if test "$GCC" = yes; then
13418 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13419 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'
13420 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13422 allow_undefined_flag_F77=' -expect_unresolved \*'
13423 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'
13424 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~
13425 $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'
13427 # Both c and cxx compiler support -rpath directly
13428 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13430 hardcode_libdir_separator_F77=:
13434 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13435 hardcode_shlibpath_var_F77=no
13436 export_dynamic_flag_spec_F77='${wl}-Bexport'
13437 runpath_var=LD_RUN_PATH
13438 hardcode_runpath_var=yes
13442 no_undefined_flag_F77=' -z text'
13443 if test "$GCC" = yes; then
13444 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13445 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13446 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13448 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13449 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13450 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13452 hardcode_libdir_flag_spec_F77='-R$libdir'
13453 hardcode_shlibpath_var_F77=no
13455 solaris2.[0-5] | solaris2.[0-5].*) ;;
13456 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13457 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13459 link_all_deplibs_F77=yes
13463 if test "x$host_vendor" = xsequent; then
13464 # Use $CC to link under sequent, because it throws in some extra .o
13465 # files that make .init and .fini sections work.
13466 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13468 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13470 hardcode_libdir_flag_spec_F77='-L$libdir'
13471 hardcode_direct_F77=yes
13472 hardcode_minus_L_F77=yes
13473 hardcode_shlibpath_var_F77=no
13477 case $host_vendor in
13479 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13480 hardcode_direct_F77=yes # is this really true???
13483 ## LD is ld it makes a PLAMLIB
13484 ## CC just makes a GrossModule.
13485 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13486 reload_cmds_F77='$CC -r -o $output$reload_objs'
13487 hardcode_direct_F77=no
13490 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13491 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13494 runpath_var='LD_RUN_PATH'
13495 hardcode_shlibpath_var_F77=no
13499 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13500 hardcode_shlibpath_var_F77=no
13501 export_dynamic_flag_spec_F77='-Bexport'
13505 if test -d /usr/nec; then
13506 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13507 hardcode_shlibpath_var_F77=no
13508 runpath_var=LD_RUN_PATH
13509 hardcode_runpath_var=yes
13515 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13516 hardcode_direct_F77=yes
13517 hardcode_minus_L_F77=no
13518 hardcode_shlibpath_var_F77=no
13519 hardcode_runpath_var=yes
13520 runpath_var=LD_RUN_PATH
13523 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13524 no_undefined_flag_F77='${wl}-z ${wl}text'
13525 if test "$GCC" = yes; then
13526 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13528 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13530 runpath_var='LD_RUN_PATH'
13531 hardcode_shlibpath_var_F77=no
13535 no_undefined_flag_F77=' -z text'
13536 # $CC -shared without GNU ld will not create a library from C++
13537 # object files and a static libstdc++, better avoid it by now
13538 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13539 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13540 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13541 hardcode_libdir_flag_spec_F77=
13542 hardcode_shlibpath_var_F77=no
13543 runpath_var='LD_RUN_PATH'
13547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13548 hardcode_libdir_flag_spec_F77='-L$libdir'
13549 hardcode_shlibpath_var_F77=no
13558 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13559 echo "${ECHO_T}$ld_shlibs_F77" >&6
13560 test "$ld_shlibs_F77" = no && can_build_shared=no
13562 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13563 if test "$GCC" = yes; then
13564 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13568 # Do we need to explicitly link libc?
13570 case "x$archive_cmds_need_lc_F77" in
13572 # Assume -lc should be added
13573 archive_cmds_need_lc_F77=yes
13575 if test "$enable_shared" = yes && test "$GCC" = yes; then
13576 case $archive_cmds_F77 in
13578 # FIXME: we may have to deal with multi-command sequences.
13581 # Test whether the compiler implicitly links with -lc since on some
13582 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13583 # to ld, don't add -lc before -lgcc.
13584 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13585 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13587 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13590 (eval $ac_compile) 2>&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } 2>conftest.err; then
13596 libobjs=conftest.$ac_objext
13598 wl=$lt_prog_compiler_wl_F77
13604 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13605 allow_undefined_flag_F77=
13606 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13607 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }
13612 archive_cmds_need_lc_F77=no
13614 archive_cmds_need_lc_F77=yes
13616 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13618 cat conftest.err 1>&5
13621 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13622 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13629 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13630 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13631 hardcode_action_F77=
13632 if test -n "$hardcode_libdir_flag_spec_F77" || \
13633 test -n "$runpath_var F77" || \
13634 test "X$hardcode_automatic_F77"="Xyes" ; then
13636 # We can hardcode non-existant directories.
13637 if test "$hardcode_direct_F77" != no &&
13638 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13639 # have to relink, otherwise we might link with an installed library
13640 # when we should be linking with a yet-to-be-installed one
13641 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13642 test "$hardcode_minus_L_F77" != no; then
13643 # Linking always hardcodes the temporary library directory.
13644 hardcode_action_F77=relink
13646 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13647 hardcode_action_F77=immediate
13650 # We cannot hardcode anything, or else we can only hardcode existing
13652 hardcode_action_F77=unsupported
13654 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13655 echo "${ECHO_T}$hardcode_action_F77" >&6
13657 if test "$hardcode_action_F77" = relink; then
13658 # Fast installation is not supported
13659 enable_fast_install=no
13660 elif test "$shlibpath_overrides_runpath" = yes ||
13661 test "$enable_shared" = no; then
13662 # Fast installation is not necessary
13663 enable_fast_install=needless
13668 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13669 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13670 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13671 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13672 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13673 echo "$as_me:$LINENO: result: yes" >&5
13674 echo "${ECHO_T}yes" >&6
13676 # FIXME - insert some real tests, host_os isn't really good enough
13679 if test -n "$STRIP" ; then
13680 striplib="$STRIP -x"
13681 echo "$as_me:$LINENO: result: yes" >&5
13682 echo "${ECHO_T}yes" >&6
13684 echo "$as_me:$LINENO: result: no" >&5
13685 echo "${ECHO_T}no" >&6
13689 echo "$as_me:$LINENO: result: no" >&5
13690 echo "${ECHO_T}no" >&6
13695 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13696 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13697 library_names_spec=
13698 libname_spec='lib$name'
13702 postuninstall_cmds=
13706 shlibpath_overrides_runpath=unknown
13708 dynamic_linker="$host_os ld.so"
13709 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13710 if test "$GCC" = yes; then
13711 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13712 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13713 # if the path contains ";" then we assume it to be the separator
13714 # otherwise default to the standard path separator (i.e. ":") - it is
13715 # assumed that no part of a normal pathname contains ";" but that should
13716 # okay in the real world where ";" in dirpaths is itself problematic.
13717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13722 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13724 need_lib_prefix=unknown
13725 hardcode_into_libs=no
13727 # when you set need_version to no, make sure it does not cause -set_version
13728 # flags to be left without arguments
13729 need_version=unknown
13734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13735 shlibpath_var=LIBPATH
13737 # AIX 3 has no versioning support, so we append a major version to the name.
13738 soname_spec='${libname}${release}${shared_ext}$major'
13745 hardcode_into_libs=yes
13746 if test "$host_cpu" = ia64; then
13747 # AIX 5 supports IA64
13748 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13749 shlibpath_var=LD_LIBRARY_PATH
13751 # With GCC up to 2.95.x, collect2 would create an import file
13752 # for dependence libraries. The import file would start with
13753 # the line `#! .'. This would cause the generated library to
13754 # depend on `.', always an invalid library. This was fixed in
13755 # development snapshots of GCC prior to 3.0.
13757 aix4 | aix4.[01] | aix4.[01].*)
13758 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13760 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13763 can_build_shared=no
13767 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13768 # soname into executable. Probably we can add versioning support to
13769 # collect2, so additional links can be useful in future.
13770 if test "$aix_use_runtimelinking" = yes; then
13771 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13772 # instead of lib<name>.a to let people know that these are not
13773 # typical AIX shared libraries.
13774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13776 # We preserve .a as extension for shared libraries through AIX4.2
13777 # and later when we are not doing run time linking.
13778 library_names_spec='${libname}${release}.a $libname.a'
13779 soname_spec='${libname}${release}${shared_ext}$major'
13781 shlibpath_var=LIBPATH
13786 library_names_spec='$libname.ixlibrary $libname.a'
13787 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13788 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'
13792 library_names_spec='${libname}${shared_ext}'
13793 dynamic_linker="$host_os ld.so"
13794 shlibpath_var=LIBRARY_PATH
13800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13801 soname_spec='${libname}${release}${shared_ext}$major'
13802 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13803 shlibpath_var=LD_LIBRARY_PATH
13804 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13805 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13806 # the default ld.so.conf also contains /usr/contrib/lib and
13807 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13808 # libtool to hard-code these into programs
13811 cygwin* | mingw* | pw32*)
13812 version_type=windows
13817 case $GCC,$host_os in
13818 yes,cygwin* | yes,mingw* | yes,pw32*)
13819 library_names_spec='$libname.dll.a'
13820 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13821 postinstall_cmds='base_file=`basename \${file}`~
13822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13823 dldir=$destdir/`dirname \$dlpath`~
13824 test -d \$dldir || mkdir -p \$dldir~
13825 $install_prog $dir/$dlname \$dldir/$dlname'
13826 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13827 dlpath=$dir/\$dldll~
13829 shlibpath_overrides_runpath=yes
13833 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13834 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13835 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13838 # MinGW DLLs use traditional 'lib' prefix
13839 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13840 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13841 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13842 # It is most probably a Windows format PATH printed by
13843 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13844 # path with ; separators, and with drive letters. We can handle the
13845 # drive letters (cygwin fileutils understands them), so leave them,
13846 # especially as we might pass files found there to a mingw objdump,
13847 # which wouldn't understand a cygwinified path. Ahh.
13848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13854 # pw32 DLLs use 'pw' prefix rather than 'lib'
13855 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13861 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13864 dynamic_linker='Win32 ld.exe'
13865 # FIXME: first we should search . and the directory the executable is in
13869 darwin* | rhapsody*)
13870 dynamic_linker="$host_os dyld"
13871 version_type=darwin
13874 # FIXME: Relying on posixy $() will cause problems for
13875 # cross-compilation, but unfortunately the echo tests do not
13876 # yet detect zsh echo's removal of \ escapes.
13877 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13878 soname_spec='${libname}${release}${major}$shared_ext'
13879 shlibpath_overrides_runpath=yes
13880 shlibpath_var=DYLD_LIBRARY_PATH
13881 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13882 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13883 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13884 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"`
13886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13894 soname_spec='${libname}${release}${shared_ext}$major'
13895 shlibpath_var=LD_LIBRARY_PATH
13903 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13904 version_type=freebsd-$objformat
13905 case $version_type in
13907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13916 shlibpath_var=LD_LIBRARY_PATH
13919 shlibpath_overrides_runpath=yes
13921 freebsd3.01* | freebsdelf3.01*)
13922 shlibpath_overrides_runpath=yes
13923 hardcode_into_libs=yes
13926 shlibpath_overrides_runpath=no
13927 hardcode_into_libs=yes
13936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13937 soname_spec='${libname}${release}${shared_ext}$major'
13938 shlibpath_var=LD_LIBRARY_PATH
13939 hardcode_into_libs=yes
13942 hpux9* | hpux10* | hpux11*)
13943 # Give a soname corresponding to the major version so that dld.sl refuses to
13944 # link against other versions.
13948 case "$host_cpu" in
13951 hardcode_into_libs=yes
13952 dynamic_linker="$host_os dld.so"
13953 shlibpath_var=LD_LIBRARY_PATH
13954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13956 soname_spec='${libname}${release}${shared_ext}$major'
13957 if test "X$HPUX_IA64_MODE" = X32; then
13958 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13960 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13966 hardcode_into_libs=yes
13967 dynamic_linker="$host_os dld.sl"
13968 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13969 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13971 soname_spec='${libname}${release}${shared_ext}$major'
13972 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13977 dynamic_linker="$host_os dld.sl"
13978 shlibpath_var=SHLIB_PATH
13979 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13981 soname_spec='${libname}${release}${shared_ext}$major'
13984 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13985 postinstall_cmds='chmod 555 $lib'
13988 irix5* | irix6* | nonstopux*)
13990 nonstopux*) version_type=nonstopux ;;
13992 if test "$lt_cv_prog_gnu_ld" = yes; then
14000 soname_spec='${libname}${release}${shared_ext}$major'
14001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14003 irix5* | nonstopux*)
14004 libsuff= shlibsuff=
14007 case $LD in # libtool.m4 will add one of these switches to LD
14008 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14009 libsuff= shlibsuff= libmagic=32-bit;;
14010 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14011 libsuff=32 shlibsuff=N32 libmagic=N32;;
14012 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14013 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14014 *) libsuff= shlibsuff= libmagic=never-match;;
14018 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14019 shlibpath_overrides_runpath=no
14020 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14021 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14022 hardcode_into_libs=yes
14025 # No shared lib support for Linux oldld, aout, or coff.
14026 linux*oldld* | linux*aout* | linux*coff*)
14030 # This must be Linux ELF.
14035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14036 soname_spec='${libname}${release}${shared_ext}$major'
14037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14038 shlibpath_var=LD_LIBRARY_PATH
14039 shlibpath_overrides_runpath=no
14040 # This implies no fast_install, which is unacceptable.
14041 # Some rework will be needed to allow for fast_install
14042 # before this can be enabled.
14043 hardcode_into_libs=yes
14045 # We used to test for /lib/ld.so.1 and disable shared libraries on
14046 # powerpc, because MkLinux only supported shared libraries with the
14047 # GNU dynamic linker. Since this was broken with cross compilers,
14048 # most powerpc-linux boxes support dynamic linking these days and
14049 # people can always --disable-shared, the test was removed, and we
14050 # assume the GNU/Linux dynamic linker is in use.
14051 dynamic_linker='GNU/Linux ld.so'
14058 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14061 dynamic_linker='NetBSD (a.out) ld.so'
14063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14064 soname_spec='${libname}${release}${shared_ext}$major'
14065 dynamic_linker='NetBSD ld.elf_so'
14067 shlibpath_var=LD_LIBRARY_PATH
14068 shlibpath_overrides_runpath=yes
14069 hardcode_into_libs=yes
14074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14075 shlibpath_var=LD_LIBRARY_PATH
14076 shlibpath_overrides_runpath=yes
14083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14084 soname_spec='${libname}${release}${shared_ext}$major'
14085 shlibpath_var=LD_LIBRARY_PATH
14086 shlibpath_overrides_runpath=yes
14093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14095 shlibpath_var=LD_LIBRARY_PATH
14096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14098 openbsd2.[89] | openbsd2.[89].*)
14099 shlibpath_overrides_runpath=no
14102 shlibpath_overrides_runpath=yes
14106 shlibpath_overrides_runpath=yes
14111 libname_spec='$name'
14114 library_names_spec='$libname${shared_ext} $libname.a'
14115 dynamic_linker='OS/2 ld.exe'
14116 shlibpath_var=LIBPATH
14119 osf3* | osf4* | osf5*)
14123 soname_spec='${libname}${release}${shared_ext}$major'
14124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14125 shlibpath_var=LD_LIBRARY_PATH
14126 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14127 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14132 soname_spec='${libname}${release}${shared_ext}$major'
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134 shlibpath_var=LD_LIBRARY_PATH
14141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14142 soname_spec='${libname}${release}${shared_ext}$major'
14143 shlibpath_var=LD_LIBRARY_PATH
14144 shlibpath_overrides_runpath=yes
14145 hardcode_into_libs=yes
14146 # ldd complains unless libraries are executable
14147 postinstall_cmds='chmod +x $lib'
14152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14153 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14154 shlibpath_var=LD_LIBRARY_PATH
14155 shlibpath_overrides_runpath=yes
14156 if test "$with_gnu_ld" = yes; then
14162 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14165 soname_spec='${libname}${release}${shared_ext}$major'
14166 shlibpath_var=LD_LIBRARY_PATH
14167 case $host_vendor in
14169 shlibpath_overrides_runpath=no
14171 export_dynamic_flag_spec='${wl}-Blargedynsym'
14172 runpath_var=LD_RUN_PATH
14180 shlibpath_overrides_runpath=no
14181 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14187 if test -d /usr/nec ;then
14189 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14190 soname_spec='$libname${shared_ext}.$major'
14191 shlibpath_var=LD_LIBRARY_PATH
14197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14198 soname_spec='${libname}${release}${shared_ext}$major'
14199 shlibpath_var=LD_LIBRARY_PATH
14206 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14207 echo "${ECHO_T}$dynamic_linker" >&6
14208 test "$dynamic_linker" = no && can_build_shared=no
14211 # The else clause should only fire when bootstrapping the
14212 # libtool distribution, otherwise you forgot to ship ltmain.sh
14213 # with your package, and you will get complaints that there are
14214 # no rules to generate ltmain.sh.
14215 if test -f "$ltmain"; then
14216 # See if we are running on zsh, and set the options which allow our commands through
14217 # without removal of \ escapes.
14218 if test -n "${ZSH_VERSION+set}" ; then
14219 setopt NO_GLOB_SUBST
14221 # Now quote all the things that may contain metacharacters while being
14222 # careful not to overquote the AC_SUBSTed values. We take copies of the
14223 # variables and quote the copies for generation of the libtool script.
14224 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14225 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14226 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14227 deplibs_check_method reload_flag reload_cmds need_locks \
14228 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14229 lt_cv_sys_global_symbol_to_c_name_address \
14230 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14231 old_postinstall_cmds old_postuninstall_cmds \
14235 lt_prog_compiler_wl_F77 \
14236 lt_prog_compiler_pic_F77 \
14237 lt_prog_compiler_static_F77 \
14238 lt_prog_compiler_no_builtin_flag_F77 \
14239 export_dynamic_flag_spec_F77 \
14240 thread_safe_flag_spec_F77 \
14241 whole_archive_flag_spec_F77 \
14242 enable_shared_with_static_runtimes_F77 \
14243 old_archive_cmds_F77 \
14244 old_archive_from_new_cmds_F77 \
14245 predep_objects_F77 \
14246 postdep_objects_F77 \
14249 compiler_lib_search_path_F77 \
14251 archive_expsym_cmds_F77 \
14252 postinstall_cmds_F77 \
14253 postuninstall_cmds_F77 \
14254 old_archive_from_expsyms_cmds_F77 \
14255 allow_undefined_flag_F77 \
14256 no_undefined_flag_F77 \
14257 export_symbols_cmds_F77 \
14258 hardcode_libdir_flag_spec_F77 \
14259 hardcode_libdir_flag_spec_ld_F77 \
14260 hardcode_libdir_separator_F77 \
14261 hardcode_automatic_F77 \
14263 module_expsym_cmds_F77 \
14264 lt_cv_prog_compiler_c_o_F77 \
14265 exclude_expsyms_F77 \
14266 include_expsyms_F77; do
14269 old_archive_cmds_F77 | \
14270 old_archive_from_new_cmds_F77 | \
14271 archive_cmds_F77 | \
14272 archive_expsym_cmds_F77 | \
14273 module_cmds_F77 | \
14274 module_expsym_cmds_F77 | \
14275 old_archive_from_expsyms_cmds_F77 | \
14276 export_symbols_cmds_F77 | \
14277 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14278 postinstall_cmds | postuninstall_cmds | \
14279 old_postinstall_cmds | old_postuninstall_cmds | \
14280 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14281 # Double-quote double-evaled strings.
14282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14285 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14291 *'\$0 --fallback-echo"')
14292 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14298 cat <<__EOF__ >> "$cfgfile"
14299 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14301 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14303 # Shell to use when invoking shell scripts.
14306 # Whether or not to build shared libraries.
14307 build_libtool_libs=$enable_shared
14309 # Whether or not to build static libraries.
14310 build_old_libs=$enable_static
14312 # Whether or not to add -lc for building shared libraries.
14313 build_libtool_need_lc=$archive_cmds_need_lc_F77
14315 # Whether or not to disallow shared libs when runtime libs are static
14316 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14318 # Whether or not to optimize for fast installation.
14319 fast_install=$enable_fast_install
14322 host_alias=$host_alias
14325 # An echo program that does not interpret backslashes.
14330 AR_FLAGS=$lt_AR_FLAGS
14335 # A language-specific compiler.
14336 CC=$lt_compiler_F77
14338 # Is the compiler the GNU C compiler?
14344 # The linker used to build libraries.
14347 # Whether we need hard or soft links.
14350 # A BSD-compatible nm program.
14353 # A symbol stripping program
14356 # Used to examine libraries when file_magic_cmd begins "file"
14357 MAGIC_CMD=$MAGIC_CMD
14359 # Used on cygwin: DLL creation program.
14362 # Used on cygwin: object dumper.
14365 # Used on cygwin: assembler.
14368 # The name of the directory that contains temporary libtool files.
14371 # How to create reloadable object files.
14372 reload_flag=$lt_reload_flag
14373 reload_cmds=$lt_reload_cmds
14375 # How to pass a linker flag through the compiler.
14376 wl=$lt_lt_prog_compiler_wl_F77
14378 # Object file suffix (normally "o").
14379 objext="$ac_objext"
14381 # Old archive suffix (normally "a").
14384 # Shared library suffix (normally ".so").
14387 # Executable file suffix (normally "").
14390 # Additional compiler flags for building library objects.
14391 pic_flag=$lt_lt_prog_compiler_pic_F77
14394 # What is the maximum length of a command?
14395 max_cmd_len=$lt_cv_sys_max_cmd_len
14397 # Does compiler simultaneously support -c and -o options?
14398 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14400 # Must we lock files when doing compilation ?
14401 need_locks=$lt_need_locks
14403 # Do we need the lib prefix for modules?
14404 need_lib_prefix=$need_lib_prefix
14406 # Do we need a version for libraries?
14407 need_version=$need_version
14409 # Whether dlopen is supported.
14410 dlopen_support=$enable_dlopen
14412 # Whether dlopen of programs is supported.
14413 dlopen_self=$enable_dlopen_self
14415 # Whether dlopen of statically linked programs is supported.
14416 dlopen_self_static=$enable_dlopen_self_static
14418 # Compiler flag to prevent dynamic linking.
14419 link_static_flag=$lt_lt_prog_compiler_static_F77
14421 # Compiler flag to turn off builtin functions.
14422 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14424 # Compiler flag to allow reflexive dlopens.
14425 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14427 # Compiler flag to generate shared objects directly from archives.
14428 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14430 # Compiler flag to generate thread-safe objects.
14431 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14433 # Library versioning type.
14434 version_type=$version_type
14436 # Format of library name prefix.
14437 libname_spec=$lt_libname_spec
14439 # List of archive names. First name is the real one, the rest are links.
14440 # The last name is the one that the linker finds with -lNAME.
14441 library_names_spec=$lt_library_names_spec
14443 # The coded name of the library, if different from the real name.
14444 soname_spec=$lt_soname_spec
14446 # Commands used to build and install an old-style archive.
14448 old_archive_cmds=$lt_old_archive_cmds_F77
14449 old_postinstall_cmds=$lt_old_postinstall_cmds
14450 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14452 # Create an old-style archive from a shared archive.
14453 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14455 # Create a temporary old-style archive to link instead of a shared archive.
14456 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14458 # Commands used to build and install a shared archive.
14459 archive_cmds=$lt_archive_cmds_F77
14460 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14461 postinstall_cmds=$lt_postinstall_cmds
14462 postuninstall_cmds=$lt_postuninstall_cmds
14464 # Commands used to build a loadable module (assumed same as above if empty)
14465 module_cmds=$lt_module_cmds_F77
14466 module_expsym_cmds=$lt_module_expsym_cmds_F77
14468 # Commands to strip libraries.
14469 old_striplib=$lt_old_striplib
14470 striplib=$lt_striplib
14472 # Dependencies to place before the objects being linked to create a
14474 predep_objects=$lt_predep_objects_F77
14476 # Dependencies to place after the objects being linked to create a
14478 postdep_objects=$lt_postdep_objects_F77
14480 # Dependencies to place before the objects being linked to create a
14482 predeps=$lt_predeps_F77
14484 # Dependencies to place after the objects being linked to create a
14486 postdeps=$lt_postdeps_F77
14488 # The library search path used internally by the compiler when linking
14489 # a shared library.
14490 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14492 # Method to check whether dependent libraries are shared objects.
14493 deplibs_check_method=$lt_deplibs_check_method
14495 # Command to use when deplibs_check_method == file_magic.
14496 file_magic_cmd=$lt_file_magic_cmd
14498 # Flag that allows shared libraries with undefined symbols to be built.
14499 allow_undefined_flag=$lt_allow_undefined_flag_F77
14501 # Flag that forces no undefined symbols.
14502 no_undefined_flag=$lt_no_undefined_flag_F77
14504 # Commands used to finish a libtool library installation in a directory.
14505 finish_cmds=$lt_finish_cmds
14507 # Same as above, but a single script fragment to be evaled but not shown.
14508 finish_eval=$lt_finish_eval
14510 # Take the output of nm and produce a listing of raw symbols and C names.
14511 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14513 # Transform the output of nm in a proper C declaration
14514 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14516 # Transform the output of nm in a C name address pair
14517 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14519 # This is the shared library runtime path variable.
14520 runpath_var=$runpath_var
14522 # This is the shared library path variable.
14523 shlibpath_var=$shlibpath_var
14525 # Is shlibpath searched before the hard-coded library search path?
14526 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14528 # How to hardcode a shared library path into an executable.
14529 hardcode_action=$hardcode_action_F77
14531 # Whether we should hardcode library paths into libraries.
14532 hardcode_into_libs=$hardcode_into_libs
14534 # Flag to hardcode \$libdir into a binary during linking.
14535 # This must work even if \$libdir does not exist.
14536 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14538 # If ld is used when linking, flag to hardcode \$libdir into
14539 # a binary during linking. This must work even if \$libdir does
14541 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14543 # Whether we need a single -rpath flag with a separated argument.
14544 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14546 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14547 # resulting binary.
14548 hardcode_direct=$hardcode_direct_F77
14550 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14551 # resulting binary.
14552 hardcode_minus_L=$hardcode_minus_L_F77
14554 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14555 # the resulting binary.
14556 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14558 # Set to yes if building a shared library automatically hardcodes DIR into the library
14559 # and all subsequent libraries and executables linked against it.
14560 hardcode_automatic=$hardcode_automatic_F77
14562 # Variables whose values should be saved in libtool wrapper scripts and
14563 # restored at relink time.
14564 variables_saved_for_relink="$variables_saved_for_relink"
14566 # Whether libtool must link a program against all its dependency libraries.
14567 link_all_deplibs=$link_all_deplibs_F77
14569 # Compile-time system search path for libraries
14570 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14572 # Run-time system search path for libraries
14573 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14575 # Fix the shell variable \$srcfile for the compiler.
14576 fix_srcfile_path="$fix_srcfile_path_F77"
14578 # Set to yes if exported symbols are required.
14579 always_export_symbols=$always_export_symbols_F77
14581 # The commands to list exported symbols.
14582 export_symbols_cmds=$lt_export_symbols_cmds_F77
14584 # The commands to extract the exported symbol list from a shared archive.
14585 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14587 # Symbols that should not be listed in the preloaded symbols.
14588 exclude_expsyms=$lt_exclude_expsyms_F77
14590 # Symbols that must always be exported.
14591 include_expsyms=$lt_include_expsyms_F77
14593 # ### END LIBTOOL TAG CONFIG: $tagname
14599 # If there is no Makefile yet, we rely on a make rule to execute
14600 # `config.status --recheck' to rerun these tests and create the
14601 # libtool script then.
14602 test -f Makefile && make "$ltmain"
14607 ac_cpp='$CPP $CPPFLAGS'
14608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14620 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14624 # Source file extension for Java test sources.
14627 # Object file extension for compiled Java test sources.
14631 # Code to be used in simple compile tests
14632 lt_simple_compile_test_code="class foo {}\n"
14634 # Code to be used in simple link tests
14635 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14637 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14639 # If no C compiler was specified, use CC.
14642 # Allow CC to be a program name with arguments.
14646 # Allow CC to be a program name with arguments.
14652 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14653 archive_cmds_need_lc_GCJ=no
14656 lt_prog_compiler_no_builtin_flag_GCJ=
14658 if test "$GCC" = yes; then
14659 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14661 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14662 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14663 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 lt_cv_prog_compiler_rtti_exceptions=no
14667 ac_outfile=conftest.$ac_objext
14668 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14669 lt_compiler_flag="-fno-rtti -fno-exceptions"
14670 # Insert the option either (1) after the last *FLAGS variable, or
14671 # (2) before a word containing "conftest.", or (3) at the end.
14672 # Note that $ac_compile itself does not contain backslashes and begins
14673 # with a dollar sign (not a hyphen), so the echo should work correctly.
14674 # The option is referenced via a variable to avoid confusing sed.
14675 lt_compile=`echo "$ac_compile" | $SED \
14676 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14678 -e 's:$: $lt_compiler_flag:'`
14679 (eval echo "\"\$as_me:14679: $lt_compile\"" >&5)
14680 (eval "$lt_compile" 2>conftest.err)
14682 cat conftest.err >&5
14683 echo "$as_me:14683: \$? = $ac_status" >&5
14684 if (exit $ac_status) && test -s "$ac_outfile"; then
14685 # The compiler can only warn and ignore the option if not recognized
14686 # So say no if there are warnings
14687 if test ! -s conftest.err; then
14688 lt_cv_prog_compiler_rtti_exceptions=yes
14694 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14695 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14697 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14698 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14705 lt_prog_compiler_wl_GCJ=
14706 lt_prog_compiler_pic_GCJ=
14707 lt_prog_compiler_static_GCJ=
14709 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14710 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14712 if test "$GCC" = yes; then
14713 lt_prog_compiler_wl_GCJ='-Wl,'
14714 lt_prog_compiler_static_GCJ='-static'
14718 # All AIX code is PIC.
14719 if test "$host_cpu" = ia64; then
14720 # AIX 5 now supports IA64 processor
14721 lt_prog_compiler_static_GCJ='-Bstatic'
14726 # FIXME: we need at least 68020 code to build shared libraries, but
14727 # adding the `-m68020' flag to GCC prevents building anything better,
14729 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14732 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14733 # PIC is the default for these OSes.
14736 mingw* | pw32* | os2*)
14737 # This hack is so that the source file can tell whether it is being
14738 # built for inclusion in a dll (and should export symbols for example).
14739 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14742 darwin* | rhapsody*)
14743 # PIC is the default on this platform
14744 # Common symbols not allowed in MH_DYLIB files
14745 lt_prog_compiler_pic_GCJ='-fno-common'
14749 # Just because we use GCC doesn't mean we suddenly get shared libraries
14750 # on systems that don't support them.
14751 lt_prog_compiler_can_build_shared_GCJ=no
14756 if test -d /usr/nec; then
14757 lt_prog_compiler_pic_GCJ=-Kconform_pic
14762 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14763 # not for PA HP-UX.
14764 case "$host_cpu" in
14769 lt_prog_compiler_pic_GCJ='-fPIC'
14775 lt_prog_compiler_pic_GCJ='-fPIC'
14779 # PORTME Check for flag to pass linker flags through the system compiler.
14782 lt_prog_compiler_wl_GCJ='-Wl,'
14783 if test "$host_cpu" = ia64; then
14784 # AIX 5 now supports IA64 processor
14785 lt_prog_compiler_static_GCJ='-Bstatic'
14787 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14791 mingw* | pw32* | os2*)
14792 # This hack is so that the source file can tell whether it is being
14793 # built for inclusion in a dll (and should export symbols for example).
14794 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14797 hpux9* | hpux10* | hpux11*)
14798 lt_prog_compiler_wl_GCJ='-Wl,'
14799 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14800 # not for PA HP-UX.
14801 case "$host_cpu" in
14806 lt_prog_compiler_pic_GCJ='+Z'
14809 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14810 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14813 irix5* | irix6* | nonstopux*)
14814 lt_prog_compiler_wl_GCJ='-Wl,'
14815 # PIC (with -KPIC) is the default.
14816 lt_prog_compiler_static_GCJ='-non_shared'
14820 lt_prog_compiler_pic_GCJ='-KPIC'
14821 lt_prog_compiler_static_GCJ='-Bstatic'
14827 lt_prog_compiler_wl_GCJ='-Wl,'
14828 lt_prog_compiler_pic_GCJ='-KPIC'
14829 lt_prog_compiler_static_GCJ='-static'
14832 lt_prog_compiler_wl_GCJ='-Wl,'
14833 # All Alpha code is PIC.
14834 lt_prog_compiler_static_GCJ='-non_shared'
14839 osf3* | osf4* | osf5*)
14840 lt_prog_compiler_wl_GCJ='-Wl,'
14841 # All OSF/1 code is PIC.
14842 lt_prog_compiler_static_GCJ='-non_shared'
14846 lt_prog_compiler_pic_GCJ='-Kpic'
14847 lt_prog_compiler_static_GCJ='-dn'
14851 lt_prog_compiler_wl_GCJ='-Wl,'
14852 lt_prog_compiler_pic_GCJ='-KPIC'
14853 lt_prog_compiler_static_GCJ='-Bstatic'
14857 lt_prog_compiler_wl_GCJ='-Qoption ld '
14858 lt_prog_compiler_pic_GCJ='-PIC'
14859 lt_prog_compiler_static_GCJ='-Bstatic'
14862 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14863 lt_prog_compiler_wl_GCJ='-Wl,'
14864 lt_prog_compiler_pic_GCJ='-KPIC'
14865 lt_prog_compiler_static_GCJ='-Bstatic'
14869 if test -d /usr/nec ;then
14870 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14871 lt_prog_compiler_static_GCJ='-Bstatic'
14876 lt_prog_compiler_pic_GCJ='-pic'
14877 lt_prog_compiler_static_GCJ='-Bstatic'
14881 lt_prog_compiler_can_build_shared_GCJ=no
14886 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14887 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14890 # Check to make sure the PIC flag actually works.
14892 if test -n "$lt_prog_compiler_pic_GCJ"; then
14893 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14894 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14895 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14898 lt_prog_compiler_pic_works_GCJ=no
14899 ac_outfile=conftest.$ac_objext
14900 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14901 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14902 # Insert the option either (1) after the last *FLAGS variable, or
14903 # (2) before a word containing "conftest.", or (3) at the end.
14904 # Note that $ac_compile itself does not contain backslashes and begins
14905 # with a dollar sign (not a hyphen), so the echo should work correctly.
14906 # The option is referenced via a variable to avoid confusing sed.
14907 lt_compile=`echo "$ac_compile" | $SED \
14908 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14910 -e 's:$: $lt_compiler_flag:'`
14911 (eval echo "\"\$as_me:14911: $lt_compile\"" >&5)
14912 (eval "$lt_compile" 2>conftest.err)
14914 cat conftest.err >&5
14915 echo "$as_me:14915: \$? = $ac_status" >&5
14916 if (exit $ac_status) && test -s "$ac_outfile"; then
14917 # The compiler can only warn and ignore the option if not recognized
14918 # So say no if there are warnings
14919 if test ! -s conftest.err; then
14920 lt_prog_compiler_pic_works_GCJ=yes
14926 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14927 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14929 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14930 case $lt_prog_compiler_pic_GCJ in
14932 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14935 lt_prog_compiler_pic_GCJ=
14936 lt_prog_compiler_can_build_shared_GCJ=no
14941 # For platforms which do not support PIC, -DPIC is meaningless:
14943 lt_prog_compiler_pic_GCJ=
14946 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14950 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14951 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14952 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14955 lt_cv_prog_compiler_c_o_GCJ=no
14956 $rm -r conftest 2>/dev/null
14960 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14962 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14963 # that will create temporary files in the current directory regardless of
14964 # the output directory. Thus, making CWD read-only will cause this test
14965 # to fail, enabling locking or at least warning the user not to do parallel
14969 lt_compiler_flag="-o out/conftest2.$ac_objext"
14970 # Insert the option either (1) after the last *FLAGS variable, or
14971 # (2) before a word containing "conftest.", or (3) at the end.
14972 # Note that $ac_compile itself does not contain backslashes and begins
14973 # with a dollar sign (not a hyphen), so the echo should work correctly.
14974 lt_compile=`echo "$ac_compile" | $SED \
14975 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14977 -e 's:$: $lt_compiler_flag:'`
14978 (eval echo "\"\$as_me:14978: $lt_compile\"" >&5)
14979 (eval "$lt_compile" 2>out/conftest.err)
14981 cat out/conftest.err >&5
14982 echo "$as_me:14982: \$? = $ac_status" >&5
14983 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14985 # The compiler can only warn and ignore the option if not recognized
14986 # So say no if there are warnings
14987 if test ! -s out/conftest.err; then
14988 lt_cv_prog_compiler_c_o_GCJ=yes
14992 $rm conftest* out/*
14999 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15000 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15003 hard_links="nottested"
15004 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15005 # do not overwrite the value of need_locks provided by the user
15006 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15007 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15010 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15012 ln conftest.a conftest.b 2>&5 || hard_links=no
15013 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15014 echo "$as_me:$LINENO: result: $hard_links" >&5
15015 echo "${ECHO_T}$hard_links" >&6
15016 if test "$hard_links" = no; then
15017 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15018 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15025 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15026 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15029 allow_undefined_flag_GCJ=
15030 enable_shared_with_static_runtimes_GCJ=no
15032 archive_expsym_cmds_GCJ=
15033 old_archive_From_new_cmds_GCJ=
15034 old_archive_from_expsyms_cmds_GCJ=
15035 export_dynamic_flag_spec_GCJ=
15036 whole_archive_flag_spec_GCJ=
15037 thread_safe_flag_spec_GCJ=
15038 hardcode_libdir_flag_spec_GCJ=
15039 hardcode_libdir_flag_spec_ld_GCJ=
15040 hardcode_libdir_separator_GCJ=
15041 hardcode_direct_GCJ=no
15042 hardcode_minus_L_GCJ=no
15043 hardcode_shlibpath_var_GCJ=unsupported
15044 link_all_deplibs_GCJ=unknown
15045 hardcode_automatic_GCJ=no
15047 module_expsym_cmds_GCJ=
15048 always_export_symbols_GCJ=no
15049 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15050 # include_expsyms should be a list of space-separated symbols to be *always*
15051 # included in the symbol list
15052 include_expsyms_GCJ=
15053 # exclude_expsyms can be an extended regexp of symbols to exclude
15054 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15055 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15056 # as well as any symbol that contains `d'.
15057 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15058 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15059 # platforms (ab)use it in PIC code, but their linkers get confused if
15060 # the symbol is explicitly referenced. Since portable code cannot
15061 # rely on this symbol name, it's probably fine to never include it in
15062 # preloaded symbol tables.
15063 extract_expsyms_cmds=
15066 cygwin* | mingw* | pw32*)
15067 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15068 # When not using gcc, we currently assume that we are using
15069 # Microsoft Visual C++.
15070 if test "$GCC" != yes; then
15080 if test "$with_gnu_ld" = yes; then
15081 # If archive_cmds runs LD, not CC, wlarc should be empty
15084 # See if GNU ld supports shared libraries.
15086 aix3* | aix4* | aix5*)
15087 # On AIX/PPC, the GNU linker is very broken
15088 if test "$host_cpu" != ia64; then
15092 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15093 *** to be unable to reliably create shared libraries on AIX.
15094 *** Therefore, libtool is disabling shared libraries support. If you
15095 *** really care for shared libraries, you may want to modify your PATH
15096 *** so that a non-GNU linker is found, and then restart.
15103 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)'
15104 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15105 hardcode_minus_L_GCJ=yes
15107 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15108 # that the semantics of dynamic libraries on AmigaOS, at least up
15109 # to version 4, is to share data among multiple programs linked
15110 # with the same dynamic library. Since this doesn't match the
15111 # behavior of shared libraries on other platforms, we can't use
15117 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15118 allow_undefined_flag_GCJ=unsupported
15119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15120 # support --undefined. This deserves some investigation. FIXME
15121 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15127 cygwin* | mingw* | pw32*)
15128 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15129 # as there is no search path for DLLs.
15130 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15131 allow_undefined_flag_GCJ=unsupported
15132 always_export_symbols_GCJ=no
15133 enable_shared_with_static_runtimes_GCJ=yes
15134 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15136 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15137 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15138 # If the export-symbols file already is a .def file (1st line
15139 # is EXPORTS), use it as is; otherwise, prepend...
15140 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15141 cp $export_symbols $output_objdir/$soname.def;
15143 echo EXPORTS > $output_objdir/$soname.def;
15144 cat $export_symbols >> $output_objdir/$soname.def;
15146 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15153 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15154 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15157 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15158 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15163 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15167 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15168 *** create shared libraries on Solaris systems. Therefore, libtool
15169 *** is disabling shared libraries support. We urge you to upgrade GNU
15170 *** binutils to release 2.9.1 or newer. Another option is to modify
15171 *** your PATH or compiler configuration so that the native linker is
15172 *** used, and then restart.
15175 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15176 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15177 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15184 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15186 hardcode_direct_GCJ=yes
15187 hardcode_shlibpath_var_GCJ=no
15191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15192 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15193 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15200 if test "$ld_shlibs_GCJ" = yes; then
15201 runpath_var=LD_RUN_PATH
15202 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15203 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15204 # ancient GNU ld didn't support --whole-archive et. al.
15205 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15206 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15208 whole_archive_flag_spec_GCJ=
15212 # PORTME fill in a description of your system's linker (not GNU ld)
15215 allow_undefined_flag_GCJ=unsupported
15216 always_export_symbols_GCJ=yes
15217 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'
15218 # Note: this linker hardcodes the directories in LIBPATH if there
15219 # are no directories specified by -L.
15220 hardcode_minus_L_GCJ=yes
15221 if test "$GCC" = yes && test -z "$link_static_flag"; then
15222 # Neither direct hardcoding nor static linking is supported with a
15224 hardcode_direct_GCJ=unsupported
15229 if test "$host_cpu" = ia64; then
15230 # On IA64, the linker does run time linking by default, so we don't
15231 # have to do anything special.
15232 aix_use_runtimelinking=no
15233 exp_sym_flag='-Bexport'
15236 # If we're using GNU nm, then we don't want the "-C" option.
15237 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15238 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15239 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'
15241 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'
15243 aix_use_runtimelinking=no
15245 # Test if we are trying to use run time linking or normal
15246 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15247 # need to do runtime linking.
15248 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15249 for ld_flag in $LDFLAGS; do
15250 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15251 aix_use_runtimelinking=yes
15257 exp_sym_flag='-bexport'
15258 no_entry_flag='-bnoentry'
15261 # When large executables or shared objects are built, AIX ld can
15262 # have problems creating the table of contents. If linking a library
15263 # or program results in "error TOC overflow" add -mminimal-toc to
15264 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15265 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15267 archive_cmds_GCJ=''
15268 hardcode_direct_GCJ=yes
15269 hardcode_libdir_separator_GCJ=':'
15270 link_all_deplibs_GCJ=yes
15272 if test "$GCC" = yes; then
15273 case $host_os in aix4.012|aix4.012.*)
15274 # We only want to do this on AIX 4.2 and lower, the check
15275 # below for broken collect2 doesn't work under 4.3+
15276 collect2name=`${CC} -print-prog-name=collect2`
15277 if test -f "$collect2name" && \
15278 strings "$collect2name" | grep resolve_lib_name >/dev/null
15280 # We have reworked collect2
15281 hardcode_direct_GCJ=yes
15283 # We have old collect2
15284 hardcode_direct_GCJ=unsupported
15285 # It fails to find uninstalled libraries when the uninstalled
15286 # path is not listed in the libpath. Setting hardcode_minus_L
15287 # to unsupported forces relinking
15288 hardcode_minus_L_GCJ=yes
15289 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15290 hardcode_libdir_separator_GCJ=
15293 shared_flag='-shared'
15296 if test "$host_cpu" = ia64; then
15297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15298 # chokes on -Wl,-G. The following line is correct:
15301 if test "$aix_use_runtimelinking" = yes; then
15302 shared_flag='${wl}-G'
15304 shared_flag='${wl}-bM:SRE'
15309 # It seems that -bexpall does not export symbols beginning with
15310 # underscore (_), so it is better to generate a list of symbols to export.
15311 always_export_symbols_GCJ=yes
15312 if test "$aix_use_runtimelinking" = yes; then
15313 # Warning - without using the other runtime loading flags (-brtl),
15314 # -berok will link without error, but may produce a broken library.
15315 allow_undefined_flag_GCJ='-berok'
15316 # Determine the default libpath from the value encoded in an empty executable.
15317 cat >conftest.$ac_ext <<_ACEOF
15318 #line $LINENO "configure"
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15333 rm -f conftest.$ac_objext conftest$ac_exeext
15334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15335 (eval $ac_link) 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } &&
15339 { ac_try='test -s conftest$ac_exeext'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15346 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15348 # Check for a 64-bit object if we didn't find anything.
15349 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; }
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15357 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15359 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15360 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"
15362 if test "$host_cpu" = ia64; then
15363 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15364 allow_undefined_flag_GCJ="-z nodefs"
15365 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"
15367 # Determine the default libpath from the value encoded in an empty executable.
15368 cat >conftest.$ac_ext <<_ACEOF
15369 #line $LINENO "configure"
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15384 rm -f conftest.$ac_objext conftest$ac_exeext
15385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15386 (eval $ac_link) 2>&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -s conftest$ac_exeext'
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; }; then
15397 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15399 # Check for a 64-bit object if we didn't find anything.
15400 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; }
15403 echo "$as_me: failed program was:" >&5
15404 sed 's/^/| /' conftest.$ac_ext >&5
15407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15408 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15410 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15411 # Warning - without using the other run time loading flags,
15412 # -berok will link without error, but may produce a broken library.
15413 no_undefined_flag_GCJ=' ${wl}-bernotok'
15414 allow_undefined_flag_GCJ=' ${wl}-berok'
15415 # -bexpall does not export symbols beginning with underscore (_)
15416 always_export_symbols_GCJ=yes
15417 # Exported symbols can be pulled into shared objects from archives
15418 whole_archive_flag_spec_GCJ=' '
15419 archive_cmds_need_lc_GCJ=yes
15420 # This is similar to how AIX traditionally builds it's shared libraries.
15421 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'
15427 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)'
15428 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15429 hardcode_minus_L_GCJ=yes
15430 # see comment about different semantics on the GNU ld section
15435 export_dynamic_flag_spec_GCJ=-rdynamic
15438 cygwin* | mingw* | pw32*)
15439 # When not using gcc, we currently assume that we are using
15440 # Microsoft Visual C++.
15441 # hardcode_libdir_flag_spec is actually meaningless, as there is
15442 # no search path for DLLs.
15443 hardcode_libdir_flag_spec_GCJ=' '
15444 allow_undefined_flag_GCJ=unsupported
15445 # Tell ltmain to make .lib files, not .a files.
15447 # Tell ltmain to make .dll files, not .so files.
15449 # FIXME: Setting linknames here is a bad hack.
15450 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15451 # The linker will automatically build a .lib file if we build a DLL.
15452 old_archive_From_new_cmds_GCJ='true'
15453 # FIXME: Should let the user specify the lib program.
15454 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15455 fix_srcfile_path='`cygpath -w "$srcfile"`'
15456 enable_shared_with_static_runtimes_GCJ=yes
15459 darwin* | rhapsody*)
15460 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15461 archive_cmds_need_lc_GCJ=no
15463 rhapsody* | darwin1.[012])
15464 allow_undefined_flag_GCJ='-undefined suppress'
15467 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15470 # FIXME: Relying on posixy $() will cause problems for
15471 # cross-compilation, but unfortunately the echo tests do not
15472 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15473 # `"' quotes if we put them in here... so don't!
15474 lt_int_apple_cc_single_mod=no
15475 output_verbose_link_cmd='echo'
15476 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15477 lt_int_apple_cc_single_mod=yes
15479 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15480 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15482 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15484 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15485 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15486 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15487 archive_expsym_cmds_GCJ='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}'
15489 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15491 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15492 hardcode_direct_GCJ=no
15493 hardcode_automatic_GCJ=yes
15494 hardcode_shlibpath_var_GCJ=unsupported
15495 whole_archive_flag_spec_GCJ='-all_load $convenience'
15496 link_all_deplibs_GCJ=yes
15501 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15502 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15503 hardcode_shlibpath_var_GCJ=no
15510 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15511 # support. Future versions do this automatically, but an explicit c++rt0.o
15512 # does not break anything, and helps significantly (at the cost of a little
15515 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15516 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15517 hardcode_direct_GCJ=yes
15518 hardcode_shlibpath_var_GCJ=no
15521 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15523 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15524 hardcode_direct_GCJ=yes
15525 hardcode_minus_L_GCJ=yes
15526 hardcode_shlibpath_var_GCJ=no
15529 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15531 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15532 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15533 hardcode_direct_GCJ=yes
15534 hardcode_shlibpath_var_GCJ=no
15538 if test "$GCC" = yes; then
15539 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'
15541 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'
15543 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15544 hardcode_libdir_separator_GCJ=:
15545 hardcode_direct_GCJ=yes
15547 # hardcode_minus_L: Not really in the search PATH,
15548 # but as the default location of the library.
15549 hardcode_minus_L_GCJ=yes
15550 export_dynamic_flag_spec_GCJ='${wl}-E'
15554 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15555 case "$host_cpu" in
15557 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15560 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15564 case "$host_cpu" in
15566 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15569 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15573 if test "$with_gnu_ld" = no; then
15574 case "$host_cpu" in
15576 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15577 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15578 hardcode_libdir_separator_GCJ=:
15579 hardcode_direct_GCJ=no
15580 hardcode_shlibpath_var_GCJ=no
15583 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15584 hardcode_direct_GCJ=no
15585 hardcode_shlibpath_var_GCJ=no
15587 # hardcode_minus_L: Not really in the search PATH,
15588 # but as the default location of the library.
15589 hardcode_minus_L_GCJ=yes
15592 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15593 hardcode_libdir_separator_GCJ=:
15594 hardcode_direct_GCJ=yes
15595 export_dynamic_flag_spec_GCJ='${wl}-E'
15597 # hardcode_minus_L: Not really in the search PATH,
15598 # but as the default location of the library.
15599 hardcode_minus_L_GCJ=yes
15605 irix5* | irix6* | nonstopux*)
15606 if test "$GCC" = yes; then
15607 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'
15609 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'
15610 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15612 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15613 hardcode_libdir_separator_GCJ=:
15614 link_all_deplibs_GCJ=yes
15618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15619 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15621 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15623 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15624 hardcode_direct_GCJ=yes
15625 hardcode_shlibpath_var_GCJ=no
15629 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15630 hardcode_direct_GCJ=yes
15631 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15632 hardcode_libdir_separator_GCJ=:
15633 hardcode_shlibpath_var_GCJ=no
15637 hardcode_direct_GCJ=yes
15638 hardcode_shlibpath_var_GCJ=no
15639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15640 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15641 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15642 export_dynamic_flag_spec_GCJ='${wl}-E'
15645 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15646 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15647 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15650 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15651 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15658 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15659 hardcode_minus_L_GCJ=yes
15660 allow_undefined_flag_GCJ=unsupported
15661 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'
15662 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15666 if test "$GCC" = yes; then
15667 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15668 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'
15670 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15671 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'
15673 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15674 hardcode_libdir_separator_GCJ=:
15677 osf4* | osf5*) # as osf3* with the addition of -msym flag
15678 if test "$GCC" = yes; then
15679 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15680 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'
15681 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15683 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15684 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'
15685 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~
15686 $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'
15688 # Both c and cxx compiler support -rpath directly
15689 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15691 hardcode_libdir_separator_GCJ=:
15695 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15696 hardcode_shlibpath_var_GCJ=no
15697 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15698 runpath_var=LD_RUN_PATH
15699 hardcode_runpath_var=yes
15703 no_undefined_flag_GCJ=' -z text'
15704 if test "$GCC" = yes; then
15705 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15706 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15707 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15709 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15710 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15711 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15713 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15714 hardcode_shlibpath_var_GCJ=no
15716 solaris2.[0-5] | solaris2.[0-5].*) ;;
15717 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15718 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15720 link_all_deplibs_GCJ=yes
15724 if test "x$host_vendor" = xsequent; then
15725 # Use $CC to link under sequent, because it throws in some extra .o
15726 # files that make .init and .fini sections work.
15727 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15729 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15731 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15732 hardcode_direct_GCJ=yes
15733 hardcode_minus_L_GCJ=yes
15734 hardcode_shlibpath_var_GCJ=no
15738 case $host_vendor in
15740 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741 hardcode_direct_GCJ=yes # is this really true???
15744 ## LD is ld it makes a PLAMLIB
15745 ## CC just makes a GrossModule.
15746 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15747 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15748 hardcode_direct_GCJ=no
15751 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15752 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15755 runpath_var='LD_RUN_PATH'
15756 hardcode_shlibpath_var_GCJ=no
15760 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15761 hardcode_shlibpath_var_GCJ=no
15762 export_dynamic_flag_spec_GCJ='-Bexport'
15766 if test -d /usr/nec; then
15767 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15768 hardcode_shlibpath_var_GCJ=no
15769 runpath_var=LD_RUN_PATH
15770 hardcode_runpath_var=yes
15776 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15777 hardcode_direct_GCJ=yes
15778 hardcode_minus_L_GCJ=no
15779 hardcode_shlibpath_var_GCJ=no
15780 hardcode_runpath_var=yes
15781 runpath_var=LD_RUN_PATH
15784 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15785 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15786 if test "$GCC" = yes; then
15787 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15789 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15791 runpath_var='LD_RUN_PATH'
15792 hardcode_shlibpath_var_GCJ=no
15796 no_undefined_flag_GCJ=' -z text'
15797 # $CC -shared without GNU ld will not create a library from C++
15798 # object files and a static libstdc++, better avoid it by now
15799 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15800 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15801 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15802 hardcode_libdir_flag_spec_GCJ=
15803 hardcode_shlibpath_var_GCJ=no
15804 runpath_var='LD_RUN_PATH'
15808 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15810 hardcode_shlibpath_var_GCJ=no
15819 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15820 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15821 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15823 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15824 if test "$GCC" = yes; then
15825 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15829 # Do we need to explicitly link libc?
15831 case "x$archive_cmds_need_lc_GCJ" in
15833 # Assume -lc should be added
15834 archive_cmds_need_lc_GCJ=yes
15836 if test "$enable_shared" = yes && test "$GCC" = yes; then
15837 case $archive_cmds_GCJ in
15839 # FIXME: we may have to deal with multi-command sequences.
15842 # Test whether the compiler implicitly links with -lc since on some
15843 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15844 # to ld, don't add -lc before -lgcc.
15845 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15846 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15848 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15851 (eval $ac_compile) 2>&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } 2>conftest.err; then
15857 libobjs=conftest.$ac_objext
15859 wl=$lt_prog_compiler_wl_GCJ
15865 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15866 allow_undefined_flag_GCJ=
15867 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15868 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }
15873 archive_cmds_need_lc_GCJ=no
15875 archive_cmds_need_lc_GCJ=yes
15877 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15879 cat conftest.err 1>&5
15882 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15883 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15890 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15891 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15892 hardcode_action_GCJ=
15893 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15894 test -n "$runpath_var GCJ" || \
15895 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15897 # We can hardcode non-existant directories.
15898 if test "$hardcode_direct_GCJ" != no &&
15899 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15900 # have to relink, otherwise we might link with an installed library
15901 # when we should be linking with a yet-to-be-installed one
15902 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15903 test "$hardcode_minus_L_GCJ" != no; then
15904 # Linking always hardcodes the temporary library directory.
15905 hardcode_action_GCJ=relink
15907 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15908 hardcode_action_GCJ=immediate
15911 # We cannot hardcode anything, or else we can only hardcode existing
15913 hardcode_action_GCJ=unsupported
15915 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15916 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15918 if test "$hardcode_action_GCJ" = relink; then
15919 # Fast installation is not supported
15920 enable_fast_install=no
15921 elif test "$shlibpath_overrides_runpath" = yes ||
15922 test "$enable_shared" = no; then
15923 # Fast installation is not necessary
15924 enable_fast_install=needless
15929 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15930 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15931 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15932 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15933 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15934 echo "$as_me:$LINENO: result: yes" >&5
15935 echo "${ECHO_T}yes" >&6
15937 # FIXME - insert some real tests, host_os isn't really good enough
15940 if test -n "$STRIP" ; then
15941 striplib="$STRIP -x"
15942 echo "$as_me:$LINENO: result: yes" >&5
15943 echo "${ECHO_T}yes" >&6
15945 echo "$as_me:$LINENO: result: no" >&5
15946 echo "${ECHO_T}no" >&6
15950 echo "$as_me:$LINENO: result: no" >&5
15951 echo "${ECHO_T}no" >&6
15956 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15957 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15958 library_names_spec=
15959 libname_spec='lib$name'
15963 postuninstall_cmds=
15967 shlibpath_overrides_runpath=unknown
15969 dynamic_linker="$host_os ld.so"
15970 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15971 if test "$GCC" = yes; then
15972 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15973 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15974 # if the path contains ";" then we assume it to be the separator
15975 # otherwise default to the standard path separator (i.e. ":") - it is
15976 # assumed that no part of a normal pathname contains ";" but that should
15977 # okay in the real world where ";" in dirpaths is itself problematic.
15978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15980 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15983 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15985 need_lib_prefix=unknown
15986 hardcode_into_libs=no
15988 # when you set need_version to no, make sure it does not cause -set_version
15989 # flags to be left without arguments
15990 need_version=unknown
15995 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15996 shlibpath_var=LIBPATH
15998 # AIX 3 has no versioning support, so we append a major version to the name.
15999 soname_spec='${libname}${release}${shared_ext}$major'
16006 hardcode_into_libs=yes
16007 if test "$host_cpu" = ia64; then
16008 # AIX 5 supports IA64
16009 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16010 shlibpath_var=LD_LIBRARY_PATH
16012 # With GCC up to 2.95.x, collect2 would create an import file
16013 # for dependence libraries. The import file would start with
16014 # the line `#! .'. This would cause the generated library to
16015 # depend on `.', always an invalid library. This was fixed in
16016 # development snapshots of GCC prior to 3.0.
16018 aix4 | aix4.[01] | aix4.[01].*)
16019 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16021 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16024 can_build_shared=no
16028 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16029 # soname into executable. Probably we can add versioning support to
16030 # collect2, so additional links can be useful in future.
16031 if test "$aix_use_runtimelinking" = yes; then
16032 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16033 # instead of lib<name>.a to let people know that these are not
16034 # typical AIX shared libraries.
16035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16037 # We preserve .a as extension for shared libraries through AIX4.2
16038 # and later when we are not doing run time linking.
16039 library_names_spec='${libname}${release}.a $libname.a'
16040 soname_spec='${libname}${release}${shared_ext}$major'
16042 shlibpath_var=LIBPATH
16047 library_names_spec='$libname.ixlibrary $libname.a'
16048 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16049 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'
16053 library_names_spec='${libname}${shared_ext}'
16054 dynamic_linker="$host_os ld.so"
16055 shlibpath_var=LIBRARY_PATH
16061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062 soname_spec='${libname}${release}${shared_ext}$major'
16063 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16064 shlibpath_var=LD_LIBRARY_PATH
16065 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16066 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16067 # the default ld.so.conf also contains /usr/contrib/lib and
16068 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16069 # libtool to hard-code these into programs
16072 cygwin* | mingw* | pw32*)
16073 version_type=windows
16078 case $GCC,$host_os in
16079 yes,cygwin* | yes,mingw* | yes,pw32*)
16080 library_names_spec='$libname.dll.a'
16081 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16082 postinstall_cmds='base_file=`basename \${file}`~
16083 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16084 dldir=$destdir/`dirname \$dlpath`~
16085 test -d \$dldir || mkdir -p \$dldir~
16086 $install_prog $dir/$dlname \$dldir/$dlname'
16087 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16088 dlpath=$dir/\$dldll~
16090 shlibpath_overrides_runpath=yes
16094 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16095 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16096 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16099 # MinGW DLLs use traditional 'lib' prefix
16100 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16101 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16102 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16103 # It is most probably a Windows format PATH printed by
16104 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16105 # path with ; separators, and with drive letters. We can handle the
16106 # drive letters (cygwin fileutils understands them), so leave them,
16107 # especially as we might pass files found there to a mingw objdump,
16108 # which wouldn't understand a cygwinified path. Ahh.
16109 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16111 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16115 # pw32 DLLs use 'pw' prefix rather than 'lib'
16116 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16122 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16125 dynamic_linker='Win32 ld.exe'
16126 # FIXME: first we should search . and the directory the executable is in
16130 darwin* | rhapsody*)
16131 dynamic_linker="$host_os dyld"
16132 version_type=darwin
16135 # FIXME: Relying on posixy $() will cause problems for
16136 # cross-compilation, but unfortunately the echo tests do not
16137 # yet detect zsh echo's removal of \ escapes.
16138 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16139 soname_spec='${libname}${release}${major}$shared_ext'
16140 shlibpath_overrides_runpath=yes
16141 shlibpath_var=DYLD_LIBRARY_PATH
16142 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16143 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16144 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16145 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"`
16147 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16155 soname_spec='${libname}${release}${shared_ext}$major'
16156 shlibpath_var=LD_LIBRARY_PATH
16164 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16165 version_type=freebsd-$objformat
16166 case $version_type in
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16177 shlibpath_var=LD_LIBRARY_PATH
16180 shlibpath_overrides_runpath=yes
16182 freebsd3.01* | freebsdelf3.01*)
16183 shlibpath_overrides_runpath=yes
16184 hardcode_into_libs=yes
16187 shlibpath_overrides_runpath=no
16188 hardcode_into_libs=yes
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16198 soname_spec='${libname}${release}${shared_ext}$major'
16199 shlibpath_var=LD_LIBRARY_PATH
16200 hardcode_into_libs=yes
16203 hpux9* | hpux10* | hpux11*)
16204 # Give a soname corresponding to the major version so that dld.sl refuses to
16205 # link against other versions.
16209 case "$host_cpu" in
16212 hardcode_into_libs=yes
16213 dynamic_linker="$host_os dld.so"
16214 shlibpath_var=LD_LIBRARY_PATH
16215 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217 soname_spec='${libname}${release}${shared_ext}$major'
16218 if test "X$HPUX_IA64_MODE" = X32; then
16219 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16221 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16227 hardcode_into_libs=yes
16228 dynamic_linker="$host_os dld.sl"
16229 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232 soname_spec='${libname}${release}${shared_ext}$major'
16233 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16238 dynamic_linker="$host_os dld.sl"
16239 shlibpath_var=SHLIB_PATH
16240 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16242 soname_spec='${libname}${release}${shared_ext}$major'
16245 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16246 postinstall_cmds='chmod 555 $lib'
16249 irix5* | irix6* | nonstopux*)
16251 nonstopux*) version_type=nonstopux ;;
16253 if test "$lt_cv_prog_gnu_ld" = yes; then
16261 soname_spec='${libname}${release}${shared_ext}$major'
16262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16264 irix5* | nonstopux*)
16265 libsuff= shlibsuff=
16268 case $LD in # libtool.m4 will add one of these switches to LD
16269 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16270 libsuff= shlibsuff= libmagic=32-bit;;
16271 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16272 libsuff=32 shlibsuff=N32 libmagic=N32;;
16273 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16274 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16275 *) libsuff= shlibsuff= libmagic=never-match;;
16279 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16280 shlibpath_overrides_runpath=no
16281 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16282 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16283 hardcode_into_libs=yes
16286 # No shared lib support for Linux oldld, aout, or coff.
16287 linux*oldld* | linux*aout* | linux*coff*)
16291 # This must be Linux ELF.
16296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16297 soname_spec='${libname}${release}${shared_ext}$major'
16298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16299 shlibpath_var=LD_LIBRARY_PATH
16300 shlibpath_overrides_runpath=no
16301 # This implies no fast_install, which is unacceptable.
16302 # Some rework will be needed to allow for fast_install
16303 # before this can be enabled.
16304 hardcode_into_libs=yes
16306 # We used to test for /lib/ld.so.1 and disable shared libraries on
16307 # powerpc, because MkLinux only supported shared libraries with the
16308 # GNU dynamic linker. Since this was broken with cross compilers,
16309 # most powerpc-linux boxes support dynamic linking these days and
16310 # people can always --disable-shared, the test was removed, and we
16311 # assume the GNU/Linux dynamic linker is in use.
16312 dynamic_linker='GNU/Linux ld.so'
16319 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16322 dynamic_linker='NetBSD (a.out) ld.so'
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16325 soname_spec='${libname}${release}${shared_ext}$major'
16326 dynamic_linker='NetBSD ld.elf_so'
16328 shlibpath_var=LD_LIBRARY_PATH
16329 shlibpath_overrides_runpath=yes
16330 hardcode_into_libs=yes
16335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16336 shlibpath_var=LD_LIBRARY_PATH
16337 shlibpath_overrides_runpath=yes
16344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345 soname_spec='${libname}${release}${shared_ext}$major'
16346 shlibpath_var=LD_LIBRARY_PATH
16347 shlibpath_overrides_runpath=yes
16354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16356 shlibpath_var=LD_LIBRARY_PATH
16357 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16359 openbsd2.[89] | openbsd2.[89].*)
16360 shlibpath_overrides_runpath=no
16363 shlibpath_overrides_runpath=yes
16367 shlibpath_overrides_runpath=yes
16372 libname_spec='$name'
16375 library_names_spec='$libname${shared_ext} $libname.a'
16376 dynamic_linker='OS/2 ld.exe'
16377 shlibpath_var=LIBPATH
16380 osf3* | osf4* | osf5*)
16384 soname_spec='${libname}${release}${shared_ext}$major'
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386 shlibpath_var=LD_LIBRARY_PATH
16387 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16388 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16393 soname_spec='${libname}${release}${shared_ext}$major'
16394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16395 shlibpath_var=LD_LIBRARY_PATH
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403 soname_spec='${libname}${release}${shared_ext}$major'
16404 shlibpath_var=LD_LIBRARY_PATH
16405 shlibpath_overrides_runpath=yes
16406 hardcode_into_libs=yes
16407 # ldd complains unless libraries are executable
16408 postinstall_cmds='chmod +x $lib'
16413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16414 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16415 shlibpath_var=LD_LIBRARY_PATH
16416 shlibpath_overrides_runpath=yes
16417 if test "$with_gnu_ld" = yes; then
16423 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426 soname_spec='${libname}${release}${shared_ext}$major'
16427 shlibpath_var=LD_LIBRARY_PATH
16428 case $host_vendor in
16430 shlibpath_overrides_runpath=no
16432 export_dynamic_flag_spec='${wl}-Blargedynsym'
16433 runpath_var=LD_RUN_PATH
16441 shlibpath_overrides_runpath=no
16442 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16448 if test -d /usr/nec ;then
16450 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16451 soname_spec='$libname${shared_ext}.$major'
16452 shlibpath_var=LD_LIBRARY_PATH
16458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16459 soname_spec='${libname}${release}${shared_ext}$major'
16460 shlibpath_var=LD_LIBRARY_PATH
16467 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16468 echo "${ECHO_T}$dynamic_linker" >&6
16469 test "$dynamic_linker" = no && can_build_shared=no
16471 if test "x$enable_dlopen" != xyes; then
16472 enable_dlopen=unknown
16473 enable_dlopen_self=unknown
16474 enable_dlopen_self_static=unknown
16481 lt_cv_dlopen="load_add_on"
16483 lt_cv_dlopen_self=yes
16487 lt_cv_dlopen="LoadLibrary"
16492 lt_cv_dlopen="dlopen"
16497 # if libdl is installed we need to link against it
16498 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16499 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16500 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16503 ac_check_lib_save_LIBS=$LIBS
16505 cat >conftest.$ac_ext <<_ACEOF
16506 #line $LINENO "configure"
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h. */
16513 /* Override any gcc2 internal prototype to avoid an error. */
16517 /* We use char because int might match the return type of a gcc2
16518 builtin and then its argument prototype would still apply. */
16528 rm -f conftest.$ac_objext conftest$ac_exeext
16529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16530 (eval $ac_link) 2>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } &&
16534 { ac_try='test -s conftest$ac_exeext'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16540 ac_cv_lib_dl_dlopen=yes
16542 echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.$ac_ext >&5
16545 ac_cv_lib_dl_dlopen=no
16547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16548 LIBS=$ac_check_lib_save_LIBS
16550 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16551 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16552 if test $ac_cv_lib_dl_dlopen = yes; then
16553 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16556 lt_cv_dlopen="dyld"
16558 lt_cv_dlopen_self=yes
16565 echo "$as_me:$LINENO: checking for shl_load" >&5
16566 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16567 if test "${ac_cv_func_shl_load+set}" = set; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16570 cat >conftest.$ac_ext <<_ACEOF
16571 #line $LINENO "configure"
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
16577 /* System header to define __stub macros and hopefully few prototypes,
16578 which can conflict with char shl_load (); below.
16579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16580 <limits.h> exists even on freestanding compilers. */
16582 # include <limits.h>
16584 # include <assert.h>
16586 /* Override any gcc2 internal prototype to avoid an error. */
16591 /* We use char because int might match the return type of a gcc2
16592 builtin and then its argument prototype would still apply. */
16594 /* The GNU C library defines this for functions which it implements
16595 to always fail with ENOSYS. Some functions are actually named
16596 something starting with __ and the normal name is an alias. */
16597 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16600 char (*f) () = shl_load;
16609 return f != shl_load;
16614 rm -f conftest.$ac_objext conftest$ac_exeext
16615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16616 (eval $ac_link) 2>&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -s conftest$ac_exeext'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 ac_cv_func_shl_load=yes
16628 echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16631 ac_cv_func_shl_load=no
16633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16635 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16636 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16637 if test $ac_cv_func_shl_load = yes; then
16638 lt_cv_dlopen="shl_load"
16640 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16641 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16642 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 ac_check_lib_save_LIBS=$LIBS
16647 cat >conftest.$ac_ext <<_ACEOF
16648 #line $LINENO "configure"
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16655 /* Override any gcc2 internal prototype to avoid an error. */
16659 /* We use char because int might match the return type of a gcc2
16660 builtin and then its argument prototype would still apply. */
16670 rm -f conftest.$ac_objext conftest$ac_exeext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672 (eval $ac_link) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } &&
16676 { ac_try='test -s conftest$ac_exeext'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16682 ac_cv_lib_dld_shl_load=yes
16684 echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16687 ac_cv_lib_dld_shl_load=no
16689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16690 LIBS=$ac_check_lib_save_LIBS
16692 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16693 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16694 if test $ac_cv_lib_dld_shl_load = yes; then
16695 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16697 echo "$as_me:$LINENO: checking for dlopen" >&5
16698 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16699 if test "${ac_cv_func_dlopen+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16702 cat >conftest.$ac_ext <<_ACEOF
16703 #line $LINENO "configure"
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16709 /* System header to define __stub macros and hopefully few prototypes,
16710 which can conflict with char dlopen (); below.
16711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16712 <limits.h> exists even on freestanding compilers. */
16714 # include <limits.h>
16716 # include <assert.h>
16718 /* Override any gcc2 internal prototype to avoid an error. */
16723 /* We use char because int might match the return type of a gcc2
16724 builtin and then its argument prototype would still apply. */
16726 /* The GNU C library defines this for functions which it implements
16727 to always fail with ENOSYS. Some functions are actually named
16728 something starting with __ and the normal name is an alias. */
16729 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16732 char (*f) () = dlopen;
16741 return f != dlopen;
16746 rm -f conftest.$ac_objext conftest$ac_exeext
16747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16748 (eval $ac_link) 2>&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try='test -s conftest$ac_exeext'
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; }; then
16758 ac_cv_func_dlopen=yes
16760 echo "$as_me: failed program was:" >&5
16761 sed 's/^/| /' conftest.$ac_ext >&5
16763 ac_cv_func_dlopen=no
16765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16767 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16768 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16769 if test $ac_cv_func_dlopen = yes; then
16770 lt_cv_dlopen="dlopen"
16772 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16773 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16774 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16775 echo $ECHO_N "(cached) $ECHO_C" >&6
16777 ac_check_lib_save_LIBS=$LIBS
16779 cat >conftest.$ac_ext <<_ACEOF
16780 #line $LINENO "configure"
16783 cat confdefs.h >>conftest.$ac_ext
16784 cat >>conftest.$ac_ext <<_ACEOF
16785 /* end confdefs.h. */
16787 /* Override any gcc2 internal prototype to avoid an error. */
16791 /* We use char because int might match the return type of a gcc2
16792 builtin and then its argument prototype would still apply. */
16802 rm -f conftest.$ac_objext conftest$ac_exeext
16803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16804 (eval $ac_link) 2>&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } &&
16808 { ac_try='test -s conftest$ac_exeext'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814 ac_cv_lib_dl_dlopen=yes
16816 echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16819 ac_cv_lib_dl_dlopen=no
16821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16822 LIBS=$ac_check_lib_save_LIBS
16824 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16825 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16826 if test $ac_cv_lib_dl_dlopen = yes; then
16827 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16829 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16830 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16831 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16834 ac_check_lib_save_LIBS=$LIBS
16835 LIBS="-lsvld $LIBS"
16836 cat >conftest.$ac_ext <<_ACEOF
16837 #line $LINENO "configure"
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h. */
16844 /* Override any gcc2 internal prototype to avoid an error. */
16848 /* We use char because int might match the return type of a gcc2
16849 builtin and then its argument prototype would still apply. */
16859 rm -f conftest.$ac_objext conftest$ac_exeext
16860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16861 (eval $ac_link) 2>&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -s conftest$ac_exeext'
16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; }; then
16871 ac_cv_lib_svld_dlopen=yes
16873 echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16876 ac_cv_lib_svld_dlopen=no
16878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16879 LIBS=$ac_check_lib_save_LIBS
16881 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16882 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16883 if test $ac_cv_lib_svld_dlopen = yes; then
16884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16886 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16887 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16888 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 ac_check_lib_save_LIBS=$LIBS
16893 cat >conftest.$ac_ext <<_ACEOF
16894 #line $LINENO "configure"
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h. */
16901 /* Override any gcc2 internal prototype to avoid an error. */
16905 /* We use char because int might match the return type of a gcc2
16906 builtin and then its argument prototype would still apply. */
16916 rm -f conftest.$ac_objext conftest$ac_exeext
16917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16918 (eval $ac_link) 2>&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } &&
16922 { ac_try='test -s conftest$ac_exeext'
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
16928 ac_cv_lib_dld_dld_link=yes
16930 echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16933 ac_cv_lib_dld_dld_link=no
16935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16936 LIBS=$ac_check_lib_save_LIBS
16938 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16939 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16940 if test $ac_cv_lib_dld_dld_link = yes; then
16941 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16962 if test "x$lt_cv_dlopen" != xno; then
16968 case $lt_cv_dlopen in
16970 save_CPPFLAGS="$CPPFLAGS"
16971 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16973 save_LDFLAGS="$LDFLAGS"
16974 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16977 LIBS="$lt_cv_dlopen_libs $LIBS"
16979 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16980 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16981 if test "${lt_cv_dlopen_self+set}" = set; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 if test "$cross_compiling" = yes; then :
16985 lt_cv_dlopen_self=cross
16987 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16988 lt_status=$lt_dlunknown
16989 cat > conftest.$ac_ext <<EOF
16990 #line 16990 "configure"
16991 #include "confdefs.h"
17000 # define LT_DLGLOBAL RTLD_GLOBAL
17003 # define LT_DLGLOBAL DL_GLOBAL
17005 # define LT_DLGLOBAL 0
17009 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17010 find out it does not work in some platform. */
17011 #ifndef LT_DLLAZY_OR_NOW
17013 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17016 # define LT_DLLAZY_OR_NOW DL_LAZY
17019 # define LT_DLLAZY_OR_NOW RTLD_NOW
17022 # define LT_DLLAZY_OR_NOW DL_NOW
17024 # define LT_DLLAZY_OR_NOW 0
17032 extern "C" void exit (int);
17035 void fnord() { int i=42;}
17038 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17039 int status = $lt_dlunknown;
17043 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17044 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17045 /* dlclose (self); */
17051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052 (eval $ac_link) 2>&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17056 (./conftest; exit; ) 2>/dev/null
17058 case x$lt_status in
17059 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17060 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17061 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17064 # compilation failed
17065 lt_cv_dlopen_self=no
17072 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17073 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17075 if test "x$lt_cv_dlopen_self" = xyes; then
17076 LDFLAGS="$LDFLAGS $link_static_flag"
17077 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17078 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17079 if test "${lt_cv_dlopen_self_static+set}" = set; then
17080 echo $ECHO_N "(cached) $ECHO_C" >&6
17082 if test "$cross_compiling" = yes; then :
17083 lt_cv_dlopen_self_static=cross
17085 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17086 lt_status=$lt_dlunknown
17087 cat > conftest.$ac_ext <<EOF
17088 #line 17088 "configure"
17089 #include "confdefs.h"
17098 # define LT_DLGLOBAL RTLD_GLOBAL
17101 # define LT_DLGLOBAL DL_GLOBAL
17103 # define LT_DLGLOBAL 0
17107 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17108 find out it does not work in some platform. */
17109 #ifndef LT_DLLAZY_OR_NOW
17111 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17114 # define LT_DLLAZY_OR_NOW DL_LAZY
17117 # define LT_DLLAZY_OR_NOW RTLD_NOW
17120 # define LT_DLLAZY_OR_NOW DL_NOW
17122 # define LT_DLLAZY_OR_NOW 0
17130 extern "C" void exit (int);
17133 void fnord() { int i=42;}
17136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17137 int status = $lt_dlunknown;
17141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17142 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17143 /* dlclose (self); */
17149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17150 (eval $ac_link) 2>&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17154 (./conftest; exit; ) 2>/dev/null
17156 case x$lt_status in
17157 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17158 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17159 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17162 # compilation failed
17163 lt_cv_dlopen_self_static=no
17170 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17171 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17174 CPPFLAGS="$save_CPPFLAGS"
17175 LDFLAGS="$save_LDFLAGS"
17180 case $lt_cv_dlopen_self in
17181 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17182 *) enable_dlopen_self=unknown ;;
17185 case $lt_cv_dlopen_self_static in
17186 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17187 *) enable_dlopen_self_static=unknown ;;
17192 # The else clause should only fire when bootstrapping the
17193 # libtool distribution, otherwise you forgot to ship ltmain.sh
17194 # with your package, and you will get complaints that there are
17195 # no rules to generate ltmain.sh.
17196 if test -f "$ltmain"; then
17197 # See if we are running on zsh, and set the options which allow our commands through
17198 # without removal of \ escapes.
17199 if test -n "${ZSH_VERSION+set}" ; then
17200 setopt NO_GLOB_SUBST
17202 # Now quote all the things that may contain metacharacters while being
17203 # careful not to overquote the AC_SUBSTed values. We take copies of the
17204 # variables and quote the copies for generation of the libtool script.
17205 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17206 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17207 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17208 deplibs_check_method reload_flag reload_cmds need_locks \
17209 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17210 lt_cv_sys_global_symbol_to_c_name_address \
17211 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17212 old_postinstall_cmds old_postuninstall_cmds \
17216 lt_prog_compiler_wl_GCJ \
17217 lt_prog_compiler_pic_GCJ \
17218 lt_prog_compiler_static_GCJ \
17219 lt_prog_compiler_no_builtin_flag_GCJ \
17220 export_dynamic_flag_spec_GCJ \
17221 thread_safe_flag_spec_GCJ \
17222 whole_archive_flag_spec_GCJ \
17223 enable_shared_with_static_runtimes_GCJ \
17224 old_archive_cmds_GCJ \
17225 old_archive_from_new_cmds_GCJ \
17226 predep_objects_GCJ \
17227 postdep_objects_GCJ \
17230 compiler_lib_search_path_GCJ \
17232 archive_expsym_cmds_GCJ \
17233 postinstall_cmds_GCJ \
17234 postuninstall_cmds_GCJ \
17235 old_archive_from_expsyms_cmds_GCJ \
17236 allow_undefined_flag_GCJ \
17237 no_undefined_flag_GCJ \
17238 export_symbols_cmds_GCJ \
17239 hardcode_libdir_flag_spec_GCJ \
17240 hardcode_libdir_flag_spec_ld_GCJ \
17241 hardcode_libdir_separator_GCJ \
17242 hardcode_automatic_GCJ \
17244 module_expsym_cmds_GCJ \
17245 lt_cv_prog_compiler_c_o_GCJ \
17246 exclude_expsyms_GCJ \
17247 include_expsyms_GCJ; do
17250 old_archive_cmds_GCJ | \
17251 old_archive_from_new_cmds_GCJ | \
17252 archive_cmds_GCJ | \
17253 archive_expsym_cmds_GCJ | \
17254 module_cmds_GCJ | \
17255 module_expsym_cmds_GCJ | \
17256 old_archive_from_expsyms_cmds_GCJ | \
17257 export_symbols_cmds_GCJ | \
17258 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17259 postinstall_cmds | postuninstall_cmds | \
17260 old_postinstall_cmds | old_postuninstall_cmds | \
17261 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17262 # Double-quote double-evaled strings.
17263 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17266 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17272 *'\$0 --fallback-echo"')
17273 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17279 cat <<__EOF__ >> "$cfgfile"
17280 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17282 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17284 # Shell to use when invoking shell scripts.
17287 # Whether or not to build shared libraries.
17288 build_libtool_libs=$enable_shared
17290 # Whether or not to build static libraries.
17291 build_old_libs=$enable_static
17293 # Whether or not to add -lc for building shared libraries.
17294 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17296 # Whether or not to disallow shared libs when runtime libs are static
17297 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17299 # Whether or not to optimize for fast installation.
17300 fast_install=$enable_fast_install
17303 host_alias=$host_alias
17306 # An echo program that does not interpret backslashes.
17311 AR_FLAGS=$lt_AR_FLAGS
17316 # A language-specific compiler.
17317 CC=$lt_compiler_GCJ
17319 # Is the compiler the GNU C compiler?
17325 # The linker used to build libraries.
17328 # Whether we need hard or soft links.
17331 # A BSD-compatible nm program.
17334 # A symbol stripping program
17337 # Used to examine libraries when file_magic_cmd begins "file"
17338 MAGIC_CMD=$MAGIC_CMD
17340 # Used on cygwin: DLL creation program.
17343 # Used on cygwin: object dumper.
17346 # Used on cygwin: assembler.
17349 # The name of the directory that contains temporary libtool files.
17352 # How to create reloadable object files.
17353 reload_flag=$lt_reload_flag
17354 reload_cmds=$lt_reload_cmds
17356 # How to pass a linker flag through the compiler.
17357 wl=$lt_lt_prog_compiler_wl_GCJ
17359 # Object file suffix (normally "o").
17360 objext="$ac_objext"
17362 # Old archive suffix (normally "a").
17365 # Shared library suffix (normally ".so").
17368 # Executable file suffix (normally "").
17371 # Additional compiler flags for building library objects.
17372 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17375 # What is the maximum length of a command?
17376 max_cmd_len=$lt_cv_sys_max_cmd_len
17378 # Does compiler simultaneously support -c and -o options?
17379 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17381 # Must we lock files when doing compilation ?
17382 need_locks=$lt_need_locks
17384 # Do we need the lib prefix for modules?
17385 need_lib_prefix=$need_lib_prefix
17387 # Do we need a version for libraries?
17388 need_version=$need_version
17390 # Whether dlopen is supported.
17391 dlopen_support=$enable_dlopen
17393 # Whether dlopen of programs is supported.
17394 dlopen_self=$enable_dlopen_self
17396 # Whether dlopen of statically linked programs is supported.
17397 dlopen_self_static=$enable_dlopen_self_static
17399 # Compiler flag to prevent dynamic linking.
17400 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17402 # Compiler flag to turn off builtin functions.
17403 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17405 # Compiler flag to allow reflexive dlopens.
17406 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17408 # Compiler flag to generate shared objects directly from archives.
17409 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17411 # Compiler flag to generate thread-safe objects.
17412 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17414 # Library versioning type.
17415 version_type=$version_type
17417 # Format of library name prefix.
17418 libname_spec=$lt_libname_spec
17420 # List of archive names. First name is the real one, the rest are links.
17421 # The last name is the one that the linker finds with -lNAME.
17422 library_names_spec=$lt_library_names_spec
17424 # The coded name of the library, if different from the real name.
17425 soname_spec=$lt_soname_spec
17427 # Commands used to build and install an old-style archive.
17429 old_archive_cmds=$lt_old_archive_cmds_GCJ
17430 old_postinstall_cmds=$lt_old_postinstall_cmds
17431 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17433 # Create an old-style archive from a shared archive.
17434 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17436 # Create a temporary old-style archive to link instead of a shared archive.
17437 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17439 # Commands used to build and install a shared archive.
17440 archive_cmds=$lt_archive_cmds_GCJ
17441 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17442 postinstall_cmds=$lt_postinstall_cmds
17443 postuninstall_cmds=$lt_postuninstall_cmds
17445 # Commands used to build a loadable module (assumed same as above if empty)
17446 module_cmds=$lt_module_cmds_GCJ
17447 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17449 # Commands to strip libraries.
17450 old_striplib=$lt_old_striplib
17451 striplib=$lt_striplib
17453 # Dependencies to place before the objects being linked to create a
17455 predep_objects=$lt_predep_objects_GCJ
17457 # Dependencies to place after the objects being linked to create a
17459 postdep_objects=$lt_postdep_objects_GCJ
17461 # Dependencies to place before the objects being linked to create a
17463 predeps=$lt_predeps_GCJ
17465 # Dependencies to place after the objects being linked to create a
17467 postdeps=$lt_postdeps_GCJ
17469 # The library search path used internally by the compiler when linking
17470 # a shared library.
17471 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17473 # Method to check whether dependent libraries are shared objects.
17474 deplibs_check_method=$lt_deplibs_check_method
17476 # Command to use when deplibs_check_method == file_magic.
17477 file_magic_cmd=$lt_file_magic_cmd
17479 # Flag that allows shared libraries with undefined symbols to be built.
17480 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17482 # Flag that forces no undefined symbols.
17483 no_undefined_flag=$lt_no_undefined_flag_GCJ
17485 # Commands used to finish a libtool library installation in a directory.
17486 finish_cmds=$lt_finish_cmds
17488 # Same as above, but a single script fragment to be evaled but not shown.
17489 finish_eval=$lt_finish_eval
17491 # Take the output of nm and produce a listing of raw symbols and C names.
17492 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17494 # Transform the output of nm in a proper C declaration
17495 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17497 # Transform the output of nm in a C name address pair
17498 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17500 # This is the shared library runtime path variable.
17501 runpath_var=$runpath_var
17503 # This is the shared library path variable.
17504 shlibpath_var=$shlibpath_var
17506 # Is shlibpath searched before the hard-coded library search path?
17507 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17509 # How to hardcode a shared library path into an executable.
17510 hardcode_action=$hardcode_action_GCJ
17512 # Whether we should hardcode library paths into libraries.
17513 hardcode_into_libs=$hardcode_into_libs
17515 # Flag to hardcode \$libdir into a binary during linking.
17516 # This must work even if \$libdir does not exist.
17517 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17519 # If ld is used when linking, flag to hardcode \$libdir into
17520 # a binary during linking. This must work even if \$libdir does
17522 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17524 # Whether we need a single -rpath flag with a separated argument.
17525 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17527 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17528 # resulting binary.
17529 hardcode_direct=$hardcode_direct_GCJ
17531 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17532 # resulting binary.
17533 hardcode_minus_L=$hardcode_minus_L_GCJ
17535 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17536 # the resulting binary.
17537 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17539 # Set to yes if building a shared library automatically hardcodes DIR into the library
17540 # and all subsequent libraries and executables linked against it.
17541 hardcode_automatic=$hardcode_automatic_GCJ
17543 # Variables whose values should be saved in libtool wrapper scripts and
17544 # restored at relink time.
17545 variables_saved_for_relink="$variables_saved_for_relink"
17547 # Whether libtool must link a program against all its dependency libraries.
17548 link_all_deplibs=$link_all_deplibs_GCJ
17550 # Compile-time system search path for libraries
17551 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17553 # Run-time system search path for libraries
17554 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17556 # Fix the shell variable \$srcfile for the compiler.
17557 fix_srcfile_path="$fix_srcfile_path_GCJ"
17559 # Set to yes if exported symbols are required.
17560 always_export_symbols=$always_export_symbols_GCJ
17562 # The commands to list exported symbols.
17563 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17565 # The commands to extract the exported symbol list from a shared archive.
17566 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17568 # Symbols that should not be listed in the preloaded symbols.
17569 exclude_expsyms=$lt_exclude_expsyms_GCJ
17571 # Symbols that must always be exported.
17572 include_expsyms=$lt_include_expsyms_GCJ
17574 # ### END LIBTOOL TAG CONFIG: $tagname
17580 # If there is no Makefile yet, we rely on a make rule to execute
17581 # `config.status --recheck' to rerun these tests and create the
17582 # libtool script then.
17583 test -f Makefile && make "$ltmain"
17588 ac_cpp='$CPP $CPPFLAGS'
17589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17604 # Source file extension for RC test sources.
17607 # Object file extension for compiled RC test sources.
17611 # Code to be used in simple compile tests
17612 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17614 # Code to be used in simple link tests
17615 lt_simple_link_test_code="$lt_simple_compile_test_code"
17617 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17619 # If no C compiler was specified, use CC.
17622 # Allow CC to be a program name with arguments.
17626 # Allow CC to be a program name with arguments.
17631 lt_cv_prog_compiler_c_o_RC=yes
17633 # The else clause should only fire when bootstrapping the
17634 # libtool distribution, otherwise you forgot to ship ltmain.sh
17635 # with your package, and you will get complaints that there are
17636 # no rules to generate ltmain.sh.
17637 if test -f "$ltmain"; then
17638 # See if we are running on zsh, and set the options which allow our commands through
17639 # without removal of \ escapes.
17640 if test -n "${ZSH_VERSION+set}" ; then
17641 setopt NO_GLOB_SUBST
17643 # Now quote all the things that may contain metacharacters while being
17644 # careful not to overquote the AC_SUBSTed values. We take copies of the
17645 # variables and quote the copies for generation of the libtool script.
17646 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17647 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17648 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17649 deplibs_check_method reload_flag reload_cmds need_locks \
17650 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17651 lt_cv_sys_global_symbol_to_c_name_address \
17652 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17653 old_postinstall_cmds old_postuninstall_cmds \
17657 lt_prog_compiler_wl_RC \
17658 lt_prog_compiler_pic_RC \
17659 lt_prog_compiler_static_RC \
17660 lt_prog_compiler_no_builtin_flag_RC \
17661 export_dynamic_flag_spec_RC \
17662 thread_safe_flag_spec_RC \
17663 whole_archive_flag_spec_RC \
17664 enable_shared_with_static_runtimes_RC \
17665 old_archive_cmds_RC \
17666 old_archive_from_new_cmds_RC \
17667 predep_objects_RC \
17668 postdep_objects_RC \
17671 compiler_lib_search_path_RC \
17673 archive_expsym_cmds_RC \
17674 postinstall_cmds_RC \
17675 postuninstall_cmds_RC \
17676 old_archive_from_expsyms_cmds_RC \
17677 allow_undefined_flag_RC \
17678 no_undefined_flag_RC \
17679 export_symbols_cmds_RC \
17680 hardcode_libdir_flag_spec_RC \
17681 hardcode_libdir_flag_spec_ld_RC \
17682 hardcode_libdir_separator_RC \
17683 hardcode_automatic_RC \
17685 module_expsym_cmds_RC \
17686 lt_cv_prog_compiler_c_o_RC \
17687 exclude_expsyms_RC \
17688 include_expsyms_RC; do
17691 old_archive_cmds_RC | \
17692 old_archive_from_new_cmds_RC | \
17693 archive_cmds_RC | \
17694 archive_expsym_cmds_RC | \
17696 module_expsym_cmds_RC | \
17697 old_archive_from_expsyms_cmds_RC | \
17698 export_symbols_cmds_RC | \
17699 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17700 postinstall_cmds | postuninstall_cmds | \
17701 old_postinstall_cmds | old_postuninstall_cmds | \
17702 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17703 # Double-quote double-evaled strings.
17704 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17707 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17713 *'\$0 --fallback-echo"')
17714 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17720 cat <<__EOF__ >> "$cfgfile"
17721 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17723 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17725 # Shell to use when invoking shell scripts.
17728 # Whether or not to build shared libraries.
17729 build_libtool_libs=$enable_shared
17731 # Whether or not to build static libraries.
17732 build_old_libs=$enable_static
17734 # Whether or not to add -lc for building shared libraries.
17735 build_libtool_need_lc=$archive_cmds_need_lc_RC
17737 # Whether or not to disallow shared libs when runtime libs are static
17738 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17740 # Whether or not to optimize for fast installation.
17741 fast_install=$enable_fast_install
17744 host_alias=$host_alias
17747 # An echo program that does not interpret backslashes.
17752 AR_FLAGS=$lt_AR_FLAGS
17757 # A language-specific compiler.
17760 # Is the compiler the GNU C compiler?
17766 # The linker used to build libraries.
17769 # Whether we need hard or soft links.
17772 # A BSD-compatible nm program.
17775 # A symbol stripping program
17778 # Used to examine libraries when file_magic_cmd begins "file"
17779 MAGIC_CMD=$MAGIC_CMD
17781 # Used on cygwin: DLL creation program.
17784 # Used on cygwin: object dumper.
17787 # Used on cygwin: assembler.
17790 # The name of the directory that contains temporary libtool files.
17793 # How to create reloadable object files.
17794 reload_flag=$lt_reload_flag
17795 reload_cmds=$lt_reload_cmds
17797 # How to pass a linker flag through the compiler.
17798 wl=$lt_lt_prog_compiler_wl_RC
17800 # Object file suffix (normally "o").
17801 objext="$ac_objext"
17803 # Old archive suffix (normally "a").
17806 # Shared library suffix (normally ".so").
17809 # Executable file suffix (normally "").
17812 # Additional compiler flags for building library objects.
17813 pic_flag=$lt_lt_prog_compiler_pic_RC
17816 # What is the maximum length of a command?
17817 max_cmd_len=$lt_cv_sys_max_cmd_len
17819 # Does compiler simultaneously support -c and -o options?
17820 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17822 # Must we lock files when doing compilation ?
17823 need_locks=$lt_need_locks
17825 # Do we need the lib prefix for modules?
17826 need_lib_prefix=$need_lib_prefix
17828 # Do we need a version for libraries?
17829 need_version=$need_version
17831 # Whether dlopen is supported.
17832 dlopen_support=$enable_dlopen
17834 # Whether dlopen of programs is supported.
17835 dlopen_self=$enable_dlopen_self
17837 # Whether dlopen of statically linked programs is supported.
17838 dlopen_self_static=$enable_dlopen_self_static
17840 # Compiler flag to prevent dynamic linking.
17841 link_static_flag=$lt_lt_prog_compiler_static_RC
17843 # Compiler flag to turn off builtin functions.
17844 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17846 # Compiler flag to allow reflexive dlopens.
17847 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17849 # Compiler flag to generate shared objects directly from archives.
17850 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17852 # Compiler flag to generate thread-safe objects.
17853 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17855 # Library versioning type.
17856 version_type=$version_type
17858 # Format of library name prefix.
17859 libname_spec=$lt_libname_spec
17861 # List of archive names. First name is the real one, the rest are links.
17862 # The last name is the one that the linker finds with -lNAME.
17863 library_names_spec=$lt_library_names_spec
17865 # The coded name of the library, if different from the real name.
17866 soname_spec=$lt_soname_spec
17868 # Commands used to build and install an old-style archive.
17870 old_archive_cmds=$lt_old_archive_cmds_RC
17871 old_postinstall_cmds=$lt_old_postinstall_cmds
17872 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17874 # Create an old-style archive from a shared archive.
17875 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17877 # Create a temporary old-style archive to link instead of a shared archive.
17878 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17880 # Commands used to build and install a shared archive.
17881 archive_cmds=$lt_archive_cmds_RC
17882 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17883 postinstall_cmds=$lt_postinstall_cmds
17884 postuninstall_cmds=$lt_postuninstall_cmds
17886 # Commands used to build a loadable module (assumed same as above if empty)
17887 module_cmds=$lt_module_cmds_RC
17888 module_expsym_cmds=$lt_module_expsym_cmds_RC
17890 # Commands to strip libraries.
17891 old_striplib=$lt_old_striplib
17892 striplib=$lt_striplib
17894 # Dependencies to place before the objects being linked to create a
17896 predep_objects=$lt_predep_objects_RC
17898 # Dependencies to place after the objects being linked to create a
17900 postdep_objects=$lt_postdep_objects_RC
17902 # Dependencies to place before the objects being linked to create a
17904 predeps=$lt_predeps_RC
17906 # Dependencies to place after the objects being linked to create a
17908 postdeps=$lt_postdeps_RC
17910 # The library search path used internally by the compiler when linking
17911 # a shared library.
17912 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17914 # Method to check whether dependent libraries are shared objects.
17915 deplibs_check_method=$lt_deplibs_check_method
17917 # Command to use when deplibs_check_method == file_magic.
17918 file_magic_cmd=$lt_file_magic_cmd
17920 # Flag that allows shared libraries with undefined symbols to be built.
17921 allow_undefined_flag=$lt_allow_undefined_flag_RC
17923 # Flag that forces no undefined symbols.
17924 no_undefined_flag=$lt_no_undefined_flag_RC
17926 # Commands used to finish a libtool library installation in a directory.
17927 finish_cmds=$lt_finish_cmds
17929 # Same as above, but a single script fragment to be evaled but not shown.
17930 finish_eval=$lt_finish_eval
17932 # Take the output of nm and produce a listing of raw symbols and C names.
17933 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17935 # Transform the output of nm in a proper C declaration
17936 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17938 # Transform the output of nm in a C name address pair
17939 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17941 # This is the shared library runtime path variable.
17942 runpath_var=$runpath_var
17944 # This is the shared library path variable.
17945 shlibpath_var=$shlibpath_var
17947 # Is shlibpath searched before the hard-coded library search path?
17948 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17950 # How to hardcode a shared library path into an executable.
17951 hardcode_action=$hardcode_action_RC
17953 # Whether we should hardcode library paths into libraries.
17954 hardcode_into_libs=$hardcode_into_libs
17956 # Flag to hardcode \$libdir into a binary during linking.
17957 # This must work even if \$libdir does not exist.
17958 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17960 # If ld is used when linking, flag to hardcode \$libdir into
17961 # a binary during linking. This must work even if \$libdir does
17963 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17965 # Whether we need a single -rpath flag with a separated argument.
17966 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17968 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17969 # resulting binary.
17970 hardcode_direct=$hardcode_direct_RC
17972 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17973 # resulting binary.
17974 hardcode_minus_L=$hardcode_minus_L_RC
17976 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17977 # the resulting binary.
17978 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17980 # Set to yes if building a shared library automatically hardcodes DIR into the library
17981 # and all subsequent libraries and executables linked against it.
17982 hardcode_automatic=$hardcode_automatic_RC
17984 # Variables whose values should be saved in libtool wrapper scripts and
17985 # restored at relink time.
17986 variables_saved_for_relink="$variables_saved_for_relink"
17988 # Whether libtool must link a program against all its dependency libraries.
17989 link_all_deplibs=$link_all_deplibs_RC
17991 # Compile-time system search path for libraries
17992 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17994 # Run-time system search path for libraries
17995 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17997 # Fix the shell variable \$srcfile for the compiler.
17998 fix_srcfile_path="$fix_srcfile_path_RC"
18000 # Set to yes if exported symbols are required.
18001 always_export_symbols=$always_export_symbols_RC
18003 # The commands to list exported symbols.
18004 export_symbols_cmds=$lt_export_symbols_cmds_RC
18006 # The commands to extract the exported symbol list from a shared archive.
18007 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18009 # Symbols that should not be listed in the preloaded symbols.
18010 exclude_expsyms=$lt_exclude_expsyms_RC
18012 # Symbols that must always be exported.
18013 include_expsyms=$lt_include_expsyms_RC
18015 # ### END LIBTOOL TAG CONFIG: $tagname
18021 # If there is no Makefile yet, we rely on a make rule to execute
18022 # `config.status --recheck' to rerun these tests and create the
18023 # libtool script then.
18024 test -f Makefile && make "$ltmain"
18029 ac_cpp='$CPP $CPPFLAGS'
18030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18039 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18040 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18041 { (exit 1); exit 1; }; }
18045 # Append the new tag name to the list of available tags.
18046 if test -n "$tagname" ; then
18047 available_tags="$available_tags $tagname"
18053 # Now substitute the updated list of available tags.
18054 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18055 mv "${ofile}T" "$ofile"
18059 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18060 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18061 { (exit 1); exit 1; }; }
18067 # This can be used to rebuild libtool when needed
18068 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18070 # Always use our own libtool.
18071 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18073 # Prevent multiple expansion
18095 # Extract the first word of "dot", so it can be a program name with args.
18096 set dummy dot; ac_word=$2
18097 echo "$as_me:$LINENO: checking for $ac_word" >&5
18098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18099 if test "${ac_cv_path_DOT+set}" = set; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18104 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18108 for as_dir in $PATH
18111 test -z "$as_dir" && as_dir=.
18112 for ac_exec_ext in '' $ac_executable_extensions; do
18113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18114 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18121 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18125 DOT=$ac_cv_path_DOT
18127 if test -n "$DOT"; then
18128 echo "$as_me:$LINENO: result: $DOT" >&5
18129 echo "${ECHO_T}$DOT" >&6
18131 echo "$as_me:$LINENO: result: no" >&5
18132 echo "${ECHO_T}no" >&6
18135 # Extract the first word of "etags", so it can be a program name with args.
18136 set dummy etags; ac_word=$2
18137 echo "$as_me:$LINENO: checking for $ac_word" >&5
18138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18139 if test "${ac_cv_path_ETAGS+set}" = set; then
18140 echo $ECHO_N "(cached) $ECHO_C" >&6
18144 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18148 for as_dir in $PATH
18151 test -z "$as_dir" && as_dir=.
18152 for ac_exec_ext in '' $ac_executable_extensions; do
18153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18154 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18161 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18165 ETAGS=$ac_cv_path_ETAGS
18167 if test -n "$ETAGS"; then
18168 echo "$as_me:$LINENO: result: $ETAGS" >&5
18169 echo "${ECHO_T}$ETAGS" >&6
18171 echo "$as_me:$LINENO: result: no" >&5
18172 echo "${ECHO_T}no" >&6
18175 etags_version=`$ETAGS --version 2>&1`
18176 case "$etags_version" in
18177 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18178 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18179 *) ETAGSFLAGS="" ;;
18181 ETAGSFLAGS=$ETAGSFLAGS
18183 # Extract the first word of "python", so it can be a program name with args.
18184 set dummy python; ac_word=$2
18185 echo "$as_me:$LINENO: checking for $ac_word" >&5
18186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18187 if test "${ac_cv_path_PYTHON+set}" = set; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18192 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18196 for as_dir in $PATH
18199 test -z "$as_dir" && as_dir=.
18200 for ac_exec_ext in '' $ac_executable_extensions; do
18201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18202 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18209 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18213 PYTHON=$ac_cv_path_PYTHON
18215 if test -n "$PYTHON"; then
18216 echo "$as_me:$LINENO: result: $PYTHON" >&5
18217 echo "${ECHO_T}$PYTHON" >&6
18219 echo "$as_me:$LINENO: result: no" >&5
18220 echo "${ECHO_T}no" >&6
18223 if test "$PYTHON" = "false"
18225 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18226 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18228 # Extract the first word of "qmtest", so it can be a program name with args.
18229 set dummy qmtest; ac_word=$2
18230 echo "$as_me:$LINENO: checking for $ac_word" >&5
18231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18232 if test "${ac_cv_path_QMTEST+set}" = set; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18237 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18241 for as_dir in $PATH
18244 test -z "$as_dir" && as_dir=.
18245 for ac_exec_ext in '' $ac_executable_extensions; do
18246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18247 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18254 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18258 QMTEST=$ac_cv_path_QMTEST
18260 if test -n "$QMTEST"; then
18261 echo "$as_me:$LINENO: result: $QMTEST" >&5
18262 echo "${ECHO_T}$QMTEST" >&6
18264 echo "$as_me:$LINENO: result: no" >&5
18265 echo "${ECHO_T}no" >&6
18268 if test "$QMTEST" = "false"
18270 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18271 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18274 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18275 pymajor=`echo $pyversion | cut -d. -f1`
18276 pyminor=`echo $pyversion | cut -d. -f2`
18278 if test "$pymajor" -ge "2"
18280 if test "$pymajor" -eq "2"
18282 if test "$pyminor" -lt "2"
18284 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18285 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18289 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18290 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18296 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18297 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18298 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18301 ac_check_lib_save_LIBS=$LIBS
18303 cat >conftest.$ac_ext <<_ACEOF
18304 #line $LINENO "configure"
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18311 /* Override any gcc2 internal prototype to avoid an error. */
18315 /* We use char because int might match the return type of a gcc2
18316 builtin and then its argument prototype would still apply. */
18326 rm -f conftest.$ac_objext conftest$ac_exeext
18327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18328 (eval $ac_link) 2>&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try='test -s conftest$ac_exeext'
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; }; then
18338 ac_cv_lib_elf_elf_begin=yes
18340 echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18343 ac_cv_lib_elf_elf_begin=no
18345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18346 LIBS=$ac_check_lib_save_LIBS
18348 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18349 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18350 if test $ac_cv_lib_elf_elf_begin = yes; then
18351 cat >>confdefs.h <<_ACEOF
18352 #define HAVE_LIBELF 1
18360 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18361 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18362 if test "${ac_cv_search_dlopen+set}" = set; then
18363 echo $ECHO_N "(cached) $ECHO_C" >&6
18365 ac_func_search_save_LIBS=$LIBS
18366 ac_cv_search_dlopen=no
18367 cat >conftest.$ac_ext <<_ACEOF
18368 #line $LINENO "configure"
18371 cat confdefs.h >>conftest.$ac_ext
18372 cat >>conftest.$ac_ext <<_ACEOF
18373 /* end confdefs.h. */
18375 /* Override any gcc2 internal prototype to avoid an error. */
18379 /* We use char because int might match the return type of a gcc2
18380 builtin and then its argument prototype would still apply. */
18390 rm -f conftest.$ac_objext conftest$ac_exeext
18391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18392 (eval $ac_link) 2>&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
18396 { ac_try='test -s conftest$ac_exeext'
18397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398 (eval $ac_try) 2>&5
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; }; then
18402 ac_cv_search_dlopen="none required"
18404 echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18409 if test "$ac_cv_search_dlopen" = no; then
18410 for ac_lib in dl; do
18411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18412 cat >conftest.$ac_ext <<_ACEOF
18413 #line $LINENO "configure"
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18420 /* Override any gcc2 internal prototype to avoid an error. */
18424 /* We use char because int might match the return type of a gcc2
18425 builtin and then its argument prototype would still apply. */
18435 rm -f conftest.$ac_objext conftest$ac_exeext
18436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18437 (eval $ac_link) 2>&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } &&
18441 { ac_try='test -s conftest$ac_exeext'
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18447 ac_cv_search_dlopen="-l$ac_lib"
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18457 LIBS=$ac_func_search_save_LIBS
18459 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18460 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18461 if test "$ac_cv_search_dlopen" != no; then
18462 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18464 cat >>confdefs.h <<\_ACEOF
18465 #define HAVE_DLOPEN 1
18469 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18470 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18474 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18475 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18476 if test "${ac_cv_search_mallinfo+set}" = set; then
18477 echo $ECHO_N "(cached) $ECHO_C" >&6
18479 ac_func_search_save_LIBS=$LIBS
18480 ac_cv_search_mallinfo=no
18481 cat >conftest.$ac_ext <<_ACEOF
18482 #line $LINENO "configure"
18485 cat confdefs.h >>conftest.$ac_ext
18486 cat >>conftest.$ac_ext <<_ACEOF
18487 /* end confdefs.h. */
18489 /* Override any gcc2 internal prototype to avoid an error. */
18493 /* We use char because int might match the return type of a gcc2
18494 builtin and then its argument prototype would still apply. */
18504 rm -f conftest.$ac_objext conftest$ac_exeext
18505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18506 (eval $ac_link) 2>&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); } &&
18510 { ac_try='test -s conftest$ac_exeext'
18511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512 (eval $ac_try) 2>&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
18516 ac_cv_search_mallinfo="none required"
18518 echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.$ac_ext >&5
18522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18523 if test "$ac_cv_search_mallinfo" = no; then
18524 for ac_lib in malloc; do
18525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18526 cat >conftest.$ac_ext <<_ACEOF
18527 #line $LINENO "configure"
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h. */
18534 /* Override any gcc2 internal prototype to avoid an error. */
18538 /* We use char because int might match the return type of a gcc2
18539 builtin and then its argument prototype would still apply. */
18549 rm -f conftest.$ac_objext conftest$ac_exeext
18550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18551 (eval $ac_link) 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); } &&
18555 { ac_try='test -s conftest$ac_exeext'
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; }; then
18561 ac_cv_search_mallinfo="-l$ac_lib"
18564 echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18571 LIBS=$ac_func_search_save_LIBS
18573 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18574 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18575 if test "$ac_cv_search_mallinfo" != no; then
18576 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18578 cat >>confdefs.h <<\_ACEOF
18579 #define HAVE_MALLINFO 1
18585 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18586 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18587 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
18590 ac_func_search_save_LIBS=$LIBS
18591 ac_cv_search_pthread_mutex_lock=no
18592 cat >conftest.$ac_ext <<_ACEOF
18593 #line $LINENO "configure"
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18600 /* Override any gcc2 internal prototype to avoid an error. */
18604 /* We use char because int might match the return type of a gcc2
18605 builtin and then its argument prototype would still apply. */
18606 char pthread_mutex_lock ();
18610 pthread_mutex_lock ();
18615 rm -f conftest.$ac_objext conftest$ac_exeext
18616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18617 (eval $ac_link) 2>&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } &&
18621 { ac_try='test -s conftest$ac_exeext'
18622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623 (eval $ac_try) 2>&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; }; then
18627 ac_cv_search_pthread_mutex_lock="none required"
18629 echo "$as_me: failed program was:" >&5
18630 sed 's/^/| /' conftest.$ac_ext >&5
18633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18634 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18635 for ac_lib in pthread; do
18636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18637 cat >conftest.$ac_ext <<_ACEOF
18638 #line $LINENO "configure"
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h. */
18645 /* Override any gcc2 internal prototype to avoid an error. */
18649 /* We use char because int might match the return type of a gcc2
18650 builtin and then its argument prototype would still apply. */
18651 char pthread_mutex_lock ();
18655 pthread_mutex_lock ();
18660 rm -f conftest.$ac_objext conftest$ac_exeext
18661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18662 (eval $ac_link) 2>&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
18666 { ac_try='test -s conftest$ac_exeext'
18667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668 (eval $ac_try) 2>&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); }; }; then
18672 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18675 echo "$as_me: failed program was:" >&5
18676 sed 's/^/| /' conftest.$ac_ext >&5
18679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18682 LIBS=$ac_func_search_save_LIBS
18684 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18685 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18686 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18687 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18688 HAVE_PTHREAD_MUTEX_LOCK=1
18690 HAVE_PTHREAD_MUTEX_LOCK=0
18695 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18696 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18697 if test "${ac_cv_header_stdc+set}" = set; then
18698 echo $ECHO_N "(cached) $ECHO_C" >&6
18700 cat >conftest.$ac_ext <<_ACEOF
18701 #line $LINENO "configure"
18704 cat confdefs.h >>conftest.$ac_ext
18705 cat >>conftest.$ac_ext <<_ACEOF
18706 /* end confdefs.h. */
18707 #include <stdlib.h>
18708 #include <stdarg.h>
18709 #include <string.h>
18720 rm -f conftest.$ac_objext
18721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18722 (eval $ac_compile) 2>&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
18726 { ac_try='test -s conftest.$ac_objext'
18727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728 (eval $ac_try) 2>&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; }; then
18732 ac_cv_header_stdc=yes
18734 echo "$as_me: failed program was:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18737 ac_cv_header_stdc=no
18739 rm -f conftest.$ac_objext conftest.$ac_ext
18741 if test $ac_cv_header_stdc = yes; then
18742 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18743 cat >conftest.$ac_ext <<_ACEOF
18744 #line $LINENO "configure"
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h. */
18750 #include <string.h>
18753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18754 $EGREP "memchr" >/dev/null 2>&1; then
18757 ac_cv_header_stdc=no
18763 if test $ac_cv_header_stdc = yes; then
18764 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18765 cat >conftest.$ac_ext <<_ACEOF
18766 #line $LINENO "configure"
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h. */
18772 #include <stdlib.h>
18775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18776 $EGREP "free" >/dev/null 2>&1; then
18779 ac_cv_header_stdc=no
18785 if test $ac_cv_header_stdc = yes; then
18786 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18787 if test "$cross_compiling" = yes; then
18790 cat >conftest.$ac_ext <<_ACEOF
18791 #line $LINENO "configure"
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h. */
18798 #if ((' ' & 0x0FF) == 0x020)
18799 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18800 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18802 # define ISLOWER(c) \
18803 (('a' <= (c) && (c) <= 'i') \
18804 || ('j' <= (c) && (c) <= 'r') \
18805 || ('s' <= (c) && (c) <= 'z'))
18806 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18809 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18814 for (i = 0; i < 256; i++)
18815 if (XOR (islower (i), ISLOWER (i))
18816 || toupper (i) != TOUPPER (i))
18821 rm -f conftest$ac_exeext
18822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18823 (eval $ac_link) 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18834 echo "$as_me: program exited with status $ac_status" >&5
18835 echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18838 ( exit $ac_status )
18839 ac_cv_header_stdc=no
18841 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18845 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18846 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18847 if test $ac_cv_header_stdc = yes; then
18849 cat >>confdefs.h <<\_ACEOF
18850 #define STDC_HEADERS 1
18855 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18856 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18857 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18860 cat >conftest.$ac_ext <<_ACEOF
18861 #line $LINENO "configure"
18864 cat confdefs.h >>conftest.$ac_ext
18865 cat >>conftest.$ac_ext <<_ACEOF
18866 /* end confdefs.h. */
18867 #include <sys/types.h>
18868 #include <sys/wait.h>
18869 #ifndef WEXITSTATUS
18870 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18873 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18881 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18886 rm -f conftest.$ac_objext
18887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18888 (eval $ac_compile) 2>&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } &&
18892 { ac_try='test -s conftest.$ac_objext'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18898 ac_cv_header_sys_wait_h=yes
18900 echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18903 ac_cv_header_sys_wait_h=no
18905 rm -f conftest.$ac_objext conftest.$ac_ext
18907 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18908 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18909 if test $ac_cv_header_sys_wait_h = yes; then
18911 cat >>confdefs.h <<\_ACEOF
18912 #define HAVE_SYS_WAIT_H 1
18929 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
18931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18933 echo "$as_me:$LINENO: checking for $ac_header" >&5
18934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18936 echo $ECHO_N "(cached) $ECHO_C" >&6
18938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18941 # Is the header compilable?
18942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18944 cat >conftest.$ac_ext <<_ACEOF
18945 #line $LINENO "configure"
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h. */
18951 $ac_includes_default
18952 #include <$ac_header>
18954 rm -f conftest.$ac_objext
18955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18956 (eval $ac_compile) 2>&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } &&
18960 { ac_try='test -s conftest.$ac_objext'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 ac_header_compiler=yes
18968 echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18971 ac_header_compiler=no
18973 rm -f conftest.$ac_objext conftest.$ac_ext
18974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18975 echo "${ECHO_T}$ac_header_compiler" >&6
18977 # Is the header present?
18978 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18980 cat >conftest.$ac_ext <<_ACEOF
18981 #line $LINENO "configure"
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h. */
18987 #include <$ac_header>
18989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18992 grep -v '^ *+' conftest.er1 >conftest.err
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } >/dev/null; then
18997 if test -s conftest.err; then
18998 ac_cpp_err=$ac_c_preproc_warn_flag
19005 if test -z "$ac_cpp_err"; then
19006 ac_header_preproc=yes
19008 echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19011 ac_header_preproc=no
19013 rm -f conftest.err conftest.$ac_ext
19014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19015 echo "${ECHO_T}$ac_header_preproc" >&6
19017 # So? What about this header?
19018 case $ac_header_compiler:$ac_header_preproc in
19020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19026 ## ------------------------------------ ##
19027 ## Report this to bug-autoconf@gnu.org. ##
19028 ## ------------------------------------ ##
19031 sed "s/^/$as_me: WARNING: /" >&2
19034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19042 ## ------------------------------------ ##
19043 ## Report this to bug-autoconf@gnu.org. ##
19044 ## ------------------------------------ ##
19047 sed "s/^/$as_me: WARNING: /" >&2
19050 echo "$as_me:$LINENO: checking for $ac_header" >&5
19051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19053 echo $ECHO_N "(cached) $ECHO_C" >&6
19055 eval "$as_ac_Header=$ac_header_preproc"
19057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19062 cat >>confdefs.h <<_ACEOF
19063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19071 if test "${ac_cv_header_sys_types_h+set}" = set; then
19072 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19073 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19074 if test "${ac_cv_header_sys_types_h+set}" = set; then
19075 echo $ECHO_N "(cached) $ECHO_C" >&6
19077 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19078 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19080 # Is the header compilable?
19081 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19082 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19083 cat >conftest.$ac_ext <<_ACEOF
19084 #line $LINENO "configure"
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h. */
19090 $ac_includes_default
19091 #include <sys/types.h>
19093 rm -f conftest.$ac_objext
19094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19095 (eval $ac_compile) 2>&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
19099 { ac_try='test -s conftest.$ac_objext'
19100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19101 (eval $ac_try) 2>&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); }; }; then
19105 ac_header_compiler=yes
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19110 ac_header_compiler=no
19112 rm -f conftest.$ac_objext conftest.$ac_ext
19113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19114 echo "${ECHO_T}$ac_header_compiler" >&6
19116 # Is the header present?
19117 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19118 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19119 cat >conftest.$ac_ext <<_ACEOF
19120 #line $LINENO "configure"
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h. */
19126 #include <sys/types.h>
19128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19131 grep -v '^ *+' conftest.er1 >conftest.err
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } >/dev/null; then
19136 if test -s conftest.err; then
19137 ac_cpp_err=$ac_c_preproc_warn_flag
19144 if test -z "$ac_cpp_err"; then
19145 ac_header_preproc=yes
19147 echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19150 ac_header_preproc=no
19152 rm -f conftest.err conftest.$ac_ext
19153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19154 echo "${ECHO_T}$ac_header_preproc" >&6
19156 # So? What about this header?
19157 case $ac_header_compiler:$ac_header_preproc in
19159 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19160 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19161 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19162 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19165 ## ------------------------------------ ##
19166 ## Report this to bug-autoconf@gnu.org. ##
19167 ## ------------------------------------ ##
19170 sed "s/^/$as_me: WARNING: /" >&2
19173 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19174 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19175 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19176 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19177 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19178 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19181 ## ------------------------------------ ##
19182 ## Report this to bug-autoconf@gnu.org. ##
19183 ## ------------------------------------ ##
19186 sed "s/^/$as_me: WARNING: /" >&2
19189 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19190 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19191 if test "${ac_cv_header_sys_types_h+set}" = set; then
19192 echo $ECHO_N "(cached) $ECHO_C" >&6
19194 ac_cv_header_sys_types_h=$ac_header_preproc
19196 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19197 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19200 if test $ac_cv_header_sys_types_h = yes; then
19201 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19203 INCLUDE_SYS_TYPES_H=''
19208 if test "${ac_cv_header_inttypes_h+set}" = set; then
19209 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19210 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19211 if test "${ac_cv_header_inttypes_h+set}" = set; then
19212 echo $ECHO_N "(cached) $ECHO_C" >&6
19214 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19215 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19217 # Is the header compilable?
19218 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19219 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19220 cat >conftest.$ac_ext <<_ACEOF
19221 #line $LINENO "configure"
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h. */
19227 $ac_includes_default
19228 #include <inttypes.h>
19230 rm -f conftest.$ac_objext
19231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19232 (eval $ac_compile) 2>&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } &&
19236 { ac_try='test -s conftest.$ac_objext'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
19242 ac_header_compiler=yes
19244 echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19247 ac_header_compiler=no
19249 rm -f conftest.$ac_objext conftest.$ac_ext
19250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19251 echo "${ECHO_T}$ac_header_compiler" >&6
19253 # Is the header present?
19254 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19255 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19256 cat >conftest.$ac_ext <<_ACEOF
19257 #line $LINENO "configure"
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h. */
19263 #include <inttypes.h>
19265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19268 grep -v '^ *+' conftest.er1 >conftest.err
19270 cat conftest.err >&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } >/dev/null; then
19273 if test -s conftest.err; then
19274 ac_cpp_err=$ac_c_preproc_warn_flag
19281 if test -z "$ac_cpp_err"; then
19282 ac_header_preproc=yes
19284 echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19287 ac_header_preproc=no
19289 rm -f conftest.err conftest.$ac_ext
19290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19291 echo "${ECHO_T}$ac_header_preproc" >&6
19293 # So? What about this header?
19294 case $ac_header_compiler:$ac_header_preproc in
19296 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19297 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19298 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19299 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19302 ## ------------------------------------ ##
19303 ## Report this to bug-autoconf@gnu.org. ##
19304 ## ------------------------------------ ##
19307 sed "s/^/$as_me: WARNING: /" >&2
19310 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19311 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19312 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19313 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19314 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19315 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19318 ## ------------------------------------ ##
19319 ## Report this to bug-autoconf@gnu.org. ##
19320 ## ------------------------------------ ##
19323 sed "s/^/$as_me: WARNING: /" >&2
19326 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19327 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19328 if test "${ac_cv_header_inttypes_h+set}" = set; then
19329 echo $ECHO_N "(cached) $ECHO_C" >&6
19331 ac_cv_header_inttypes_h=$ac_header_preproc
19333 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19334 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19337 if test $ac_cv_header_inttypes_h = yes; then
19338 INCLUDE_INTTYPES_H='#include <inttypes.h>'
19340 INCLUDE_INTTYPES_H=''
19345 if test "${ac_cv_header_stdint_h+set}" = set; then
19346 echo "$as_me:$LINENO: checking for stdint.h" >&5
19347 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19348 if test "${ac_cv_header_stdint_h+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
19351 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19352 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19354 # Is the header compilable?
19355 echo "$as_me:$LINENO: checking stdint.h usability" >&5
19356 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
19357 cat >conftest.$ac_ext <<_ACEOF
19358 #line $LINENO "configure"
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19364 $ac_includes_default
19365 #include <stdint.h>
19367 rm -f conftest.$ac_objext
19368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19369 (eval $ac_compile) 2>&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -s conftest.$ac_objext'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_header_compiler=yes
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ac_header_compiler=no
19386 rm -f conftest.$ac_objext conftest.$ac_ext
19387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19388 echo "${ECHO_T}$ac_header_compiler" >&6
19390 # Is the header present?
19391 echo "$as_me:$LINENO: checking stdint.h presence" >&5
19392 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
19393 cat >conftest.$ac_ext <<_ACEOF
19394 #line $LINENO "configure"
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19400 #include <stdint.h>
19402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19405 grep -v '^ *+' conftest.er1 >conftest.err
19407 cat conftest.err >&5
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); } >/dev/null; then
19410 if test -s conftest.err; then
19411 ac_cpp_err=$ac_c_preproc_warn_flag
19418 if test -z "$ac_cpp_err"; then
19419 ac_header_preproc=yes
19421 echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19424 ac_header_preproc=no
19426 rm -f conftest.err conftest.$ac_ext
19427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19428 echo "${ECHO_T}$ac_header_preproc" >&6
19430 # So? What about this header?
19431 case $ac_header_compiler:$ac_header_preproc in
19433 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
19434 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19435 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19436 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19439 ## ------------------------------------ ##
19440 ## Report this to bug-autoconf@gnu.org. ##
19441 ## ------------------------------------ ##
19444 sed "s/^/$as_me: WARNING: /" >&2
19447 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
19448 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
19449 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
19450 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
19451 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19452 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19455 ## ------------------------------------ ##
19456 ## Report this to bug-autoconf@gnu.org. ##
19457 ## ------------------------------------ ##
19460 sed "s/^/$as_me: WARNING: /" >&2
19463 echo "$as_me:$LINENO: checking for stdint.h" >&5
19464 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19465 if test "${ac_cv_header_stdint_h+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 ac_cv_header_stdint_h=$ac_header_preproc
19470 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19471 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19474 if test $ac_cv_header_stdint_h = yes; then
19475 INCLUDE_STDINT_H='#include <stdint.h>'
19477 INCLUDE_STDINT_H=''
19484 echo "$as_me:$LINENO: checking for pid_t" >&5
19485 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19486 if test "${ac_cv_type_pid_t+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 cat >conftest.$ac_ext <<_ACEOF
19490 #line $LINENO "configure"
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h. */
19496 $ac_includes_default
19502 if (sizeof (pid_t))
19508 rm -f conftest.$ac_objext
19509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19510 (eval $ac_compile) 2>&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } &&
19514 { ac_try='test -s conftest.$ac_objext'
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
19520 ac_cv_type_pid_t=yes
19522 echo "$as_me: failed program was:" >&5
19523 sed 's/^/| /' conftest.$ac_ext >&5
19525 ac_cv_type_pid_t=no
19527 rm -f conftest.$ac_objext conftest.$ac_ext
19529 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19530 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19531 if test $ac_cv_type_pid_t = yes; then
19535 cat >>confdefs.h <<_ACEOF
19541 echo "$as_me:$LINENO: checking for size_t" >&5
19542 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19543 if test "${ac_cv_type_size_t+set}" = set; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
19546 cat >conftest.$ac_ext <<_ACEOF
19547 #line $LINENO "configure"
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19553 $ac_includes_default
19559 if (sizeof (size_t))
19565 rm -f conftest.$ac_objext
19566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19567 (eval $ac_compile) 2>&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
19571 { ac_try='test -s conftest.$ac_objext'
19572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573 (eval $ac_try) 2>&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); }; }; then
19577 ac_cv_type_size_t=yes
19579 echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19582 ac_cv_type_size_t=no
19584 rm -f conftest.$ac_objext conftest.$ac_ext
19586 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19587 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19588 if test $ac_cv_type_size_t = yes; then
19592 cat >>confdefs.h <<_ACEOF
19593 #define size_t unsigned
19598 echo "$as_me:$LINENO: checking for int64_t" >&5
19599 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19600 if test "${ac_cv_type_int64_t+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19603 cat >conftest.$ac_ext <<_ACEOF
19604 #line $LINENO "configure"
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19610 $ac_includes_default
19616 if (sizeof (int64_t))
19622 rm -f conftest.$ac_objext
19623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19624 (eval $ac_compile) 2>&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
19628 { ac_try='test -s conftest.$ac_objext'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; }; then
19634 ac_cv_type_int64_t=yes
19636 echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19639 ac_cv_type_int64_t=no
19641 rm -f conftest.$ac_objext conftest.$ac_ext
19643 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19644 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19645 if test $ac_cv_type_int64_t = yes; then
19647 cat >>confdefs.h <<_ACEOF
19648 #define HAVE_INT64_T 1
19653 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19654 echo "$as_me: error: Type int64_t required but not found" >&2;}
19655 { (exit 1); exit 1; }; }
19658 echo "$as_me:$LINENO: checking for uint64_t" >&5
19659 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19660 if test "${ac_cv_type_uint64_t+set}" = set; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
19663 cat >conftest.$ac_ext <<_ACEOF
19664 #line $LINENO "configure"
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h. */
19670 $ac_includes_default
19674 if ((uint64_t *) 0)
19676 if (sizeof (uint64_t))
19682 rm -f conftest.$ac_objext
19683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19684 (eval $ac_compile) 2>&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } &&
19688 { ac_try='test -s conftest.$ac_objext'
19689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690 (eval $ac_try) 2>&5
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; }; then
19694 ac_cv_type_uint64_t=yes
19696 echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19699 ac_cv_type_uint64_t=no
19701 rm -f conftest.$ac_objext conftest.$ac_ext
19703 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19704 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19705 if test $ac_cv_type_uint64_t = yes; then
19707 cat >>confdefs.h <<_ACEOF
19708 #define HAVE_UINT64_T 1
19713 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19714 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19715 { (exit 1); exit 1; }; }
19718 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19719 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19720 if test "${ac_cv_header_time+set}" = set; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19723 cat >conftest.$ac_ext <<_ACEOF
19724 #line $LINENO "configure"
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h. */
19730 #include <sys/types.h>
19731 #include <sys/time.h>
19737 if ((struct tm *) 0)
19743 rm -f conftest.$ac_objext
19744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19745 (eval $ac_compile) 2>&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } &&
19749 { ac_try='test -s conftest.$ac_objext'
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 ac_cv_header_time=yes
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19760 ac_cv_header_time=no
19762 rm -f conftest.$ac_objext conftest.$ac_ext
19764 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19765 echo "${ECHO_T}$ac_cv_header_time" >&6
19766 if test $ac_cv_header_time = yes; then
19768 cat >>confdefs.h <<\_ACEOF
19769 #define TIME_WITH_SYS_TIME 1
19774 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19775 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19776 if test "${ac_cv_struct_tm+set}" = set; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19779 cat >conftest.$ac_ext <<_ACEOF
19780 #line $LINENO "configure"
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h. */
19786 #include <sys/types.h>
19792 struct tm *tp; tp->tm_sec;
19797 rm -f conftest.$ac_objext
19798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19799 (eval $ac_compile) 2>&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } &&
19803 { ac_try='test -s conftest.$ac_objext'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; }; then
19809 ac_cv_struct_tm=time.h
19811 echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19814 ac_cv_struct_tm=sys/time.h
19816 rm -f conftest.$ac_objext conftest.$ac_ext
19818 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19819 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19820 if test $ac_cv_struct_tm = sys/time.h; then
19822 cat >>confdefs.h <<\_ACEOF
19823 #define TM_IN_SYS_TIME 1
19830 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
19831 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
19835 ac_cpp='$CPP $CPPFLAGS'
19836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19840 if test "$cross_compiling" = yes; then
19841 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19842 See \`config.log' for more details." >&5
19843 echo "$as_me: error: cannot run test program while cross compiling
19844 See \`config.log' for more details." >&2;}
19845 { (exit 1); exit 1; }; }
19847 cat >conftest.$ac_ext <<_ACEOF
19848 #line $LINENO "configure"
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19855 #include <stdlib.h>
19860 volatile double A, B;
19864 sprintf(Buffer, "%a", A);
19868 if (A != 0x1.999999999999ap-4)
19875 rm -f conftest$ac_exeext
19876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19877 (eval $ac_link) 2>&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882 (eval $ac_try) 2>&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; }; then
19888 echo "$as_me: program exited with status $ac_status" >&5
19889 echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19892 ( exit $ac_status )
19895 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19898 ac_cpp='$CPP $CPPFLAGS'
19899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19903 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
19904 echo "${ECHO_T}$ac_c_printf_a" >&6
19905 if test "$ac_c_printf_a" = "yes"; then
19907 cat >>confdefs.h <<\_ACEOF
19908 #define HAVE_PRINTF_A 1
19914 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19915 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19916 if test "${ac_cv_c_bigendian+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19919 # See if sys/param.h defines the BYTE_ORDER macro.
19920 cat >conftest.$ac_ext <<_ACEOF
19921 #line $LINENO "configure"
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19927 #include <sys/types.h>
19928 #include <sys/param.h>
19933 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19934 bogus endian macros
19941 rm -f conftest.$ac_objext
19942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19943 (eval $ac_compile) 2>&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } &&
19947 { ac_try='test -s conftest.$ac_objext'
19948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949 (eval $ac_try) 2>&5
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; }; then
19953 # It does; now see whether it defined to BIG_ENDIAN or not.
19954 cat >conftest.$ac_ext <<_ACEOF
19955 #line $LINENO "configure"
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19961 #include <sys/types.h>
19962 #include <sys/param.h>
19967 #if BYTE_ORDER != BIG_ENDIAN
19975 rm -f conftest.$ac_objext
19976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19977 (eval $ac_compile) 2>&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } &&
19981 { ac_try='test -s conftest.$ac_objext'
19982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983 (eval $ac_try) 2>&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; }; then
19987 ac_cv_c_bigendian=yes
19989 echo "$as_me: failed program was:" >&5
19990 sed 's/^/| /' conftest.$ac_ext >&5
19992 ac_cv_c_bigendian=no
19994 rm -f conftest.$ac_objext conftest.$ac_ext
19996 echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19999 # It does not; compile a test program.
20000 if test "$cross_compiling" = yes; then
20001 # try to guess the endianness by grepping values into an object file
20002 ac_cv_c_bigendian=unknown
20003 cat >conftest.$ac_ext <<_ACEOF
20004 #line $LINENO "configure"
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20010 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20011 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20012 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20013 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20014 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20015 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20019 _ascii (); _ebcdic ();
20024 rm -f conftest.$ac_objext
20025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20026 (eval $ac_compile) 2>&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } &&
20030 { ac_try='test -s conftest.$ac_objext'
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; }; then
20036 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20037 ac_cv_c_bigendian=yes
20039 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20040 if test "$ac_cv_c_bigendian" = unknown; then
20041 ac_cv_c_bigendian=no
20043 # finding both strings is unlikely to happen, but who knows?
20044 ac_cv_c_bigendian=unknown
20048 echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20052 rm -f conftest.$ac_objext conftest.$ac_ext
20054 cat >conftest.$ac_ext <<_ACEOF
20055 #line $LINENO "configure"
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20064 /* Are we little or big endian? From Harbison&Steele. */
20068 char c[sizeof (long)];
20071 exit (u.c[sizeof (long) - 1] == 1);
20074 rm -f conftest$ac_exeext
20075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20076 (eval $ac_link) 2>&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081 (eval $ac_try) 2>&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); }; }; then
20085 ac_cv_c_bigendian=no
20087 echo "$as_me: program exited with status $ac_status" >&5
20088 echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20091 ( exit $ac_status )
20092 ac_cv_c_bigendian=yes
20094 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20097 rm -f conftest.$ac_objext conftest.$ac_ext
20099 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20100 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20101 case $ac_cv_c_bigendian in
20109 { { echo "$as_me:$LINENO: error: unknown endianness
20110 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20111 echo "$as_me: error: unknown endianness
20112 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20113 { (exit 1); exit 1; }; } ;;
20117 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20118 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20119 if test "${ac_cv_cxx_namespaces+set}" = set; then
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20125 ac_cpp='$CXXCPP $CPPFLAGS'
20126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20130 cat >conftest.$ac_ext <<_ACEOF
20131 #line $LINENO "configure"
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h. */
20137 namespace Outer { namespace Inner { int i = 0; }}
20141 using namespace Outer::Inner; return i;
20146 rm -f conftest.$ac_objext
20147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20148 (eval $ac_compile) 2>&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); } &&
20152 { ac_try='test -s conftest.$ac_objext'
20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154 (eval $ac_try) 2>&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; }; then
20158 ac_cv_cxx_namespaces=yes
20160 echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20163 ac_cv_cxx_namespaces=no
20165 rm -f conftest.$ac_objext conftest.$ac_ext
20167 ac_cpp='$CPP $CPPFLAGS'
20168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20174 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20175 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20176 if test "$ac_cv_cxx_namespaces" = yes; then
20178 cat >>confdefs.h <<\_ACEOF
20179 #define HAVE_NAMESPACES
20184 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20185 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20186 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20187 echo $ECHO_N "(cached) $ECHO_C" >&6
20193 ac_cpp='$CXXCPP $CPPFLAGS'
20194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20198 cat >conftest.$ac_ext <<_ACEOF
20199 #line $LINENO "configure"
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h. */
20205 #include <ext/hash_map>
20206 #ifdef HAVE_NAMESPACES
20207 using namespace std;
20212 hash_map<int, int> t;
20217 rm -f conftest.$ac_objext
20218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20219 (eval $ac_compile) 2>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } &&
20223 { ac_try='test -s conftest.$ac_objext'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; }; then
20229 ac_cv_cxx_have_std_ext_hash_map=yes
20231 echo "$as_me: failed program was:" >&5
20232 sed 's/^/| /' conftest.$ac_ext >&5
20234 ac_cv_cxx_have_std_ext_hash_map=no
20236 rm -f conftest.$ac_objext conftest.$ac_ext
20238 ac_cpp='$CPP $CPPFLAGS'
20239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20244 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20245 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20246 HAVE_STD_EXT_HASH_MAP=0
20247 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20249 HAVE_STD_EXT_HASH_MAP=1
20252 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20253 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20254 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20255 echo $ECHO_N "(cached) $ECHO_C" >&6
20261 ac_cpp='$CXXCPP $CPPFLAGS'
20262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20266 cat >conftest.$ac_ext <<_ACEOF
20267 #line $LINENO "configure"
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h. */
20273 #include <ext/hash_map>
20274 #ifdef HAVE_NAMESPACES
20275 using namespace __gnu_cxx;
20280 hash_map<int,int> t;
20285 rm -f conftest.$ac_objext
20286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20287 (eval $ac_compile) 2>&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } &&
20291 { ac_try='test -s conftest.$ac_objext'
20292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297 ac_cv_cxx_have_gnu_ext_hash_map=yes
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20302 ac_cv_cxx_have_gnu_ext_hash_map=no
20304 rm -f conftest.$ac_objext conftest.$ac_ext
20306 ac_cpp='$CPP $CPPFLAGS'
20307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20312 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20313 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20314 HAVE_GNU_EXT_HASH_MAP=0
20315 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20317 HAVE_GNU_EXT_HASH_MAP=1
20320 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20321 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20322 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20329 ac_cpp='$CXXCPP $CPPFLAGS'
20330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20334 cat >conftest.$ac_ext <<_ACEOF
20335 #line $LINENO "configure"
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20341 #include <hash_map>
20345 hash_map<int,int> t;
20350 rm -f conftest.$ac_objext
20351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20352 (eval $ac_compile) 2>&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } &&
20356 { ac_try='test -s conftest.$ac_objext'
20357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358 (eval $ac_try) 2>&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; }; then
20362 ac_cv_cxx_have_global_hash_map=yes
20364 echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20367 ac_cv_cxx_have_global_hash_map=no
20369 rm -f conftest.$ac_objext conftest.$ac_ext
20371 ac_cpp='$CPP $CPPFLAGS'
20372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20377 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20378 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20379 HAVE_GLOBAL_HASH_MAP=0
20380 if test "$ac_cv_cxx_have_global_hash_map" = yes
20382 HAVE_GLOBAL_HASH_MAP=1
20385 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20386 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20387 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20394 ac_cpp='$CXXCPP $CPPFLAGS'
20395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20399 cat >conftest.$ac_ext <<_ACEOF
20400 #line $LINENO "configure"
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h. */
20406 #include <ext/hash_set>
20407 #ifdef HAVE_NAMESPACES
20408 using namespace std;
20418 rm -f conftest.$ac_objext
20419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20420 (eval $ac_compile) 2>&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); } &&
20424 { ac_try='test -s conftest.$ac_objext'
20425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426 (eval $ac_try) 2>&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
20430 ac_cv_cxx_have_std_ext_hash_set=yes
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20435 ac_cv_cxx_have_std_ext_hash_set=no
20437 rm -f conftest.$ac_objext conftest.$ac_ext
20439 ac_cpp='$CPP $CPPFLAGS'
20440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20445 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20446 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20447 HAVE_STD_EXT_HASH_SET=0
20448 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20450 HAVE_STD_EXT_HASH_SET=1
20453 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20454 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20455 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20456 echo $ECHO_N "(cached) $ECHO_C" >&6
20462 ac_cpp='$CXXCPP $CPPFLAGS'
20463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20467 cat >conftest.$ac_ext <<_ACEOF
20468 #line $LINENO "configure"
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 #include <ext/hash_set>
20475 #ifdef HAVE_NAMESPACES
20476 using namespace __gnu_cxx;
20486 rm -f conftest.$ac_objext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20488 (eval $ac_compile) 2>&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); } &&
20492 { ac_try='test -s conftest.$ac_objext'
20493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494 (eval $ac_try) 2>&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); }; }; then
20498 ac_cv_cxx_have_gnu_ext_hash_set=yes
20500 echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20503 ac_cv_cxx_have_gnu_ext_hash_set=no
20505 rm -f conftest.$ac_objext conftest.$ac_ext
20507 ac_cpp='$CPP $CPPFLAGS'
20508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20513 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20514 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20515 HAVE_GNU_EXT_HASH_SET=0
20516 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20518 HAVE_GNU_EXT_HASH_SET=1
20521 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20522 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20523 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20530 ac_cpp='$CXXCPP $CPPFLAGS'
20531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20535 cat >conftest.$ac_ext <<_ACEOF
20536 #line $LINENO "configure"
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20542 #include <hash_set>
20546 hash_set<int> t; return 0;
20551 rm -f conftest.$ac_objext
20552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20553 (eval $ac_compile) 2>&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } &&
20557 { ac_try='test -s conftest.$ac_objext'
20558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559 (eval $ac_try) 2>&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); }; }; then
20563 ac_cv_cxx_have_global_hash_set=yes
20565 echo "$as_me: failed program was:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20568 ac_cv_cxx_have_global_hash_set=no
20570 rm -f conftest.$ac_objext conftest.$ac_ext
20572 ac_cpp='$CPP $CPPFLAGS'
20573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20578 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20579 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20580 HAVE_GLOBAL_HASH_SET=0
20581 if test "$ac_cv_cxx_have_global_hash_set" = yes
20583 HAVE_GLOBAL_HASH_SET=1
20586 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20587 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20588 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20589 echo $ECHO_N "(cached) $ECHO_C" >&6
20595 ac_cpp='$CXXCPP $CPPFLAGS'
20596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20600 cat >conftest.$ac_ext <<_ACEOF
20601 #line $LINENO "configure"
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h. */
20607 #include <iterator>
20608 #ifdef HAVE_NAMESPACES
20609 using namespace std;
20614 iterator<int,int,int> t; return 0;
20619 rm -f conftest.$ac_objext
20620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20621 (eval $ac_compile) 2>&5
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); } &&
20625 { ac_try='test -s conftest.$ac_objext'
20626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; }; then
20631 ac_cv_cxx_have_std_iterator=yes
20633 echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20636 ac_cv_cxx_have_std_iterator=no
20638 rm -f conftest.$ac_objext conftest.$ac_ext
20640 ac_cpp='$CPP $CPPFLAGS'
20641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20647 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20648 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20649 HAVE_STD_ITERATOR=0
20650 if test "$ac_cv_cxx_have_std_iterator" = yes
20652 HAVE_STD_ITERATOR=1
20655 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20656 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20657 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20664 ac_cpp='$CXXCPP $CPPFLAGS'
20665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20669 cat >conftest.$ac_ext <<_ACEOF
20670 #line $LINENO "configure"
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h. */
20676 #include <iterator>
20677 #ifdef HAVE_NAMESPACES
20678 using namespace std;
20683 bidirectional_iterator<int,int> t; return 0;
20688 rm -f conftest.$ac_objext
20689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20690 (eval $ac_compile) 2>&5
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } &&
20694 { ac_try='test -s conftest.$ac_objext'
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; }; then
20700 ac_cv_cxx_have_bi_iterator=yes
20702 echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20705 ac_cv_cxx_have_bi_iterator=no
20707 rm -f conftest.$ac_objext conftest.$ac_ext
20709 ac_cpp='$CPP $CPPFLAGS'
20710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20716 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20717 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20719 if test "$ac_cv_cxx_have_bi_iterator" = yes
20724 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20725 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20726 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20727 echo $ECHO_N "(cached) $ECHO_C" >&6
20733 ac_cpp='$CXXCPP $CPPFLAGS'
20734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20738 cat >conftest.$ac_ext <<_ACEOF
20739 #line $LINENO "configure"
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h. */
20745 #include <iterator>
20746 #ifdef HAVE_NAMESPACES
20747 using namespace std;
20752 forward_iterator<int,int> t; return 0;
20757 rm -f conftest.$ac_objext
20758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20759 (eval $ac_compile) 2>&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } &&
20763 { ac_try='test -s conftest.$ac_objext'
20764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20765 (eval $ac_try) 2>&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); }; }; then
20769 ac_cv_cxx_have_fwd_iterator=yes
20771 echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20774 ac_cv_cxx_have_fwd_iterator=no
20776 rm -f conftest.$ac_objext conftest.$ac_ext
20778 ac_cpp='$CPP $CPPFLAGS'
20779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20785 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20786 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20787 HAVE_FWD_ITERATOR=0
20788 if test "$ac_cv_cxx_have_fwd_iterator" = yes
20790 HAVE_FWD_ITERATOR=1
20795 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20796 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
20797 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20798 echo $ECHO_N "(cached) $ECHO_C" >&6
20801 ac_cpp='$CXXCPP $CPPFLAGS'
20802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20806 cat >conftest.$ac_ext <<_ACEOF
20807 #line $LINENO "configure"
20810 cat confdefs.h >>conftest.$ac_ext
20811 cat >>conftest.$ac_ext <<_ACEOF
20812 /* end confdefs.h. */
20814 int foo(float f) {return isnan(f);}
20816 rm -f conftest.$ac_objext
20817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20818 (eval $ac_compile) 2>&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } &&
20822 { ac_try='test -s conftest.$ac_objext'
20823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20824 (eval $ac_try) 2>&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; }; then
20828 ac_cv_func_isnan_in_math_h=yes
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20833 ac_cv_func_isnan_in_math_h=no
20835 rm -f conftest.$ac_objext conftest.$ac_ext
20837 ac_cpp='$CPP $CPPFLAGS'
20838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20843 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20844 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
20845 if test "$ac_cv_func_isnan_in_math_h" = "yes"
20848 cat >>confdefs.h <<\_ACEOF
20849 #define HAVE_ISNAN_IN_MATH_H 1
20853 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20854 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
20855 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20859 ac_cpp='$CXXCPP $CPPFLAGS'
20860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20864 cat >conftest.$ac_ext <<_ACEOF
20865 #line $LINENO "configure"
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h. */
20872 int foo(float f) {return isnan(f);}
20874 rm -f conftest.$ac_objext
20875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20876 (eval $ac_compile) 2>&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } &&
20880 { ac_try='test -s conftest.$ac_objext'
20881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882 (eval $ac_try) 2>&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); }; }; then
20886 ac_cv_func_isnan_in_cmath=yes
20888 echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20891 ac_cv_func_isnan_in_cmath=no
20893 rm -f conftest.$ac_objext conftest.$ac_ext
20895 ac_cpp='$CPP $CPPFLAGS'
20896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20901 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20902 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
20903 if test "$ac_cv_func_isnan_in_cmath" = "yes"
20906 cat >>confdefs.h <<\_ACEOF
20907 #define HAVE_ISNAN_IN_CMATH 1
20911 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20912 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
20913 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20917 ac_cpp='$CXXCPP $CPPFLAGS'
20918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20922 cat >conftest.$ac_ext <<_ACEOF
20923 #line $LINENO "configure"
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h. */
20930 using std::isnan; int foo(float f) {return isnan(f);}
20932 rm -f conftest.$ac_objext
20933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20934 (eval $ac_compile) 2>&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } &&
20938 { ac_try='test -s conftest.$ac_objext'
20939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; }; then
20944 ac_cv_func_std_isnan_in_cmath=yes
20946 echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20949 ac_cv_func_std_isnan_in_cmath=no
20951 rm -f conftest.$ac_objext conftest.$ac_ext
20953 ac_cpp='$CPP $CPPFLAGS'
20954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20959 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20960 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
20961 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
20964 cat >>confdefs.h <<\_ACEOF
20965 #define HAVE_STD_ISNAN_IN_CMATH 1
20971 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20972 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
20973 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20974 echo $ECHO_N "(cached) $ECHO_C" >&6
20977 ac_cpp='$CXXCPP $CPPFLAGS'
20978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20982 cat >conftest.$ac_ext <<_ACEOF
20983 #line $LINENO "configure"
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h. */
20990 int foo(float f) {return isinf(f);}
20992 rm -f conftest.$ac_objext
20993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20994 (eval $ac_compile) 2>&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } &&
20998 { ac_try='test -s conftest.$ac_objext'
20999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21000 (eval $ac_try) 2>&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); }; }; then
21004 ac_cv_func_isinf_in_math_h=yes
21006 echo "$as_me: failed program was:" >&5
21007 sed 's/^/| /' conftest.$ac_ext >&5
21009 ac_cv_func_isinf_in_math_h=no
21011 rm -f conftest.$ac_objext conftest.$ac_ext
21013 ac_cpp='$CPP $CPPFLAGS'
21014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21019 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21020 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21021 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21024 cat >>confdefs.h <<\_ACEOF
21025 #define HAVE_ISINF_IN_MATH_H 1
21029 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21030 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21031 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21032 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 ac_cpp='$CXXCPP $CPPFLAGS'
21036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21040 cat >conftest.$ac_ext <<_ACEOF
21041 #line $LINENO "configure"
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h. */
21048 int foo(float f) {return isinf(f);}
21050 rm -f conftest.$ac_objext
21051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21052 (eval $ac_compile) 2>&5
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); } &&
21056 { ac_try='test -s conftest.$ac_objext'
21057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21058 (eval $ac_try) 2>&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); }; }; then
21062 ac_cv_func_isinf_in_cmath=yes
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21067 ac_cv_func_isinf_in_cmath=no
21069 rm -f conftest.$ac_objext conftest.$ac_ext
21071 ac_cpp='$CPP $CPPFLAGS'
21072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21077 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21078 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
21079 if test "$ac_cv_func_isinf_in_cmath" = "yes"
21082 cat >>confdefs.h <<\_ACEOF
21083 #define HAVE_ISINF_IN_CMATH 1
21087 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21088 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
21089 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21090 echo $ECHO_N "(cached) $ECHO_C" >&6
21093 ac_cpp='$CXXCPP $CPPFLAGS'
21094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21098 cat >conftest.$ac_ext <<_ACEOF
21099 #line $LINENO "configure"
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21106 using std::isinf; int foo(float f) {return isinf(f);}
21108 rm -f conftest.$ac_objext
21109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21110 (eval $ac_compile) 2>&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } &&
21114 { ac_try='test -s conftest.$ac_objext'
21115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116 (eval $ac_try) 2>&5
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); }; }; then
21120 ac_cv_func_std_isinf_in_cmath=yes
21122 echo "$as_me: failed program was:" >&5
21123 sed 's/^/| /' conftest.$ac_ext >&5
21125 ac_cv_func_std_isinf_in_cmath=no
21127 rm -f conftest.$ac_objext conftest.$ac_ext
21129 ac_cpp='$CPP $CPPFLAGS'
21130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21135 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21136 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
21137 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
21140 cat >>confdefs.h <<\_ACEOF
21141 #define HAVE_STD_ISINF_IN_CMATH 1
21145 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21146 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
21147 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21151 ac_cpp='$CXXCPP $CPPFLAGS'
21152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21156 cat >conftest.$ac_ext <<_ACEOF
21157 #line $LINENO "configure"
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21163 #include <ieeefp.h>
21164 int foo(float f) {return finite(f);}
21166 rm -f conftest.$ac_objext
21167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21168 (eval $ac_compile) 2>&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } &&
21172 { ac_try='test -s conftest.$ac_objext'
21173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21174 (eval $ac_try) 2>&5
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); }; }; then
21178 ac_cv_func_finite_in_ieeefp_h=yes
21180 echo "$as_me: failed program was:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21183 ac_cv_func_finite_in_ieeefp_h=no
21185 rm -f conftest.$ac_objext conftest.$ac_ext
21187 ac_cpp='$CPP $CPPFLAGS'
21188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21193 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21194 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
21195 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
21198 cat >>confdefs.h <<\_ACEOF
21199 #define HAVE_FINITE_IN_IEEEFP_H 1
21205 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21206 # for constant arguments. Useless!
21207 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21208 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21209 if test "${ac_cv_working_alloca_h+set}" = set; then
21210 echo $ECHO_N "(cached) $ECHO_C" >&6
21212 cat >conftest.$ac_ext <<_ACEOF
21213 #line $LINENO "configure"
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h. */
21219 #include <alloca.h>
21223 char *p = (char *) alloca (2 * sizeof (int));
21228 rm -f conftest.$ac_objext conftest$ac_exeext
21229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21230 (eval $ac_link) 2>&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } &&
21234 { ac_try='test -s conftest$ac_exeext'
21235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236 (eval $ac_try) 2>&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; }; then
21240 ac_cv_working_alloca_h=yes
21242 echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21245 ac_cv_working_alloca_h=no
21247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21249 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21250 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21251 if test $ac_cv_working_alloca_h = yes; then
21253 cat >>confdefs.h <<\_ACEOF
21254 #define HAVE_ALLOCA_H 1
21259 echo "$as_me:$LINENO: checking for alloca" >&5
21260 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21261 if test "${ac_cv_func_alloca_works+set}" = set; then
21262 echo $ECHO_N "(cached) $ECHO_C" >&6
21264 cat >conftest.$ac_ext <<_ACEOF
21265 #line $LINENO "configure"
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21272 # define alloca __builtin_alloca
21275 # include <malloc.h>
21276 # define alloca _alloca
21279 # include <alloca.h>
21284 # ifndef alloca /* predefined by HP cc +Olibcalls */
21295 char *p = (char *) alloca (1);
21300 rm -f conftest.$ac_objext conftest$ac_exeext
21301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21302 (eval $ac_link) 2>&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } &&
21306 { ac_try='test -s conftest$ac_exeext'
21307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21308 (eval $ac_try) 2>&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); }; }; then
21312 ac_cv_func_alloca_works=yes
21314 echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21317 ac_cv_func_alloca_works=no
21319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21321 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21322 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21324 if test $ac_cv_func_alloca_works = yes; then
21326 cat >>confdefs.h <<\_ACEOF
21327 #define HAVE_ALLOCA 1
21331 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21332 # that cause trouble. Some versions do not even contain alloca or
21333 # contain a buggy version. If you still want to use their alloca,
21334 # use ar to extract alloca.o from them instead of compiling alloca.c.
21336 ALLOCA=alloca.$ac_objext
21338 cat >>confdefs.h <<\_ACEOF
21343 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21344 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21345 if test "${ac_cv_os_cray+set}" = set; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21348 cat >conftest.$ac_ext <<_ACEOF
21349 #line $LINENO "configure"
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21355 #if defined(CRAY) && ! defined(CRAY2)
21362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21363 $EGREP "webecray" >/dev/null 2>&1; then
21371 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21372 echo "${ECHO_T}$ac_cv_os_cray" >&6
21373 if test $ac_cv_os_cray = yes; then
21374 for ac_func in _getb67 GETB67 getb67; do
21375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21376 echo "$as_me:$LINENO: checking for $ac_func" >&5
21377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21378 if eval "test \"\${$as_ac_var+set}\" = set"; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21381 cat >conftest.$ac_ext <<_ACEOF
21382 #line $LINENO "configure"
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 /* System header to define __stub macros and hopefully few prototypes,
21389 which can conflict with char $ac_func (); below.
21390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21391 <limits.h> exists even on freestanding compilers. */
21393 # include <limits.h>
21395 # include <assert.h>
21397 /* Override any gcc2 internal prototype to avoid an error. */
21402 /* We use char because int might match the return type of a gcc2
21403 builtin and then its argument prototype would still apply. */
21405 /* The GNU C library defines this for functions which it implements
21406 to always fail with ENOSYS. Some functions are actually named
21407 something starting with __ and the normal name is an alias. */
21408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21411 char (*f) () = $ac_func;
21420 return f != $ac_func;
21425 rm -f conftest.$ac_objext conftest$ac_exeext
21426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21427 (eval $ac_link) 2>&5
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); } &&
21431 { ac_try='test -s conftest$ac_exeext'
21432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21433 (eval $ac_try) 2>&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); }; }; then
21437 eval "$as_ac_var=yes"
21439 echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21442 eval "$as_ac_var=no"
21444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21448 if test `eval echo '${'$as_ac_var'}'` = yes; then
21450 cat >>confdefs.h <<_ACEOF
21451 #define CRAY_STACKSEG_END $ac_func
21460 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21461 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21462 if test "${ac_cv_c_stack_direction+set}" = set; then
21463 echo $ECHO_N "(cached) $ECHO_C" >&6
21465 if test "$cross_compiling" = yes; then
21466 ac_cv_c_stack_direction=0
21468 cat >conftest.$ac_ext <<_ACEOF
21469 #line $LINENO "configure"
21472 cat confdefs.h >>conftest.$ac_ext
21473 cat >>conftest.$ac_ext <<_ACEOF
21474 /* end confdefs.h. */
21476 find_stack_direction ()
21478 static char *addr = 0;
21483 return find_stack_direction ();
21486 return (&dummy > addr) ? 1 : -1;
21492 exit (find_stack_direction () < 0);
21495 rm -f conftest$ac_exeext
21496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21497 (eval $ac_link) 2>&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502 (eval $ac_try) 2>&5
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; }; then
21506 ac_cv_c_stack_direction=1
21508 echo "$as_me: program exited with status $ac_status" >&5
21509 echo "$as_me: failed program was:" >&5
21510 sed 's/^/| /' conftest.$ac_ext >&5
21512 ( exit $ac_status )
21513 ac_cv_c_stack_direction=-1
21515 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21518 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21519 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21521 cat >>confdefs.h <<_ACEOF
21522 #define STACK_DIRECTION $ac_cv_c_stack_direction
21530 for ac_header in stdlib.h unistd.h
21532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21534 echo "$as_me:$LINENO: checking for $ac_header" >&5
21535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21537 echo $ECHO_N "(cached) $ECHO_C" >&6
21539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21542 # Is the header compilable?
21543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21545 cat >conftest.$ac_ext <<_ACEOF
21546 #line $LINENO "configure"
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h. */
21552 $ac_includes_default
21553 #include <$ac_header>
21555 rm -f conftest.$ac_objext
21556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21557 (eval $ac_compile) 2>&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); } &&
21561 { ac_try='test -s conftest.$ac_objext'
21562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563 (eval $ac_try) 2>&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); }; }; then
21567 ac_header_compiler=yes
21569 echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.$ac_ext >&5
21572 ac_header_compiler=no
21574 rm -f conftest.$ac_objext conftest.$ac_ext
21575 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21576 echo "${ECHO_T}$ac_header_compiler" >&6
21578 # Is the header present?
21579 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21581 cat >conftest.$ac_ext <<_ACEOF
21582 #line $LINENO "configure"
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21588 #include <$ac_header>
21590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21593 grep -v '^ *+' conftest.er1 >conftest.err
21595 cat conftest.err >&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); } >/dev/null; then
21598 if test -s conftest.err; then
21599 ac_cpp_err=$ac_c_preproc_warn_flag
21606 if test -z "$ac_cpp_err"; then
21607 ac_header_preproc=yes
21609 echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21612 ac_header_preproc=no
21614 rm -f conftest.err conftest.$ac_ext
21615 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21616 echo "${ECHO_T}$ac_header_preproc" >&6
21618 # So? What about this header?
21619 case $ac_header_compiler:$ac_header_preproc in
21621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21627 ## ------------------------------------ ##
21628 ## Report this to bug-autoconf@gnu.org. ##
21629 ## ------------------------------------ ##
21632 sed "s/^/$as_me: WARNING: /" >&2
21635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21638 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21643 ## ------------------------------------ ##
21644 ## Report this to bug-autoconf@gnu.org. ##
21645 ## ------------------------------------ ##
21648 sed "s/^/$as_me: WARNING: /" >&2
21651 echo "$as_me:$LINENO: checking for $ac_header" >&5
21652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21654 echo $ECHO_N "(cached) $ECHO_C" >&6
21656 eval "$as_ac_Header=$ac_header_preproc"
21658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21663 cat >>confdefs.h <<_ACEOF
21664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21672 for ac_func in getpagesize
21674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21675 echo "$as_me:$LINENO: checking for $ac_func" >&5
21676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21677 if eval "test \"\${$as_ac_var+set}\" = set"; then
21678 echo $ECHO_N "(cached) $ECHO_C" >&6
21680 cat >conftest.$ac_ext <<_ACEOF
21681 #line $LINENO "configure"
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h. */
21687 /* System header to define __stub macros and hopefully few prototypes,
21688 which can conflict with char $ac_func (); below.
21689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21690 <limits.h> exists even on freestanding compilers. */
21692 # include <limits.h>
21694 # include <assert.h>
21696 /* Override any gcc2 internal prototype to avoid an error. */
21701 /* We use char because int might match the return type of a gcc2
21702 builtin and then its argument prototype would still apply. */
21704 /* The GNU C library defines this for functions which it implements
21705 to always fail with ENOSYS. Some functions are actually named
21706 something starting with __ and the normal name is an alias. */
21707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21710 char (*f) () = $ac_func;
21719 return f != $ac_func;
21724 rm -f conftest.$ac_objext conftest$ac_exeext
21725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21726 (eval $ac_link) 2>&5
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); } &&
21730 { ac_try='test -s conftest$ac_exeext'
21731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21732 (eval $ac_try) 2>&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); }; }; then
21736 eval "$as_ac_var=yes"
21738 echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21741 eval "$as_ac_var=no"
21743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21747 if test `eval echo '${'$as_ac_var'}'` = yes; then
21748 cat >>confdefs.h <<_ACEOF
21749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21755 echo "$as_me:$LINENO: checking for working mmap" >&5
21756 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21757 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21758 echo $ECHO_N "(cached) $ECHO_C" >&6
21760 if test "$cross_compiling" = yes; then
21761 ac_cv_func_mmap_fixed_mapped=no
21763 cat >conftest.$ac_ext <<_ACEOF
21764 #line $LINENO "configure"
21767 cat confdefs.h >>conftest.$ac_ext
21768 cat >>conftest.$ac_ext <<_ACEOF
21769 /* end confdefs.h. */
21770 $ac_includes_default
21771 /* malloc might have been renamed as rpl_malloc. */
21774 /* Thanks to Mike Haertel and Jim Avera for this test.
21775 Here is a matrix of mmap possibilities:
21776 mmap private not fixed
21777 mmap private fixed at somewhere currently unmapped
21778 mmap private fixed at somewhere already mapped
21779 mmap shared not fixed
21780 mmap shared fixed at somewhere currently unmapped
21781 mmap shared fixed at somewhere already mapped
21782 For private mappings, we should verify that changes cannot be read()
21783 back from the file, nor mmap's back from the file at a different
21784 address. (There have been systems where private was not correctly
21785 implemented like the infamous i386 svr4.0, and systems where the
21786 VM page cache was not coherent with the file system buffer cache
21787 like early versions of FreeBSD and possibly contemporary NetBSD.)
21788 For shared mappings, we should conversely verify that changes get
21789 propagated back to all the places they're supposed to be.
21791 Grep wants private fixed already mapped.
21792 The main things grep needs to know about mmap are:
21793 * does it exist and is it safe to write into the mmap'd area
21794 * how to use it (BSD variants) */
21797 #include <sys/mman.h>
21799 #if !STDC_HEADERS && !HAVE_STDLIB_H
21803 /* This mess was copied from the GNU getpagesize.h. */
21804 #if !HAVE_GETPAGESIZE
21805 /* Assume that all systems that can run configure have sys/param.h. */
21806 # if !HAVE_SYS_PARAM_H
21807 # define HAVE_SYS_PARAM_H 1
21810 # ifdef _SC_PAGESIZE
21811 # define getpagesize() sysconf(_SC_PAGESIZE)
21812 # else /* no _SC_PAGESIZE */
21813 # if HAVE_SYS_PARAM_H
21814 # include <sys/param.h>
21815 # ifdef EXEC_PAGESIZE
21816 # define getpagesize() EXEC_PAGESIZE
21817 # else /* no EXEC_PAGESIZE */
21819 # define getpagesize() NBPG * CLSIZE
21822 # endif /* no CLSIZE */
21823 # else /* no NBPG */
21825 # define getpagesize() NBPC
21826 # else /* no NBPC */
21828 # define getpagesize() PAGESIZE
21829 # endif /* PAGESIZE */
21830 # endif /* no NBPC */
21831 # endif /* no NBPG */
21832 # endif /* no EXEC_PAGESIZE */
21833 # else /* no HAVE_SYS_PARAM_H */
21834 # define getpagesize() 8192 /* punt totally */
21835 # endif /* no HAVE_SYS_PARAM_H */
21836 # endif /* no _SC_PAGESIZE */
21838 #endif /* no HAVE_GETPAGESIZE */
21843 char *data, *data2, *data3;
21847 pagesize = getpagesize ();
21849 /* First, make a file with some known garbage in it. */
21850 data = (char *) malloc (pagesize);
21853 for (i = 0; i < pagesize; ++i)
21854 *(data + i) = rand ();
21856 fd = creat ("conftest.mmap", 0600);
21859 if (write (fd, data, pagesize) != pagesize)
21863 /* Next, try to mmap the file at a fixed address which already has
21864 something else allocated at it. If we can, also make sure that
21865 we see the same garbage. */
21866 fd = open ("conftest.mmap", O_RDWR);
21869 data2 = (char *) malloc (2 * pagesize);
21872 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21873 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21874 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21876 for (i = 0; i < pagesize; ++i)
21877 if (*(data + i) != *(data2 + i))
21880 /* Finally, make sure that changes to the mapped area do not
21881 percolate back to the file as seen by read(). (This is a bug on
21882 some variants of i386 svr4.0.) */
21883 for (i = 0; i < pagesize; ++i)
21884 *(data2 + i) = *(data2 + i) + 1;
21885 data3 = (char *) malloc (pagesize);
21888 if (read (fd, data3, pagesize) != pagesize)
21890 for (i = 0; i < pagesize; ++i)
21891 if (*(data + i) != *(data3 + i))
21897 rm -f conftest$ac_exeext
21898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21899 (eval $ac_link) 2>&5
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904 (eval $ac_try) 2>&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); }; }; then
21908 ac_cv_func_mmap_fixed_mapped=yes
21910 echo "$as_me: program exited with status $ac_status" >&5
21911 echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.$ac_ext >&5
21914 ( exit $ac_status )
21915 ac_cv_func_mmap_fixed_mapped=no
21917 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21920 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21921 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21922 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21924 cat >>confdefs.h <<\_ACEOF
21925 #define HAVE_MMAP 1
21929 rm -f conftest.mmap
21931 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21933 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
21934 echo "$as_me: WARNING: mmap() required but not found" >&2;}
21936 echo "$as_me:$LINENO: checking for mmap of files" >&5
21937 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21938 if test "${ac_cv_func_mmap_file+set}" = set; then
21939 echo $ECHO_N "(cached) $ECHO_C" >&6
21944 ac_cpp='$CPP $CPPFLAGS'
21945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21949 if test "$cross_compiling" = yes; then
21950 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21951 See \`config.log' for more details." >&5
21952 echo "$as_me: error: cannot run test program while cross compiling
21953 See \`config.log' for more details." >&2;}
21954 { (exit 1); exit 1; }; }
21956 cat >conftest.$ac_ext <<_ACEOF
21957 #line $LINENO "configure"
21960 cat confdefs.h >>conftest.$ac_ext
21961 cat >>conftest.$ac_ext <<_ACEOF
21962 /* end confdefs.h. */
21964 #ifdef HAVE_SYS_TYPES_H
21965 #include <sys/types.h>
21968 #ifdef HAVE_SYS_MMAN_H
21969 #include <sys/mman.h>
21972 #ifdef HAVE_FCNTL_H
21978 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
21980 rm -f conftest$ac_exeext
21981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21982 (eval $ac_link) 2>&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21987 (eval $ac_try) 2>&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); }; }; then
21991 ac_cv_func_mmap_file=yes
21993 echo "$as_me: program exited with status $ac_status" >&5
21994 echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21997 ( exit $ac_status )
21998 ac_cv_func_mmap_file=no
22000 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22003 ac_cpp='$CPP $CPPFLAGS'
22004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22010 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22011 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22012 if test "$ac_cv_func_mmap_file" = yes; then
22014 cat >>confdefs.h <<\_ACEOF
22015 #define HAVE_MMAP_FILE
22022 if test "$ac_cv_func_mmap_file" = "no"
22024 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22025 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22027 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22028 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22029 if test "${ac_cv_header_mmap_anon+set}" = set; then
22030 echo $ECHO_N "(cached) $ECHO_C" >&6
22035 ac_cpp='$CPP $CPPFLAGS'
22036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22040 cat >conftest.$ac_ext <<_ACEOF
22041 #line $LINENO "configure"
22044 cat confdefs.h >>conftest.$ac_ext
22045 cat >>conftest.$ac_ext <<_ACEOF
22046 /* end confdefs.h. */
22047 #include <sys/mman.h>
22048 #include <unistd.h>
22053 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22058 rm -f conftest.$ac_objext
22059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22060 (eval $ac_compile) 2>&5
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); } &&
22064 { ac_try='test -s conftest.$ac_objext'
22065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22066 (eval $ac_try) 2>&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); }; }; then
22070 ac_cv_header_mmap_anon=yes
22072 echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22075 ac_cv_header_mmap_anon=no
22077 rm -f conftest.$ac_objext conftest.$ac_ext
22079 ac_cpp='$CPP $CPPFLAGS'
22080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22086 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22087 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22088 if test "$ac_cv_header_mmap_anon" = yes; then
22090 cat >>confdefs.h <<\_ACEOF
22091 #define HAVE_MMAP_ANONYMOUS
22096 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22097 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22098 if test "${ac_cv_type_signal+set}" = set; then
22099 echo $ECHO_N "(cached) $ECHO_C" >&6
22101 cat >conftest.$ac_ext <<_ACEOF
22102 #line $LINENO "configure"
22105 cat confdefs.h >>conftest.$ac_ext
22106 cat >>conftest.$ac_ext <<_ACEOF
22107 /* end confdefs.h. */
22108 #include <sys/types.h>
22109 #include <signal.h>
22114 extern "C" void (*signal (int, void (*)(int)))(int);
22116 void (*signal ()) ();
22127 rm -f conftest.$ac_objext
22128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22129 (eval $ac_compile) 2>&5
22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132 (exit $ac_status); } &&
22133 { ac_try='test -s conftest.$ac_objext'
22134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22135 (eval $ac_try) 2>&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); }; }; then
22139 ac_cv_type_signal=void
22141 echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22144 ac_cv_type_signal=int
22146 rm -f conftest.$ac_objext conftest.$ac_ext
22148 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22149 echo "${ECHO_T}$ac_cv_type_signal" >&6
22151 cat >>confdefs.h <<_ACEOF
22152 #define RETSIGTYPE $ac_cv_type_signal
22165 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
22167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22168 echo "$as_me:$LINENO: checking for $ac_func" >&5
22169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22170 if eval "test \"\${$as_ac_var+set}\" = set"; then
22171 echo $ECHO_N "(cached) $ECHO_C" >&6
22173 cat >conftest.$ac_ext <<_ACEOF
22174 #line $LINENO "configure"
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h. */
22180 /* System header to define __stub macros and hopefully few prototypes,
22181 which can conflict with char $ac_func (); below.
22182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22183 <limits.h> exists even on freestanding compilers. */
22185 # include <limits.h>
22187 # include <assert.h>
22189 /* Override any gcc2 internal prototype to avoid an error. */
22194 /* We use char because int might match the return type of a gcc2
22195 builtin and then its argument prototype would still apply. */
22197 /* The GNU C library defines this for functions which it implements
22198 to always fail with ENOSYS. Some functions are actually named
22199 something starting with __ and the normal name is an alias. */
22200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22203 char (*f) () = $ac_func;
22212 return f != $ac_func;
22217 rm -f conftest.$ac_objext conftest$ac_exeext
22218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22219 (eval $ac_link) 2>&5
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); } &&
22223 { ac_try='test -s conftest$ac_exeext'
22224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225 (eval $ac_try) 2>&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); }; }; then
22229 eval "$as_ac_var=yes"
22231 echo "$as_me: failed program was:" >&5
22232 sed 's/^/| /' conftest.$ac_ext >&5
22234 eval "$as_ac_var=no"
22236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22240 if test `eval echo '${'$as_ac_var'}'` = yes; then
22241 cat >>confdefs.h <<_ACEOF
22242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22248 echo "$as_me:$LINENO: checking for mprotect" >&5
22249 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22250 if test "${ac_cv_func_mprotect+set}" = set; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22253 cat >conftest.$ac_ext <<_ACEOF
22254 #line $LINENO "configure"
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h. */
22260 /* System header to define __stub macros and hopefully few prototypes,
22261 which can conflict with char mprotect (); below.
22262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22263 <limits.h> exists even on freestanding compilers. */
22265 # include <limits.h>
22267 # include <assert.h>
22269 /* Override any gcc2 internal prototype to avoid an error. */
22274 /* We use char because int might match the return type of a gcc2
22275 builtin and then its argument prototype would still apply. */
22277 /* The GNU C library defines this for functions which it implements
22278 to always fail with ENOSYS. Some functions are actually named
22279 something starting with __ and the normal name is an alias. */
22280 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22283 char (*f) () = mprotect;
22292 return f != mprotect;
22297 rm -f conftest.$ac_objext conftest$ac_exeext
22298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22299 (eval $ac_link) 2>&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } &&
22303 { ac_try='test -s conftest$ac_exeext'
22304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305 (eval $ac_try) 2>&5
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); }; }; then
22309 ac_cv_func_mprotect=yes
22311 echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22314 ac_cv_func_mprotect=no
22316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22318 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22319 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22320 if test $ac_cv_func_mprotect = yes; then
22323 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22324 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22325 { (exit 1); exit 1; }; }
22330 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
22331 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
22335 ac_cpp='$CPP $CPPFLAGS'
22336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22340 oldcflags="$CFLAGS"
22341 CFLAGS="$CFLAGS -Wl,-R."
22342 cat >conftest.$ac_ext <<_ACEOF
22343 int main() { return 0; }
22345 rm -f conftest.$ac_objext conftest$ac_exeext
22346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22347 (eval $ac_link) 2>&5
22349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350 (exit $ac_status); } &&
22351 { ac_try='test -s conftest$ac_exeext'
22352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22353 (eval $ac_try) 2>&5
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); }; }; then
22357 ac_cv_link_use_r=yes
22359 echo "$as_me: failed program was:" >&5
22360 sed 's/^/| /' conftest.$ac_ext >&5
22362 ac_cv_link_use_r=no
22364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22365 CFLAGS="$oldcflags"
22367 ac_cpp='$CPP $CPPFLAGS'
22368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22372 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
22373 echo "${ECHO_T}$ac_cv_link_use_r" >&6
22374 if test "$ac_cv_link_use_r" = yes
22377 cat >>confdefs.h <<\_ACEOF
22378 #define HAVE_LINK_R 1
22384 # Check whether --enable-optimized or --disable-optimized was given.
22385 if test "${enable_optimized+set}" = set; then
22386 enableval="$enable_optimized"
22391 if test ${enableval} = "no"
22396 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22403 # Check whether --enable-spec95 or --disable-spec95 was given.
22404 if test "${enable_spec95+set}" = set; then
22405 enableval="$enable_spec95"
22406 checkresult=$enableval
22410 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
22411 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
22412 case "$checkresult" in
22414 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
22415 if test -d "$defaultdir"
22417 SPEC95_ROOT=$defaultdir
22419 USE_SPEC95=USE_SPEC95=1
22421 checkresult="yes, found in $defaultdir"
22431 *) if test -d "$checkresult"
22433 SPEC95_ROOT="$checkresult"
22435 USE_SPEC95=USE_SPEC95=1
22437 checkresult="yes, in $checkresult"
22441 checkresult="no, not found in $checkresult"
22445 echo "$as_me:$LINENO: result: $checkresult" >&5
22446 echo "${ECHO_T}$checkresult" >&6
22450 # Check whether --enable-spec2000 or --disable-spec2000 was given.
22451 if test "${enable_spec2000+set}" = set; then
22452 enableval="$enable_spec2000"
22453 checkresult=$enableval
22457 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
22458 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
22459 case "$checkresult" in
22461 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22462 if test -d "$defaultdir"
22464 SPEC2000_ROOT=$defaultdir
22466 USE_SPEC2000=USE_SPEC2000=1
22468 checkresult="yes, found in $defaultdir"
22478 *) if test -d "$checkresult"
22480 SPEC2000_ROOT="$checkresult"
22482 USE_SPEC2000=USE_SPEC2000=1
22484 checkresult="yes, in $checkresult"
22488 checkresult="no, not found in $checkresult"
22492 echo "$as_me:$LINENO: result: $checkresult" >&5
22493 echo "${ECHO_T}$checkresult" >&6
22497 # Check whether --enable-povray or --disable-povray was given.
22498 if test "${enable_povray+set}" = set; then
22499 enableval="$enable_povray"
22500 checkresult=$enableval
22504 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
22505 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
22506 case "$checkresult" in
22508 defaultdir=/home/vadve/shared/benchmarks/povray31
22509 if test -d "$defaultdir"
22511 POVRAY_ROOT=$defaultdir
22513 USE_POVRAY=USE_POVRAY=1
22515 checkresult="yes, found in $defaultdir"
22525 *) if test -d "$checkresult"
22527 POVRAY_ROOT="$checkresult"
22529 USE_POVRAY=USE_POVRAY=1
22531 checkresult="yes, in $checkresult"
22535 checkresult="no, not found in $checkresult"
22539 echo "$as_me:$LINENO: result: $checkresult" >&5
22540 echo "${ECHO_T}$checkresult" >&6
22544 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22545 if test "${enable_precompiled_bytecode+set}" = set; then
22546 enableval="$enable_precompiled_bytecode"
22551 if test ${enableval} = "no"
22556 UPB=USE_PRECOMPILED_BYTECODE=1
22560 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22561 if test "${enable_llc_diffs+set}" = set; then
22562 enableval="$enable_llc_diffs"
22567 if test ${enableval} = "no"
22569 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22576 # Check whether --enable-jit or --disable-jit was given.
22577 if test "${enable_jit+set}" = set; then
22578 enableval="$enable_jit"
22583 if test ${enableval} = "no"
22590 JIT=TARGET_HAS_JIT=1
22594 JIT=TARGET_HAS_JIT=1
22605 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22606 if test "${with_llvmgccdir+set}" = set; then
22607 withval="$with_llvmgccdir"
22608 LLVMGCCDIR=$withval
22611 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22612 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22614 if test -d "$LLVMGCCDIR"
22616 if test -x "$LLVMGCCDIR/bin/gcc"
22618 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22622 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22623 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22624 if test "$LLVM_GCC_CHECK" = "no"
22628 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22629 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22631 if test -x "$LLVM_GCC_CHECK"
22633 cp /dev/null conftest.c
22634 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22640 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
22641 LLVMCC1=$llvmcc1path
22643 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
22644 LLVMCC1PLUS=$llvmcc1pluspath
22647 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22648 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22649 if test "$LLVM_GCC_SANE" = "no"
22655 # Check whether --with-bcrepos or --without-bcrepos was given.
22656 if test "${with_bcrepos+set}" = set; then
22657 withval="$with_bcrepos"
22661 BCR=/home/vadve/lattner/LLVMPrograms
22666 # Check whether --with-papi or --without-papi was given.
22667 if test "${with_papi+set}" = set; then
22668 withval="$with_papi"
22672 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22676 echo "$as_me:$LINENO: checking for shared library suffix" >&5
22677 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22678 eval "SHLIBEXT=$shrext"
22679 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22680 echo "${ECHO_T}$SHLIBEXT" >&6
22684 cat >>confdefs.h <<_ACEOF
22685 #define SHLIBEXT "$SHLIBEXT"
22689 ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/iterator"
22690 cat >confcache <<\_ACEOF
22691 # This file is a shell script that caches the results of configure
22692 # tests run on this system so they can be shared between configure
22693 # scripts and configure runs, see configure's option --config-cache.
22694 # It is not useful on other systems. If it contains results you don't
22695 # want to keep, you may remove or edit it.
22697 # config.status only pays attention to the cache file if you give it
22698 # the --recheck option to rerun configure.
22700 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22701 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22702 # following values.
22706 # The following way of writing the cache mishandles newlines in values,
22707 # but we know of no workaround that is simple, portable, and efficient.
22708 # So, don't put newlines in cache variables' values.
22709 # Ultrix sh set writes to stderr and can't be redirected directly,
22710 # and sets the high bit in the cache file unless we assign to the vars.
22713 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22715 # `set' does not quote correctly, so add quotes (double-quote
22716 # substitution turns \\\\ into \\, and sed turns \\ into \).
22719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22722 # `set' quotes correctly as required by POSIX, so do not add quotes.
22724 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22733 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22735 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22736 if test -w $cache_file; then
22737 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22738 cat confcache >$cache_file
22740 echo "not updating unwritable cache $cache_file"
22745 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22746 # Let make expand exec_prefix.
22747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22749 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22750 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22751 # trailing colons and then remove the whole line if VPATH becomes empty
22752 # (actually we leave an empty line to preserve line numbers).
22753 if test "x$srcdir" = x.; then
22754 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22755 s/:*\$(srcdir):*/:/;
22756 s/:*\${srcdir}:*/:/;
22758 s/^\([^=]*=[ ]*\):*/\1/;
22764 DEFS=-DHAVE_CONFIG_H
22768 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22769 # 1. Remove the extension, and $U if already installed.
22770 ac_i=`echo "$ac_i" |
22771 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22773 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22774 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22776 LIBOBJS=$ac_libobjs
22778 LTLIBOBJS=$ac_ltlibobjs
22782 : ${CONFIG_STATUS=./config.status}
22783 ac_clean_files_save=$ac_clean_files
22784 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22785 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22786 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22787 cat >$CONFIG_STATUS <<_ACEOF
22789 # Generated by $as_me.
22790 # Run this file to recreate the current configuration.
22791 # Compiler output produced by configure, useful for debugging
22792 # configure, is in config.log if it exists.
22795 ac_cs_recheck=false
22797 SHELL=\${CONFIG_SHELL-$SHELL}
22800 cat >>$CONFIG_STATUS <<\_ACEOF
22801 ## --------------------- ##
22802 ## M4sh Initialization. ##
22803 ## --------------------- ##
22805 # Be Bourne compatible
22806 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22809 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22810 # is contrary to our usage. Disable this feature.
22811 alias -g '${1+"$@"}'='"$@"'
22812 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22816 # Support unset when possible.
22817 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22824 # Work around bugs in pre-3.0 UWIN ksh.
22825 $as_unset ENV MAIL MAILPATH
22832 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22833 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22834 LC_TELEPHONE LC_TIME
22836 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22837 eval $as_var=C; export $as_var
22843 # Required to use basename.
22844 if expr a : '\(a\)' >/dev/null 2>&1; then
22850 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22851 as_basename=basename
22857 # Name of the executable.
22858 as_me=`$as_basename "$0" ||
22859 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22860 X"$0" : 'X\(//\)$' \| \
22861 X"$0" : 'X\(/\)$' \| \
22862 . : '\(.\)' 2>/dev/null ||
22864 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22865 /^X\/\(\/\/\)$/{ s//\1/; q; }
22866 /^X\/\(\/\).*/{ s//\1/; q; }
22870 # PATH needs CR, and LINENO needs CR and PATH.
22871 # Avoid depending upon Character Ranges.
22872 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22873 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22874 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22875 as_cr_digits='0123456789'
22876 as_cr_alnum=$as_cr_Letters$as_cr_digits
22878 # The user is always right.
22879 if test "${PATH_SEPARATOR+set}" != set; then
22880 echo "#! /bin/sh" >conf$$.sh
22881 echo "exit 0" >>conf$$.sh
22883 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22892 as_lineno_1=$LINENO
22893 as_lineno_2=$LINENO
22894 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22895 test "x$as_lineno_1" != "x$as_lineno_2" &&
22896 test "x$as_lineno_3" = "x$as_lineno_2" || {
22897 # Find who we are. Look in the path if we contain no path at all
22900 *[\\/]* ) as_myself=$0 ;;
22901 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22902 for as_dir in $PATH
22905 test -z "$as_dir" && as_dir=.
22906 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22911 # We did not find ourselves, most probably we were run as `sh COMMAND'
22912 # in which case we are not to be found in the path.
22913 if test "x$as_myself" = x; then
22916 if test ! -f "$as_myself"; then
22917 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22918 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22919 { (exit 1); exit 1; }; }
22921 case $CONFIG_SHELL in
22923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22924 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22927 test -z "$as_dir" && as_dir=.
22928 for as_base in sh bash ksh sh5; do
22931 if ("$as_dir/$as_base" -c '
22932 as_lineno_1=$LINENO
22933 as_lineno_2=$LINENO
22934 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22935 test "x$as_lineno_1" != "x$as_lineno_2" &&
22936 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22937 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22938 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22939 CONFIG_SHELL=$as_dir/$as_base
22940 export CONFIG_SHELL
22941 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22949 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22950 # uniformly replaced by the line number. The first 'sed' inserts a
22951 # line-number line before each line; the second 'sed' does the real
22952 # work. The second script uses 'N' to pair each line-number line
22953 # with the numbered line, and appends trailing '-' during
22954 # substitution so that $LINENO is not a special case at line end.
22955 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22956 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22957 sed '=' <$as_myself |
22962 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22965 s,^['$as_cr_digits']*\n,,
22966 ' >$as_me.lineno &&
22967 chmod +x $as_me.lineno ||
22968 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22969 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22970 { (exit 1); exit 1; }; }
22972 # Don't try to exec as it changes $[0], causing all sort of problems
22973 # (the dirname of $[0] is not the place where we might find the
22974 # original and so on. Autoconf is especially sensible to this).
22976 # Exit status is that of the last command.
22981 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22982 *c*,-n*) ECHO_N= ECHO_C='
22984 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22985 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22988 if expr a : '\(a\)' >/dev/null 2>&1; then
22994 rm -f conf$$ conf$$.exe conf$$.file
22996 if ln -s conf$$.file conf$$ 2>/dev/null; then
22997 # We could just check for DJGPP; but this test a) works b) is more generic
22998 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22999 if test -f conf$$.exe; then
23000 # Don't use ln at all; we don't have any links
23005 elif ln conf$$.file conf$$ 2>/dev/null; then
23010 rm -f conf$$ conf$$.exe conf$$.file
23012 if mkdir -p . 2>/dev/null; then
23018 as_executable_p="test -f"
23020 # Sed expression to map a string onto a valid CPP name.
23021 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23023 # Sed expression to map a string onto a valid variable name.
23024 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23028 # We need space, tab and new line, in precisely that order.
23038 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23039 # report actual input values of CONFIG_FILES etc. instead of their
23040 # values after options handling. Logging --version etc. is OK.
23044 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23045 ## Running $as_me. ##
23050 This file was extended by [LLVM] $as_me [1.3], which was
23051 generated by GNU Autoconf 2.57. Invocation command line was
23053 CONFIG_FILES = $CONFIG_FILES
23054 CONFIG_HEADERS = $CONFIG_HEADERS
23055 CONFIG_LINKS = $CONFIG_LINKS
23056 CONFIG_COMMANDS = $CONFIG_COMMANDS
23060 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23064 # Files that config.status was made for.
23065 if test -n "$ac_config_files"; then
23066 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23069 if test -n "$ac_config_headers"; then
23070 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23073 if test -n "$ac_config_links"; then
23074 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23077 if test -n "$ac_config_commands"; then
23078 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23081 cat >>$CONFIG_STATUS <<\_ACEOF
23084 \`$as_me' instantiates files from templates according to the
23085 current configuration.
23087 Usage: $0 [OPTIONS] [FILE]...
23089 -h, --help print this help, then exit
23090 -V, --version print version number, then exit
23091 -q, --quiet do not print progress messages
23092 -d, --debug don't remove temporary files
23093 --recheck update $as_me by reconfiguring in the same conditions
23094 --file=FILE[:TEMPLATE]
23095 instantiate the configuration file FILE
23096 --header=FILE[:TEMPLATE]
23097 instantiate the configuration header FILE
23099 Configuration files:
23102 Configuration headers:
23105 Configuration commands:
23108 Report bugs to <bug-autoconf@gnu.org>."
23111 cat >>$CONFIG_STATUS <<_ACEOF
23113 [LLVM] config.status [1.3]
23114 configured by $0, generated by GNU Autoconf 2.57,
23115 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23117 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23118 Free Software Foundation, Inc.
23119 This config.status script is free software; the Free Software Foundation
23120 gives unlimited permission to copy, distribute and modify it."
23125 cat >>$CONFIG_STATUS <<\_ACEOF
23126 # If no file are specified by the user, then we need to provide default
23127 # value. By we need to know if files were specified by the user.
23133 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23134 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23142 *) # This is not an option, so the user has probably given explicit
23145 ac_need_defaults=false;;
23149 # Handling of the options.
23151 cat >>$CONFIG_STATUS <<\_ACEOF
23152 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23154 --version | --vers* | -V )
23155 echo "$ac_cs_version"; exit 0 ;;
23157 # Conflict between --help and --header
23158 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23159 Try \`$0 --help' for more information." >&5
23160 echo "$as_me: error: ambiguous option: $1
23161 Try \`$0 --help' for more information." >&2;}
23162 { (exit 1); exit 1; }; };;
23163 --help | --hel | -h )
23164 echo "$ac_cs_usage"; exit 0 ;;
23165 --debug | --d* | -d )
23167 --file | --fil | --fi | --f )
23169 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23170 ac_need_defaults=false;;
23171 --header | --heade | --head | --hea )
23173 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23174 ac_need_defaults=false;;
23175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23176 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23179 # This is an error.
23180 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23181 Try \`$0 --help' for more information." >&5
23182 echo "$as_me: error: unrecognized option: $1
23183 Try \`$0 --help' for more information." >&2;}
23184 { (exit 1); exit 1; }; } ;;
23186 *) ac_config_targets="$ac_config_targets $1" ;;
23192 ac_configure_extra_args=
23194 if $ac_cs_silent; then
23196 ac_configure_extra_args="$ac_configure_extra_args --silent"
23200 cat >>$CONFIG_STATUS <<_ACEOF
23201 if \$ac_cs_recheck; then
23202 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23203 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23208 cat >>$CONFIG_STATUS <<_ACEOF
23210 # INIT-COMMANDS section.
23213 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23214 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23215 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23216 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23217 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23218 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23219 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23220 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23221 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23222 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23223 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
23224 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23225 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23226 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23227 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23228 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23229 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23230 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23231 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23232 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23233 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23234 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23235 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23236 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
23237 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23238 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23239 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23240 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
23241 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
23242 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23243 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23244 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23245 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23246 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23247 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23248 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23249 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23250 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23251 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23252 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23253 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23254 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23255 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23256 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
23257 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23258 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23259 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23260 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23261 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23262 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23268 cat >>$CONFIG_STATUS <<\_ACEOF
23269 for ac_config_target in $ac_config_targets
23271 case "$ac_config_target" in
23272 # Handling of arguments.
23273 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23274 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
23275 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
23276 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
23277 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
23278 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
23279 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23280 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23281 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23282 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23283 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23284 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23285 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23286 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23287 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23288 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23289 "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
23290 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23291 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23292 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23293 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23294 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23295 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23296 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23297 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23298 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23299 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23300 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23301 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23302 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
23303 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23304 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23305 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23306 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
23307 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
23308 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23309 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23310 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23311 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
23312 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
23313 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
23314 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
23315 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
23316 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
23317 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
23318 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
23319 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
23320 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
23321 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
23322 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
23323 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23324 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23325 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23326 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23327 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23328 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23329 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23330 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23331 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23332 { (exit 1); exit 1; }; };;
23336 # If the user did not use the arguments to specify the items to instantiate,
23337 # then the envvar interface is used. Set only those that are not.
23338 # We use the long form for the default assignment because of an extremely
23339 # bizarre bug on SunOS 4.1.3.
23340 if $ac_need_defaults; then
23341 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23342 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23343 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23346 # Have a temporary directory for convenience. Make it in the build tree
23347 # simply because there is no reason to put it here, and in addition,
23348 # creating and moving files from /tmp can sometimes cause problems.
23349 # Create a temporary directory, and hook for its removal unless debugging.
23352 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23353 trap '{ (exit 1); exit 1; }' 1 2 13 15
23356 # Create a (secure) tmp directory for tmp files.
23359 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23360 test -n "$tmp" && test -d "$tmp"
23363 tmp=./confstat$$-$RANDOM
23364 (umask 077 && mkdir $tmp)
23367 echo "$me: cannot create a temporary directory in ." >&2
23368 { (exit 1); exit 1; }
23373 cat >>$CONFIG_STATUS <<_ACEOF
23376 # CONFIG_FILES section.
23379 # No need to generate the scripts if there are no CONFIG_FILES.
23380 # This happens for instance when ./config.status config.h
23381 if test -n "\$CONFIG_FILES"; then
23382 # Protect against being on the right side of a sed subst in config.status.
23383 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23384 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23385 s,@SHELL@,$SHELL,;t t
23386 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23387 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23388 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23389 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23390 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23391 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23392 s,@exec_prefix@,$exec_prefix,;t t
23393 s,@prefix@,$prefix,;t t
23394 s,@program_transform_name@,$program_transform_name,;t t
23395 s,@bindir@,$bindir,;t t
23396 s,@sbindir@,$sbindir,;t t
23397 s,@libexecdir@,$libexecdir,;t t
23398 s,@datadir@,$datadir,;t t
23399 s,@sysconfdir@,$sysconfdir,;t t
23400 s,@sharedstatedir@,$sharedstatedir,;t t
23401 s,@localstatedir@,$localstatedir,;t t
23402 s,@libdir@,$libdir,;t t
23403 s,@includedir@,$includedir,;t t
23404 s,@oldincludedir@,$oldincludedir,;t t
23405 s,@infodir@,$infodir,;t t
23406 s,@mandir@,$mandir,;t t
23407 s,@build_alias@,$build_alias,;t t
23408 s,@host_alias@,$host_alias,;t t
23409 s,@target_alias@,$target_alias,;t t
23410 s,@DEFS@,$DEFS,;t t
23411 s,@ECHO_C@,$ECHO_C,;t t
23412 s,@ECHO_N@,$ECHO_N,;t t
23413 s,@ECHO_T@,$ECHO_T,;t t
23414 s,@LIBS@,$LIBS,;t t
23415 s,@subdirs@,$subdirs,;t t
23416 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23417 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23418 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23419 s,@build@,$build,;t t
23420 s,@build_cpu@,$build_cpu,;t t
23421 s,@build_vendor@,$build_vendor,;t t
23422 s,@build_os@,$build_os,;t t
23423 s,@host@,$host,;t t
23424 s,@host_cpu@,$host_cpu,;t t
23425 s,@host_vendor@,$host_vendor,;t t
23426 s,@host_os@,$host_os,;t t
23427 s,@target@,$target,;t t
23428 s,@target_cpu@,$target_cpu,;t t
23429 s,@target_vendor@,$target_vendor,;t t
23430 s,@target_os@,$target_os,;t t
23432 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23433 s,@ARCH@,$ARCH,;t t
23435 s,@CXXFLAGS@,$CXXFLAGS,;t t
23436 s,@LDFLAGS@,$LDFLAGS,;t t
23437 s,@CPPFLAGS@,$CPPFLAGS,;t t
23438 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23439 s,@EXEEXT@,$EXEEXT,;t t
23440 s,@OBJEXT@,$OBJEXT,;t t
23442 s,@CFLAGS@,$CFLAGS,;t t
23443 s,@ac_ct_CC@,$ac_ct_CC,;t t
23445 s,@ifGNUmake@,$ifGNUmake,;t t
23447 s,@LEXLIB@,$LEXLIB,;t t
23448 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23449 s,@YACC@,$YACC,;t t
23450 s,@BISON@,$BISON,;t t
23451 s,@EGREP@,$EGREP,;t t
23452 s,@LN_S@,$LN_S,;t t
23453 s,@ECHO@,$ECHO,;t t
23455 s,@ac_ct_AR@,$ac_ct_AR,;t t
23456 s,@RANLIB@,$RANLIB,;t t
23457 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23458 s,@STRIP@,$STRIP,;t t
23459 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23460 s,@CXXCPP@,$CXXCPP,;t t
23462 s,@FFLAGS@,$FFLAGS,;t t
23463 s,@ac_ct_F77@,$ac_ct_F77,;t t
23464 s,@LIBTOOL@,$LIBTOOL,;t t
23466 s,@ETAGS@,$ETAGS,;t t
23467 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
23468 s,@PYTHON@,$PYTHON,;t t
23469 s,@QMTEST@,$QMTEST,;t t
23470 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
23471 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
23472 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
23473 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
23474 s,@ENDIAN@,$ENDIAN,;t t
23475 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
23476 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
23477 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
23478 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
23479 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
23480 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
23481 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
23482 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
23483 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
23484 s,@ALLOCA@,$ALLOCA,;t t
23485 s,@MMAP_FILE@,$MMAP_FILE,;t t
23486 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23487 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
23488 s,@USE_SPEC95@,$USE_SPEC95,;t t
23489 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
23490 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
23491 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
23492 s,@USE_POVRAY@,$USE_POVRAY,;t t
23494 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23496 s,@LLVMCC1@,$LLVMCC1,;t t
23497 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
23499 s,@PAPIDIR@,$PAPIDIR,;t t
23500 s,@SHLIBEXT@,$SHLIBEXT,;t t
23501 s,@LIBOBJS@,$LIBOBJS,;t t
23502 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23507 cat >>$CONFIG_STATUS <<\_ACEOF
23508 # Split the substitutions into bite-sized pieces for seds with
23509 # small command number limits, like on Digital OSF/1 and HP-UX.
23510 ac_max_sed_lines=48
23511 ac_sed_frag=1 # Number of current file.
23512 ac_beg=1 # First line for current file.
23513 ac_end=$ac_max_sed_lines # Line after last line for current file.
23516 while $ac_more_lines; do
23517 if test $ac_beg -gt 1; then
23518 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23520 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23522 if test ! -s $tmp/subs.frag; then
23523 ac_more_lines=false
23525 # The purpose of the label and of the branching condition is to
23526 # speed up the sed processing (if there are no `@' at all, there
23527 # is no need to browse any of the substitutions).
23528 # These are the two extra sed commands mentioned above.
23530 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23531 if test -z "$ac_sed_cmds"; then
23532 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23534 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23536 ac_sed_frag=`expr $ac_sed_frag + 1`
23538 ac_end=`expr $ac_end + $ac_max_sed_lines`
23541 if test -z "$ac_sed_cmds"; then
23544 fi # test -n "$CONFIG_FILES"
23547 cat >>$CONFIG_STATUS <<\_ACEOF
23548 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23549 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23551 - | *:- | *:-:* ) # input from stdin
23553 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23554 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23555 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23556 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23557 * ) ac_file_in=$ac_file.in ;;
23560 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23561 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23562 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23563 X"$ac_file" : 'X\(//\)[^/]' \| \
23564 X"$ac_file" : 'X\(//\)$' \| \
23565 X"$ac_file" : 'X\(/\)' \| \
23566 . : '\(.\)' 2>/dev/null ||
23568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23569 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23570 /^X\(\/\/\)$/{ s//\1/; q; }
23571 /^X\(\/\).*/{ s//\1/; q; }
23573 { if $as_mkdir_p; then
23578 while test ! -d "$as_dir"; do
23579 as_dirs="$as_dir $as_dirs"
23580 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23581 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23582 X"$as_dir" : 'X\(//\)[^/]' \| \
23583 X"$as_dir" : 'X\(//\)$' \| \
23584 X"$as_dir" : 'X\(/\)' \| \
23585 . : '\(.\)' 2>/dev/null ||
23587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23589 /^X\(\/\/\)$/{ s//\1/; q; }
23590 /^X\(\/\).*/{ s//\1/; q; }
23593 test ! -n "$as_dirs" || mkdir $as_dirs
23594 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23595 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23596 { (exit 1); exit 1; }; }; }
23600 if test "$ac_dir" != .; then
23601 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23602 # A "../" for each directory in $ac_dir_suffix.
23603 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23605 ac_dir_suffix= ac_top_builddir=
23609 .) # No --srcdir option. We are building in place.
23611 if test -z "$ac_top_builddir"; then
23614 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23616 [\\/]* | ?:[\\/]* ) # Absolute path.
23617 ac_srcdir=$srcdir$ac_dir_suffix;
23618 ac_top_srcdir=$srcdir ;;
23619 *) # Relative path.
23620 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23621 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23623 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23625 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23626 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23627 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23628 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23632 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23633 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23636 if test x"$ac_file" != x-; then
23637 { echo "$as_me:$LINENO: creating $ac_file" >&5
23638 echo "$as_me: creating $ac_file" >&6;}
23641 # Let's still pretend it is `configure' which instantiates (i.e., don't
23642 # use $as_me), people would be surprised to read:
23643 # /* config.h. Generated by config.status. */
23644 if test x"$ac_file" = x-; then
23647 configure_input="$ac_file. "
23649 configure_input=$configure_input"Generated from `echo $ac_file_in |
23650 sed 's,.*/,,'` by configure."
23652 # First look for the input files in the build tree, otherwise in the
23654 ac_file_inputs=`IFS=:
23655 for f in $ac_file_in; do
23657 -) echo $tmp/stdin ;;
23659 # Absolute (can't be DOS-style, as IFS=:)
23660 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23661 echo "$as_me: error: cannot find input file: $f" >&2;}
23662 { (exit 1); exit 1; }; }
23665 if test -f "$f"; then
23668 elif test -f "$srcdir/$f"; then
23673 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23674 echo "$as_me: error: cannot find input file: $f" >&2;}
23675 { (exit 1); exit 1; }; }
23678 done` || { (exit 1); exit 1; }
23680 cat >>$CONFIG_STATUS <<_ACEOF
23684 cat >>$CONFIG_STATUS <<\_ACEOF
23686 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23687 s,@configure_input@,$configure_input,;t t
23688 s,@srcdir@,$ac_srcdir,;t t
23689 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23690 s,@top_srcdir@,$ac_top_srcdir,;t t
23691 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23692 s,@builddir@,$ac_builddir,;t t
23693 s,@abs_builddir@,$ac_abs_builddir,;t t
23694 s,@top_builddir@,$ac_top_builddir,;t t
23695 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23696 s,@INSTALL@,$ac_INSTALL,;t t
23697 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23699 if test x"$ac_file" != x-; then
23700 mv $tmp/out $ac_file
23708 cat >>$CONFIG_STATUS <<\_ACEOF
23711 # CONFIG_HEADER section.
23714 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23715 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23717 # ac_d sets the value in "#define NAME VALUE" lines.
23718 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23719 ac_dB='[ ].*$,\1#\2'
23722 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23723 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23724 ac_uB='$,\1#\2define\3'
23728 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23729 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23731 - | *:- | *:-:* ) # input from stdin
23733 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23734 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23735 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23736 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23737 * ) ac_file_in=$ac_file.in ;;
23740 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23741 echo "$as_me: creating $ac_file" >&6;}
23743 # First look for the input files in the build tree, otherwise in the
23745 ac_file_inputs=`IFS=:
23746 for f in $ac_file_in; do
23748 -) echo $tmp/stdin ;;
23750 # Absolute (can't be DOS-style, as IFS=:)
23751 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23752 echo "$as_me: error: cannot find input file: $f" >&2;}
23753 { (exit 1); exit 1; }; }
23756 if test -f "$f"; then
23759 elif test -f "$srcdir/$f"; then
23764 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23765 echo "$as_me: error: cannot find input file: $f" >&2;}
23766 { (exit 1); exit 1; }; }
23769 done` || { (exit 1); exit 1; }
23770 # Remove the trailing spaces.
23771 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23775 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23776 # `conftest.undefs', that substitutes the proper values into
23777 # config.h.in to produce config.h. The first handles `#define'
23778 # templates, and the second `#undef' templates.
23779 # And first: Protect against being on the right side of a sed subst in
23780 # config.status. Protect against being in an unquoted here document
23781 # in config.status.
23782 rm -f conftest.defines conftest.undefs
23783 # Using a here document instead of a string reduces the quoting nightmare.
23784 # Putting comments in sed scripts is not portable.
23786 # `end' is used to avoid that the second main sed command (meant for
23787 # 0-ary CPP macros) applies to n-ary macro definitions.
23788 # See the Autoconf documentation for `clear'.
23789 cat >confdef2sed.sed <<\_ACEOF
23794 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23796 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23799 # If some macros were called several times there might be several times
23800 # the same #defines, which is useless. Nevertheless, we may not want to
23801 # sort them, since we want the *last* AC-DEFINE to be honored.
23802 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23803 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23804 rm -f confdef2sed.sed
23806 # This sed command replaces #undef with comments. This is necessary, for
23807 # example, in the case of _POSIX_SOURCE, which is predefined and required
23808 # on some systems where configure will not decide to define it.
23809 cat >>conftest.undefs <<\_ACEOF
23810 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23813 # Break up conftest.defines because some shells have a limit on the size
23814 # of here documents, and old seds have small limits too (100 cmds).
23815 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23816 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23817 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23818 echo ' :' >>$CONFIG_STATUS
23819 rm -f conftest.tail
23820 while grep . conftest.defines >/dev/null
23822 # Write a limited-size here document to $tmp/defines.sed.
23823 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23824 # Speed up: don't consider the non `#define' lines.
23825 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23826 # Work around the forget-to-reset-the-flag bug.
23827 echo 't clr' >>$CONFIG_STATUS
23828 echo ': clr' >>$CONFIG_STATUS
23829 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23831 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23833 mv $tmp/out $tmp/in
23835 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23836 rm -f conftest.defines
23837 mv conftest.tail conftest.defines
23839 rm -f conftest.defines
23840 echo ' fi # grep' >>$CONFIG_STATUS
23841 echo >>$CONFIG_STATUS
23843 # Break up conftest.undefs because some shells have a limit on the size
23844 # of here documents, and old seds have small limits too (100 cmds).
23845 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23846 rm -f conftest.tail
23847 while grep . conftest.undefs >/dev/null
23849 # Write a limited-size here document to $tmp/undefs.sed.
23850 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23851 # Speed up: don't consider the non `#undef'
23852 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23853 # Work around the forget-to-reset-the-flag bug.
23854 echo 't clr' >>$CONFIG_STATUS
23855 echo ': clr' >>$CONFIG_STATUS
23856 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23858 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23860 mv $tmp/out $tmp/in
23862 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23863 rm -f conftest.undefs
23864 mv conftest.tail conftest.undefs
23866 rm -f conftest.undefs
23868 cat >>$CONFIG_STATUS <<\_ACEOF
23869 # Let's still pretend it is `configure' which instantiates (i.e., don't
23870 # use $as_me), people would be surprised to read:
23871 # /* config.h. Generated by config.status. */
23872 if test x"$ac_file" = x-; then
23873 echo "/* Generated by configure. */" >$tmp/config.h
23875 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23877 cat $tmp/in >>$tmp/config.h
23879 if test x"$ac_file" != x-; then
23880 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23881 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23882 echo "$as_me: $ac_file is unchanged" >&6;}
23884 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23886 X"$ac_file" : 'X\(//\)[^/]' \| \
23887 X"$ac_file" : 'X\(//\)$' \| \
23888 X"$ac_file" : 'X\(/\)' \| \
23889 . : '\(.\)' 2>/dev/null ||
23891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23893 /^X\(\/\/\)$/{ s//\1/; q; }
23894 /^X\(\/\).*/{ s//\1/; q; }
23896 { if $as_mkdir_p; then
23901 while test ! -d "$as_dir"; do
23902 as_dirs="$as_dir $as_dirs"
23903 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23905 X"$as_dir" : 'X\(//\)[^/]' \| \
23906 X"$as_dir" : 'X\(//\)$' \| \
23907 X"$as_dir" : 'X\(/\)' \| \
23908 . : '\(.\)' 2>/dev/null ||
23910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23911 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23912 /^X\(\/\/\)$/{ s//\1/; q; }
23913 /^X\(\/\).*/{ s//\1/; q; }
23916 test ! -n "$as_dirs" || mkdir $as_dirs
23917 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23918 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23919 { (exit 1); exit 1; }; }; }
23922 mv $tmp/config.h $ac_file
23926 rm -f $tmp/config.h
23930 cat >>$CONFIG_STATUS <<\_ACEOF
23933 # CONFIG_COMMANDS section.
23935 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23936 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23937 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23938 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23939 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23940 X"$ac_dest" : 'X\(//\)[^/]' \| \
23941 X"$ac_dest" : 'X\(//\)$' \| \
23942 X"$ac_dest" : 'X\(/\)' \| \
23943 . : '\(.\)' 2>/dev/null ||
23945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23946 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23947 /^X\(\/\/\)$/{ s//\1/; q; }
23948 /^X\(\/\).*/{ s//\1/; q; }
23952 if test "$ac_dir" != .; then
23953 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23954 # A "../" for each directory in $ac_dir_suffix.
23955 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23957 ac_dir_suffix= ac_top_builddir=
23961 .) # No --srcdir option. We are building in place.
23963 if test -z "$ac_top_builddir"; then
23966 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23968 [\\/]* | ?:[\\/]* ) # Absolute path.
23969 ac_srcdir=$srcdir$ac_dir_suffix;
23970 ac_top_srcdir=$srcdir ;;
23971 *) # Relative path.
23972 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23973 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23975 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23977 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23978 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23979 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23980 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23983 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23984 echo "$as_me: executing $ac_dest commands" >&6;}
23986 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23987 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
23988 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
23989 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23990 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23991 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23992 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23993 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
23994 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23995 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23996 test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
23997 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23998 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
23999 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24000 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24001 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24002 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24003 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24004 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24005 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24006 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24007 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24008 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24009 test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
24010 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24011 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24012 test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
24013 test/Programs/External/SPEC/Makefile.spec2000 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec2000 test/Programs/External/SPEC/Makefile.spec2000 ;;
24014 test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
24015 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24016 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24017 test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
24018 test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
24019 test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
24020 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
24021 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
24022 test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
24023 test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
24024 test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
24025 test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
24026 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
24027 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
24028 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
24029 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
24030 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24031 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24032 test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
24033 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24034 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24035 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24040 cat >>$CONFIG_STATUS <<\_ACEOF
24042 { (exit 0); exit 0; }
24044 chmod +x $CONFIG_STATUS
24045 ac_clean_files=$ac_clean_files_save
24048 # configure is writing to config.log, and then calls config.status.
24049 # config.status does its own redirection, appending to config.log.
24050 # Unfortunately, on DOS this fails, as config.log is still kept open
24051 # by configure, so config.status won't be able to write to it; its
24052 # output is simply discarded. So we exec the FD to /dev/null,
24053 # effectively closing config.log, so it can be properly (re)opened and
24054 # appended to by config.status. When coming back to configure, we
24055 # need to make the FD available again.
24056 if test "$no_create" != yes; then
24058 ac_config_status_args=
24059 test "$silent" = yes &&
24060 ac_config_status_args="$ac_config_status_args --quiet"
24062 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24064 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24065 # would make configure fail if this is the last instruction.
24066 $ac_cs_success || { (exit 1); exit 1; }
24070 # CONFIG_SUBDIRS section.
24072 if test "$no_recursion" != yes; then
24074 # Remove --cache-file and --srcdir arguments so they do not pile up.
24075 ac_sub_configure_args=
24077 for ac_arg in $ac_configure_args; do
24078 if test -n "$ac_prev"; then
24083 -cache-file | --cache-file | --cache-fil | --cache-fi \
24084 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24085 ac_prev=cache_file ;;
24086 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24087 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24090 --config-cache | -C)
24092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24100 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24104 # Always prepend --prefix to ensure using the same prefix
24105 # in subdir configurations.
24106 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24109 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24111 # Do not complain, so a configure script can configure whichever
24112 # parts of a large source tree are present.
24113 test -d $srcdir/$ac_dir || continue
24115 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24116 echo "$as_me: configuring in $ac_dir" >&6;}
24117 { if $as_mkdir_p; then
24122 while test ! -d "$as_dir"; do
24123 as_dirs="$as_dir $as_dirs"
24124 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24125 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24126 X"$as_dir" : 'X\(//\)[^/]' \| \
24127 X"$as_dir" : 'X\(//\)$' \| \
24128 X"$as_dir" : 'X\(/\)' \| \
24129 . : '\(.\)' 2>/dev/null ||
24131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24133 /^X\(\/\/\)$/{ s//\1/; q; }
24134 /^X\(\/\).*/{ s//\1/; q; }
24137 test ! -n "$as_dirs" || mkdir $as_dirs
24138 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24139 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24140 { (exit 1); exit 1; }; }; }
24144 if test "$ac_dir" != .; then
24145 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24146 # A "../" for each directory in $ac_dir_suffix.
24147 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24149 ac_dir_suffix= ac_top_builddir=
24153 .) # No --srcdir option. We are building in place.
24155 if test -z "$ac_top_builddir"; then
24158 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24160 [\\/]* | ?:[\\/]* ) # Absolute path.
24161 ac_srcdir=$srcdir$ac_dir_suffix;
24162 ac_top_srcdir=$srcdir ;;
24163 *) # Relative path.
24164 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24165 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24167 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24169 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24170 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24171 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24172 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24177 # Check for guested configure; otherwise get Cygnus style configure.
24178 if test -f $ac_srcdir/configure.gnu; then
24179 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24180 elif test -f $ac_srcdir/configure; then
24181 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24182 elif test -f $ac_srcdir/configure.in; then
24183 ac_sub_configure=$ac_configure
24185 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24186 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24190 # The recursion is here.
24191 if test -n "$ac_sub_configure"; then
24192 # Make the cache file name correct relative to the subdirectory.
24193 case $cache_file in
24194 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24195 *) # Relative path.
24196 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24199 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24200 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24201 # The eval makes quoting arguments work.
24202 eval $ac_sub_configure $ac_sub_configure_args \
24203 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24204 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24205 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24206 { (exit 1); exit 1; }; }
24214 if test $llvmgccwarn = yes
24216 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24217 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24218 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24219 echo "$as_me: WARNING: ***** appear to be working." >&2;}
24220 { echo "$as_me:$LINENO: WARNING: ***** " >&5
24221 echo "$as_me: WARNING: ***** " >&2;}
24222 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24223 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24224 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24225 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24226 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24227 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}