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"
1539 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"
1542 ac_config_commands="$ac_config_commands Makefile"
1545 ac_config_commands="$ac_config_commands Makefile.common"
1548 ac_config_commands="$ac_config_commands lib/Makefile"
1551 ac_config_commands="$ac_config_commands runtime/Makefile"
1554 ac_config_commands="$ac_config_commands test/Makefile"
1557 ac_config_commands="$ac_config_commands test/Makefile.tests"
1560 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1563 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1566 ac_config_commands="$ac_config_commands test/Programs/Makefile"
1569 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1572 ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1575 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1578 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1581 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1584 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1587 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1590 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1593 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1596 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1599 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1602 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1605 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1608 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1611 ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1614 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1617 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1620 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1623 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1626 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1629 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1632 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1635 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1638 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1641 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1644 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1647 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1650 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1653 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1656 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1659 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1662 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1665 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1668 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1671 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1674 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1677 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1680 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1683 ac_config_commands="$ac_config_commands tools/Makefile"
1686 ac_config_commands="$ac_config_commands utils/Makefile"
1689 ac_config_commands="$ac_config_commands projects/Makefile"
1693 # Find a good install program. We prefer a C program (faster),
1694 # so one script is as good as another. But avoid the broken or
1695 # incompatible versions:
1696 # SysV /etc/install, /usr/sbin/install
1697 # SunOS /usr/etc/install
1698 # IRIX /sbin/install
1700 # AmigaOS /C/install, which installs bootblocks on floppy discs
1701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1704 # ./install, which can be erroneously created by make from ./install.sh.
1705 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1706 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1707 if test -z "$INSTALL"; then
1708 if test "${ac_cv_path_install+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 # Account for people who put trailing slashes in PATH elements.
1718 ./ | .// | /cC/* | \
1719 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1722 # OSF1 and SCO ODT 3.0 have their own names for install.
1723 # Don't use installbsd from OSF since it installs stuff as root
1725 for ac_prog in ginstall scoinst install; do
1726 for ac_exec_ext in '' $ac_executable_extensions; do
1727 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1728 if test $ac_prog = install &&
1729 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1730 # AIX install. It has an incompatible calling convention.
1732 elif test $ac_prog = install &&
1733 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1734 # program-specific install script used by HP pwplus--don't use.
1737 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1749 if test "${ac_cv_path_install+set}" = set; then
1750 INSTALL=$ac_cv_path_install
1752 # As a last resort, use the slow shell script. We don't cache a
1753 # path for INSTALL within a source directory, because that will
1754 # break other packages using the cache if that directory is
1755 # removed, or if the path is relative.
1756 INSTALL=$ac_install_sh
1759 echo "$as_me:$LINENO: result: $INSTALL" >&5
1760 echo "${ECHO_T}$INSTALL" >&6
1762 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1763 # It thinks the first close brace ends the variable substitution.
1764 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1766 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1768 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1771 # Make sure we can run config.sub.
1772 $ac_config_sub sun4 >/dev/null 2>&1 ||
1773 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1774 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1775 { (exit 1); exit 1; }; }
1777 echo "$as_me:$LINENO: checking build system type" >&5
1778 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1779 if test "${ac_cv_build+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 ac_cv_build_alias=$build_alias
1783 test -z "$ac_cv_build_alias" &&
1784 ac_cv_build_alias=`$ac_config_guess`
1785 test -z "$ac_cv_build_alias" &&
1786 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1787 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1788 { (exit 1); exit 1; }; }
1789 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1790 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1791 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1792 { (exit 1); exit 1; }; }
1795 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1796 echo "${ECHO_T}$ac_cv_build" >&6
1798 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1799 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1800 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1803 echo "$as_me:$LINENO: checking host system type" >&5
1804 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1805 if test "${ac_cv_host+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 ac_cv_host_alias=$host_alias
1809 test -z "$ac_cv_host_alias" &&
1810 ac_cv_host_alias=$ac_cv_build_alias
1811 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1812 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1813 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1814 { (exit 1); exit 1; }; }
1817 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1818 echo "${ECHO_T}$ac_cv_host" >&6
1820 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1821 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1822 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1825 echo "$as_me:$LINENO: checking target system type" >&5
1826 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1827 if test "${ac_cv_target+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 ac_cv_target_alias=$target_alias
1831 test "x$ac_cv_target_alias" = "x" &&
1832 ac_cv_target_alias=$ac_cv_host_alias
1833 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1834 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1835 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1836 { (exit 1); exit 1; }; }
1839 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1840 echo "${ECHO_T}$ac_cv_target" >&6
1841 target=$ac_cv_target
1842 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1843 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1844 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1847 # The aliases save the names the user supplied, while $host etc.
1848 # will get canonicalized.
1849 test -n "$target_alias" &&
1850 test "$program_prefix$program_suffix$program_transform_name" = \
1852 program_prefix=${target_alias}-
1858 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1860 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1867 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1869 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1891 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1900 sparc*-*) ARCH=Sparc
1903 powerpc*-*) ARCH=PowerPC
1912 ac_cpp='$CXXCPP $CPPFLAGS'
1913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1916 if test -n "$ac_tool_prefix"; then
1917 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1920 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_CXX+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 if test -n "$CXX"; then
1927 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 test -z "$as_dir" && as_dir=.
1934 for ac_exec_ext in '' $ac_executable_extensions; do
1935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946 if test -n "$CXX"; then
1947 echo "$as_me:$LINENO: result: $CXX" >&5
1948 echo "${ECHO_T}$CXX" >&6
1950 echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1954 test -n "$CXX" && break
1957 if test -z "$CXX"; then
1959 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1961 # Extract the first word of "$ac_prog", so it can be a program name with args.
1962 set dummy $ac_prog; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 if test -n "$ac_ct_CXX"; then
1969 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 test -z "$as_dir" && as_dir=.
1976 for ac_exec_ext in '' $ac_executable_extensions; do
1977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978 ac_cv_prog_ac_ct_CXX="$ac_prog"
1979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1988 if test -n "$ac_ct_CXX"; then
1989 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1990 echo "${ECHO_T}$ac_ct_CXX" >&6
1992 echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6
1996 test -n "$ac_ct_CXX" && break
1998 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2004 # Provide some information about the compiler.
2005 echo "$as_me:$LINENO:" \
2006 "checking for C++ compiler version" >&5
2007 ac_compiler=`set X $ac_compile; echo $2`
2008 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2009 (eval $ac_compiler --version </dev/null >&5) 2>&5
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }
2013 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2014 (eval $ac_compiler -v </dev/null >&5) 2>&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); }
2018 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2019 (eval $ac_compiler -V </dev/null >&5) 2>&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }
2024 cat >conftest.$ac_ext <<_ACEOF
2025 #line $LINENO "configure"
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h. */
2040 ac_clean_files_save=$ac_clean_files
2041 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2042 # Try to create an executable without -o first, disregard a.out.
2043 # It will help us diagnose broken compilers, and finding out an intuition
2045 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2046 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2047 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2048 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2049 (eval $ac_link_default) 2>&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; then
2053 # Find the output, starting from the most likely. This scheme is
2054 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2057 # Be careful to initialize this variable, since it used to be cached.
2058 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2060 # b.out is created by i960 compilers.
2061 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2063 test -f "$ac_file" || continue
2065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2068 # This is the source file.
2071 # We found the default executable, but exeext='' is most
2075 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2076 # FIXME: I believe we export ac_cv_exeext for Libtool,
2077 # but it would be cool to find out if it's true. Does anybody
2078 # maintain Libtool? --akim.
2086 echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2089 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: C++ compiler cannot create executables
2092 See \`config.log' for more details." >&2;}
2093 { (exit 77); exit 77; }; }
2096 ac_exeext=$ac_cv_exeext
2097 echo "$as_me:$LINENO: result: $ac_file" >&5
2098 echo "${ECHO_T}$ac_file" >&6
2100 # Check the compiler produces executables we can run. If not, either
2101 # the compiler is broken, or we cross compile.
2102 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2103 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2104 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2105 # If not cross compiling, check that we can run a simple program.
2106 if test "$cross_compiling" != yes; then
2107 if { ac_try='./$ac_file'
2108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; }; then
2115 if test "$cross_compiling" = maybe; then
2118 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2119 If you meant to cross compile, use \`--host'.
2120 See \`config.log' for more details." >&5
2121 echo "$as_me: error: cannot run C++ compiled programs.
2122 If you meant to cross compile, use \`--host'.
2123 See \`config.log' for more details." >&2;}
2124 { (exit 1); exit 1; }; }
2128 echo "$as_me:$LINENO: result: yes" >&5
2129 echo "${ECHO_T}yes" >&6
2131 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2132 ac_clean_files=$ac_clean_files_save
2133 # Check the compiler produces executables we can run. If not, either
2134 # the compiler is broken, or we cross compile.
2135 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2136 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2137 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2138 echo "${ECHO_T}$cross_compiling" >&6
2140 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2141 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2143 (eval $ac_link) 2>&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; then
2147 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2148 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2149 # work properly (i.e., refer to `conftest.exe'), while it won't with
2151 for ac_file in conftest.exe conftest conftest.*; do
2152 test -f "$ac_file" || continue
2154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2155 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2162 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2165 See \`config.log' for more details." >&2;}
2166 { (exit 1); exit 1; }; }
2169 rm -f conftest$ac_cv_exeext
2170 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2171 echo "${ECHO_T}$ac_cv_exeext" >&6
2173 rm -f conftest.$ac_ext
2174 EXEEXT=$ac_cv_exeext
2176 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2177 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2178 if test "${ac_cv_objext+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 cat >conftest.$ac_ext <<_ACEOF
2182 #line $LINENO "configure"
2185 cat confdefs.h >>conftest.$ac_ext
2186 cat >>conftest.$ac_ext <<_ACEOF
2187 /* end confdefs.h. */
2197 rm -f conftest.o conftest.obj
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; then
2203 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2206 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2211 echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2214 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2217 See \`config.log' for more details." >&2;}
2218 { (exit 1); exit 1; }; }
2221 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2223 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2224 echo "${ECHO_T}$ac_cv_objext" >&6
2225 OBJEXT=$ac_cv_objext
2227 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2228 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2229 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 cat >conftest.$ac_ext <<_ACEOF
2233 #line $LINENO "configure"
2236 cat confdefs.h >>conftest.$ac_ext
2237 cat >>conftest.$ac_ext <<_ACEOF
2238 /* end confdefs.h. */
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2265 echo "$as_me: failed program was:" >&5
2266 sed 's/^/| /' conftest.$ac_ext >&5
2270 rm -f conftest.$ac_objext conftest.$ac_ext
2271 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2274 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2275 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2276 GXX=`test $ac_compiler_gnu = yes && echo yes`
2277 ac_test_CXXFLAGS=${CXXFLAGS+set}
2278 ac_save_CXXFLAGS=$CXXFLAGS
2280 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2281 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2282 if test "${ac_cv_prog_cxx_g+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 cat >conftest.$ac_ext <<_ACEOF
2286 #line $LINENO "configure"
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h. */
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); } &&
2307 { ac_try='test -s conftest.$ac_objext'
2308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; }; then
2313 ac_cv_prog_cxx_g=yes
2315 echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2320 rm -f conftest.$ac_objext conftest.$ac_ext
2322 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2323 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2324 if test "$ac_test_CXXFLAGS" = set; then
2325 CXXFLAGS=$ac_save_CXXFLAGS
2326 elif test $ac_cv_prog_cxx_g = yes; then
2327 if test "$GXX" = yes; then
2333 if test "$GXX" = yes; then
2339 for ac_declaration in \
2341 '#include <stdlib.h>' \
2342 'extern "C" void std::exit (int) throw (); using std::exit;' \
2343 'extern "C" void std::exit (int); using std::exit;' \
2344 'extern "C" void exit (int) throw ();' \
2345 'extern "C" void exit (int);' \
2348 cat >conftest.$ac_ext <<_ACEOF
2349 #line $LINENO "configure"
2352 cat confdefs.h >>conftest.$ac_ext
2353 cat >>conftest.$ac_ext <<_ACEOF
2354 /* end confdefs.h. */
2365 rm -f conftest.$ac_objext
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367 (eval $ac_compile) 2>&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); } &&
2371 { ac_try='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2384 rm -f conftest.$ac_objext conftest.$ac_ext
2385 cat >conftest.$ac_ext <<_ACEOF
2386 #line $LINENO "configure"
2389 cat confdefs.h >>conftest.$ac_ext
2390 cat >>conftest.$ac_ext <<_ACEOF
2391 /* end confdefs.h. */
2401 rm -f conftest.$ac_objext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -s conftest.$ac_objext'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2415 echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2419 rm -f conftest.$ac_objext conftest.$ac_ext
2422 if test -n "$ac_declaration"; then
2423 echo '#ifdef __cplusplus' >>confdefs.h
2424 echo $ac_declaration >>confdefs.h
2425 echo '#endif' >>confdefs.h
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2439 if test -n "$ac_tool_prefix"; then
2442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 if test -n "$CC"; then
2470 echo "$as_me:$LINENO: result: $CC" >&5
2471 echo "${ECHO_T}$CC" >&6
2473 echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2477 test -n "$CC" && break
2480 if test -z "$CC"; then
2484 # Extract the first word of "$ac_prog", so it can be a program name with args.
2485 set dummy $ac_prog; ac_word=$2
2486 echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 if test -n "$ac_ct_CC"; then
2492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 ac_cv_prog_ac_ct_CC="$ac_prog"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2511 if test -n "$ac_ct_CC"; then
2512 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2513 echo "${ECHO_T}$ac_ct_CC" >&6
2515 echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6
2519 test -n "$ac_ct_CC" && break
2526 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: no acceptable C compiler found in \$PATH
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
2532 # Provide some information about the compiler.
2533 echo "$as_me:$LINENO:" \
2534 "checking for C compiler version" >&5
2535 ac_compiler=`set X $ac_compile; echo $2`
2536 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2537 (eval $ac_compiler --version </dev/null >&5) 2>&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }
2541 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2542 (eval $ac_compiler -v </dev/null >&5) 2>&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }
2546 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2547 (eval $ac_compiler -V </dev/null >&5) 2>&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }
2552 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2553 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2554 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 cat >conftest.$ac_ext <<_ACEOF
2558 #line $LINENO "configure"
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2576 rm -f conftest.$ac_objext
2577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578 (eval $ac_compile) 2>&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -s conftest.$ac_objext'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; }; then
2590 echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2595 rm -f conftest.$ac_objext conftest.$ac_ext
2596 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2599 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2600 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2601 GCC=`test $ac_compiler_gnu = yes && echo yes`
2602 ac_test_CFLAGS=${CFLAGS+set}
2603 ac_save_CFLAGS=$CFLAGS
2605 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2606 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2607 if test "${ac_cv_prog_cc_g+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2645 rm -f conftest.$ac_objext conftest.$ac_ext
2647 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2648 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2649 if test "$ac_test_CFLAGS" = set; then
2650 CFLAGS=$ac_save_CFLAGS
2651 elif test $ac_cv_prog_cc_g = yes; then
2652 if test "$GCC" = yes; then
2658 if test "$GCC" = yes; then
2664 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2665 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2666 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 ac_cv_prog_cc_stdc=no
2671 cat >conftest.$ac_ext <<_ACEOF
2672 #line $LINENO "configure"
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2680 #include <sys/types.h>
2681 #include <sys/stat.h>
2682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2683 struct buf { int x; };
2684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2685 static char *e (p, i)
2691 static char *f (char * (*g) (char **, int), char **p, ...)
2696 s = g (p, va_arg (v,int));
2700 int test (int i, double x);
2701 struct s1 {int (*f) (int a);};
2702 struct s2 {int (*f) (double a);};
2703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2709 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2714 # Don't try gcc -ansi; that turns off useful extensions and
2715 # breaks some systems' header files.
2716 # AIX -qlanglvl=ansi
2717 # Ultrix and OSF/1 -std1
2718 # HP-UX 10.20 and later -Ae
2719 # HP-UX older versions -Aa -D_HPUX_SOURCE
2720 # SVR4 -Xc -D__EXTENSIONS__
2721 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2723 CC="$ac_save_CC $ac_arg"
2724 rm -f conftest.$ac_objext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726 (eval $ac_compile) 2>&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); } &&
2730 { ac_try='test -s conftest.$ac_objext'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; }; then
2736 ac_cv_prog_cc_stdc=$ac_arg
2739 echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2743 rm -f conftest.$ac_objext
2745 rm -f conftest.$ac_ext conftest.$ac_objext
2750 case "x$ac_cv_prog_cc_stdc" in
2752 echo "$as_me:$LINENO: result: none needed" >&5
2753 echo "${ECHO_T}none needed" >&6 ;;
2755 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2756 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2757 CC="$CC $ac_cv_prog_cc_stdc" ;;
2760 # Some people use a C++ compiler to compile C. Since we use `exit',
2761 # in C++ we need to declare it. In case someone uses the same compiler
2762 # for both compiling C and C++ we need to have the C++ compiler decide
2763 # the declaration of exit, since it's the most demanding environment.
2764 cat >conftest.$ac_ext <<_ACEOF
2769 rm -f conftest.$ac_objext
2770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2771 (eval $ac_compile) 2>&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -s conftest.$ac_objext'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 for ac_declaration in \
2783 '#include <stdlib.h>' \
2784 'extern "C" void std::exit (int) throw (); using std::exit;' \
2785 'extern "C" void std::exit (int); using std::exit;' \
2786 'extern "C" void exit (int) throw ();' \
2787 'extern "C" void exit (int);' \
2790 cat >conftest.$ac_ext <<_ACEOF
2791 #line $LINENO "configure"
2794 cat confdefs.h >>conftest.$ac_ext
2795 cat >>conftest.$ac_ext <<_ACEOF
2796 /* end confdefs.h. */
2807 rm -f conftest.$ac_objext
2808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2809 (eval $ac_compile) 2>&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); } &&
2813 { ac_try='test -s conftest.$ac_objext'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2826 rm -f conftest.$ac_objext conftest.$ac_ext
2827 cat >conftest.$ac_ext <<_ACEOF
2828 #line $LINENO "configure"
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2843 rm -f conftest.$ac_objext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845 (eval $ac_compile) 2>&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } &&
2849 { ac_try='test -s conftest.$ac_objext'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2861 rm -f conftest.$ac_objext conftest.$ac_ext
2864 if test -n "$ac_declaration"; then
2865 echo '#ifdef __cplusplus' >>confdefs.h
2866 echo $ac_declaration >>confdefs.h
2867 echo '#endif' >>confdefs.h
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2875 rm -f conftest.$ac_objext conftest.$ac_ext
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883 ac_cpp='$CPP $CPPFLAGS'
2884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2887 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2888 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2889 # On Suns, sometimes $CPP names a directory.
2890 if test -n "$CPP" && test -d "$CPP"; then
2893 if test -z "$CPP"; then
2894 if test "${ac_cv_prog_CPP+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 # Double quotes because CPP needs to be expanded
2898 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2901 for ac_c_preproc_warn_flag in '' yes
2903 # Use a header file that comes with gcc, so configuring glibc
2904 # with a fresh cross-compiler works.
2905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2906 # <limits.h> exists even on freestanding compilers.
2907 # On the NeXT, cc -E runs the code through the compiler's parser,
2908 # not just through cpp. "Syntax error" is here to catch this case.
2909 cat >conftest.$ac_ext <<_ACEOF
2910 #line $LINENO "configure"
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2917 # include <limits.h>
2919 # include <assert.h>
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2926 grep -v '^ *+' conftest.er1 >conftest.err
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } >/dev/null; then
2931 if test -s conftest.err; then
2932 ac_cpp_err=$ac_c_preproc_warn_flag
2939 if test -z "$ac_cpp_err"; then
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2945 # Broken: fails on valid input.
2948 rm -f conftest.err conftest.$ac_ext
2950 # OK, works on sane cases. Now check whether non-existent headers
2951 # can be detected and how.
2952 cat >conftest.$ac_ext <<_ACEOF
2953 #line $LINENO "configure"
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2959 #include <ac_nonexistent.h>
2961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2964 grep -v '^ *+' conftest.er1 >conftest.err
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } >/dev/null; then
2969 if test -s conftest.err; then
2970 ac_cpp_err=$ac_c_preproc_warn_flag
2977 if test -z "$ac_cpp_err"; then
2978 # Broken: success on invalid input.
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2984 # Passes both tests.
2988 rm -f conftest.err conftest.$ac_ext
2991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2992 rm -f conftest.err conftest.$ac_ext
2993 if $ac_preproc_ok; then
3005 echo "$as_me:$LINENO: result: $CPP" >&5
3006 echo "${ECHO_T}$CPP" >&6
3008 for ac_c_preproc_warn_flag in '' yes
3010 # Use a header file that comes with gcc, so configuring glibc
3011 # with a fresh cross-compiler works.
3012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3013 # <limits.h> exists even on freestanding compilers.
3014 # On the NeXT, cc -E runs the code through the compiler's parser,
3015 # not just through cpp. "Syntax error" is here to catch this case.
3016 cat >conftest.$ac_ext <<_ACEOF
3017 #line $LINENO "configure"
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3024 # include <limits.h>
3026 # include <assert.h>
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3033 grep -v '^ *+' conftest.er1 >conftest.err
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev/null; then
3038 if test -s conftest.err; then
3039 ac_cpp_err=$ac_c_preproc_warn_flag
3046 if test -z "$ac_cpp_err"; then
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3052 # Broken: fails on valid input.
3055 rm -f conftest.err conftest.$ac_ext
3057 # OK, works on sane cases. Now check whether non-existent headers
3058 # can be detected and how.
3059 cat >conftest.$ac_ext <<_ACEOF
3060 #line $LINENO "configure"
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066 #include <ac_nonexistent.h>
3068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3071 grep -v '^ *+' conftest.er1 >conftest.err
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } >/dev/null; then
3076 if test -s conftest.err; then
3077 ac_cpp_err=$ac_c_preproc_warn_flag
3084 if test -z "$ac_cpp_err"; then
3085 # Broken: success on invalid input.
3088 echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3091 # Passes both tests.
3095 rm -f conftest.err conftest.$ac_ext
3098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3099 rm -f conftest.err conftest.$ac_ext
3100 if $ac_preproc_ok; then
3103 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3104 See \`config.log' for more details." >&5
3105 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3106 See \`config.log' for more details." >&2;}
3107 { (exit 1); exit 1; }; }
3111 ac_cpp='$CPP $CPPFLAGS'
3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117 if test "$GCC" != "yes"
3119 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3120 echo "$as_me: error: gcc required but not found" >&2;}
3121 { (exit 1); exit 1; }; }
3123 if test "$GXX" != "yes"
3125 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3126 echo "$as_me: error: g++ required but not found" >&2;}
3127 { (exit 1); exit 1; }; }
3130 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3131 if test "$gccmajor" -lt "3"
3133 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3134 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3135 { (exit 1); exit 1; }; }
3138 echo "$as_me:$LINENO: checking for GNU make" >&5
3139 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3140 if test "${_cv_gnu_make_command+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 _cv_gnu_make_command='' ;
3144 for a in "$MAKE" make gmake gnumake ; do
3145 if test -z "$a" ; then continue ; fi ;
3146 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3147 _cv_gnu_make_command=$a ;
3153 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3154 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3155 if test "x$_cv_gnu_make_command" != "x" ; then
3159 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3160 echo "${ECHO_T}\"Not found\"" >&6;
3164 if test -z "$_cv_gnu_make_command"
3166 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3167 echo "$as_me: error: GNU Make required but not found" >&2;}
3168 { (exit 1); exit 1; }; }
3172 echo "$as_me:$LINENO: checking " >&5
3173 echo $ECHO_N "checking ... $ECHO_C" >&6
3174 if test "${ac_cv_has_flex+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 for ac_prog in flex lex
3179 # Extract the first word of "$ac_prog", so it can be a program name with args.
3180 set dummy $ac_prog; ac_word=$2
3181 echo "$as_me:$LINENO: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3183 if test "${ac_cv_prog_LEX+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 if test -n "$LEX"; then
3187 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_prog_LEX="$ac_prog"
3197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 if test -n "$LEX"; then
3207 echo "$as_me:$LINENO: result: $LEX" >&5
3208 echo "${ECHO_T}$LEX" >&6
3210 echo "$as_me:$LINENO: result: no" >&5
3211 echo "${ECHO_T}no" >&6
3214 test -n "$LEX" && break
3216 test -n "$LEX" || LEX=":"
3218 if test -z "$LEXLIB"
3220 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3221 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3222 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 ac_check_lib_save_LIBS=$LIBS
3227 cat >conftest.$ac_ext <<_ACEOF
3228 #line $LINENO "configure"
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3235 /* Override any gcc2 internal prototype to avoid an error. */
3239 /* We use char because int might match the return type of a gcc2
3240 builtin and then its argument prototype would still apply. */
3250 rm -f conftest.$ac_objext conftest$ac_exeext
3251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3252 (eval $ac_link) 2>&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } &&
3256 { ac_try='test -s conftest$ac_exeext'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3262 ac_cv_lib_fl_yywrap=yes
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3267 ac_cv_lib_fl_yywrap=no
3269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3270 LIBS=$ac_check_lib_save_LIBS
3272 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3273 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3274 if test $ac_cv_lib_fl_yywrap = yes; then
3277 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3278 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3279 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 ac_check_lib_save_LIBS=$LIBS
3284 cat >conftest.$ac_ext <<_ACEOF
3285 #line $LINENO "configure"
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3292 /* Override any gcc2 internal prototype to avoid an error. */
3296 /* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3307 rm -f conftest.$ac_objext conftest$ac_exeext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3309 (eval $ac_link) 2>&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try='test -s conftest$ac_exeext'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3319 ac_cv_lib_l_yywrap=yes
3321 echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3324 ac_cv_lib_l_yywrap=no
3326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3327 LIBS=$ac_check_lib_save_LIBS
3329 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3330 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3331 if test $ac_cv_lib_l_yywrap = yes; then
3339 if test "x$LEX" != "x:"; then
3340 echo "$as_me:$LINENO: checking lex output file root" >&5
3341 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3342 if test "${ac_cv_prog_lex_root+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 # The minimal lex program is just a single line: %%. But some broken lexes
3346 # (Solaris, I think it was) want two %% lines, so accommodate them.
3347 cat >conftest.l <<_ACEOF
3351 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3352 (eval $LEX conftest.l) 2>&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }
3356 if test -f lex.yy.c; then
3357 ac_cv_prog_lex_root=lex.yy
3358 elif test -f lexyy.c; then
3359 ac_cv_prog_lex_root=lexyy
3361 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3362 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3363 { (exit 1); exit 1; }; }
3366 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3367 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3369 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3371 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3372 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3373 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 # POSIX says lex can declare yytext either as a pointer or an array; the
3377 # default is implementation-dependent. Figure out which it is, since
3378 # not all implementations provide the %pointer and %array declarations.
3379 ac_cv_prog_lex_yytext_pointer=no
3380 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3382 LIBS="$LIBS $LEXLIB"
3383 cat >conftest.$ac_ext <<_ACEOF
3384 `cat $LEX_OUTPUT_ROOT.c`
3386 rm -f conftest.$ac_objext conftest$ac_exeext
3387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3388 (eval $ac_link) 2>&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try='test -s conftest$ac_exeext'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3398 ac_cv_prog_lex_yytext_pointer=yes
3400 echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3406 rm -f "${LEX_OUTPUT_ROOT}.c"
3409 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3410 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3411 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3413 cat >>confdefs.h <<\_ACEOF
3414 #define YYTEXT_POINTER 1
3422 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3423 echo "${ECHO_T}$ac_cv_has_flex" >&6
3424 if test "$LEX" != "flex"; then
3425 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3426 echo "$as_me: error: flex not found but required" >&2;}
3427 { (exit 1); exit 1; }; }
3430 echo "$as_me:$LINENO: checking " >&5
3431 echo $ECHO_N "checking ... $ECHO_C" >&6
3432 if test "${ac_cv_has_bison+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 for ac_prog in 'bison -y' byacc
3437 # Extract the first word of "$ac_prog", so it can be a program name with args.
3438 set dummy $ac_prog; ac_word=$2
3439 echo "$as_me:$LINENO: checking for $ac_word" >&5
3440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3441 if test "${ac_cv_prog_YACC+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 if test -n "$YACC"; then
3445 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_YACC="$ac_prog"
3455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 YACC=$ac_cv_prog_YACC
3464 if test -n "$YACC"; then
3465 echo "$as_me:$LINENO: result: $YACC" >&5
3466 echo "${ECHO_T}$YACC" >&6
3468 echo "$as_me:$LINENO: result: no" >&5
3469 echo "${ECHO_T}no" >&6
3472 test -n "$YACC" && break
3474 test -n "$YACC" || YACC="yacc"
3478 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3479 echo "${ECHO_T}$ac_cv_has_bison" >&6
3480 if test "$YACC" != "bison -y"; then
3481 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3482 echo "$as_me: error: bison not found but required" >&2;}
3483 { (exit 1); exit 1; }; }
3489 # Check whether --enable-shared or --disable-shared was given.
3490 if test "${enable_shared+set}" = set; then
3491 enableval="$enable_shared"
3492 p=${PACKAGE-default}
3494 yes) enable_shared=yes ;;
3495 no) enable_shared=no ;;
3498 # Look at the argument we got. We use all the common list separators.
3499 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3500 for pkg in $enableval; do
3502 if test "X$pkg" = "X$p"; then
3513 # Check whether --enable-static or --disable-static was given.
3514 if test "${enable_static+set}" = set; then
3515 enableval="$enable_static"
3516 p=${PACKAGE-default}
3518 yes) enable_static=yes ;;
3519 no) enable_static=no ;;
3522 # Look at the argument we got. We use all the common list separators.
3523 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3524 for pkg in $enableval; do
3526 if test "X$pkg" = "X$p"; then
3537 # Check whether --enable-fast-install or --disable-fast-install was given.
3538 if test "${enable_fast_install+set}" = set; then
3539 enableval="$enable_fast_install"
3540 p=${PACKAGE-default}
3542 yes) enable_fast_install=yes ;;
3543 no) enable_fast_install=no ;;
3545 enable_fast_install=no
3546 # Look at the argument we got. We use all the common list separators.
3547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3548 for pkg in $enableval; do
3550 if test "X$pkg" = "X$p"; then
3551 enable_fast_install=yes
3558 enable_fast_install=yes
3561 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3562 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3563 if test "${lt_cv_path_SED+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 # Loop through the user's path and test for sed and gsed.
3567 # Then use that list of sed's as ones to test for truncation.
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 test -z "$as_dir" && as_dir=.
3573 for lt_ac_prog in sed gsed; do
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3576 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3583 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3584 # along with /bin/sed that truncates output.
3585 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3586 test ! -f $lt_ac_sed && break
3587 cat /dev/null > conftest.in
3589 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3590 # Check for GNU sed and select it if it is found.
3591 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3592 lt_cv_path_SED=$lt_ac_sed
3596 cat conftest.in conftest.in >conftest.tmp
3597 mv conftest.tmp conftest.in
3598 cp conftest.in conftest.nl
3600 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3601 cmp -s conftest.out conftest.nl || break
3602 # 10000 chars as input seems more than enough
3603 test $lt_ac_count -gt 10 && break
3604 lt_ac_count=`expr $lt_ac_count + 1`
3605 if test $lt_ac_count -gt $lt_ac_max; then
3606 lt_ac_max=$lt_ac_count
3607 lt_cv_path_SED=$lt_ac_sed
3615 echo "$as_me:$LINENO: result: $SED" >&5
3616 echo "${ECHO_T}$SED" >&6
3618 echo "$as_me:$LINENO: checking for egrep" >&5
3619 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3620 if test "${ac_cv_prog_egrep+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3624 then ac_cv_prog_egrep='grep -E'
3625 else ac_cv_prog_egrep='egrep'
3628 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3629 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3630 EGREP=$ac_cv_prog_egrep
3634 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3635 if test "${with_gnu_ld+set}" = set; then
3636 withval="$with_gnu_ld"
3637 test "$withval" = no || with_gnu_ld=yes
3642 if test "$GCC" = yes; then
3643 # Check if gcc -print-prog-name=ld gives a path.
3644 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3645 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3648 # gcc leaves a trailing carriage return which upsets mingw
3649 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3651 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3654 # Accept absolute paths.
3656 re_direlt='/[^/][^/]*/\.\./'
3657 # Canonicalize the path of ld
3658 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3659 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3660 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3662 test -z "$LD" && LD="$ac_prog"
3665 # If it fails, then pretend we aren't using GCC.
3669 # If it is relative, then search for the first ld in PATH.
3673 elif test "$with_gnu_ld" = yes; then
3674 echo "$as_me:$LINENO: checking for GNU ld" >&5
3675 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3677 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3678 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3680 if test "${lt_cv_path_LD+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 if test -z "$LD"; then
3684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3685 for ac_dir in $PATH; do
3687 test -z "$ac_dir" && ac_dir=.
3688 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3689 lt_cv_path_LD="$ac_dir/$ac_prog"
3690 # Check to see if the program is GNU ld. I'd rather use --version,
3691 # but apparently some GNU ld's only accept -v.
3692 # Break only if it was the GNU/non-GNU ld that we prefer.
3693 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3694 *GNU* | *'with BFD'*)
3695 test "$with_gnu_ld" != no && break
3698 test "$with_gnu_ld" != yes && break
3705 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3710 if test -n "$LD"; then
3711 echo "$as_me:$LINENO: result: $LD" >&5
3712 echo "${ECHO_T}$LD" >&6
3714 echo "$as_me:$LINENO: result: no" >&5
3715 echo "${ECHO_T}no" >&6
3717 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3718 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3719 { (exit 1); exit 1; }; }
3720 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3721 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3722 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3726 case `"$LD" -v 2>&1 </dev/null` in
3727 *GNU* | *'with BFD'*)
3728 lt_cv_prog_gnu_ld=yes
3731 lt_cv_prog_gnu_ld=no
3735 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3736 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3737 with_gnu_ld=$lt_cv_prog_gnu_ld
3740 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3741 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3742 if test "${lt_cv_ld_reload_flag+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 lt_cv_ld_reload_flag='-r'
3747 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3748 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3749 reload_flag=$lt_cv_ld_reload_flag
3750 case $reload_flag in
3752 *) reload_flag=" $reload_flag" ;;
3754 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3756 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3757 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3758 if test "${lt_cv_path_NM+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 if test -n "$NM"; then
3762 # Let the user override the test.
3765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3766 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3768 test -z "$ac_dir" && ac_dir=.
3769 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3770 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3771 # Check to see if the nm accepts a BSD-compat flag.
3772 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3773 # nm: unknown option "B" ignored
3774 # Tru64's nm complains that /dev/null is an invalid object file
3775 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3776 */dev/null* | *'Invalid file or object type'*)
3777 lt_cv_path_NM="$tmp_nm -B"
3781 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3783 lt_cv_path_NM="$tmp_nm -p"
3787 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3788 continue # so that we can try to find one that supports BSD flags
3795 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3798 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3799 echo "${ECHO_T}$lt_cv_path_NM" >&6
3802 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3803 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3805 if test "$LN_S" = "ln -s"; then
3806 echo "$as_me:$LINENO: result: yes" >&5
3807 echo "${ECHO_T}yes" >&6
3809 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3810 echo "${ECHO_T}no, using $LN_S" >&6
3813 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3814 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3815 if test "${lt_cv_deplibs_check_method+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 lt_cv_file_magic_cmd='$MAGIC_CMD'
3819 lt_cv_file_magic_test_file=
3820 lt_cv_deplibs_check_method='unknown'
3821 # Need to set the preceding variable on all platforms that support
3822 # interlibrary dependencies.
3823 # 'none' -- dependencies not supported.
3824 # `unknown' -- same as none, but documents that we really don't know.
3825 # 'pass_all' -- all dependencies passed with no checks.
3826 # 'test_compile' -- check by making test program.
3827 # 'file_magic [[regex]]' -- check by looking for files in library path
3828 # which responds to the $file_magic_cmd with a given extended regex.
3829 # If you have `file' or equivalent on your system and you're not sure
3830 # whether `pass_all' will *always* work, you probably want this one.
3834 lt_cv_deplibs_check_method=pass_all
3838 lt_cv_deplibs_check_method=pass_all
3842 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3843 lt_cv_file_magic_cmd='/usr/bin/file -L'
3844 lt_cv_file_magic_test_file=/shlib/libc.so
3847 cygwin* | mingw* | pw32*)
3848 # win32_libid is a shell function defined in ltmain.sh
3849 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3850 lt_cv_file_magic_cmd='win32_libid'
3853 darwin* | rhapsody*)
3854 # this will be overwritten by pass_all, but leave it in just in case
3855 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3856 lt_cv_file_magic_cmd='/usr/bin/file -L'
3858 rhapsody* | darwin1.[012])
3859 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3862 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3865 lt_cv_deplibs_check_method=pass_all
3869 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3872 # Not sure whether the presence of OpenBSD here was a mistake.
3873 # Let's accept both of them until this is cleared up.
3874 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3875 lt_cv_file_magic_cmd=/usr/bin/file
3876 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3880 lt_cv_deplibs_check_method=pass_all
3885 lt_cv_deplibs_check_method=pass_all
3888 hpux10.20* | hpux11*)
3889 lt_cv_file_magic_cmd=/usr/bin/file
3892 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3893 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3896 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]'
3897 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3900 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3901 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3906 irix5* | irix6* | nonstopux*)
3908 irix5* | nonstopux*)
3909 # this will be overridden with pass_all, but let us keep it just in case
3910 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3914 *-32|*"-32 ") libmagic=32-bit;;
3915 *-n32|*"-n32 ") libmagic=N32;;
3916 *-64|*"-64 ") libmagic=64-bit;;
3917 *) libmagic=never-match;;
3919 # this will be overridden with pass_all, but let us keep it just in case
3920 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3923 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3924 lt_cv_deplibs_check_method=pass_all
3927 # This must be Linux ELF.
3930 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3931 lt_cv_deplibs_check_method=pass_all ;;
3933 # glibc up to 2.1.1 does not perform some relocations on ARM
3934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3936 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3940 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3943 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3949 lt_cv_file_magic_cmd=/usr/bin/file
3950 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3954 lt_cv_deplibs_check_method=unknown
3958 lt_cv_file_magic_cmd=/usr/bin/file
3959 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3960 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3963 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3967 osf3* | osf4* | osf5*)
3968 # this will be overridden with pass_all, but let us keep it just in case
3969 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3970 lt_cv_file_magic_test_file=/shlib/libc.so
3971 lt_cv_deplibs_check_method=pass_all
3975 lt_cv_deplibs_check_method=pass_all
3979 lt_cv_deplibs_check_method=pass_all
3980 lt_cv_file_magic_test_file=/lib/libc.so
3983 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3984 case $host_vendor in
3986 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]'
3987 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3990 lt_cv_deplibs_check_method=pass_all
3993 lt_cv_file_magic_cmd='/bin/file'
3994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3997 lt_cv_file_magic_cmd='/bin/file'
3998 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3999 lt_cv_file_magic_test_file=/lib/libc.so
4002 lt_cv_deplibs_check_method=pass_all
4007 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4008 lt_cv_deplibs_check_method=pass_all
4013 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4014 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4015 file_magic_cmd=$lt_cv_file_magic_cmd
4016 deplibs_check_method=$lt_cv_deplibs_check_method
4017 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4022 # If no C compiler was specified, use CC.
4025 # Allow CC to be a program name with arguments.
4028 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4029 if test "${enable_libtool_lock+set}" = set; then
4030 enableval="$enable_libtool_lock"
4033 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4035 # Some flags need to be propagated to the compiler or linker for good
4039 # Find out which ABI we are using.
4040 echo 'int i;' > conftest.$ac_ext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; then
4046 case `/usr/bin/file conftest.$ac_objext` in
4058 # Find out which ABI we are using.
4059 echo '#line 4059 "configure"' > conftest.$ac_ext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; then
4065 if test "$lt_cv_prog_gnu_ld" = yes; then
4066 case `/usr/bin/file conftest.$ac_objext` in
4068 LD="${LD-ld} -melf32bsmip"
4071 LD="${LD-ld} -melf32bmipn32"
4074 LD="${LD-ld} -melf64bmip"
4078 case `/usr/bin/file conftest.$ac_objext` in
4094 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4095 # Find out which ABI we are using.
4096 echo 'int i;' > conftest.$ac_ext
4097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4098 (eval $ac_compile) 2>&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; then
4102 case "`/usr/bin/file conftest.o`" in
4106 LD="${LD-ld} -m elf_i386"
4109 LD="${LD-ld} -m elf32ppclinux"
4112 LD="${LD-ld} -m elf_s390"
4115 LD="${LD-ld} -m elf32_sparc"
4122 LD="${LD-ld} -m elf_x86_64"
4124 ppc*-*linux*|powerpc*-*linux*)
4125 LD="${LD-ld} -m elf64ppc"
4128 LD="${LD-ld} -m elf64_s390"
4131 LD="${LD-ld} -m elf64_sparc"
4141 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4142 SAVE_CFLAGS="$CFLAGS"
4143 CFLAGS="$CFLAGS -belf"
4144 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4145 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4146 if test "${lt_cv_cc_needs_belf+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155 cat >conftest.$ac_ext <<_ACEOF
4156 #line $LINENO "configure"
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4171 rm -f conftest.$ac_objext conftest$ac_exeext
4172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4173 (eval $ac_link) 2>&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try='test -s conftest$ac_exeext'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4183 lt_cv_cc_needs_belf=yes
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4188 lt_cv_cc_needs_belf=no
4190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4199 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4200 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4201 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4202 CFLAGS="$SAVE_CFLAGS"
4208 need_locks="$enable_libtool_lock"
4212 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4213 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4214 if test "${ac_cv_header_stdc+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 cat >conftest.$ac_ext <<_ACEOF
4218 #line $LINENO "configure"
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4237 rm -f conftest.$ac_objext
4238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4239 (eval $ac_compile) 2>&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } &&
4243 { ac_try='test -s conftest.$ac_objext'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4249 ac_cv_header_stdc=yes
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 ac_cv_header_stdc=no
4256 rm -f conftest.$ac_objext conftest.$ac_ext
4258 if test $ac_cv_header_stdc = yes; then
4259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4260 cat >conftest.$ac_ext <<_ACEOF
4261 #line $LINENO "configure"
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4271 $EGREP "memchr" >/dev/null 2>&1; then
4274 ac_cv_header_stdc=no
4280 if test $ac_cv_header_stdc = yes; then
4281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4282 cat >conftest.$ac_ext <<_ACEOF
4283 #line $LINENO "configure"
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h. */
4292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4293 $EGREP "free" >/dev/null 2>&1; then
4296 ac_cv_header_stdc=no
4302 if test $ac_cv_header_stdc = yes; then
4303 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4304 if test "$cross_compiling" = yes; then
4307 cat >conftest.$ac_ext <<_ACEOF
4308 #line $LINENO "configure"
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4315 #if ((' ' & 0x0FF) == 0x020)
4316 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4317 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4319 # define ISLOWER(c) \
4320 (('a' <= (c) && (c) <= 'i') \
4321 || ('j' <= (c) && (c) <= 'r') \
4322 || ('s' <= (c) && (c) <= 'z'))
4323 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4326 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4331 for (i = 0; i < 256; i++)
4332 if (XOR (islower (i), ISLOWER (i))
4333 || toupper (i) != TOUPPER (i))
4338 rm -f conftest$ac_exeext
4339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4340 (eval $ac_link) 2>&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4351 echo "$as_me: program exited with status $ac_status" >&5
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4356 ac_cv_header_stdc=no
4358 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4362 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4363 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4364 if test $ac_cv_header_stdc = yes; then
4366 cat >>confdefs.h <<\_ACEOF
4367 #define STDC_HEADERS 1
4372 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4383 inttypes.h stdint.h unistd.h
4385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4386 echo "$as_me:$LINENO: checking for $ac_header" >&5
4387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 cat >conftest.$ac_ext <<_ACEOF
4392 #line $LINENO "configure"
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 $ac_includes_default
4400 #include <$ac_header>
4402 rm -f conftest.$ac_objext
4403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404 (eval $ac_compile) 2>&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -s conftest.$ac_objext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 eval "$as_ac_Header=yes"
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4419 eval "$as_ac_Header=no"
4421 rm -f conftest.$ac_objext conftest.$ac_ext
4423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4426 cat >>confdefs.h <<_ACEOF
4427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4436 for ac_header in dlfcn.h
4438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4440 echo "$as_me:$LINENO: checking for $ac_header" >&5
4441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4448 # Is the header compilable?
4449 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4451 cat >conftest.$ac_ext <<_ACEOF
4452 #line $LINENO "configure"
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 $ac_includes_default
4459 #include <$ac_header>
4461 rm -f conftest.$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try='test -s conftest.$ac_objext'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 ac_header_compiler=yes
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4478 ac_header_compiler=no
4480 rm -f conftest.$ac_objext conftest.$ac_ext
4481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4482 echo "${ECHO_T}$ac_header_compiler" >&6
4484 # Is the header present?
4485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4487 cat >conftest.$ac_ext <<_ACEOF
4488 #line $LINENO "configure"
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 #include <$ac_header>
4496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4499 grep -v '^ *+' conftest.er1 >conftest.err
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } >/dev/null; then
4504 if test -s conftest.err; then
4505 ac_cpp_err=$ac_c_preproc_warn_flag
4512 if test -z "$ac_cpp_err"; then
4513 ac_header_preproc=yes
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4518 ac_header_preproc=no
4520 rm -f conftest.err conftest.$ac_ext
4521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4522 echo "${ECHO_T}$ac_header_preproc" >&6
4524 # So? What about this header?
4525 case $ac_header_compiler:$ac_header_preproc in
4527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4533 ## ------------------------------------ ##
4534 ## Report this to bug-autoconf@gnu.org. ##
4535 ## ------------------------------------ ##
4538 sed "s/^/$as_me: WARNING: /" >&2
4541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4549 ## ------------------------------------ ##
4550 ## Report this to bug-autoconf@gnu.org. ##
4551 ## ------------------------------------ ##
4554 sed "s/^/$as_me: WARNING: /" >&2
4557 echo "$as_me:$LINENO: checking for $ac_header" >&5
4558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 eval "$as_ac_Header=$ac_header_preproc"
4564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4569 cat >>confdefs.h <<_ACEOF
4570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4578 ac_cpp='$CXXCPP $CPPFLAGS'
4579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4582 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4583 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4584 if test -z "$CXXCPP"; then
4585 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 # Double quotes because CXXCPP needs to be expanded
4589 for CXXCPP in "$CXX -E" "/lib/cpp"
4592 for ac_cxx_preproc_warn_flag in '' yes
4594 # Use a header file that comes with gcc, so configuring glibc
4595 # with a fresh cross-compiler works.
4596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4597 # <limits.h> exists even on freestanding compilers.
4598 # On the NeXT, cc -E runs the code through the compiler's parser,
4599 # not just through cpp. "Syntax error" is here to catch this case.
4600 cat >conftest.$ac_ext <<_ACEOF
4601 #line $LINENO "configure"
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4608 # include <limits.h>
4610 # include <assert.h>
4614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4617 grep -v '^ *+' conftest.er1 >conftest.err
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } >/dev/null; then
4622 if test -s conftest.err; then
4623 ac_cpp_err=$ac_cxx_preproc_warn_flag
4630 if test -z "$ac_cpp_err"; then
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 # Broken: fails on valid input.
4639 rm -f conftest.err conftest.$ac_ext
4641 # OK, works on sane cases. Now check whether non-existent headers
4642 # can be detected and how.
4643 cat >conftest.$ac_ext <<_ACEOF
4644 #line $LINENO "configure"
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 #include <ac_nonexistent.h>
4652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4655 grep -v '^ *+' conftest.er1 >conftest.err
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } >/dev/null; then
4660 if test -s conftest.err; then
4661 ac_cpp_err=$ac_cxx_preproc_warn_flag
4668 if test -z "$ac_cpp_err"; then
4669 # Broken: success on invalid input.
4672 echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4675 # Passes both tests.
4679 rm -f conftest.err conftest.$ac_ext
4682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4683 rm -f conftest.err conftest.$ac_ext
4684 if $ac_preproc_ok; then
4689 ac_cv_prog_CXXCPP=$CXXCPP
4692 CXXCPP=$ac_cv_prog_CXXCPP
4694 ac_cv_prog_CXXCPP=$CXXCPP
4696 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4697 echo "${ECHO_T}$CXXCPP" >&6
4699 for ac_cxx_preproc_warn_flag in '' yes
4701 # Use a header file that comes with gcc, so configuring glibc
4702 # with a fresh cross-compiler works.
4703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4704 # <limits.h> exists even on freestanding compilers.
4705 # On the NeXT, cc -E runs the code through the compiler's parser,
4706 # not just through cpp. "Syntax error" is here to catch this case.
4707 cat >conftest.$ac_ext <<_ACEOF
4708 #line $LINENO "configure"
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4715 # include <limits.h>
4717 # include <assert.h>
4721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4724 grep -v '^ *+' conftest.er1 >conftest.err
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } >/dev/null; then
4729 if test -s conftest.err; then
4730 ac_cpp_err=$ac_cxx_preproc_warn_flag
4737 if test -z "$ac_cpp_err"; then
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 # Broken: fails on valid input.
4746 rm -f conftest.err conftest.$ac_ext
4748 # OK, works on sane cases. Now check whether non-existent headers
4749 # can be detected and how.
4750 cat >conftest.$ac_ext <<_ACEOF
4751 #line $LINENO "configure"
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 #include <ac_nonexistent.h>
4759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4762 grep -v '^ *+' conftest.er1 >conftest.err
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } >/dev/null; then
4767 if test -s conftest.err; then
4768 ac_cpp_err=$ac_cxx_preproc_warn_flag
4775 if test -z "$ac_cpp_err"; then
4776 # Broken: success on invalid input.
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4782 # Passes both tests.
4786 rm -f conftest.err conftest.$ac_ext
4789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4790 rm -f conftest.err conftest.$ac_ext
4791 if $ac_preproc_ok; then
4794 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4795 See \`config.log' for more details." >&5
4796 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4797 See \`config.log' for more details." >&2;}
4798 { (exit 1); exit 1; }; }
4802 ac_cpp='$CXXCPP $CPPFLAGS'
4803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4809 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4810 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4811 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4812 if test -n "$ac_tool_prefix"; then
4813 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4817 echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819 if test "${ac_cv_prog_F77+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 if test -n "$F77"; then
4823 ac_cv_prog_F77="$F77" # Let the user override the test.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 if test -n "$F77"; then
4843 echo "$as_me:$LINENO: result: $F77" >&5
4844 echo "${ECHO_T}$F77" >&6
4846 echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4850 test -n "$F77" && break
4853 if test -z "$F77"; then
4855 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4857 # Extract the first word of "$ac_prog", so it can be a program name with args.
4858 set dummy $ac_prog; ac_word=$2
4859 echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4861 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 if test -n "$ac_ct_F77"; then
4865 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874 ac_cv_prog_ac_ct_F77="$ac_prog"
4875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4884 if test -n "$ac_ct_F77"; then
4885 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4886 echo "${ECHO_T}$ac_ct_F77" >&6
4888 echo "$as_me:$LINENO: result: no" >&5
4889 echo "${ECHO_T}no" >&6
4892 test -n "$ac_ct_F77" && break
4899 # Provide some information about the compiler.
4900 echo "$as_me:4900:" \
4901 "checking for Fortran 77 compiler version" >&5
4902 ac_compiler=`set X $ac_compile; echo $2`
4903 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4904 (eval $ac_compiler --version </dev/null >&5) 2>&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }
4908 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4909 (eval $ac_compiler -v </dev/null >&5) 2>&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }
4913 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4914 (eval $ac_compiler -V </dev/null >&5) 2>&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }
4919 # If we don't use `.F' as extension, the preprocessor is not run on the
4923 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4924 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4925 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 cat >conftest.$ac_ext <<_ACEOF
4936 rm -f conftest.$ac_objext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4938 (eval $ac_compile) 2>&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try='test -s conftest.$ac_objext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4950 echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4955 rm -f conftest.$ac_objext conftest.$ac_ext
4956 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4959 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4960 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4962 G77=`test $ac_compiler_gnu = yes && echo yes`
4963 ac_test_FFLAGS=${FFLAGS+set}
4964 ac_save_FFLAGS=$FFLAGS
4966 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4967 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4968 if test "${ac_cv_prog_f77_g+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 cat >conftest.$ac_ext <<_ACEOF
4977 rm -f conftest.$ac_objext
4978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4979 (eval $ac_compile) 2>&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try='test -s conftest.$ac_objext'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; }; then
4989 ac_cv_prog_f77_g=yes
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4996 rm -f conftest.$ac_objext conftest.$ac_ext
4999 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5000 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5001 if test "$ac_test_FFLAGS" = set; then
5002 FFLAGS=$ac_save_FFLAGS
5003 elif test $ac_cv_prog_f77_g = yes; then
5004 if test "$G77" = yes; then
5010 if test "$G77" = yes; then
5017 ac_cpp='$CPP $CPPFLAGS'
5018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5024 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5026 # find the maximum length of command line arguments
5027 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5028 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5029 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 # On DJGPP, this test can blow up pretty badly due to problems in libc
5038 # (any single argument exceeding 2000 bytes causes a buffer overrun
5039 # during glob expansion). Even if it were fixed, the result of this
5040 # check would be larger than it should be.
5041 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5045 # Under GNU Hurd, this test is not required because there is
5046 # no limit to the length of command line arguments.
5047 # Libtool will interpret -1 as no limit whatsoever
5048 lt_cv_sys_max_cmd_len=-1;
5052 # On Win9x/ME, this test blows up -- it succeeds, but takes
5053 # about 5 minutes as the teststring grows exponentially.
5054 # Worse, since 9x/ME are not pre-emptively multitasking,
5055 # you end up with a "frozen" computer, even though with patience
5056 # the test eventually succeeds (with a max line length of 256k).
5057 # Instead, let's just punt: use the minimum linelength reported by
5058 # all of the supported platforms: 8192 (on NT/2K/XP).
5059 lt_cv_sys_max_cmd_len=8192;
5063 # If test is not a shell built-in, we'll probably end up computing a
5064 # maximum length that is only half of the actual maximum length, but
5066 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5067 = "XX$testring") >/dev/null 2>&1 &&
5068 new_result=`expr "X$testring" : ".*" 2>&1` &&
5069 lt_cv_sys_max_cmd_len=$new_result &&
5070 test $i != 17 # 1/2 MB should be enough
5073 testring=$testring$testring
5076 # Add a significant safety factor because C++ compilers can tack on massive
5077 # amounts of additional arguments before passing them to the linker.
5078 # It appears as though 1/2 is a usable value.
5079 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5085 if test -n $lt_cv_sys_max_cmd_len ; then
5086 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5087 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5089 echo "$as_me:$LINENO: result: none" >&5
5090 echo "${ECHO_T}none" >&6
5096 # Check for command to grab the raw symbol name followed by C symbol from nm.
5097 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5098 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5099 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 # These are sane defaults that work on at least a few old systems.
5104 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5106 # Character class describing NM global symbol codes.
5107 symcode='[BCDEGRST]'
5109 # Regexp to match symbols that can be accessed directly from C.
5110 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5112 # Transform the above into a raw symbol and a C symbol.
5113 symxfrm='\1 \2\3 \3'
5115 # Transform an extracted symbol line into a proper C declaration
5116 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5118 # Transform an extracted symbol line into symbol name and symbol address
5119 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'"
5121 # Define system-specific variables.
5126 cygwin* | mingw* | pw32*)
5127 symcode='[ABCDGISTW]'
5129 hpux*) # Its linker distinguishes data from code symbols
5130 if test "$host_cpu" = ia64; then
5131 symcode='[ABCDEGRST]'
5133 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5134 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'"
5137 symcode='[BCDEGRST]'
5140 symcode='[BCDEGQRST]'
5150 # Handle CRLF in mingw tool chain
5154 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5158 # If we're using GNU nm, then use its standard symbol codes.
5159 case `$NM -V 2>&1` in
5160 *GNU* | *'with BFD'*)
5161 symcode='[ABCDGISTW]' ;;
5164 # Try without a prefix undercore, then with it.
5165 for ac_symprfx in "" "_"; do
5167 # Write the raw and C identifiers.
5168 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5170 # Check to see that the pipe works correctly.
5174 cat > conftest.$ac_ext <<EOF
5179 void nm_test_func(){}
5183 int main(){nm_test_var='a';nm_test_func();return(0);}
5186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5187 (eval $ac_compile) 2>&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; then
5191 # Now try to grab the symbols.
5193 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5194 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && test -s "$nlist"; then
5198 # Try sorting and uniquifying the output.
5199 if sort "$nlist" | uniq > "$nlist"T; then
5200 mv -f "$nlist"T "$nlist"
5205 # Make sure that we snagged all the symbols we need.
5206 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5207 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5208 cat <<EOF > conftest.$ac_ext
5214 # Now generate the symbol file.
5215 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5217 cat <<EOF >> conftest.$ac_ext
5218 #if defined (__STDC__) && __STDC__
5219 # define lt_ptr_t void *
5221 # define lt_ptr_t char *
5225 /* The mapping between symbol names and symbols. */
5230 lt_preloaded_symbols[] =
5233 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5234 cat <<\EOF >> conftest.$ac_ext
5242 # Now try linking the two files.
5243 mv conftest.$ac_objext conftstm.$ac_objext
5244 lt_save_LIBS="$LIBS"
5245 lt_save_CFLAGS="$CFLAGS"
5246 LIBS="conftstm.$ac_objext"
5247 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5249 (eval $ac_link) 2>&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5255 LIBS="$lt_save_LIBS"
5256 CFLAGS="$lt_save_CFLAGS"
5258 echo "cannot find nm_test_func in $nlist" >&5
5261 echo "cannot find nm_test_var in $nlist" >&5
5264 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5267 echo "$progname: failed program was:" >&5
5268 cat conftest.$ac_ext >&5
5270 rm -f conftest* conftst*
5272 # Do not use the global_symbol_pipe unless it works.
5273 if test "$pipe_works" = yes; then
5276 lt_cv_sys_global_symbol_pipe=
5282 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5283 lt_cv_sys_global_symbol_to_cdecl=
5285 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5286 echo "$as_me:$LINENO: result: failed" >&5
5287 echo "${ECHO_T}failed" >&6
5289 echo "$as_me:$LINENO: result: ok" >&5
5290 echo "${ECHO_T}ok" >&6
5293 echo "$as_me:$LINENO: checking for objdir" >&5
5294 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5295 if test "${lt_cv_objdir+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 rm -f .libs 2>/dev/null
5299 mkdir .libs 2>/dev/null
5300 if test -d .libs; then
5303 # MS-DOS does not allow filenames that begin with a dot.
5306 rmdir .libs 2>/dev/null
5308 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5309 echo "${ECHO_T}$lt_cv_objdir" >&6
5310 objdir=$lt_cv_objdir
5318 # AIX sometimes has problems with the GCC collect2 program. For some
5319 # reason, if we set the COLLECT_NAMES environment variable, the problems
5320 # vanish in a puff of smoke.
5321 if test "X${COLLECT_NAMES+set}" != Xset; then
5323 export COLLECT_NAMES
5328 # Sed substitution that helps us do robust quoting. It backslashifies
5329 # metacharacters that are still active within double-quoted strings.
5330 Xsed='sed -e s/^X//'
5331 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5333 # Same as above, but do not quote variable references.
5334 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5336 # Sed substitution to delay expansion of an escaped shell variable in a
5337 # double_quote_subst'ed string.
5338 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5340 # Sed substitution to avoid accidental globbing in evaled expressions
5341 no_glob_subst='s/\*/\\\*/g'
5348 can_build_shared=yes
5350 # All known linkers require a `.a' archive for static linking (except M$VC,
5351 # which needs '.lib').
5353 ltmain="$ac_aux_dir/ltmain.sh"
5354 ofile="$default_ofile"
5355 with_gnu_ld="$lt_cv_prog_gnu_ld"
5357 if test -n "$ac_tool_prefix"; then
5358 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5359 set dummy ${ac_tool_prefix}ar; ac_word=$2
5360 echo "$as_me:$LINENO: checking for $ac_word" >&5
5361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5362 if test "${ac_cv_prog_AR+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 if test -n "$AR"; then
5366 ac_cv_prog_AR="$AR" # Let the user override the test.
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 test -z "$as_dir" && as_dir=.
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5375 ac_cv_prog_AR="${ac_tool_prefix}ar"
5376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 if test -n "$AR"; then
5386 echo "$as_me:$LINENO: result: $AR" >&5
5387 echo "${ECHO_T}$AR" >&6
5389 echo "$as_me:$LINENO: result: no" >&5
5390 echo "${ECHO_T}no" >&6
5394 if test -z "$ac_cv_prog_AR"; then
5396 # Extract the first word of "ar", so it can be a program name with args.
5397 set dummy ar; ac_word=$2
5398 echo "$as_me:$LINENO: checking for $ac_word" >&5
5399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5400 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 if test -n "$ac_ct_AR"; then
5404 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413 ac_cv_prog_ac_ct_AR="ar"
5414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5423 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5424 if test -n "$ac_ct_AR"; then
5425 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5426 echo "${ECHO_T}$ac_ct_AR" >&6
5428 echo "$as_me:$LINENO: result: no" >&5
5429 echo "${ECHO_T}no" >&6
5437 if test -n "$ac_tool_prefix"; then
5438 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5439 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5440 echo "$as_me:$LINENO: checking for $ac_word" >&5
5441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5442 if test "${ac_cv_prog_RANLIB+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 if test -n "$RANLIB"; then
5446 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5455 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 RANLIB=$ac_cv_prog_RANLIB
5465 if test -n "$RANLIB"; then
5466 echo "$as_me:$LINENO: result: $RANLIB" >&5
5467 echo "${ECHO_T}$RANLIB" >&6
5469 echo "$as_me:$LINENO: result: no" >&5
5470 echo "${ECHO_T}no" >&6
5474 if test -z "$ac_cv_prog_RANLIB"; then
5475 ac_ct_RANLIB=$RANLIB
5476 # Extract the first word of "ranlib", so it can be a program name with args.
5477 set dummy ranlib; ac_word=$2
5478 echo "$as_me:$LINENO: checking for $ac_word" >&5
5479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 if test -n "$ac_ct_RANLIB"; then
5484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493 ac_cv_prog_ac_ct_RANLIB="ranlib"
5494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5504 if test -n "$ac_ct_RANLIB"; then
5505 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5506 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5508 echo "$as_me:$LINENO: result: no" >&5
5509 echo "${ECHO_T}no" >&6
5512 RANLIB=$ac_ct_RANLIB
5514 RANLIB="$ac_cv_prog_RANLIB"
5517 if test -n "$ac_tool_prefix"; then
5518 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5519 set dummy ${ac_tool_prefix}strip; ac_word=$2
5520 echo "$as_me:$LINENO: checking for $ac_word" >&5
5521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5522 if test "${ac_cv_prog_STRIP+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 if test -n "$STRIP"; then
5526 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 STRIP=$ac_cv_prog_STRIP
5545 if test -n "$STRIP"; then
5546 echo "$as_me:$LINENO: result: $STRIP" >&5
5547 echo "${ECHO_T}$STRIP" >&6
5549 echo "$as_me:$LINENO: result: no" >&5
5550 echo "${ECHO_T}no" >&6
5554 if test -z "$ac_cv_prog_STRIP"; then
5556 # Extract the first word of "strip", so it can be a program name with args.
5557 set dummy strip; ac_word=$2
5558 echo "$as_me:$LINENO: checking for $ac_word" >&5
5559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 if test -n "$ac_ct_STRIP"; then
5564 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573 ac_cv_prog_ac_ct_STRIP="strip"
5574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5584 if test -n "$ac_ct_STRIP"; then
5585 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5586 echo "${ECHO_T}$ac_ct_STRIP" >&6
5588 echo "$as_me:$LINENO: result: no" >&5
5589 echo "${ECHO_T}no" >&6
5594 STRIP="$ac_cv_prog_STRIP"
5599 old_CFLAGS="$CFLAGS"
5601 # Set sane defaults for various variables
5602 test -z "$AR" && AR=ar
5603 test -z "$AR_FLAGS" && AR_FLAGS=cru
5604 test -z "$AS" && AS=as
5605 test -z "$CC" && CC=cc
5606 test -z "$LTCC" && LTCC=$CC
5607 test -z "$DLLTOOL" && DLLTOOL=dlltool
5608 test -z "$LD" && LD=ld
5609 test -z "$LN_S" && LN_S="ln -s"
5610 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5611 test -z "$NM" && NM=nm
5612 test -z "$SED" && SED=sed
5613 test -z "$OBJDUMP" && OBJDUMP=objdump
5614 test -z "$RANLIB" && RANLIB=:
5615 test -z "$STRIP" && STRIP=:
5616 test -z "$ac_objext" && ac_objext=o
5618 # Determine commands to create old-style static archives.
5619 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5620 old_postinstall_cmds='chmod 644 $oldlib'
5621 old_postuninstall_cmds=
5623 if test -n "$RANLIB"; then
5626 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5629 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5632 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5635 # Only perform the check for file, if the check method requires it
5636 case $deplibs_check_method in
5638 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5639 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5640 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5641 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5649 lt_save_MAGIC_CMD="$MAGIC_CMD"
5650 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5651 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5652 for ac_dir in $ac_dummy; do
5654 test -z "$ac_dir" && ac_dir=.
5655 if test -f $ac_dir/${ac_tool_prefix}file; then
5656 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5657 if test -n "$file_magic_test_file"; then
5658 case $deplibs_check_method in
5660 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5661 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5662 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5663 $EGREP "$file_magic_regex" > /dev/null; then
5668 *** Warning: the command libtool uses to detect shared libraries,
5669 *** $file_magic_cmd, produces output that libtool cannot recognize.
5670 *** The result is that libtool may fail to recognize shared libraries
5671 *** as such. This will affect the creation of libtool libraries that
5672 *** depend on shared libraries, but programs linked with such libtool
5673 *** libraries will work regardless of this problem. Nevertheless, you
5674 *** may want to report the problem to your system manager and/or to
5675 *** bug-libtool@gnu.org
5685 MAGIC_CMD="$lt_save_MAGIC_CMD"
5690 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5691 if test -n "$MAGIC_CMD"; then
5692 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5693 echo "${ECHO_T}$MAGIC_CMD" >&6
5695 echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6
5699 if test -z "$lt_cv_path_MAGIC_CMD"; then
5700 if test -n "$ac_tool_prefix"; then
5701 echo "$as_me:$LINENO: checking for file" >&5
5702 echo $ECHO_N "checking for file... $ECHO_C" >&6
5703 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5711 lt_save_MAGIC_CMD="$MAGIC_CMD"
5712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5713 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5714 for ac_dir in $ac_dummy; do
5716 test -z "$ac_dir" && ac_dir=.
5717 if test -f $ac_dir/file; then
5718 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5719 if test -n "$file_magic_test_file"; then
5720 case $deplibs_check_method in
5722 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5724 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5725 $EGREP "$file_magic_regex" > /dev/null; then
5730 *** Warning: the command libtool uses to detect shared libraries,
5731 *** $file_magic_cmd, produces output that libtool cannot recognize.
5732 *** The result is that libtool may fail to recognize shared libraries
5733 *** as such. This will affect the creation of libtool libraries that
5734 *** depend on shared libraries, but programs linked with such libtool
5735 *** libraries will work regardless of this problem. Nevertheless, you
5736 *** may want to report the problem to your system manager and/or to
5737 *** bug-libtool@gnu.org
5747 MAGIC_CMD="$lt_save_MAGIC_CMD"
5752 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5753 if test -n "$MAGIC_CMD"; then
5754 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5755 echo "${ECHO_T}$MAGIC_CMD" >&6
5757 echo "$as_me:$LINENO: result: no" >&5
5758 echo "${ECHO_T}no" >&6
5773 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5774 if test "${enable_libtool_lock+set}" = set; then
5775 enableval="$enable_libtool_lock"
5778 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5781 # Check whether --with-pic or --without-pic was given.
5782 if test "${with_pic+set}" = set; then
5788 test -z "$pic_mode" && pic_mode=default
5790 # Use C for the default configuration in the libtool script
5794 ac_cpp='$CPP $CPPFLAGS'
5795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5800 # Source file extension for C test sources.
5803 # Object file extension for compiled C test sources.
5807 # Code to be used in simple compile tests
5808 lt_simple_compile_test_code="int some_variable = 0;\n"
5810 # Code to be used in simple link tests
5811 lt_simple_link_test_code='int main(){return(0);}\n'
5814 # If no C compiler was specified, use CC.
5817 # Allow CC to be a program name with arguments.
5822 # Check for any special shared library compilation flags.
5825 if test "$GCC" = no; then
5828 lt_prog_cc_shlib='-belf'
5832 if test -n "$lt_prog_cc_shlib"; then
5833 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5834 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5835 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5837 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5838 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5839 lt_cv_prog_cc_can_build_shared=no
5845 # Check to make sure the static flag actually works.
5847 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5848 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5849 if test "${lt_prog_compiler_static_works+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 lt_prog_compiler_static_works=no
5853 save_LDFLAGS="$LDFLAGS"
5854 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5855 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5856 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5857 # The compiler can only warn and ignore the option if not recognized
5858 # So say no if there are warnings
5859 if test -s conftest.err; then
5860 # Append any errors to the config.log.
5861 cat conftest.err 1>&5
5863 lt_prog_compiler_static_works=yes
5867 LDFLAGS="$save_LDFLAGS"
5870 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5871 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5873 if test x"$lt_prog_compiler_static_works" = xyes; then
5876 lt_prog_compiler_static=
5882 lt_prog_compiler_no_builtin_flag=
5884 if test "$GCC" = yes; then
5885 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5887 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5888 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5889 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 lt_cv_prog_compiler_rtti_exceptions=no
5893 ac_outfile=conftest.$ac_objext
5894 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5895 lt_compiler_flag="-fno-rtti -fno-exceptions"
5896 # Insert the option either (1) after the last *FLAGS variable, or
5897 # (2) before a word containing "conftest.", or (3) at the end.
5898 # Note that $ac_compile itself does not contain backslashes and begins
5899 # with a dollar sign (not a hyphen), so the echo should work correctly.
5900 # The option is referenced via a variable to avoid confusing sed.
5901 lt_compile=`echo "$ac_compile" | $SED \
5902 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5904 -e 's:$: $lt_compiler_flag:'`
5905 (eval echo "\"\$as_me:5905: $lt_compile\"" >&5)
5906 (eval "$lt_compile" 2>conftest.err)
5908 cat conftest.err >&5
5909 echo "$as_me:5909: \$? = $ac_status" >&5
5910 if (exit $ac_status) && test -s "$ac_outfile"; then
5911 # The compiler can only warn and ignore the option if not recognized
5912 # So say no if there are warnings
5913 if test ! -s conftest.err; then
5914 lt_cv_prog_compiler_rtti_exceptions=yes
5920 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5921 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5923 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5924 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5931 lt_prog_compiler_wl=
5932 lt_prog_compiler_pic=
5933 lt_prog_compiler_static=
5935 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5936 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5938 if test "$GCC" = yes; then
5939 lt_prog_compiler_wl='-Wl,'
5940 lt_prog_compiler_static='-static'
5944 # All AIX code is PIC.
5945 if test "$host_cpu" = ia64; then
5946 # AIX 5 now supports IA64 processor
5947 lt_prog_compiler_static='-Bstatic'
5952 # FIXME: we need at least 68020 code to build shared libraries, but
5953 # adding the `-m68020' flag to GCC prevents building anything better,
5955 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5958 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5959 # PIC is the default for these OSes.
5962 mingw* | pw32* | os2*)
5963 # This hack is so that the source file can tell whether it is being
5964 # built for inclusion in a dll (and should export symbols for example).
5965 lt_prog_compiler_pic='-DDLL_EXPORT'
5968 darwin* | rhapsody*)
5969 # PIC is the default on this platform
5970 # Common symbols not allowed in MH_DYLIB files
5971 lt_prog_compiler_pic='-fno-common'
5975 # Just because we use GCC doesn't mean we suddenly get shared libraries
5976 # on systems that don't support them.
5977 lt_prog_compiler_can_build_shared=no
5982 if test -d /usr/nec; then
5983 lt_prog_compiler_pic=-Kconform_pic
5988 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5995 lt_prog_compiler_pic='-fPIC'
6001 lt_prog_compiler_pic='-fPIC'
6005 # PORTME Check for flag to pass linker flags through the system compiler.
6008 lt_prog_compiler_wl='-Wl,'
6009 if test "$host_cpu" = ia64; then
6010 # AIX 5 now supports IA64 processor
6011 lt_prog_compiler_static='-Bstatic'
6013 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6017 mingw* | pw32* | os2*)
6018 # This hack is so that the source file can tell whether it is being
6019 # built for inclusion in a dll (and should export symbols for example).
6020 lt_prog_compiler_pic='-DDLL_EXPORT'
6023 hpux9* | hpux10* | hpux11*)
6024 lt_prog_compiler_wl='-Wl,'
6025 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6032 lt_prog_compiler_pic='+Z'
6035 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6036 lt_prog_compiler_static='${wl}-a ${wl}archive'
6039 irix5* | irix6* | nonstopux*)
6040 lt_prog_compiler_wl='-Wl,'
6041 # PIC (with -KPIC) is the default.
6042 lt_prog_compiler_static='-non_shared'
6046 lt_prog_compiler_pic='-KPIC'
6047 lt_prog_compiler_static='-Bstatic'
6053 lt_prog_compiler_wl='-Wl,'
6054 lt_prog_compiler_pic='-KPIC'
6055 lt_prog_compiler_static='-static'
6058 lt_prog_compiler_wl='-Wl,'
6059 # All Alpha code is PIC.
6060 lt_prog_compiler_static='-non_shared'
6065 osf3* | osf4* | osf5*)
6066 lt_prog_compiler_wl='-Wl,'
6067 # All OSF/1 code is PIC.
6068 lt_prog_compiler_static='-non_shared'
6072 lt_prog_compiler_pic='-Kpic'
6073 lt_prog_compiler_static='-dn'
6077 lt_prog_compiler_wl='-Wl,'
6078 lt_prog_compiler_pic='-KPIC'
6079 lt_prog_compiler_static='-Bstatic'
6083 lt_prog_compiler_wl='-Qoption ld '
6084 lt_prog_compiler_pic='-PIC'
6085 lt_prog_compiler_static='-Bstatic'
6088 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6089 lt_prog_compiler_wl='-Wl,'
6090 lt_prog_compiler_pic='-KPIC'
6091 lt_prog_compiler_static='-Bstatic'
6095 if test -d /usr/nec ;then
6096 lt_prog_compiler_pic='-Kconform_pic'
6097 lt_prog_compiler_static='-Bstatic'
6102 lt_prog_compiler_pic='-pic'
6103 lt_prog_compiler_static='-Bstatic'
6107 lt_prog_compiler_can_build_shared=no
6112 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6113 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6116 # Check to make sure the PIC flag actually works.
6118 if test -n "$lt_prog_compiler_pic"; then
6119 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6120 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6121 if test "${lt_prog_compiler_pic_works+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 lt_prog_compiler_pic_works=no
6125 ac_outfile=conftest.$ac_objext
6126 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6127 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6128 # Insert the option either (1) after the last *FLAGS variable, or
6129 # (2) before a word containing "conftest.", or (3) at the end.
6130 # Note that $ac_compile itself does not contain backslashes and begins
6131 # with a dollar sign (not a hyphen), so the echo should work correctly.
6132 # The option is referenced via a variable to avoid confusing sed.
6133 lt_compile=`echo "$ac_compile" | $SED \
6134 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6136 -e 's:$: $lt_compiler_flag:'`
6137 (eval echo "\"\$as_me:6137: $lt_compile\"" >&5)
6138 (eval "$lt_compile" 2>conftest.err)
6140 cat conftest.err >&5
6141 echo "$as_me:6141: \$? = $ac_status" >&5
6142 if (exit $ac_status) && test -s "$ac_outfile"; then
6143 # The compiler can only warn and ignore the option if not recognized
6144 # So say no if there are warnings
6145 if test ! -s conftest.err; then
6146 lt_prog_compiler_pic_works=yes
6152 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6153 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6155 if test x"$lt_prog_compiler_pic_works" = xyes; then
6156 case $lt_prog_compiler_pic in
6158 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6161 lt_prog_compiler_pic=
6162 lt_prog_compiler_can_build_shared=no
6167 # For platforms which do not support PIC, -DPIC is meaningless:
6169 lt_prog_compiler_pic=
6172 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6176 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6177 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6178 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 lt_cv_prog_compiler_c_o=no
6182 $rm -r conftest 2>/dev/null
6186 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6188 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6189 # that will create temporary files in the current directory regardless of
6190 # the output directory. Thus, making CWD read-only will cause this test
6191 # to fail, enabling locking or at least warning the user not to do parallel
6195 lt_compiler_flag="-o out/conftest2.$ac_objext"
6196 # Insert the option either (1) after the last *FLAGS variable, or
6197 # (2) before a word containing "conftest.", or (3) at the end.
6198 # Note that $ac_compile itself does not contain backslashes and begins
6199 # with a dollar sign (not a hyphen), so the echo should work correctly.
6200 lt_compile=`echo "$ac_compile" | $SED \
6201 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6203 -e 's:$: $lt_compiler_flag:'`
6204 (eval echo "\"\$as_me:6204: $lt_compile\"" >&5)
6205 (eval "$lt_compile" 2>out/conftest.err)
6207 cat out/conftest.err >&5
6208 echo "$as_me:6208: \$? = $ac_status" >&5
6209 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6211 # The compiler can only warn and ignore the option if not recognized
6212 # So say no if there are warnings
6213 if test ! -s out/conftest.err; then
6214 lt_cv_prog_compiler_c_o=yes
6225 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6226 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6229 hard_links="nottested"
6230 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6231 # do not overwrite the value of need_locks provided by the user
6232 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6233 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6236 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6238 ln conftest.a conftest.b 2>&5 || hard_links=no
6239 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6240 echo "$as_me:$LINENO: result: $hard_links" >&5
6241 echo "${ECHO_T}$hard_links" >&6
6242 if test "$hard_links" = no; then
6243 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6244 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6251 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6252 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6255 allow_undefined_flag=
6256 enable_shared_with_static_runtimes=no
6258 archive_expsym_cmds=
6259 old_archive_From_new_cmds=
6260 old_archive_from_expsyms_cmds=
6261 export_dynamic_flag_spec=
6262 whole_archive_flag_spec=
6263 thread_safe_flag_spec=
6264 hardcode_libdir_flag_spec=
6265 hardcode_libdir_flag_spec_ld=
6266 hardcode_libdir_separator=
6269 hardcode_shlibpath_var=unsupported
6270 link_all_deplibs=unknown
6271 hardcode_automatic=no
6274 always_export_symbols=no
6275 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6276 # include_expsyms should be a list of space-separated symbols to be *always*
6277 # included in the symbol list
6279 # exclude_expsyms can be an extended regexp of symbols to exclude
6280 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6281 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6282 # as well as any symbol that contains `d'.
6283 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6284 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6285 # platforms (ab)use it in PIC code, but their linkers get confused if
6286 # the symbol is explicitly referenced. Since portable code cannot
6287 # rely on this symbol name, it's probably fine to never include it in
6288 # preloaded symbol tables.
6289 extract_expsyms_cmds=
6292 cygwin* | mingw* | pw32*)
6293 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6294 # When not using gcc, we currently assume that we are using
6295 # Microsoft Visual C++.
6296 if test "$GCC" != yes; then
6306 if test "$with_gnu_ld" = yes; then
6307 # If archive_cmds runs LD, not CC, wlarc should be empty
6310 # See if GNU ld supports shared libraries.
6312 aix3* | aix4* | aix5*)
6313 # On AIX/PPC, the GNU linker is very broken
6314 if test "$host_cpu" != ia64; then
6318 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6319 *** to be unable to reliably create shared libraries on AIX.
6320 *** Therefore, libtool is disabling shared libraries support. If you
6321 *** really care for shared libraries, you may want to modify your PATH
6322 *** so that a non-GNU linker is found, and then restart.
6329 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)'
6330 hardcode_libdir_flag_spec='-L$libdir'
6331 hardcode_minus_L=yes
6333 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6334 # that the semantics of dynamic libraries on AmigaOS, at least up
6335 # to version 4, is to share data among multiple programs linked
6336 # with the same dynamic library. Since this doesn't match the
6337 # behavior of shared libraries on other platforms, we can't use
6343 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6344 allow_undefined_flag=unsupported
6345 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6346 # support --undefined. This deserves some investigation. FIXME
6347 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6353 cygwin* | mingw* | pw32*)
6354 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6355 # as there is no search path for DLLs.
6356 hardcode_libdir_flag_spec='-L$libdir'
6357 allow_undefined_flag=unsupported
6358 always_export_symbols=no
6359 enable_shared_with_static_runtimes=yes
6360 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6362 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6364 # If the export-symbols file already is a .def file (1st line
6365 # is EXPORTS), use it as is; otherwise, prepend...
6366 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6367 cp $export_symbols $output_objdir/$soname.def;
6369 echo EXPORTS > $output_objdir/$soname.def;
6370 cat $export_symbols >> $output_objdir/$soname.def;
6372 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6379 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6380 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6389 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6393 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6394 *** create shared libraries on Solaris systems. Therefore, libtool
6395 *** is disabling shared libraries support. We urge you to upgrade GNU
6396 *** binutils to release 2.9.1 or newer. Another option is to modify
6397 *** your PATH or compiler configuration so that the native linker is
6398 *** used, and then restart.
6401 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6403 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6410 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6413 hardcode_shlibpath_var=no
6417 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6419 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6426 if test "$ld_shlibs" = yes; then
6427 runpath_var=LD_RUN_PATH
6428 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6429 export_dynamic_flag_spec='${wl}--export-dynamic'
6430 # ancient GNU ld didn't support --whole-archive et. al.
6431 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6432 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6434 whole_archive_flag_spec=
6438 # PORTME fill in a description of your system's linker (not GNU ld)
6441 allow_undefined_flag=unsupported
6442 always_export_symbols=yes
6443 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'
6444 # Note: this linker hardcodes the directories in LIBPATH if there
6445 # are no directories specified by -L.
6446 hardcode_minus_L=yes
6447 if test "$GCC" = yes && test -z "$link_static_flag"; then
6448 # Neither direct hardcoding nor static linking is supported with a
6450 hardcode_direct=unsupported
6455 if test "$host_cpu" = ia64; then
6456 # On IA64, the linker does run time linking by default, so we don't
6457 # have to do anything special.
6458 aix_use_runtimelinking=no
6459 exp_sym_flag='-Bexport'
6462 # If we're using GNU nm, then we don't want the "-C" option.
6463 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6464 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6465 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'
6467 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'
6469 aix_use_runtimelinking=no
6471 # Test if we are trying to use run time linking or normal
6472 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6473 # need to do runtime linking.
6474 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6475 for ld_flag in $LDFLAGS; do
6476 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6477 aix_use_runtimelinking=yes
6483 exp_sym_flag='-bexport'
6484 no_entry_flag='-bnoentry'
6487 # When large executables or shared objects are built, AIX ld can
6488 # have problems creating the table of contents. If linking a library
6489 # or program results in "error TOC overflow" add -mminimal-toc to
6490 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6491 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6495 hardcode_libdir_separator=':'
6496 link_all_deplibs=yes
6498 if test "$GCC" = yes; then
6499 case $host_os in aix4.012|aix4.012.*)
6500 # We only want to do this on AIX 4.2 and lower, the check
6501 # below for broken collect2 doesn't work under 4.3+
6502 collect2name=`${CC} -print-prog-name=collect2`
6503 if test -f "$collect2name" && \
6504 strings "$collect2name" | grep resolve_lib_name >/dev/null
6506 # We have reworked collect2
6509 # We have old collect2
6510 hardcode_direct=unsupported
6511 # It fails to find uninstalled libraries when the uninstalled
6512 # path is not listed in the libpath. Setting hardcode_minus_L
6513 # to unsupported forces relinking
6514 hardcode_minus_L=yes
6515 hardcode_libdir_flag_spec='-L$libdir'
6516 hardcode_libdir_separator=
6519 shared_flag='-shared'
6522 if test "$host_cpu" = ia64; then
6523 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6524 # chokes on -Wl,-G. The following line is correct:
6527 if test "$aix_use_runtimelinking" = yes; then
6528 shared_flag='${wl}-G'
6530 shared_flag='${wl}-bM:SRE'
6535 # It seems that -bexpall does not export symbols beginning with
6536 # underscore (_), so it is better to generate a list of symbols to export.
6537 always_export_symbols=yes
6538 if test "$aix_use_runtimelinking" = yes; then
6539 # Warning - without using the other runtime loading flags (-brtl),
6540 # -berok will link without error, but may produce a broken library.
6541 allow_undefined_flag='-berok'
6542 # Determine the default libpath from the value encoded in an empty executable.
6543 cat >conftest.$ac_ext <<_ACEOF
6544 #line $LINENO "configure"
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h. */
6559 rm -f conftest.$ac_objext conftest$ac_exeext
6560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6561 (eval $ac_link) 2>&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } &&
6565 { ac_try='test -s conftest$ac_exeext'
6566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; }; then
6572 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6574 # Check for a 64-bit object if we didn't find anything.
6575 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; }
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6585 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6586 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"
6588 if test "$host_cpu" = ia64; then
6589 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6590 allow_undefined_flag="-z nodefs"
6591 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"
6593 # Determine the default libpath from the value encoded in an empty executable.
6594 cat >conftest.$ac_ext <<_ACEOF
6595 #line $LINENO "configure"
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6610 rm -f conftest.$ac_objext conftest$ac_exeext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6612 (eval $ac_link) 2>&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -s conftest$ac_exeext'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; }; then
6623 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6625 # Check for a 64-bit object if we didn't find anything.
6626 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; }
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6634 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6636 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6637 # Warning - without using the other run time loading flags,
6638 # -berok will link without error, but may produce a broken library.
6639 no_undefined_flag=' ${wl}-bernotok'
6640 allow_undefined_flag=' ${wl}-berok'
6641 # -bexpall does not export symbols beginning with underscore (_)
6642 always_export_symbols=yes
6643 # Exported symbols can be pulled into shared objects from archives
6644 whole_archive_flag_spec=' '
6645 archive_cmds_need_lc=yes
6646 # This is similar to how AIX traditionally builds it's shared libraries.
6647 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'
6653 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)'
6654 hardcode_libdir_flag_spec='-L$libdir'
6655 hardcode_minus_L=yes
6656 # see comment about different semantics on the GNU ld section
6661 export_dynamic_flag_spec=-rdynamic
6664 cygwin* | mingw* | pw32*)
6665 # When not using gcc, we currently assume that we are using
6666 # Microsoft Visual C++.
6667 # hardcode_libdir_flag_spec is actually meaningless, as there is
6668 # no search path for DLLs.
6669 hardcode_libdir_flag_spec=' '
6670 allow_undefined_flag=unsupported
6671 # Tell ltmain to make .lib files, not .a files.
6673 # Tell ltmain to make .dll files, not .so files.
6675 # FIXME: Setting linknames here is a bad hack.
6676 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6677 # The linker will automatically build a .lib file if we build a DLL.
6678 old_archive_From_new_cmds='true'
6679 # FIXME: Should let the user specify the lib program.
6680 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6681 fix_srcfile_path='`cygpath -w "$srcfile"`'
6682 enable_shared_with_static_runtimes=yes
6685 darwin* | rhapsody*)
6686 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6687 archive_cmds_need_lc=no
6689 rhapsody* | darwin1.[012])
6690 allow_undefined_flag='-undefined suppress'
6693 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6696 # FIXME: Relying on posixy $() will cause problems for
6697 # cross-compilation, but unfortunately the echo tests do not
6698 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6699 # `"' quotes if we put them in here... so don't!
6700 lt_int_apple_cc_single_mod=no
6701 output_verbose_link_cmd='echo'
6702 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6703 lt_int_apple_cc_single_mod=yes
6705 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6706 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6708 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'
6710 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6711 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6712 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6713 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}'
6715 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}'
6717 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}'
6719 hardcode_automatic=yes
6720 hardcode_shlibpath_var=unsupported
6721 whole_archive_flag_spec='-all_load $convenience'
6722 link_all_deplibs=yes
6727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6728 hardcode_libdir_flag_spec='-L$libdir'
6729 hardcode_shlibpath_var=no
6736 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6737 # support. Future versions do this automatically, but an explicit c++rt0.o
6738 # does not break anything, and helps significantly (at the cost of a little
6741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6742 hardcode_libdir_flag_spec='-R$libdir'
6744 hardcode_shlibpath_var=no
6747 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6749 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6751 hardcode_minus_L=yes
6752 hardcode_shlibpath_var=no
6755 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6757 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6758 hardcode_libdir_flag_spec='-R$libdir'
6760 hardcode_shlibpath_var=no
6764 if test "$GCC" = yes; then
6765 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'
6767 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'
6769 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6770 hardcode_libdir_separator=:
6773 # hardcode_minus_L: Not really in the search PATH,
6774 # but as the default location of the library.
6775 hardcode_minus_L=yes
6776 export_dynamic_flag_spec='${wl}-E'
6780 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6783 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6786 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6792 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6795 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6799 if test "$with_gnu_ld" = no; then
6802 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6803 hardcode_libdir_flag_spec_ld='+b $libdir'
6804 hardcode_libdir_separator=:
6806 hardcode_shlibpath_var=no
6809 hardcode_libdir_flag_spec='-L$libdir'
6811 hardcode_shlibpath_var=no
6813 # hardcode_minus_L: Not really in the search PATH,
6814 # but as the default location of the library.
6815 hardcode_minus_L=yes
6818 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6819 hardcode_libdir_separator=:
6821 export_dynamic_flag_spec='${wl}-E'
6823 # hardcode_minus_L: Not really in the search PATH,
6824 # but as the default location of the library.
6825 hardcode_minus_L=yes
6831 irix5* | irix6* | nonstopux*)
6832 if test "$GCC" = yes; then
6833 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'
6835 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'
6836 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6838 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6839 hardcode_libdir_separator=:
6840 link_all_deplibs=yes
6844 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6847 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6849 hardcode_libdir_flag_spec='-R$libdir'
6851 hardcode_shlibpath_var=no
6855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6858 hardcode_libdir_separator=:
6859 hardcode_shlibpath_var=no
6864 hardcode_shlibpath_var=no
6865 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6866 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6867 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6868 export_dynamic_flag_spec='${wl}-E'
6871 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6872 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6873 hardcode_libdir_flag_spec='-R$libdir'
6876 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6877 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6884 hardcode_libdir_flag_spec='-L$libdir'
6885 hardcode_minus_L=yes
6886 allow_undefined_flag=unsupported
6887 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'
6888 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6892 if test "$GCC" = yes; then
6893 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6894 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'
6896 allow_undefined_flag=' -expect_unresolved \*'
6897 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'
6899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6900 hardcode_libdir_separator=:
6903 osf4* | osf5*) # as osf3* with the addition of -msym flag
6904 if test "$GCC" = yes; then
6905 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6906 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'
6907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6909 allow_undefined_flag=' -expect_unresolved \*'
6910 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'
6911 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6912 $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'
6914 # Both c and cxx compiler support -rpath directly
6915 hardcode_libdir_flag_spec='-rpath $libdir'
6917 hardcode_libdir_separator=:
6921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6922 hardcode_shlibpath_var=no
6923 export_dynamic_flag_spec='${wl}-Bexport'
6924 runpath_var=LD_RUN_PATH
6925 hardcode_runpath_var=yes
6929 no_undefined_flag=' -z text'
6930 if test "$GCC" = yes; then
6931 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6932 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6933 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6935 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6936 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6937 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6939 hardcode_libdir_flag_spec='-R$libdir'
6940 hardcode_shlibpath_var=no
6942 solaris2.[0-5] | solaris2.[0-5].*) ;;
6943 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6944 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6946 link_all_deplibs=yes
6950 if test "x$host_vendor" = xsequent; then
6951 # Use $CC to link under sequent, because it throws in some extra .o
6952 # files that make .init and .fini sections work.
6953 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6955 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6957 hardcode_libdir_flag_spec='-L$libdir'
6959 hardcode_minus_L=yes
6960 hardcode_shlibpath_var=no
6964 case $host_vendor in
6966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6967 hardcode_direct=yes # is this really true???
6970 ## LD is ld it makes a PLAMLIB
6971 ## CC just makes a GrossModule.
6972 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6973 reload_cmds='$CC -r -o $output$reload_objs'
6977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6978 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6981 runpath_var='LD_RUN_PATH'
6982 hardcode_shlibpath_var=no
6986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6987 hardcode_shlibpath_var=no
6988 export_dynamic_flag_spec='-Bexport'
6992 if test -d /usr/nec; then
6993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6994 hardcode_shlibpath_var=no
6995 runpath_var=LD_RUN_PATH
6996 hardcode_runpath_var=yes
7002 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7005 hardcode_shlibpath_var=no
7006 hardcode_runpath_var=yes
7007 runpath_var=LD_RUN_PATH
7010 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7011 no_undefined_flag='${wl}-z ${wl}text'
7012 if test "$GCC" = yes; then
7013 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7015 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7017 runpath_var='LD_RUN_PATH'
7018 hardcode_shlibpath_var=no
7022 no_undefined_flag=' -z text'
7023 # $CC -shared without GNU ld will not create a library from C++
7024 # object files and a static libstdc++, better avoid it by now
7025 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7026 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7027 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7028 hardcode_libdir_flag_spec=
7029 hardcode_shlibpath_var=no
7030 runpath_var='LD_RUN_PATH'
7034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7035 hardcode_libdir_flag_spec='-L$libdir'
7036 hardcode_shlibpath_var=no
7045 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7046 echo "${ECHO_T}$ld_shlibs" >&6
7047 test "$ld_shlibs" = no && can_build_shared=no
7049 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7050 if test "$GCC" = yes; then
7051 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7055 # Do we need to explicitly link libc?
7057 case "x$archive_cmds_need_lc" in
7059 # Assume -lc should be added
7060 archive_cmds_need_lc=yes
7062 if test "$enable_shared" = yes && test "$GCC" = yes; then
7063 case $archive_cmds in
7065 # FIXME: we may have to deal with multi-command sequences.
7068 # Test whether the compiler implicitly links with -lc since on some
7069 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7070 # to ld, don't add -lc before -lgcc.
7071 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7072 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7074 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077 (eval $ac_compile) 2>&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } 2>conftest.err; then
7083 libobjs=conftest.$ac_objext
7085 wl=$lt_prog_compiler_wl
7091 lt_save_allow_undefined_flag=$allow_undefined_flag
7092 allow_undefined_flag=
7093 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7094 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }
7099 archive_cmds_need_lc=no
7101 archive_cmds_need_lc=yes
7103 allow_undefined_flag=$lt_save_allow_undefined_flag
7105 cat conftest.err 1>&5
7108 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7109 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7116 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7117 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7119 if test -n "$hardcode_libdir_flag_spec" || \
7120 test -n "$runpath_var " || \
7121 test "X$hardcode_automatic"="Xyes" ; then
7123 # We can hardcode non-existant directories.
7124 if test "$hardcode_direct" != no &&
7125 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7126 # have to relink, otherwise we might link with an installed library
7127 # when we should be linking with a yet-to-be-installed one
7128 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7129 test "$hardcode_minus_L" != no; then
7130 # Linking always hardcodes the temporary library directory.
7131 hardcode_action=relink
7133 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7134 hardcode_action=immediate
7137 # We cannot hardcode anything, or else we can only hardcode existing
7139 hardcode_action=unsupported
7141 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7142 echo "${ECHO_T}$hardcode_action" >&6
7144 if test "$hardcode_action" = relink; then
7145 # Fast installation is not supported
7146 enable_fast_install=no
7147 elif test "$shlibpath_overrides_runpath" = yes ||
7148 test "$enable_shared" = no; then
7149 # Fast installation is not necessary
7150 enable_fast_install=needless
7155 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7156 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7157 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7158 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7159 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7160 echo "$as_me:$LINENO: result: yes" >&5
7161 echo "${ECHO_T}yes" >&6
7163 # FIXME - insert some real tests, host_os isn't really good enough
7166 if test -n "$STRIP" ; then
7167 striplib="$STRIP -x"
7168 echo "$as_me:$LINENO: result: yes" >&5
7169 echo "${ECHO_T}yes" >&6
7171 echo "$as_me:$LINENO: result: no" >&5
7172 echo "${ECHO_T}no" >&6
7176 echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6
7182 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7183 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7185 libname_spec='lib$name'
7193 shlibpath_overrides_runpath=unknown
7195 dynamic_linker="$host_os ld.so"
7196 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7197 if test "$GCC" = yes; then
7198 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7199 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7200 # if the path contains ";" then we assume it to be the separator
7201 # otherwise default to the standard path separator (i.e. ":") - it is
7202 # assumed that no part of a normal pathname contains ";" but that should
7203 # okay in the real world where ";" in dirpaths is itself problematic.
7204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7209 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7211 need_lib_prefix=unknown
7212 hardcode_into_libs=no
7214 # when you set need_version to no, make sure it does not cause -set_version
7215 # flags to be left without arguments
7216 need_version=unknown
7221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7222 shlibpath_var=LIBPATH
7224 # AIX 3 has no versioning support, so we append a major version to the name.
7225 soname_spec='${libname}${release}${shared_ext}$major'
7232 hardcode_into_libs=yes
7233 if test "$host_cpu" = ia64; then
7234 # AIX 5 supports IA64
7235 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7236 shlibpath_var=LD_LIBRARY_PATH
7238 # With GCC up to 2.95.x, collect2 would create an import file
7239 # for dependence libraries. The import file would start with
7240 # the line `#! .'. This would cause the generated library to
7241 # depend on `.', always an invalid library. This was fixed in
7242 # development snapshots of GCC prior to 3.0.
7244 aix4 | aix4.[01] | aix4.[01].*)
7245 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7247 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7254 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7255 # soname into executable. Probably we can add versioning support to
7256 # collect2, so additional links can be useful in future.
7257 if test "$aix_use_runtimelinking" = yes; then
7258 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7259 # instead of lib<name>.a to let people know that these are not
7260 # typical AIX shared libraries.
7261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7263 # We preserve .a as extension for shared libraries through AIX4.2
7264 # and later when we are not doing run time linking.
7265 library_names_spec='${libname}${release}.a $libname.a'
7266 soname_spec='${libname}${release}${shared_ext}$major'
7268 shlibpath_var=LIBPATH
7273 library_names_spec='$libname.ixlibrary $libname.a'
7274 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7275 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'
7279 library_names_spec='${libname}${shared_ext}'
7280 dynamic_linker="$host_os ld.so"
7281 shlibpath_var=LIBRARY_PATH
7287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7288 soname_spec='${libname}${release}${shared_ext}$major'
7289 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7290 shlibpath_var=LD_LIBRARY_PATH
7291 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7292 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7293 # the default ld.so.conf also contains /usr/contrib/lib and
7294 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7295 # libtool to hard-code these into programs
7298 cygwin* | mingw* | pw32*)
7299 version_type=windows
7304 case $GCC,$host_os in
7305 yes,cygwin* | yes,mingw* | yes,pw32*)
7306 library_names_spec='$libname.dll.a'
7307 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7308 postinstall_cmds='base_file=`basename \${file}`~
7309 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7310 dldir=$destdir/`dirname \$dlpath`~
7311 test -d \$dldir || mkdir -p \$dldir~
7312 $install_prog $dir/$dlname \$dldir/$dlname'
7313 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7314 dlpath=$dir/\$dldll~
7316 shlibpath_overrides_runpath=yes
7320 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7321 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7322 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7325 # MinGW DLLs use traditional 'lib' prefix
7326 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7327 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7328 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7329 # It is most probably a Windows format PATH printed by
7330 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7331 # path with ; separators, and with drive letters. We can handle the
7332 # drive letters (cygwin fileutils understands them), so leave them,
7333 # especially as we might pass files found there to a mingw objdump,
7334 # which wouldn't understand a cygwinified path. Ahh.
7335 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7337 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7341 # pw32 DLLs use 'pw' prefix rather than 'lib'
7342 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7348 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7351 dynamic_linker='Win32 ld.exe'
7352 # FIXME: first we should search . and the directory the executable is in
7356 darwin* | rhapsody*)
7357 dynamic_linker="$host_os dyld"
7361 # FIXME: Relying on posixy $() will cause problems for
7362 # cross-compilation, but unfortunately the echo tests do not
7363 # yet detect zsh echo's removal of \ escapes.
7364 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7365 soname_spec='${libname}${release}${major}$shared_ext'
7366 shlibpath_overrides_runpath=yes
7367 shlibpath_var=DYLD_LIBRARY_PATH
7368 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7369 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7370 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7371 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"`
7373 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7381 soname_spec='${libname}${release}${shared_ext}$major'
7382 shlibpath_var=LD_LIBRARY_PATH
7390 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7391 version_type=freebsd-$objformat
7392 case $version_type in
7394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7399 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7403 shlibpath_var=LD_LIBRARY_PATH
7406 shlibpath_overrides_runpath=yes
7408 freebsd3.01* | freebsdelf3.01*)
7409 shlibpath_overrides_runpath=yes
7410 hardcode_into_libs=yes
7413 shlibpath_overrides_runpath=no
7414 hardcode_into_libs=yes
7423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7424 soname_spec='${libname}${release}${shared_ext}$major'
7425 shlibpath_var=LD_LIBRARY_PATH
7426 hardcode_into_libs=yes
7429 hpux9* | hpux10* | hpux11*)
7430 # Give a soname corresponding to the major version so that dld.sl refuses to
7431 # link against other versions.
7438 hardcode_into_libs=yes
7439 dynamic_linker="$host_os dld.so"
7440 shlibpath_var=LD_LIBRARY_PATH
7441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7443 soname_spec='${libname}${release}${shared_ext}$major'
7444 if test "X$HPUX_IA64_MODE" = X32; then
7445 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7447 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7453 hardcode_into_libs=yes
7454 dynamic_linker="$host_os dld.sl"
7455 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7458 soname_spec='${libname}${release}${shared_ext}$major'
7459 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7464 dynamic_linker="$host_os dld.sl"
7465 shlibpath_var=SHLIB_PATH
7466 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7468 soname_spec='${libname}${release}${shared_ext}$major'
7471 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7472 postinstall_cmds='chmod 555 $lib'
7475 irix5* | irix6* | nonstopux*)
7477 nonstopux*) version_type=nonstopux ;;
7479 if test "$lt_cv_prog_gnu_ld" = yes; then
7487 soname_spec='${libname}${release}${shared_ext}$major'
7488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7490 irix5* | nonstopux*)
7494 case $LD in # libtool.m4 will add one of these switches to LD
7495 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7496 libsuff= shlibsuff= libmagic=32-bit;;
7497 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7498 libsuff=32 shlibsuff=N32 libmagic=N32;;
7499 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7500 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7501 *) libsuff= shlibsuff= libmagic=never-match;;
7505 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7506 shlibpath_overrides_runpath=no
7507 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7508 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7509 hardcode_into_libs=yes
7512 # No shared lib support for Linux oldld, aout, or coff.
7513 linux*oldld* | linux*aout* | linux*coff*)
7517 # This must be Linux ELF.
7522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7523 soname_spec='${libname}${release}${shared_ext}$major'
7524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7525 shlibpath_var=LD_LIBRARY_PATH
7526 shlibpath_overrides_runpath=no
7527 # This implies no fast_install, which is unacceptable.
7528 # Some rework will be needed to allow for fast_install
7529 # before this can be enabled.
7530 hardcode_into_libs=yes
7532 # We used to test for /lib/ld.so.1 and disable shared libraries on
7533 # powerpc, because MkLinux only supported shared libraries with the
7534 # GNU dynamic linker. Since this was broken with cross compilers,
7535 # most powerpc-linux boxes support dynamic linking these days and
7536 # people can always --disable-shared, the test was removed, and we
7537 # assume the GNU/Linux dynamic linker is in use.
7538 dynamic_linker='GNU/Linux ld.so'
7545 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7548 dynamic_linker='NetBSD (a.out) ld.so'
7550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7551 soname_spec='${libname}${release}${shared_ext}$major'
7552 dynamic_linker='NetBSD ld.elf_so'
7554 shlibpath_var=LD_LIBRARY_PATH
7555 shlibpath_overrides_runpath=yes
7556 hardcode_into_libs=yes
7561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7562 shlibpath_var=LD_LIBRARY_PATH
7563 shlibpath_overrides_runpath=yes
7570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7571 soname_spec='${libname}${release}${shared_ext}$major'
7572 shlibpath_var=LD_LIBRARY_PATH
7573 shlibpath_overrides_runpath=yes
7580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7582 shlibpath_var=LD_LIBRARY_PATH
7583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7585 openbsd2.[89] | openbsd2.[89].*)
7586 shlibpath_overrides_runpath=no
7589 shlibpath_overrides_runpath=yes
7593 shlibpath_overrides_runpath=yes
7598 libname_spec='$name'
7601 library_names_spec='$libname${shared_ext} $libname.a'
7602 dynamic_linker='OS/2 ld.exe'
7603 shlibpath_var=LIBPATH
7606 osf3* | osf4* | osf5*)
7610 soname_spec='${libname}${release}${shared_ext}$major'
7611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7612 shlibpath_var=LD_LIBRARY_PATH
7613 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7614 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7619 soname_spec='${libname}${release}${shared_ext}$major'
7620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7621 shlibpath_var=LD_LIBRARY_PATH
7628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7629 soname_spec='${libname}${release}${shared_ext}$major'
7630 shlibpath_var=LD_LIBRARY_PATH
7631 shlibpath_overrides_runpath=yes
7632 hardcode_into_libs=yes
7633 # ldd complains unless libraries are executable
7634 postinstall_cmds='chmod +x $lib'
7639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7640 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7641 shlibpath_var=LD_LIBRARY_PATH
7642 shlibpath_overrides_runpath=yes
7643 if test "$with_gnu_ld" = yes; then
7649 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7652 soname_spec='${libname}${release}${shared_ext}$major'
7653 shlibpath_var=LD_LIBRARY_PATH
7654 case $host_vendor in
7656 shlibpath_overrides_runpath=no
7658 export_dynamic_flag_spec='${wl}-Blargedynsym'
7659 runpath_var=LD_RUN_PATH
7667 shlibpath_overrides_runpath=no
7668 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7674 if test -d /usr/nec ;then
7676 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7677 soname_spec='$libname${shared_ext}.$major'
7678 shlibpath_var=LD_LIBRARY_PATH
7684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7685 soname_spec='${libname}${release}${shared_ext}$major'
7686 shlibpath_var=LD_LIBRARY_PATH
7693 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7694 echo "${ECHO_T}$dynamic_linker" >&6
7695 test "$dynamic_linker" = no && can_build_shared=no
7697 if test "x$enable_dlopen" != xyes; then
7698 enable_dlopen=unknown
7699 enable_dlopen_self=unknown
7700 enable_dlopen_self_static=unknown
7707 lt_cv_dlopen="load_add_on"
7709 lt_cv_dlopen_self=yes
7713 lt_cv_dlopen="LoadLibrary"
7718 lt_cv_dlopen="dlopen"
7723 # if libdl is installed we need to link against it
7724 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7725 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7726 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 ac_check_lib_save_LIBS=$LIBS
7731 cat >conftest.$ac_ext <<_ACEOF
7732 #line $LINENO "configure"
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7739 /* Override any gcc2 internal prototype to avoid an error. */
7743 /* We use char because int might match the return type of a gcc2
7744 builtin and then its argument prototype would still apply. */
7754 rm -f conftest.$ac_objext conftest$ac_exeext
7755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7756 (eval $ac_link) 2>&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } &&
7760 { ac_try='test -s conftest$ac_exeext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_cv_lib_dl_dlopen=yes
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7771 ac_cv_lib_dl_dlopen=no
7773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7774 LIBS=$ac_check_lib_save_LIBS
7776 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7777 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7778 if test $ac_cv_lib_dl_dlopen = yes; then
7779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7784 lt_cv_dlopen_self=yes
7791 echo "$as_me:$LINENO: checking for shl_load" >&5
7792 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7793 if test "${ac_cv_func_shl_load+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 cat >conftest.$ac_ext <<_ACEOF
7797 #line $LINENO "configure"
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7803 /* System header to define __stub macros and hopefully few prototypes,
7804 which can conflict with char shl_load (); below.
7805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7806 <limits.h> exists even on freestanding compilers. */
7808 # include <limits.h>
7810 # include <assert.h>
7812 /* Override any gcc2 internal prototype to avoid an error. */
7817 /* We use char because int might match the return type of a gcc2
7818 builtin and then its argument prototype would still apply. */
7820 /* The GNU C library defines this for functions which it implements
7821 to always fail with ENOSYS. Some functions are actually named
7822 something starting with __ and the normal name is an alias. */
7823 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7826 char (*f) () = shl_load;
7835 return f != shl_load;
7840 rm -f conftest.$ac_objext conftest$ac_exeext
7841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7842 (eval $ac_link) 2>&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } &&
7846 { ac_try='test -s conftest$ac_exeext'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7852 ac_cv_func_shl_load=yes
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7857 ac_cv_func_shl_load=no
7859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7861 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7862 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7863 if test $ac_cv_func_shl_load = yes; then
7864 lt_cv_dlopen="shl_load"
7866 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7867 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7868 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 ac_check_lib_save_LIBS=$LIBS
7873 cat >conftest.$ac_ext <<_ACEOF
7874 #line $LINENO "configure"
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7881 /* Override any gcc2 internal prototype to avoid an error. */
7885 /* We use char because int might match the return type of a gcc2
7886 builtin and then its argument prototype would still apply. */
7896 rm -f conftest.$ac_objext conftest$ac_exeext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7898 (eval $ac_link) 2>&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } &&
7902 { ac_try='test -s conftest$ac_exeext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
7908 ac_cv_lib_dld_shl_load=yes
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7913 ac_cv_lib_dld_shl_load=no
7915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7916 LIBS=$ac_check_lib_save_LIBS
7918 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7919 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7920 if test $ac_cv_lib_dld_shl_load = yes; then
7921 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7923 echo "$as_me:$LINENO: checking for dlopen" >&5
7924 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7925 if test "${ac_cv_func_dlopen+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 cat >conftest.$ac_ext <<_ACEOF
7929 #line $LINENO "configure"
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7935 /* System header to define __stub macros and hopefully few prototypes,
7936 which can conflict with char dlopen (); below.
7937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7938 <limits.h> exists even on freestanding compilers. */
7940 # include <limits.h>
7942 # include <assert.h>
7944 /* Override any gcc2 internal prototype to avoid an error. */
7949 /* We use char because int might match the return type of a gcc2
7950 builtin and then its argument prototype would still apply. */
7952 /* The GNU C library defines this for functions which it implements
7953 to always fail with ENOSYS. Some functions are actually named
7954 something starting with __ and the normal name is an alias. */
7955 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7958 char (*f) () = dlopen;
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7974 (eval $ac_link) 2>&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -s conftest$ac_exeext'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 ac_cv_func_dlopen=yes
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7989 ac_cv_func_dlopen=no
7991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7993 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7994 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7995 if test $ac_cv_func_dlopen = yes; then
7996 lt_cv_dlopen="dlopen"
7998 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7999 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8000 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 ac_check_lib_save_LIBS=$LIBS
8005 cat >conftest.$ac_ext <<_ACEOF
8006 #line $LINENO "configure"
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8013 /* Override any gcc2 internal prototype to avoid an error. */
8017 /* We use char because int might match the return type of a gcc2
8018 builtin and then its argument prototype would still apply. */
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8030 (eval $ac_link) 2>&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } &&
8034 { ac_try='test -s conftest$ac_exeext'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 ac_cv_lib_dl_dlopen=yes
8042 echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8045 ac_cv_lib_dl_dlopen=no
8047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8048 LIBS=$ac_check_lib_save_LIBS
8050 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8051 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8052 if test $ac_cv_lib_dl_dlopen = yes; then
8053 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8055 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8056 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8057 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 ac_check_lib_save_LIBS=$LIBS
8062 cat >conftest.$ac_ext <<_ACEOF
8063 #line $LINENO "configure"
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8070 /* Override any gcc2 internal prototype to avoid an error. */
8074 /* We use char because int might match the return type of a gcc2
8075 builtin and then its argument prototype would still apply. */
8085 rm -f conftest.$ac_objext conftest$ac_exeext
8086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8087 (eval $ac_link) 2>&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } &&
8091 { ac_try='test -s conftest$ac_exeext'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 ac_cv_lib_svld_dlopen=yes
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8102 ac_cv_lib_svld_dlopen=no
8104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8105 LIBS=$ac_check_lib_save_LIBS
8107 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8108 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8109 if test $ac_cv_lib_svld_dlopen = yes; then
8110 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8112 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8113 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8114 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 ac_check_lib_save_LIBS=$LIBS
8119 cat >conftest.$ac_ext <<_ACEOF
8120 #line $LINENO "configure"
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8127 /* Override any gcc2 internal prototype to avoid an error. */
8131 /* We use char because int might match the return type of a gcc2
8132 builtin and then its argument prototype would still apply. */
8142 rm -f conftest.$ac_objext conftest$ac_exeext
8143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8144 (eval $ac_link) 2>&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } &&
8148 { ac_try='test -s conftest$ac_exeext'
8149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; }; then
8154 ac_cv_lib_dld_dld_link=yes
8156 echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8159 ac_cv_lib_dld_dld_link=no
8161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8162 LIBS=$ac_check_lib_save_LIBS
8164 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8165 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8166 if test $ac_cv_lib_dld_dld_link = yes; then
8167 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8188 if test "x$lt_cv_dlopen" != xno; then
8194 case $lt_cv_dlopen in
8196 save_CPPFLAGS="$CPPFLAGS"
8197 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8199 save_LDFLAGS="$LDFLAGS"
8200 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8203 LIBS="$lt_cv_dlopen_libs $LIBS"
8205 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8206 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8207 if test "${lt_cv_dlopen_self+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 if test "$cross_compiling" = yes; then :
8211 lt_cv_dlopen_self=cross
8213 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8214 lt_status=$lt_dlunknown
8215 cat > conftest.$ac_ext <<EOF
8216 #line 8216 "configure"
8217 #include "confdefs.h"
8226 # define LT_DLGLOBAL RTLD_GLOBAL
8229 # define LT_DLGLOBAL DL_GLOBAL
8231 # define LT_DLGLOBAL 0
8235 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8236 find out it does not work in some platform. */
8237 #ifndef LT_DLLAZY_OR_NOW
8239 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8242 # define LT_DLLAZY_OR_NOW DL_LAZY
8245 # define LT_DLLAZY_OR_NOW RTLD_NOW
8248 # define LT_DLLAZY_OR_NOW DL_NOW
8250 # define LT_DLLAZY_OR_NOW 0
8258 extern "C" void exit (int);
8261 void fnord() { int i=42;}
8264 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8265 int status = $lt_dlunknown;
8269 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8270 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8271 /* dlclose (self); */
8277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8278 (eval $ac_link) 2>&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8282 (./conftest; exit; ) 2>/dev/null
8285 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8286 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8287 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8290 # compilation failed
8291 lt_cv_dlopen_self=no
8298 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8299 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8301 if test "x$lt_cv_dlopen_self" = xyes; then
8302 LDFLAGS="$LDFLAGS $link_static_flag"
8303 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8304 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8305 if test "${lt_cv_dlopen_self_static+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 if test "$cross_compiling" = yes; then :
8309 lt_cv_dlopen_self_static=cross
8311 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8312 lt_status=$lt_dlunknown
8313 cat > conftest.$ac_ext <<EOF
8314 #line 8314 "configure"
8315 #include "confdefs.h"
8324 # define LT_DLGLOBAL RTLD_GLOBAL
8327 # define LT_DLGLOBAL DL_GLOBAL
8329 # define LT_DLGLOBAL 0
8333 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8334 find out it does not work in some platform. */
8335 #ifndef LT_DLLAZY_OR_NOW
8337 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8340 # define LT_DLLAZY_OR_NOW DL_LAZY
8343 # define LT_DLLAZY_OR_NOW RTLD_NOW
8346 # define LT_DLLAZY_OR_NOW DL_NOW
8348 # define LT_DLLAZY_OR_NOW 0
8356 extern "C" void exit (int);
8359 void fnord() { int i=42;}
8362 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8363 int status = $lt_dlunknown;
8367 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8368 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8369 /* dlclose (self); */
8375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8376 (eval $ac_link) 2>&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8380 (./conftest; exit; ) 2>/dev/null
8383 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8384 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8385 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8388 # compilation failed
8389 lt_cv_dlopen_self_static=no
8396 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8397 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8400 CPPFLAGS="$save_CPPFLAGS"
8401 LDFLAGS="$save_LDFLAGS"
8406 case $lt_cv_dlopen_self in
8407 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8408 *) enable_dlopen_self=unknown ;;
8411 case $lt_cv_dlopen_self_static in
8412 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8413 *) enable_dlopen_self_static=unknown ;;
8418 # Report which librarie types wil actually be built
8419 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8420 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8421 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8422 echo "${ECHO_T}$can_build_shared" >&6
8424 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8425 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8426 test "$can_build_shared" = "no" && enable_shared=no
8428 # On AIX, shared libraries and static libraries use the same namespace, and
8429 # are all built from PIC.
8432 test "$enable_shared" = yes && enable_static=no
8433 if test -n "$RANLIB"; then
8434 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8435 postinstall_cmds='$RANLIB $lib'
8440 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8441 test "$enable_shared" = yes && enable_static=no
8444 darwin* | rhapsody*)
8445 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8446 archive_cmds_need_lc=no
8448 rhapsody* | darwin1.[012])
8449 allow_undefined_flag='-undefined suppress'
8452 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8455 # FIXME: Relying on posixy $() will cause problems for
8456 # cross-compilation, but unfortunately the echo tests do not
8457 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8458 # `"' quotes if we put them in here... so don't!
8459 output_verbose_link_cmd='echo'
8460 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8461 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8462 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8463 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}'
8464 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}'
8466 hardcode_automatic=yes
8467 hardcode_shlibpath_var=unsupported
8468 whole_archive_flag_spec='-all_load $convenience'
8469 link_all_deplibs=yes
8473 echo "$as_me:$LINENO: result: $enable_shared" >&5
8474 echo "${ECHO_T}$enable_shared" >&6
8476 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8477 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8478 # Make sure either enable_shared or enable_static is yes.
8479 test "$enable_shared" = yes || enable_static=yes
8480 echo "$as_me:$LINENO: result: $enable_static" >&5
8481 echo "${ECHO_T}$enable_static" >&6
8483 # The else clause should only fire when bootstrapping the
8484 # libtool distribution, otherwise you forgot to ship ltmain.sh
8485 # with your package, and you will get complaints that there are
8486 # no rules to generate ltmain.sh.
8487 if test -f "$ltmain"; then
8488 # See if we are running on zsh, and set the options which allow our commands through
8489 # without removal of \ escapes.
8490 if test -n "${ZSH_VERSION+set}" ; then
8491 setopt NO_GLOB_SUBST
8493 # Now quote all the things that may contain metacharacters while being
8494 # careful not to overquote the AC_SUBSTed values. We take copies of the
8495 # variables and quote the copies for generation of the libtool script.
8496 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8497 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8498 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8499 deplibs_check_method reload_flag reload_cmds need_locks \
8500 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8501 lt_cv_sys_global_symbol_to_c_name_address \
8502 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8503 old_postinstall_cmds old_postuninstall_cmds \
8507 lt_prog_compiler_wl \
8508 lt_prog_compiler_pic \
8509 lt_prog_compiler_static \
8510 lt_prog_compiler_no_builtin_flag \
8511 export_dynamic_flag_spec \
8512 thread_safe_flag_spec \
8513 whole_archive_flag_spec \
8514 enable_shared_with_static_runtimes \
8516 old_archive_from_new_cmds \
8521 compiler_lib_search_path \
8523 archive_expsym_cmds \
8525 postuninstall_cmds \
8526 old_archive_from_expsyms_cmds \
8527 allow_undefined_flag \
8529 export_symbols_cmds \
8530 hardcode_libdir_flag_spec \
8531 hardcode_libdir_flag_spec_ld \
8532 hardcode_libdir_separator \
8533 hardcode_automatic \
8535 module_expsym_cmds \
8536 lt_cv_prog_compiler_c_o \
8541 old_archive_cmds | \
8542 old_archive_from_new_cmds | \
8544 archive_expsym_cmds | \
8546 module_expsym_cmds | \
8547 old_archive_from_expsyms_cmds | \
8548 export_symbols_cmds | \
8549 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8550 postinstall_cmds | postuninstall_cmds | \
8551 old_postinstall_cmds | old_postuninstall_cmds | \
8552 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8553 # Double-quote double-evaled strings.
8554 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8557 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8563 *'\$0 --fallback-echo"')
8564 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8569 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8571 { echo "$as_me:$LINENO: creating $ofile" >&5
8572 echo "$as_me: creating $ofile" >&6;}
8574 cat <<__EOF__ >> "$cfgfile"
8577 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8578 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8579 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8581 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8582 # Free Software Foundation, Inc.
8584 # This file is part of GNU Libtool:
8585 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8587 # This program is free software; you can redistribute it and/or modify
8588 # it under the terms of the GNU General Public License as published by
8589 # the Free Software Foundation; either version 2 of the License, or
8590 # (at your option) any later version.
8592 # This program is distributed in the hope that it will be useful, but
8593 # WITHOUT ANY WARRANTY; without even the implied warranty of
8594 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8595 # General Public License for more details.
8597 # You should have received a copy of the GNU General Public License
8598 # along with this program; if not, write to the Free Software
8599 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8601 # As a special exception to the GNU General Public License, if you
8602 # distribute this file as part of a program that contains a
8603 # configuration script generated by Autoconf, you may include it under
8604 # the same distribution terms that you use for the rest of that program.
8606 # A sed program that does not truncate output.
8609 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8610 Xsed="$SED -e s/^X//"
8612 # The HP-UX ksh and POSIX shell print the target directory to stdout
8614 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8616 # The names of the tagged configurations supported by this script.
8619 # ### BEGIN LIBTOOL CONFIG
8621 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8623 # Shell to use when invoking shell scripts.
8626 # Whether or not to build shared libraries.
8627 build_libtool_libs=$enable_shared
8629 # Whether or not to build static libraries.
8630 build_old_libs=$enable_static
8632 # Whether or not to add -lc for building shared libraries.
8633 build_libtool_need_lc=$archive_cmds_need_lc
8635 # Whether or not to disallow shared libs when runtime libs are static
8636 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8638 # Whether or not to optimize for fast installation.
8639 fast_install=$enable_fast_install
8642 host_alias=$host_alias
8645 # An echo program that does not interpret backslashes.
8650 AR_FLAGS=$lt_AR_FLAGS
8655 # A language-specific compiler.
8658 # Is the compiler the GNU C compiler?
8664 # The linker used to build libraries.
8667 # Whether we need hard or soft links.
8670 # A BSD-compatible nm program.
8673 # A symbol stripping program
8676 # Used to examine libraries when file_magic_cmd begins "file"
8677 MAGIC_CMD=$MAGIC_CMD
8679 # Used on cygwin: DLL creation program.
8682 # Used on cygwin: object dumper.
8685 # Used on cygwin: assembler.
8688 # The name of the directory that contains temporary libtool files.
8691 # How to create reloadable object files.
8692 reload_flag=$lt_reload_flag
8693 reload_cmds=$lt_reload_cmds
8695 # How to pass a linker flag through the compiler.
8696 wl=$lt_lt_prog_compiler_wl
8698 # Object file suffix (normally "o").
8701 # Old archive suffix (normally "a").
8704 # Shared library suffix (normally ".so").
8707 # Executable file suffix (normally "").
8710 # Additional compiler flags for building library objects.
8711 pic_flag=$lt_lt_prog_compiler_pic
8714 # What is the maximum length of a command?
8715 max_cmd_len=$lt_cv_sys_max_cmd_len
8717 # Does compiler simultaneously support -c and -o options?
8718 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8720 # Must we lock files when doing compilation ?
8721 need_locks=$lt_need_locks
8723 # Do we need the lib prefix for modules?
8724 need_lib_prefix=$need_lib_prefix
8726 # Do we need a version for libraries?
8727 need_version=$need_version
8729 # Whether dlopen is supported.
8730 dlopen_support=$enable_dlopen
8732 # Whether dlopen of programs is supported.
8733 dlopen_self=$enable_dlopen_self
8735 # Whether dlopen of statically linked programs is supported.
8736 dlopen_self_static=$enable_dlopen_self_static
8738 # Compiler flag to prevent dynamic linking.
8739 link_static_flag=$lt_lt_prog_compiler_static
8741 # Compiler flag to turn off builtin functions.
8742 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8744 # Compiler flag to allow reflexive dlopens.
8745 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8747 # Compiler flag to generate shared objects directly from archives.
8748 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8750 # Compiler flag to generate thread-safe objects.
8751 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8753 # Library versioning type.
8754 version_type=$version_type
8756 # Format of library name prefix.
8757 libname_spec=$lt_libname_spec
8759 # List of archive names. First name is the real one, the rest are links.
8760 # The last name is the one that the linker finds with -lNAME.
8761 library_names_spec=$lt_library_names_spec
8763 # The coded name of the library, if different from the real name.
8764 soname_spec=$lt_soname_spec
8766 # Commands used to build and install an old-style archive.
8768 old_archive_cmds=$lt_old_archive_cmds
8769 old_postinstall_cmds=$lt_old_postinstall_cmds
8770 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8772 # Create an old-style archive from a shared archive.
8773 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8775 # Create a temporary old-style archive to link instead of a shared archive.
8776 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8778 # Commands used to build and install a shared archive.
8779 archive_cmds=$lt_archive_cmds
8780 archive_expsym_cmds=$lt_archive_expsym_cmds
8781 postinstall_cmds=$lt_postinstall_cmds
8782 postuninstall_cmds=$lt_postuninstall_cmds
8784 # Commands used to build a loadable module (assumed same as above if empty)
8785 module_cmds=$lt_module_cmds
8786 module_expsym_cmds=$lt_module_expsym_cmds
8788 # Commands to strip libraries.
8789 old_striplib=$lt_old_striplib
8790 striplib=$lt_striplib
8792 # Dependencies to place before the objects being linked to create a
8794 predep_objects=$lt_predep_objects
8796 # Dependencies to place after the objects being linked to create a
8798 postdep_objects=$lt_postdep_objects
8800 # Dependencies to place before the objects being linked to create a
8804 # Dependencies to place after the objects being linked to create a
8806 postdeps=$lt_postdeps
8808 # The library search path used internally by the compiler when linking
8810 compiler_lib_search_path=$lt_compiler_lib_search_path
8812 # Method to check whether dependent libraries are shared objects.
8813 deplibs_check_method=$lt_deplibs_check_method
8815 # Command to use when deplibs_check_method == file_magic.
8816 file_magic_cmd=$lt_file_magic_cmd
8818 # Flag that allows shared libraries with undefined symbols to be built.
8819 allow_undefined_flag=$lt_allow_undefined_flag
8821 # Flag that forces no undefined symbols.
8822 no_undefined_flag=$lt_no_undefined_flag
8824 # Commands used to finish a libtool library installation in a directory.
8825 finish_cmds=$lt_finish_cmds
8827 # Same as above, but a single script fragment to be evaled but not shown.
8828 finish_eval=$lt_finish_eval
8830 # Take the output of nm and produce a listing of raw symbols and C names.
8831 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8833 # Transform the output of nm in a proper C declaration
8834 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8836 # Transform the output of nm in a C name address pair
8837 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8839 # This is the shared library runtime path variable.
8840 runpath_var=$runpath_var
8842 # This is the shared library path variable.
8843 shlibpath_var=$shlibpath_var
8845 # Is shlibpath searched before the hard-coded library search path?
8846 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8848 # How to hardcode a shared library path into an executable.
8849 hardcode_action=$hardcode_action
8851 # Whether we should hardcode library paths into libraries.
8852 hardcode_into_libs=$hardcode_into_libs
8854 # Flag to hardcode \$libdir into a binary during linking.
8855 # This must work even if \$libdir does not exist.
8856 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8858 # If ld is used when linking, flag to hardcode \$libdir into
8859 # a binary during linking. This must work even if \$libdir does
8861 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8863 # Whether we need a single -rpath flag with a separated argument.
8864 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8866 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8868 hardcode_direct=$hardcode_direct
8870 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8872 hardcode_minus_L=$hardcode_minus_L
8874 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8875 # the resulting binary.
8876 hardcode_shlibpath_var=$hardcode_shlibpath_var
8878 # Set to yes if building a shared library automatically hardcodes DIR into the library
8879 # and all subsequent libraries and executables linked against it.
8880 hardcode_automatic=$hardcode_automatic
8882 # Variables whose values should be saved in libtool wrapper scripts and
8883 # restored at relink time.
8884 variables_saved_for_relink="$variables_saved_for_relink"
8886 # Whether libtool must link a program against all its dependency libraries.
8887 link_all_deplibs=$link_all_deplibs
8889 # Compile-time system search path for libraries
8890 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8892 # Run-time system search path for libraries
8893 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8895 # Fix the shell variable \$srcfile for the compiler.
8896 fix_srcfile_path="$fix_srcfile_path"
8898 # Set to yes if exported symbols are required.
8899 always_export_symbols=$always_export_symbols
8901 # The commands to list exported symbols.
8902 export_symbols_cmds=$lt_export_symbols_cmds
8904 # The commands to extract the exported symbol list from a shared archive.
8905 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8907 # Symbols that should not be listed in the preloaded symbols.
8908 exclude_expsyms=$lt_exclude_expsyms
8910 # Symbols that must always be exported.
8911 include_expsyms=$lt_include_expsyms
8913 # ### END LIBTOOL CONFIG
8920 cat <<\EOF >> "$cfgfile"
8922 # AIX sometimes has problems with the GCC collect2 program. For some
8923 # reason, if we set the COLLECT_NAMES environment variable, the problems
8924 # vanish in a puff of smoke.
8925 if test "X${COLLECT_NAMES+set}" != Xset; then
8927 export COLLECT_NAMES
8933 # We use sed instead of cat because bash on DJGPP gets confused if
8934 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8935 # text mode, it properly converts lines to CR/LF. This bash problem
8936 # is reportedly fixed, but why not run on old versions too?
8937 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8939 mv -f "$cfgfile" "$ofile" || \
8940 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8944 # If there is no Makefile yet, we rely on a make rule to execute
8945 # `config.status --recheck' to rerun these tests and create the
8946 # libtool script then.
8947 test -f Makefile && make "$ltmain"
8952 ac_cpp='$CPP $CPPFLAGS'
8953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8960 # Check whether --with-tags or --without-tags was given.
8961 if test "${with_tags+set}" = set; then
8962 withval="$with_tags"
8966 if test -f "$ltmain" && test -n "$tagnames"; then
8967 if test ! -f "${ofile}"; then
8968 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8969 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8972 if test -z "$LTCC"; then
8973 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8974 if test -z "$LTCC"; then
8975 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8976 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8978 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8979 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8983 # Extract list of available tagged configurations in $ofile.
8984 # Note that this assumes the entire list is on one line.
8985 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8987 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8988 for tagname in $tagnames; do
8990 # Check whether tagname contains only valid characters
8991 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8993 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8994 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8995 { (exit 1); exit 1; }; }
8999 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9001 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9002 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9003 { (exit 1); exit 1; }; }
9006 # Update the list of available tags.
9007 if test -n "$tagname"; then
9008 echo appending configuration tag \"$tagname\" to $ofile
9012 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9014 ac_cpp='$CXXCPP $CPPFLAGS'
9015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9022 archive_cmds_need_lc_CXX=no
9023 allow_undefined_flag_CXX=
9024 always_export_symbols_CXX=no
9025 archive_expsym_cmds_CXX=
9026 export_dynamic_flag_spec_CXX=
9027 hardcode_direct_CXX=no
9028 hardcode_libdir_flag_spec_CXX=
9029 hardcode_libdir_flag_spec_ld_CXX=
9030 hardcode_libdir_separator_CXX=
9031 hardcode_minus_L_CXX=no
9032 hardcode_automatic_CXX=no
9034 module_expsym_cmds_CXX=
9035 link_all_deplibs_CXX=unknown
9036 old_archive_cmds_CXX=$old_archive_cmds
9037 no_undefined_flag_CXX=
9038 whole_archive_flag_spec_CXX=
9039 enable_shared_with_static_runtimes_CXX=no
9041 # Dependencies to place before and after the object being linked:
9043 postdep_objects_CXX=
9046 compiler_lib_search_path_CXX=
9048 # Source file extension for C++ test sources.
9051 # Object file extension for compiled C++ test sources.
9055 # Code to be used in simple compile tests
9056 lt_simple_compile_test_code="int some_variable = 0;\n"
9058 # Code to be used in simple link tests
9059 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9061 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9063 # If no C compiler was specified, use CC.
9066 # Allow CC to be a program name with arguments.
9070 # Allow CC to be a program name with arguments.
9075 lt_save_with_gnu_ld=$with_gnu_ld
9076 lt_save_path_LD=$lt_cv_path_LD
9077 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9078 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9080 unset lt_cv_prog_gnu_ld
9082 if test -n "${lt_cv_path_LDCXX+set}"; then
9083 lt_cv_path_LD=$lt_cv_path_LDCXX
9087 test -z "${LDCXX+set}" || LD=$LDCXX
9091 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9093 # We don't want -fno-exception wen compiling C++ code, so set the
9094 # no_builtin_flag separately
9095 if test "$GXX" = yes; then
9096 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9098 lt_prog_compiler_no_builtin_flag_CXX=
9101 if test "$GXX" = yes; then
9102 # Set up default GNU C++ configuration
9105 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9106 if test "${with_gnu_ld+set}" = set; then
9107 withval="$with_gnu_ld"
9108 test "$withval" = no || with_gnu_ld=yes
9113 if test "$GCC" = yes; then
9114 # Check if gcc -print-prog-name=ld gives a path.
9115 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9116 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9119 # gcc leaves a trailing carriage return which upsets mingw
9120 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9122 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9125 # Accept absolute paths.
9127 re_direlt='/[^/][^/]*/\.\./'
9128 # Canonicalize the path of ld
9129 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9130 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9131 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9133 test -z "$LD" && LD="$ac_prog"
9136 # If it fails, then pretend we aren't using GCC.
9140 # If it is relative, then search for the first ld in PATH.
9144 elif test "$with_gnu_ld" = yes; then
9145 echo "$as_me:$LINENO: checking for GNU ld" >&5
9146 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9148 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9149 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9151 if test "${lt_cv_path_LD+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 if test -z "$LD"; then
9155 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9156 for ac_dir in $PATH; do
9158 test -z "$ac_dir" && ac_dir=.
9159 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9160 lt_cv_path_LD="$ac_dir/$ac_prog"
9161 # Check to see if the program is GNU ld. I'd rather use --version,
9162 # but apparently some GNU ld's only accept -v.
9163 # Break only if it was the GNU/non-GNU ld that we prefer.
9164 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9165 *GNU* | *'with BFD'*)
9166 test "$with_gnu_ld" != no && break
9169 test "$with_gnu_ld" != yes && break
9176 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9181 if test -n "$LD"; then
9182 echo "$as_me:$LINENO: result: $LD" >&5
9183 echo "${ECHO_T}$LD" >&6
9185 echo "$as_me:$LINENO: result: no" >&5
9186 echo "${ECHO_T}no" >&6
9188 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9189 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9190 { (exit 1); exit 1; }; }
9191 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9192 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9193 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9197 case `"$LD" -v 2>&1 </dev/null` in
9198 *GNU* | *'with BFD'*)
9199 lt_cv_prog_gnu_ld=yes
9202 lt_cv_prog_gnu_ld=no
9206 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9207 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9208 with_gnu_ld=$lt_cv_prog_gnu_ld
9212 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9213 # archiving commands below assume that GNU ld is being used.
9214 if test "$with_gnu_ld" = yes; then
9215 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9216 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'
9218 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9219 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9221 # If archive_cmds runs LD, not CC, wlarc should be empty
9222 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9223 # investigate it a little bit more. (MM)
9226 # ancient GNU ld didn't support --whole-archive et. al.
9227 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9228 grep 'no-whole-archive' > /dev/null; then
9229 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9231 whole_archive_flag_spec_CXX=
9237 # A generic and very simple default shared library creation
9238 # command for GNU C++ for the case where it uses the native
9239 # linker, instead of GNU ld. If possible, this setting should
9240 # overridden to take advantage of the native linker features on
9241 # the platform it is being used on.
9242 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9245 # Commands to make compiler produce verbose output that lists
9246 # what "hidden" libraries, object files and flags are used when
9247 # linking a shared library.
9248 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9256 # PORTME: fill in a description of your system's C++ link characteristics
9257 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9258 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9262 # FIXME: insert proper C++ library support
9266 if test "$host_cpu" = ia64; then
9267 # On IA64, the linker does run time linking by default, so we don't
9268 # have to do anything special.
9269 aix_use_runtimelinking=no
9270 exp_sym_flag='-Bexport'
9273 aix_use_runtimelinking=no
9275 # Test if we are trying to use run time linking or normal
9276 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9277 # need to do runtime linking.
9278 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9279 for ld_flag in $LDFLAGS; do
9282 aix_use_runtimelinking=yes
9289 exp_sym_flag='-bexport'
9290 no_entry_flag='-bnoentry'
9293 # When large executables or shared objects are built, AIX ld can
9294 # have problems creating the table of contents. If linking a library
9295 # or program results in "error TOC overflow" add -mminimal-toc to
9296 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9297 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9300 hardcode_direct_CXX=yes
9301 hardcode_libdir_separator_CXX=':'
9302 link_all_deplibs_CXX=yes
9304 if test "$GXX" = yes; then
9305 case $host_os in aix4.012|aix4.012.*)
9306 # We only want to do this on AIX 4.2 and lower, the check
9307 # below for broken collect2 doesn't work under 4.3+
9308 collect2name=`${CC} -print-prog-name=collect2`
9309 if test -f "$collect2name" && \
9310 strings "$collect2name" | grep resolve_lib_name >/dev/null
9312 # We have reworked collect2
9313 hardcode_direct_CXX=yes
9315 # We have old collect2
9316 hardcode_direct_CXX=unsupported
9317 # It fails to find uninstalled libraries when the uninstalled
9318 # path is not listed in the libpath. Setting hardcode_minus_L
9319 # to unsupported forces relinking
9320 hardcode_minus_L_CXX=yes
9321 hardcode_libdir_flag_spec_CXX='-L$libdir'
9322 hardcode_libdir_separator_CXX=
9325 shared_flag='-shared'
9328 if test "$host_cpu" = ia64; then
9329 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9330 # chokes on -Wl,-G. The following line is correct:
9333 if test "$aix_use_runtimelinking" = yes; then
9334 shared_flag='${wl}-G'
9336 shared_flag='${wl}-bM:SRE'
9341 # It seems that -bexpall does not export symbols beginning with
9342 # underscore (_), so it is better to generate a list of symbols to export.
9343 always_export_symbols_CXX=yes
9344 if test "$aix_use_runtimelinking" = yes; then
9345 # Warning - without using the other runtime loading flags (-brtl),
9346 # -berok will link without error, but may produce a broken library.
9347 allow_undefined_flag_CXX='-berok'
9348 # Determine the default libpath from the value encoded in an empty executable.
9349 cat >conftest.$ac_ext <<_ACEOF
9350 #line $LINENO "configure"
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9365 rm -f conftest.$ac_objext conftest$ac_exeext
9366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9367 (eval $ac_link) 2>&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } &&
9371 { ac_try='test -s conftest$ac_exeext'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9380 # Check for a 64-bit object if we didn't find anything.
9381 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; }
9384 echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9391 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9393 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"
9395 if test "$host_cpu" = ia64; then
9396 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9397 allow_undefined_flag_CXX="-z nodefs"
9398 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"
9400 # Determine the default libpath from the value encoded in an empty executable.
9401 cat >conftest.$ac_ext <<_ACEOF
9402 #line $LINENO "configure"
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9417 rm -f conftest.$ac_objext conftest$ac_exeext
9418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9419 (eval $ac_link) 2>&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); } &&
9423 { ac_try='test -s conftest$ac_exeext'
9424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; }; then
9430 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9432 # Check for a 64-bit object if we didn't find anything.
9433 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; }
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9441 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9443 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9444 # Warning - without using the other run time loading flags,
9445 # -berok will link without error, but may produce a broken library.
9446 no_undefined_flag_CXX=' ${wl}-bernotok'
9447 allow_undefined_flag_CXX=' ${wl}-berok'
9448 # -bexpall does not export symbols beginning with underscore (_)
9449 always_export_symbols_CXX=yes
9450 # Exported symbols can be pulled into shared objects from archives
9451 whole_archive_flag_spec_CXX=' '
9452 archive_cmds_need_lc_CXX=yes
9453 # This is similar to how AIX traditionally builds it's shared libraries.
9454 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'
9459 case $cc_basename in
9461 # FIXME: insert proper C++ library support
9467 cygwin* | mingw* | pw32*)
9468 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9469 # as there is no search path for DLLs.
9470 hardcode_libdir_flag_spec_CXX='-L$libdir'
9471 allow_undefined_flag_CXX=unsupported
9472 always_export_symbols_CXX=no
9473 enable_shared_with_static_runtimes_CXX=yes
9475 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9476 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'
9477 # If the export-symbols file already is a .def file (1st line
9478 # is EXPORTS), use it as is; otherwise, prepend...
9479 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9480 cp $export_symbols $output_objdir/$soname.def;
9482 echo EXPORTS > $output_objdir/$soname.def;
9483 cat $export_symbols >> $output_objdir/$soname.def;
9485 $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'
9491 darwin* | rhapsody*)
9492 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9493 archive_cmds_need_lc_CXX=no
9495 rhapsody* | darwin1.[012])
9496 allow_undefined_flag_CXX='-undefined suppress'
9499 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9502 lt_int_apple_cc_single_mod=no
9503 output_verbose_link_cmd='echo'
9504 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9505 lt_int_apple_cc_single_mod=yes
9507 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9508 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9510 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'
9512 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9514 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9515 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9516 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}'
9518 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}'
9520 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}'
9521 hardcode_direct_CXX=no
9522 hardcode_automatic_CXX=yes
9523 hardcode_shlibpath_var_CXX=unsupported
9524 whole_archive_flag_spec_CXX='-all_load $convenience'
9525 link_all_deplibs_CXX=yes
9530 case $cc_basename in
9532 # FIXME: insert proper C++ library support
9536 # Green Hills C++ Compiler
9537 # FIXME: insert proper C++ library support
9541 # FIXME: insert proper C++ library support
9547 # C++ shared libraries reported to be fairly broken before switch to ELF
9551 archive_cmds_need_lc_CXX=no
9554 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9561 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9562 hardcode_libdir_separator_CXX=:
9563 export_dynamic_flag_spec_CXX='${wl}-E'
9564 hardcode_direct_CXX=yes
9565 hardcode_minus_L_CXX=yes # Not in the search PATH,
9566 # but as the default
9567 # location of the library.
9569 case $cc_basename in
9571 # FIXME: insert proper C++ library support
9575 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'
9576 # Commands to make compiler produce verbose output that lists
9577 # what "hidden" libraries, object files and flags are used when
9578 # linking a shared library.
9580 # There doesn't appear to be a way to prevent this compiler from
9581 # explicitly linking system object files so we need to strip them
9582 # from the output so that they don't get included in the library
9584 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'
9587 if test "$GXX" = yes; then
9588 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'
9590 # FIXME: insert proper C++ library support
9597 if test $with_gnu_ld = no; then
9600 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9601 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9602 hardcode_libdir_separator_CXX=:
9605 hardcode_libdir_flag_spec_CXX='-L$libdir'
9608 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9609 hardcode_libdir_separator_CXX=:
9610 export_dynamic_flag_spec_CXX='${wl}-E'
9616 hardcode_direct_CXX=no
9617 hardcode_shlibpath_var_CXX=no
9620 hardcode_direct_CXX=no
9621 hardcode_shlibpath_var_CXX=no
9622 hardcode_minus_L_CXX=yes # Not in the search PATH,
9623 # but as the default
9624 # location of the library.
9627 hardcode_direct_CXX=yes
9628 hardcode_minus_L_CXX=yes # Not in the search PATH,
9629 # but as the default
9630 # location of the library.
9634 case $cc_basename in
9636 # FIXME: insert proper C++ library support
9642 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9645 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9648 # Commands to make compiler produce verbose output that lists
9649 # what "hidden" libraries, object files and flags are used when
9650 # linking a shared library.
9652 # There doesn't appear to be a way to prevent this compiler from
9653 # explicitly linking system object files so we need to strip them
9654 # from the output so that they don't get included in the library
9656 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'
9659 if test "$GXX" = yes; then
9660 if test $with_gnu_ld = no; then
9663 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9666 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'
9671 # FIXME: insert proper C++ library support
9678 case $cc_basename in
9681 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'
9683 # Archives containing C++ object files must be created using
9684 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9685 # necessary to make sure instantiated templates are included
9687 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9690 if test "$GXX" = yes; then
9691 if test "$with_gnu_ld" = no; then
9692 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'
9694 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'
9697 link_all_deplibs_CXX=yes
9700 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9701 hardcode_libdir_separator_CXX=:
9704 case $cc_basename in
9706 # Kuck and Associates, Inc. (KAI) C++ Compiler
9708 # KCC will only create a shared library if the output file
9709 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9710 # to its proper name (with version) after linking.
9711 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'
9712 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'
9713 # Commands to make compiler produce verbose output that lists
9714 # what "hidden" libraries, object files and flags are used when
9715 # linking a shared library.
9717 # There doesn't appear to be a way to prevent this compiler from
9718 # explicitly linking system object files so we need to strip them
9719 # from the output so that they don't get included in the library
9721 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'
9723 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9724 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9726 # Archives containing C++ object files must be created using
9727 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9728 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9733 archive_cmds_need_lc_CXX=no
9734 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9735 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'
9736 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9737 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9738 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9742 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9743 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'
9745 runpath_var=LD_RUN_PATH
9746 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9747 hardcode_libdir_separator_CXX=:
9749 # Commands to make compiler produce verbose output that lists
9750 # what "hidden" libraries, object files and flags are used when
9751 # linking a shared library.
9753 # There doesn't appear to be a way to prevent this compiler from
9754 # explicitly linking system object files so we need to strip them
9755 # from the output so that they don't get included in the library
9757 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'
9762 # FIXME: insert proper C++ library support
9766 # FIXME: insert proper C++ library support
9770 case $cc_basename in
9772 # FIXME: insert proper C++ library support
9776 # FIXME: insert proper C++ library support
9782 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9783 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9785 hardcode_libdir_flag_spec_CXX='-R$libdir'
9786 hardcode_direct_CXX=yes
9787 hardcode_shlibpath_var_CXX=no
9789 # Workaround some broken pre-1.5 toolchains
9790 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9793 case $cc_basename in
9795 # Kuck and Associates, Inc. (KAI) C++ Compiler
9797 # KCC will only create a shared library if the output file
9798 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9799 # to its proper name (with version) after linking.
9800 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'
9802 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9803 hardcode_libdir_separator_CXX=:
9805 # Archives containing C++ object files must be created using
9806 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9807 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9811 # Rational C++ 2.4.1
9812 # FIXME: insert proper C++ library support
9816 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9817 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'
9819 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9820 hardcode_libdir_separator_CXX=:
9822 # Commands to make compiler produce verbose output that lists
9823 # what "hidden" libraries, object files and flags are used when
9824 # linking a shared library.
9826 # There doesn't appear to be a way to prevent this compiler from
9827 # explicitly linking system object files so we need to strip them
9828 # from the output so that they don't get included in the library
9830 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'
9833 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9834 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9835 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'
9837 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9838 hardcode_libdir_separator_CXX=:
9840 # Commands to make compiler produce verbose output that lists
9841 # what "hidden" libraries, object files and flags are used when
9842 # linking a shared library.
9843 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9846 # FIXME: insert proper C++ library support
9853 case $cc_basename in
9855 # Kuck and Associates, Inc. (KAI) C++ Compiler
9857 # KCC will only create a shared library if the output file
9858 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9859 # to its proper name (with version) after linking.
9860 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'
9862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9863 hardcode_libdir_separator_CXX=:
9865 # Archives containing C++ object files must be created using
9866 # the KAI C++ compiler.
9867 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9870 # Rational C++ 2.4.1
9871 # FIXME: insert proper C++ library support
9875 allow_undefined_flag_CXX=' -expect_unresolved \*'
9876 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'
9877 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9878 echo "-hidden">> $lib.exp~
9879 $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~
9882 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9883 hardcode_libdir_separator_CXX=:
9885 # Commands to make compiler produce verbose output that lists
9886 # what "hidden" libraries, object files and flags are used when
9887 # linking a shared library.
9889 # There doesn't appear to be a way to prevent this compiler from
9890 # explicitly linking system object files so we need to strip them
9891 # from the output so that they don't get included in the library
9893 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'
9896 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9897 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9898 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'
9900 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9901 hardcode_libdir_separator_CXX=:
9903 # Commands to make compiler produce verbose output that lists
9904 # what "hidden" libraries, object files and flags are used when
9905 # linking a shared library.
9906 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9909 # FIXME: insert proper C++ library support
9916 # FIXME: insert proper C++ library support
9920 archive_cmds_need_lc_CXX=no
9921 case $cc_basename in
9923 # FIXME: insert proper C++ library support
9927 # FIXME: insert proper C++ library support
9933 case $cc_basename in
9936 # FIXME: insert proper C++ library support
9941 # FIXME: insert proper C++ library support
9945 # FIXME: insert proper C++ library support
9951 case $cc_basename in
9953 # Sun C++ 4.2, 5.x and Centerline C++
9954 no_undefined_flag_CXX=' -zdefs'
9955 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9956 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9957 $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'
9959 hardcode_libdir_flag_spec_CXX='-R$libdir'
9960 hardcode_shlibpath_var_CXX=no
9962 solaris2.0-5 | solaris2.0-5.*) ;;
9964 # The C++ compiler is used as linker so we must use $wl
9965 # flag to pass the commands to the underlying system
9967 # Supported since Solaris 2.6 (maybe 2.5.1?)
9968 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9971 link_all_deplibs_CXX=yes
9973 # Commands to make compiler produce verbose output that lists
9974 # what "hidden" libraries, object files and flags are used when
9975 # linking a shared library.
9977 # There doesn't appear to be a way to prevent this compiler from
9978 # explicitly linking system object files so we need to strip them
9979 # from the output so that they don't get included in the library
9981 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'
9983 # Archives containing C++ object files must be created using
9984 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9985 # necessary to make sure instantiated templates are included
9987 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9990 # Green Hills C++ Compiler
9991 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9993 # The C++ compiler must be used to create the archive.
9994 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9997 # GNU C++ compiler with Solaris linker
9998 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9999 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10000 if $CC --version | grep -v '^2\.7' > /dev/null; then
10001 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10002 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10003 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10005 # Commands to make compiler produce verbose output that lists
10006 # what "hidden" libraries, object files and flags are used when
10007 # linking a shared library.
10008 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10010 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10012 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10013 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10014 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10016 # Commands to make compiler produce verbose output that lists
10017 # what "hidden" libraries, object files and flags are used when
10018 # linking a shared library.
10019 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10022 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10027 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10028 archive_cmds_need_lc_CXX=no
10031 case $cc_basename in
10033 # NonStop-UX NCC 3.20
10034 # FIXME: insert proper C++ library support
10038 # FIXME: insert proper C++ library support
10044 # FIXME: insert proper C++ library support
10048 # FIXME: insert proper C++ library support
10052 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10053 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10054 test "$ld_shlibs_CXX" = no && can_build_shared=no
10060 cat > conftest.$ac_ext <<EOF
10064 Foo (void) { a = 0; }
10070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10071 (eval $ac_compile) 2>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; then
10075 # Parse the compiler output and extract the necessary
10076 # objects, libraries and library flags.
10078 # Sentinel used to keep track of whether or not we are before
10079 # the conftest object file.
10080 pre_test_object_deps_done=no
10082 # The `*' in the case matches for architectures that use `case' in
10083 # $output_verbose_cmd can trigger glob expansion during the loop
10084 # eval without this substitution.
10085 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10087 for p in `eval $output_verbose_link_cmd`; do
10091 # Some compilers place space between "-{L,R}" and the path.
10092 # Remove the space.
10093 if test $p = "-L" \
10094 || test $p = "-R"; then
10101 if test "$pre_test_object_deps_done" = no; then
10104 # Internal compiler library paths should come after those
10105 # provided the user. The postdeps already come after the
10106 # user supplied libs so there is no need to process them.
10107 if test -z "$compiler_lib_search_path_CXX"; then
10108 compiler_lib_search_path_CXX="${prev}${p}"
10110 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10113 # The "-l" case would never come before the object being
10114 # linked, so don't bother handling this case.
10117 if test -z "$postdeps_CXX"; then
10118 postdeps_CXX="${prev}${p}"
10120 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10126 # This assumes that the test object file only shows up
10127 # once in the compiler output.
10128 if test "$p" = "conftest.$objext"; then
10129 pre_test_object_deps_done=yes
10133 if test "$pre_test_object_deps_done" = no; then
10134 if test -z "$predep_objects_CXX"; then
10135 predep_objects_CXX="$p"
10137 predep_objects_CXX="$predep_objects_CXX $p"
10140 if test -z "$postdep_objects_CXX"; then
10141 postdep_objects_CXX="$p"
10143 postdep_objects_CXX="$postdep_objects_CXX $p"
10148 *) ;; # Ignore the rest.
10156 echo "libtool.m4: error: problem compiling CXX test program"
10159 $rm -f confest.$objext
10161 case " $postdeps_CXX " in
10162 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10165 lt_prog_compiler_wl_CXX=
10166 lt_prog_compiler_pic_CXX=
10167 lt_prog_compiler_static_CXX=
10169 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10170 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10172 # C++ specific cases for pic, static, wl, etc.
10173 if test "$GXX" = yes; then
10174 lt_prog_compiler_wl_CXX='-Wl,'
10175 lt_prog_compiler_static_CXX='-static'
10179 # All AIX code is PIC.
10180 if test "$host_cpu" = ia64; then
10181 # AIX 5 now supports IA64 processor
10182 lt_prog_compiler_static_CXX='-Bstatic'
10186 # FIXME: we need at least 68020 code to build shared libraries, but
10187 # adding the `-m68020' flag to GCC prevents building anything better,
10189 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10191 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10192 # PIC is the default for these OSes.
10194 mingw* | os2* | pw32*)
10195 # This hack is so that the source file can tell whether it is being
10196 # built for inclusion in a dll (and should export symbols for example).
10197 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10199 darwin* | rhapsody*)
10200 # PIC is the default on this platform
10201 # Common symbols not allowed in MH_DYLIB files
10202 lt_prog_compiler_pic_CXX='-fno-common'
10205 # DJGPP does not support shared libraries at all
10206 lt_prog_compiler_pic_CXX=
10209 if test -d /usr/nec; then
10210 lt_prog_compiler_pic_CXX=-Kconform_pic
10214 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10215 # not for PA HP-UX.
10216 case "$host_cpu" in
10220 lt_prog_compiler_pic_CXX='-fPIC'
10225 lt_prog_compiler_pic_CXX='-fPIC'
10231 # All AIX code is PIC.
10232 if test "$host_cpu" = ia64; then
10233 # AIX 5 now supports IA64 processor
10234 lt_prog_compiler_static_CXX='-Bstatic'
10236 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10240 case $cc_basename in
10242 # Green Hills C++ Compiler
10243 # _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"
10248 case $cc_basename in
10250 lt_prog_compiler_pic_CXX='-KPIC'
10253 # Green Hills C++ Compiler
10254 lt_prog_compiler_pic_CXX='-pic'
10261 # FreeBSD uses GNU C++
10263 hpux9* | hpux10* | hpux11*)
10264 case $cc_basename in
10266 lt_prog_compiler_wl_CXX='-Wl,'
10267 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10268 if test "$host_cpu" != ia64; then
10269 lt_prog_compiler_pic_CXX='+Z'
10273 lt_prog_compiler_wl_CXX='-Wl,'
10274 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10275 case "$host_cpu" in
10280 lt_prog_compiler_pic_CXX='+Z'
10288 irix5* | irix6* | nonstopux*)
10289 case $cc_basename in
10291 lt_prog_compiler_wl_CXX='-Wl,'
10292 lt_prog_compiler_static_CXX='-non_shared'
10293 # CC pic flag -KPIC is the default.
10300 case $cc_basename in
10303 lt_prog_compiler_wl_CXX='--backend -Wl,'
10304 lt_prog_compiler_pic_CXX='-fPIC'
10308 lt_prog_compiler_wl_CXX='-Wl,'
10309 lt_prog_compiler_pic_CXX='-KPIC'
10310 lt_prog_compiler_static_CXX='-static'
10314 # Make sure the PIC flag is empty. It appears that all Alpha
10315 # Linux and Compaq Tru64 Unix objects are PIC.
10316 lt_prog_compiler_pic_CXX=
10317 lt_prog_compiler_static_CXX='-non_shared'
10328 case $cc_basename in
10330 lt_prog_compiler_pic_CXX='-W c,exportall'
10338 osf3* | osf4* | osf5*)
10339 case $cc_basename in
10341 lt_prog_compiler_wl_CXX='--backend -Wl,'
10344 # Rational C++ 2.4.1
10345 lt_prog_compiler_pic_CXX='-pic'
10348 # Digital/Compaq C++
10349 lt_prog_compiler_wl_CXX='-Wl,'
10350 # Make sure the PIC flag is empty. It appears that all Alpha
10351 # Linux and Compaq Tru64 Unix objects are PIC.
10352 lt_prog_compiler_pic_CXX=
10353 lt_prog_compiler_static_CXX='-non_shared'
10362 case $cc_basename in
10364 lt_prog_compiler_pic_CXX='-fPIC'
10371 case $cc_basename in
10373 # Sun C++ 4.2, 5.x and Centerline C++
10374 lt_prog_compiler_pic_CXX='-KPIC'
10375 lt_prog_compiler_static_CXX='-Bstatic'
10376 lt_prog_compiler_wl_CXX='-Qoption ld '
10379 # Green Hills C++ Compiler
10380 lt_prog_compiler_pic_CXX='-PIC'
10387 case $cc_basename in
10390 lt_prog_compiler_pic_CXX='-pic'
10391 lt_prog_compiler_static_CXX='-Bstatic'
10395 lt_prog_compiler_pic_CXX='-pic'
10402 case $cc_basename in
10404 # NonStop-UX NCC 3.20
10405 lt_prog_compiler_pic_CXX='-KPIC'
10416 lt_prog_compiler_can_build_shared_CXX=no
10421 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10422 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10425 # Check to make sure the PIC flag actually works.
10427 if test -n "$lt_prog_compiler_pic_CXX"; then
10428 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10429 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10430 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10433 lt_prog_compiler_pic_works_CXX=no
10434 ac_outfile=conftest.$ac_objext
10435 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10436 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10437 # Insert the option either (1) after the last *FLAGS variable, or
10438 # (2) before a word containing "conftest.", or (3) at the end.
10439 # Note that $ac_compile itself does not contain backslashes and begins
10440 # with a dollar sign (not a hyphen), so the echo should work correctly.
10441 # The option is referenced via a variable to avoid confusing sed.
10442 lt_compile=`echo "$ac_compile" | $SED \
10443 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10445 -e 's:$: $lt_compiler_flag:'`
10446 (eval echo "\"\$as_me:10446: $lt_compile\"" >&5)
10447 (eval "$lt_compile" 2>conftest.err)
10449 cat conftest.err >&5
10450 echo "$as_me:10450: \$? = $ac_status" >&5
10451 if (exit $ac_status) && test -s "$ac_outfile"; then
10452 # The compiler can only warn and ignore the option if not recognized
10453 # So say no if there are warnings
10454 if test ! -s conftest.err; then
10455 lt_prog_compiler_pic_works_CXX=yes
10461 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10462 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10464 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10465 case $lt_prog_compiler_pic_CXX in
10467 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10470 lt_prog_compiler_pic_CXX=
10471 lt_prog_compiler_can_build_shared_CXX=no
10476 # For platforms which do not support PIC, -DPIC is meaningless:
10478 lt_prog_compiler_pic_CXX=
10481 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10485 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10486 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10487 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 lt_cv_prog_compiler_c_o_CXX=no
10491 $rm -r conftest 2>/dev/null
10495 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10497 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10498 # that will create temporary files in the current directory regardless of
10499 # the output directory. Thus, making CWD read-only will cause this test
10500 # to fail, enabling locking or at least warning the user not to do parallel
10504 lt_compiler_flag="-o out/conftest2.$ac_objext"
10505 # Insert the option either (1) after the last *FLAGS variable, or
10506 # (2) before a word containing "conftest.", or (3) at the end.
10507 # Note that $ac_compile itself does not contain backslashes and begins
10508 # with a dollar sign (not a hyphen), so the echo should work correctly.
10509 lt_compile=`echo "$ac_compile" | $SED \
10510 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10512 -e 's:$: $lt_compiler_flag:'`
10513 (eval echo "\"\$as_me:10513: $lt_compile\"" >&5)
10514 (eval "$lt_compile" 2>out/conftest.err)
10516 cat out/conftest.err >&5
10517 echo "$as_me:10517: \$? = $ac_status" >&5
10518 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10520 # The compiler can only warn and ignore the option if not recognized
10521 # So say no if there are warnings
10522 if test ! -s out/conftest.err; then
10523 lt_cv_prog_compiler_c_o_CXX=yes
10527 $rm conftest* out/*
10534 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10535 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10538 hard_links="nottested"
10539 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10540 # do not overwrite the value of need_locks provided by the user
10541 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10542 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10545 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10547 ln conftest.a conftest.b 2>&5 || hard_links=no
10548 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10549 echo "$as_me:$LINENO: result: $hard_links" >&5
10550 echo "${ECHO_T}$hard_links" >&6
10551 if test "$hard_links" = no; then
10552 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10553 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10560 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10561 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10563 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10566 # If we're using GNU nm, then we don't want the "-C" option.
10567 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10568 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10569 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'
10571 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'
10575 export_symbols_cmds_CXX="$ltdll_cmds"
10578 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10581 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10585 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10586 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10587 test "$ld_shlibs_CXX" = no && can_build_shared=no
10589 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10590 if test "$GCC" = yes; then
10591 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10595 # Do we need to explicitly link libc?
10597 case "x$archive_cmds_need_lc_CXX" in
10599 # Assume -lc should be added
10600 archive_cmds_need_lc_CXX=yes
10602 if test "$enable_shared" = yes && test "$GCC" = yes; then
10603 case $archive_cmds_CXX in
10605 # FIXME: we may have to deal with multi-command sequences.
10608 # Test whether the compiler implicitly links with -lc since on some
10609 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10610 # to ld, don't add -lc before -lgcc.
10611 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10612 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10614 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10617 (eval $ac_compile) 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } 2>conftest.err; then
10623 libobjs=conftest.$ac_objext
10625 wl=$lt_prog_compiler_wl_CXX
10631 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10632 allow_undefined_flag_CXX=
10633 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10634 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }
10639 archive_cmds_need_lc_CXX=no
10641 archive_cmds_need_lc_CXX=yes
10643 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10645 cat conftest.err 1>&5
10648 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10649 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10656 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10657 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10658 hardcode_action_CXX=
10659 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10660 test -n "$runpath_var CXX" || \
10661 test "X$hardcode_automatic_CXX"="Xyes" ; then
10663 # We can hardcode non-existant directories.
10664 if test "$hardcode_direct_CXX" != no &&
10665 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10666 # have to relink, otherwise we might link with an installed library
10667 # when we should be linking with a yet-to-be-installed one
10668 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10669 test "$hardcode_minus_L_CXX" != no; then
10670 # Linking always hardcodes the temporary library directory.
10671 hardcode_action_CXX=relink
10673 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10674 hardcode_action_CXX=immediate
10677 # We cannot hardcode anything, or else we can only hardcode existing
10679 hardcode_action_CXX=unsupported
10681 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10682 echo "${ECHO_T}$hardcode_action_CXX" >&6
10684 if test "$hardcode_action_CXX" = relink; then
10685 # Fast installation is not supported
10686 enable_fast_install=no
10687 elif test "$shlibpath_overrides_runpath" = yes ||
10688 test "$enable_shared" = no; then
10689 # Fast installation is not necessary
10690 enable_fast_install=needless
10695 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10696 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10697 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10698 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10699 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10700 echo "$as_me:$LINENO: result: yes" >&5
10701 echo "${ECHO_T}yes" >&6
10703 # FIXME - insert some real tests, host_os isn't really good enough
10706 if test -n "$STRIP" ; then
10707 striplib="$STRIP -x"
10708 echo "$as_me:$LINENO: result: yes" >&5
10709 echo "${ECHO_T}yes" >&6
10711 echo "$as_me:$LINENO: result: no" >&5
10712 echo "${ECHO_T}no" >&6
10716 echo "$as_me:$LINENO: result: no" >&5
10717 echo "${ECHO_T}no" >&6
10722 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10723 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10724 library_names_spec=
10725 libname_spec='lib$name'
10729 postuninstall_cmds=
10733 shlibpath_overrides_runpath=unknown
10735 dynamic_linker="$host_os ld.so"
10736 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10737 if test "$GCC" = yes; then
10738 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10739 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10740 # if the path contains ";" then we assume it to be the separator
10741 # otherwise default to the standard path separator (i.e. ":") - it is
10742 # assumed that no part of a normal pathname contains ";" but that should
10743 # okay in the real world where ";" in dirpaths is itself problematic.
10744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10749 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10751 need_lib_prefix=unknown
10752 hardcode_into_libs=no
10754 # when you set need_version to no, make sure it does not cause -set_version
10755 # flags to be left without arguments
10756 need_version=unknown
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10762 shlibpath_var=LIBPATH
10764 # AIX 3 has no versioning support, so we append a major version to the name.
10765 soname_spec='${libname}${release}${shared_ext}$major'
10772 hardcode_into_libs=yes
10773 if test "$host_cpu" = ia64; then
10774 # AIX 5 supports IA64
10775 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10776 shlibpath_var=LD_LIBRARY_PATH
10778 # With GCC up to 2.95.x, collect2 would create an import file
10779 # for dependence libraries. The import file would start with
10780 # the line `#! .'. This would cause the generated library to
10781 # depend on `.', always an invalid library. This was fixed in
10782 # development snapshots of GCC prior to 3.0.
10784 aix4 | aix4.[01] | aix4.[01].*)
10785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10787 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10790 can_build_shared=no
10794 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10795 # soname into executable. Probably we can add versioning support to
10796 # collect2, so additional links can be useful in future.
10797 if test "$aix_use_runtimelinking" = yes; then
10798 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10799 # instead of lib<name>.a to let people know that these are not
10800 # typical AIX shared libraries.
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10803 # We preserve .a as extension for shared libraries through AIX4.2
10804 # and later when we are not doing run time linking.
10805 library_names_spec='${libname}${release}.a $libname.a'
10806 soname_spec='${libname}${release}${shared_ext}$major'
10808 shlibpath_var=LIBPATH
10813 library_names_spec='$libname.ixlibrary $libname.a'
10814 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10815 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'
10819 library_names_spec='${libname}${shared_ext}'
10820 dynamic_linker="$host_os ld.so"
10821 shlibpath_var=LIBRARY_PATH
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10828 soname_spec='${libname}${release}${shared_ext}$major'
10829 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10830 shlibpath_var=LD_LIBRARY_PATH
10831 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10832 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10833 # the default ld.so.conf also contains /usr/contrib/lib and
10834 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10835 # libtool to hard-code these into programs
10838 cygwin* | mingw* | pw32*)
10839 version_type=windows
10844 case $GCC,$host_os in
10845 yes,cygwin* | yes,mingw* | yes,pw32*)
10846 library_names_spec='$libname.dll.a'
10847 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10848 postinstall_cmds='base_file=`basename \${file}`~
10849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10850 dldir=$destdir/`dirname \$dlpath`~
10851 test -d \$dldir || mkdir -p \$dldir~
10852 $install_prog $dir/$dlname \$dldir/$dlname'
10853 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10854 dlpath=$dir/\$dldll~
10856 shlibpath_overrides_runpath=yes
10860 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10861 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10862 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10865 # MinGW DLLs use traditional 'lib' prefix
10866 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10867 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10868 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10869 # It is most probably a Windows format PATH printed by
10870 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10871 # path with ; separators, and with drive letters. We can handle the
10872 # drive letters (cygwin fileutils understands them), so leave them,
10873 # especially as we might pass files found there to a mingw objdump,
10874 # which wouldn't understand a cygwinified path. Ahh.
10875 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10881 # pw32 DLLs use 'pw' prefix rather than 'lib'
10882 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10888 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10891 dynamic_linker='Win32 ld.exe'
10892 # FIXME: first we should search . and the directory the executable is in
10896 darwin* | rhapsody*)
10897 dynamic_linker="$host_os dyld"
10898 version_type=darwin
10901 # FIXME: Relying on posixy $() will cause problems for
10902 # cross-compilation, but unfortunately the echo tests do not
10903 # yet detect zsh echo's removal of \ escapes.
10904 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10905 soname_spec='${libname}${release}${major}$shared_ext'
10906 shlibpath_overrides_runpath=yes
10907 shlibpath_var=DYLD_LIBRARY_PATH
10908 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10909 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10910 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10911 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"`
10913 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10921 soname_spec='${libname}${release}${shared_ext}$major'
10922 shlibpath_var=LD_LIBRARY_PATH
10930 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10931 version_type=freebsd-$objformat
10932 case $version_type in
10934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10943 shlibpath_var=LD_LIBRARY_PATH
10946 shlibpath_overrides_runpath=yes
10948 freebsd3.01* | freebsdelf3.01*)
10949 shlibpath_overrides_runpath=yes
10950 hardcode_into_libs=yes
10953 shlibpath_overrides_runpath=no
10954 hardcode_into_libs=yes
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10964 soname_spec='${libname}${release}${shared_ext}$major'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 hardcode_into_libs=yes
10969 hpux9* | hpux10* | hpux11*)
10970 # Give a soname corresponding to the major version so that dld.sl refuses to
10971 # link against other versions.
10975 case "$host_cpu" in
10978 hardcode_into_libs=yes
10979 dynamic_linker="$host_os dld.so"
10980 shlibpath_var=LD_LIBRARY_PATH
10981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 if test "X$HPUX_IA64_MODE" = X32; then
10985 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10987 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10993 hardcode_into_libs=yes
10994 dynamic_linker="$host_os dld.sl"
10995 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998 soname_spec='${libname}${release}${shared_ext}$major'
10999 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11004 dynamic_linker="$host_os dld.sl"
11005 shlibpath_var=SHLIB_PATH
11006 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008 soname_spec='${libname}${release}${shared_ext}$major'
11011 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11012 postinstall_cmds='chmod 555 $lib'
11015 irix5* | irix6* | nonstopux*)
11017 nonstopux*) version_type=nonstopux ;;
11019 if test "$lt_cv_prog_gnu_ld" = yes; then
11027 soname_spec='${libname}${release}${shared_ext}$major'
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11030 irix5* | nonstopux*)
11031 libsuff= shlibsuff=
11034 case $LD in # libtool.m4 will add one of these switches to LD
11035 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11036 libsuff= shlibsuff= libmagic=32-bit;;
11037 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11038 libsuff=32 shlibsuff=N32 libmagic=N32;;
11039 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11040 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11041 *) libsuff= shlibsuff= libmagic=never-match;;
11045 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11046 shlibpath_overrides_runpath=no
11047 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11048 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11049 hardcode_into_libs=yes
11052 # No shared lib support for Linux oldld, aout, or coff.
11053 linux*oldld* | linux*aout* | linux*coff*)
11057 # This must be Linux ELF.
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11065 shlibpath_var=LD_LIBRARY_PATH
11066 shlibpath_overrides_runpath=no
11067 # This implies no fast_install, which is unacceptable.
11068 # Some rework will be needed to allow for fast_install
11069 # before this can be enabled.
11070 hardcode_into_libs=yes
11072 # We used to test for /lib/ld.so.1 and disable shared libraries on
11073 # powerpc, because MkLinux only supported shared libraries with the
11074 # GNU dynamic linker. Since this was broken with cross compilers,
11075 # most powerpc-linux boxes support dynamic linking these days and
11076 # people can always --disable-shared, the test was removed, and we
11077 # assume the GNU/Linux dynamic linker is in use.
11078 dynamic_linker='GNU/Linux ld.so'
11085 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11088 dynamic_linker='NetBSD (a.out) ld.so'
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11091 soname_spec='${libname}${release}${shared_ext}$major'
11092 dynamic_linker='NetBSD ld.elf_so'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 shlibpath_overrides_runpath=yes
11096 hardcode_into_libs=yes
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 shlibpath_overrides_runpath=yes
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 soname_spec='${libname}${release}${shared_ext}$major'
11112 shlibpath_var=LD_LIBRARY_PATH
11113 shlibpath_overrides_runpath=yes
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11122 shlibpath_var=LD_LIBRARY_PATH
11123 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11125 openbsd2.[89] | openbsd2.[89].*)
11126 shlibpath_overrides_runpath=no
11129 shlibpath_overrides_runpath=yes
11133 shlibpath_overrides_runpath=yes
11138 libname_spec='$name'
11141 library_names_spec='$libname${shared_ext} $libname.a'
11142 dynamic_linker='OS/2 ld.exe'
11143 shlibpath_var=LIBPATH
11146 osf3* | osf4* | osf5*)
11150 soname_spec='${libname}${release}${shared_ext}$major'
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11152 shlibpath_var=LD_LIBRARY_PATH
11153 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11154 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11159 soname_spec='${libname}${release}${shared_ext}$major'
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161 shlibpath_var=LD_LIBRARY_PATH
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169 soname_spec='${libname}${release}${shared_ext}$major'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=yes
11172 hardcode_into_libs=yes
11173 # ldd complains unless libraries are executable
11174 postinstall_cmds='chmod +x $lib'
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11180 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 shlibpath_overrides_runpath=yes
11183 if test "$with_gnu_ld" = yes; then
11189 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192 soname_spec='${libname}${release}${shared_ext}$major'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 case $host_vendor in
11196 shlibpath_overrides_runpath=no
11198 export_dynamic_flag_spec='${wl}-Blargedynsym'
11199 runpath_var=LD_RUN_PATH
11207 shlibpath_overrides_runpath=no
11208 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11214 if test -d /usr/nec ;then
11216 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11217 soname_spec='$libname${shared_ext}.$major'
11218 shlibpath_var=LD_LIBRARY_PATH
11224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11225 soname_spec='${libname}${release}${shared_ext}$major'
11226 shlibpath_var=LD_LIBRARY_PATH
11233 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11234 echo "${ECHO_T}$dynamic_linker" >&6
11235 test "$dynamic_linker" = no && can_build_shared=no
11237 if test "x$enable_dlopen" != xyes; then
11238 enable_dlopen=unknown
11239 enable_dlopen_self=unknown
11240 enable_dlopen_self_static=unknown
11247 lt_cv_dlopen="load_add_on"
11249 lt_cv_dlopen_self=yes
11253 lt_cv_dlopen="LoadLibrary"
11258 lt_cv_dlopen="dlopen"
11263 # if libdl is installed we need to link against it
11264 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11265 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11266 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 ac_check_lib_save_LIBS=$LIBS
11271 cat >conftest.$ac_ext <<_ACEOF
11272 #line $LINENO "configure"
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11279 /* Override any gcc2 internal prototype to avoid an error. */
11283 /* We use char because int might match the return type of a gcc2
11284 builtin and then its argument prototype would still apply. */
11294 rm -f conftest.$ac_objext conftest$ac_exeext
11295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11296 (eval $ac_link) 2>&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } &&
11300 { ac_try='test -s conftest$ac_exeext'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; }; then
11306 ac_cv_lib_dl_dlopen=yes
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11311 ac_cv_lib_dl_dlopen=no
11313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11314 LIBS=$ac_check_lib_save_LIBS
11316 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11317 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11318 if test $ac_cv_lib_dl_dlopen = yes; then
11319 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11322 lt_cv_dlopen="dyld"
11324 lt_cv_dlopen_self=yes
11331 echo "$as_me:$LINENO: checking for shl_load" >&5
11332 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11333 if test "${ac_cv_func_shl_load+set}" = set; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 cat >conftest.$ac_ext <<_ACEOF
11337 #line $LINENO "configure"
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 /* System header to define __stub macros and hopefully few prototypes,
11344 which can conflict with char shl_load (); below.
11345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11346 <limits.h> exists even on freestanding compilers. */
11348 # include <limits.h>
11350 # include <assert.h>
11352 /* Override any gcc2 internal prototype to avoid an error. */
11357 /* We use char because int might match the return type of a gcc2
11358 builtin and then its argument prototype would still apply. */
11360 /* The GNU C library defines this for functions which it implements
11361 to always fail with ENOSYS. Some functions are actually named
11362 something starting with __ and the normal name is an alias. */
11363 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11366 char (*f) () = shl_load;
11375 return f != shl_load;
11380 rm -f conftest.$ac_objext conftest$ac_exeext
11381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11382 (eval $ac_link) 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } &&
11386 { ac_try='test -s conftest$ac_exeext'
11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 ac_cv_func_shl_load=yes
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11397 ac_cv_func_shl_load=no
11399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11401 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11402 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11403 if test $ac_cv_func_shl_load = yes; then
11404 lt_cv_dlopen="shl_load"
11406 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11407 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11408 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 ac_check_lib_save_LIBS=$LIBS
11413 cat >conftest.$ac_ext <<_ACEOF
11414 #line $LINENO "configure"
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11421 /* Override any gcc2 internal prototype to avoid an error. */
11425 /* We use char because int might match the return type of a gcc2
11426 builtin and then its argument prototype would still apply. */
11436 rm -f conftest.$ac_objext conftest$ac_exeext
11437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11438 (eval $ac_link) 2>&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
11442 { ac_try='test -s conftest$ac_exeext'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }; then
11448 ac_cv_lib_dld_shl_load=yes
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11453 ac_cv_lib_dld_shl_load=no
11455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11456 LIBS=$ac_check_lib_save_LIBS
11458 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11459 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11460 if test $ac_cv_lib_dld_shl_load = yes; then
11461 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11463 echo "$as_me:$LINENO: checking for dlopen" >&5
11464 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11465 if test "${ac_cv_func_dlopen+set}" = set; then
11466 echo $ECHO_N "(cached) $ECHO_C" >&6
11468 cat >conftest.$ac_ext <<_ACEOF
11469 #line $LINENO "configure"
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11475 /* System header to define __stub macros and hopefully few prototypes,
11476 which can conflict with char dlopen (); below.
11477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11478 <limits.h> exists even on freestanding compilers. */
11480 # include <limits.h>
11482 # include <assert.h>
11484 /* Override any gcc2 internal prototype to avoid an error. */
11489 /* We use char because int might match the return type of a gcc2
11490 builtin and then its argument prototype would still apply. */
11492 /* The GNU C library defines this for functions which it implements
11493 to always fail with ENOSYS. Some functions are actually named
11494 something starting with __ and the normal name is an alias. */
11495 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11498 char (*f) () = dlopen;
11507 return f != dlopen;
11512 rm -f conftest.$ac_objext conftest$ac_exeext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11514 (eval $ac_link) 2>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
11518 { ac_try='test -s conftest$ac_exeext'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; }; then
11524 ac_cv_func_dlopen=yes
11526 echo "$as_me: failed program was:" >&5
11527 sed 's/^/| /' conftest.$ac_ext >&5
11529 ac_cv_func_dlopen=no
11531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11533 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11534 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11535 if test $ac_cv_func_dlopen = yes; then
11536 lt_cv_dlopen="dlopen"
11538 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11539 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11540 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 ac_check_lib_save_LIBS=$LIBS
11545 cat >conftest.$ac_ext <<_ACEOF
11546 #line $LINENO "configure"
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11553 /* Override any gcc2 internal prototype to avoid an error. */
11557 /* We use char because int might match the return type of a gcc2
11558 builtin and then its argument prototype would still apply. */
11568 rm -f conftest.$ac_objext conftest$ac_exeext
11569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11570 (eval $ac_link) 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try='test -s conftest$ac_exeext'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 ac_cv_lib_dl_dlopen=yes
11582 echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11585 ac_cv_lib_dl_dlopen=no
11587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11588 LIBS=$ac_check_lib_save_LIBS
11590 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11591 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11592 if test $ac_cv_lib_dl_dlopen = yes; then
11593 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11595 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11596 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11597 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 ac_check_lib_save_LIBS=$LIBS
11601 LIBS="-lsvld $LIBS"
11602 cat >conftest.$ac_ext <<_ACEOF
11603 #line $LINENO "configure"
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11610 /* Override any gcc2 internal prototype to avoid an error. */
11614 /* We use char because int might match the return type of a gcc2
11615 builtin and then its argument prototype would still apply. */
11625 rm -f conftest.$ac_objext conftest$ac_exeext
11626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11627 (eval $ac_link) 2>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } &&
11631 { ac_try='test -s conftest$ac_exeext'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; }; then
11637 ac_cv_lib_svld_dlopen=yes
11639 echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11642 ac_cv_lib_svld_dlopen=no
11644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11645 LIBS=$ac_check_lib_save_LIBS
11647 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11648 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11649 if test $ac_cv_lib_svld_dlopen = yes; then
11650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11652 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11653 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11654 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11657 ac_check_lib_save_LIBS=$LIBS
11659 cat >conftest.$ac_ext <<_ACEOF
11660 #line $LINENO "configure"
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11667 /* Override any gcc2 internal prototype to avoid an error. */
11671 /* We use char because int might match the return type of a gcc2
11672 builtin and then its argument prototype would still apply. */
11682 rm -f conftest.$ac_objext conftest$ac_exeext
11683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11684 (eval $ac_link) 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } &&
11688 { ac_try='test -s conftest$ac_exeext'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 ac_cv_lib_dld_dld_link=yes
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11699 ac_cv_lib_dld_dld_link=no
11701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11702 LIBS=$ac_check_lib_save_LIBS
11704 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11705 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11706 if test $ac_cv_lib_dld_dld_link = yes; then
11707 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11728 if test "x$lt_cv_dlopen" != xno; then
11734 case $lt_cv_dlopen in
11736 save_CPPFLAGS="$CPPFLAGS"
11737 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11739 save_LDFLAGS="$LDFLAGS"
11740 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11743 LIBS="$lt_cv_dlopen_libs $LIBS"
11745 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11746 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11747 if test "${lt_cv_dlopen_self+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11750 if test "$cross_compiling" = yes; then :
11751 lt_cv_dlopen_self=cross
11753 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11754 lt_status=$lt_dlunknown
11755 cat > conftest.$ac_ext <<EOF
11756 #line 11756 "configure"
11757 #include "confdefs.h"
11766 # define LT_DLGLOBAL RTLD_GLOBAL
11769 # define LT_DLGLOBAL DL_GLOBAL
11771 # define LT_DLGLOBAL 0
11775 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11776 find out it does not work in some platform. */
11777 #ifndef LT_DLLAZY_OR_NOW
11779 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11782 # define LT_DLLAZY_OR_NOW DL_LAZY
11785 # define LT_DLLAZY_OR_NOW RTLD_NOW
11788 # define LT_DLLAZY_OR_NOW DL_NOW
11790 # define LT_DLLAZY_OR_NOW 0
11798 extern "C" void exit (int);
11801 void fnord() { int i=42;}
11804 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11805 int status = $lt_dlunknown;
11809 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11810 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11811 /* dlclose (self); */
11817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11818 (eval $ac_link) 2>&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11822 (./conftest; exit; ) 2>/dev/null
11824 case x$lt_status in
11825 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11826 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11827 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11830 # compilation failed
11831 lt_cv_dlopen_self=no
11838 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11839 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11841 if test "x$lt_cv_dlopen_self" = xyes; then
11842 LDFLAGS="$LDFLAGS $link_static_flag"
11843 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11844 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11845 if test "${lt_cv_dlopen_self_static+set}" = set; then
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
11848 if test "$cross_compiling" = yes; then :
11849 lt_cv_dlopen_self_static=cross
11851 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11852 lt_status=$lt_dlunknown
11853 cat > conftest.$ac_ext <<EOF
11854 #line 11854 "configure"
11855 #include "confdefs.h"
11864 # define LT_DLGLOBAL RTLD_GLOBAL
11867 # define LT_DLGLOBAL DL_GLOBAL
11869 # define LT_DLGLOBAL 0
11873 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11874 find out it does not work in some platform. */
11875 #ifndef LT_DLLAZY_OR_NOW
11877 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11880 # define LT_DLLAZY_OR_NOW DL_LAZY
11883 # define LT_DLLAZY_OR_NOW RTLD_NOW
11886 # define LT_DLLAZY_OR_NOW DL_NOW
11888 # define LT_DLLAZY_OR_NOW 0
11896 extern "C" void exit (int);
11899 void fnord() { int i=42;}
11902 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11903 int status = $lt_dlunknown;
11907 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11908 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11909 /* dlclose (self); */
11915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11916 (eval $ac_link) 2>&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11920 (./conftest; exit; ) 2>/dev/null
11922 case x$lt_status in
11923 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11924 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11925 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11928 # compilation failed
11929 lt_cv_dlopen_self_static=no
11936 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11937 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11940 CPPFLAGS="$save_CPPFLAGS"
11941 LDFLAGS="$save_LDFLAGS"
11946 case $lt_cv_dlopen_self in
11947 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11948 *) enable_dlopen_self=unknown ;;
11951 case $lt_cv_dlopen_self_static in
11952 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11953 *) enable_dlopen_self_static=unknown ;;
11958 # The else clause should only fire when bootstrapping the
11959 # libtool distribution, otherwise you forgot to ship ltmain.sh
11960 # with your package, and you will get complaints that there are
11961 # no rules to generate ltmain.sh.
11962 if test -f "$ltmain"; then
11963 # See if we are running on zsh, and set the options which allow our commands through
11964 # without removal of \ escapes.
11965 if test -n "${ZSH_VERSION+set}" ; then
11966 setopt NO_GLOB_SUBST
11968 # Now quote all the things that may contain metacharacters while being
11969 # careful not to overquote the AC_SUBSTed values. We take copies of the
11970 # variables and quote the copies for generation of the libtool script.
11971 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11972 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11973 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11974 deplibs_check_method reload_flag reload_cmds need_locks \
11975 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11976 lt_cv_sys_global_symbol_to_c_name_address \
11977 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11978 old_postinstall_cmds old_postuninstall_cmds \
11982 lt_prog_compiler_wl_CXX \
11983 lt_prog_compiler_pic_CXX \
11984 lt_prog_compiler_static_CXX \
11985 lt_prog_compiler_no_builtin_flag_CXX \
11986 export_dynamic_flag_spec_CXX \
11987 thread_safe_flag_spec_CXX \
11988 whole_archive_flag_spec_CXX \
11989 enable_shared_with_static_runtimes_CXX \
11990 old_archive_cmds_CXX \
11991 old_archive_from_new_cmds_CXX \
11992 predep_objects_CXX \
11993 postdep_objects_CXX \
11996 compiler_lib_search_path_CXX \
11998 archive_expsym_cmds_CXX \
11999 postinstall_cmds_CXX \
12000 postuninstall_cmds_CXX \
12001 old_archive_from_expsyms_cmds_CXX \
12002 allow_undefined_flag_CXX \
12003 no_undefined_flag_CXX \
12004 export_symbols_cmds_CXX \
12005 hardcode_libdir_flag_spec_CXX \
12006 hardcode_libdir_flag_spec_ld_CXX \
12007 hardcode_libdir_separator_CXX \
12008 hardcode_automatic_CXX \
12010 module_expsym_cmds_CXX \
12011 lt_cv_prog_compiler_c_o_CXX \
12012 exclude_expsyms_CXX \
12013 include_expsyms_CXX; do
12016 old_archive_cmds_CXX | \
12017 old_archive_from_new_cmds_CXX | \
12018 archive_cmds_CXX | \
12019 archive_expsym_cmds_CXX | \
12020 module_cmds_CXX | \
12021 module_expsym_cmds_CXX | \
12022 old_archive_from_expsyms_cmds_CXX | \
12023 export_symbols_cmds_CXX | \
12024 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12025 postinstall_cmds | postuninstall_cmds | \
12026 old_postinstall_cmds | old_postuninstall_cmds | \
12027 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12028 # Double-quote double-evaled strings.
12029 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12032 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12038 *'\$0 --fallback-echo"')
12039 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12045 cat <<__EOF__ >> "$cfgfile"
12046 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12048 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12050 # Shell to use when invoking shell scripts.
12053 # Whether or not to build shared libraries.
12054 build_libtool_libs=$enable_shared
12056 # Whether or not to build static libraries.
12057 build_old_libs=$enable_static
12059 # Whether or not to add -lc for building shared libraries.
12060 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12062 # Whether or not to disallow shared libs when runtime libs are static
12063 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12065 # Whether or not to optimize for fast installation.
12066 fast_install=$enable_fast_install
12069 host_alias=$host_alias
12072 # An echo program that does not interpret backslashes.
12077 AR_FLAGS=$lt_AR_FLAGS
12082 # A language-specific compiler.
12083 CC=$lt_compiler_CXX
12085 # Is the compiler the GNU C compiler?
12091 # The linker used to build libraries.
12094 # Whether we need hard or soft links.
12097 # A BSD-compatible nm program.
12100 # A symbol stripping program
12103 # Used to examine libraries when file_magic_cmd begins "file"
12104 MAGIC_CMD=$MAGIC_CMD
12106 # Used on cygwin: DLL creation program.
12109 # Used on cygwin: object dumper.
12112 # Used on cygwin: assembler.
12115 # The name of the directory that contains temporary libtool files.
12118 # How to create reloadable object files.
12119 reload_flag=$lt_reload_flag
12120 reload_cmds=$lt_reload_cmds
12122 # How to pass a linker flag through the compiler.
12123 wl=$lt_lt_prog_compiler_wl_CXX
12125 # Object file suffix (normally "o").
12126 objext="$ac_objext"
12128 # Old archive suffix (normally "a").
12131 # Shared library suffix (normally ".so").
12134 # Executable file suffix (normally "").
12137 # Additional compiler flags for building library objects.
12138 pic_flag=$lt_lt_prog_compiler_pic_CXX
12141 # What is the maximum length of a command?
12142 max_cmd_len=$lt_cv_sys_max_cmd_len
12144 # Does compiler simultaneously support -c and -o options?
12145 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12147 # Must we lock files when doing compilation ?
12148 need_locks=$lt_need_locks
12150 # Do we need the lib prefix for modules?
12151 need_lib_prefix=$need_lib_prefix
12153 # Do we need a version for libraries?
12154 need_version=$need_version
12156 # Whether dlopen is supported.
12157 dlopen_support=$enable_dlopen
12159 # Whether dlopen of programs is supported.
12160 dlopen_self=$enable_dlopen_self
12162 # Whether dlopen of statically linked programs is supported.
12163 dlopen_self_static=$enable_dlopen_self_static
12165 # Compiler flag to prevent dynamic linking.
12166 link_static_flag=$lt_lt_prog_compiler_static_CXX
12168 # Compiler flag to turn off builtin functions.
12169 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12171 # Compiler flag to allow reflexive dlopens.
12172 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12174 # Compiler flag to generate shared objects directly from archives.
12175 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12177 # Compiler flag to generate thread-safe objects.
12178 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12180 # Library versioning type.
12181 version_type=$version_type
12183 # Format of library name prefix.
12184 libname_spec=$lt_libname_spec
12186 # List of archive names. First name is the real one, the rest are links.
12187 # The last name is the one that the linker finds with -lNAME.
12188 library_names_spec=$lt_library_names_spec
12190 # The coded name of the library, if different from the real name.
12191 soname_spec=$lt_soname_spec
12193 # Commands used to build and install an old-style archive.
12195 old_archive_cmds=$lt_old_archive_cmds_CXX
12196 old_postinstall_cmds=$lt_old_postinstall_cmds
12197 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12199 # Create an old-style archive from a shared archive.
12200 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12202 # Create a temporary old-style archive to link instead of a shared archive.
12203 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12205 # Commands used to build and install a shared archive.
12206 archive_cmds=$lt_archive_cmds_CXX
12207 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12208 postinstall_cmds=$lt_postinstall_cmds
12209 postuninstall_cmds=$lt_postuninstall_cmds
12211 # Commands used to build a loadable module (assumed same as above if empty)
12212 module_cmds=$lt_module_cmds_CXX
12213 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12215 # Commands to strip libraries.
12216 old_striplib=$lt_old_striplib
12217 striplib=$lt_striplib
12219 # Dependencies to place before the objects being linked to create a
12221 predep_objects=$lt_predep_objects_CXX
12223 # Dependencies to place after the objects being linked to create a
12225 postdep_objects=$lt_postdep_objects_CXX
12227 # Dependencies to place before the objects being linked to create a
12229 predeps=$lt_predeps_CXX
12231 # Dependencies to place after the objects being linked to create a
12233 postdeps=$lt_postdeps_CXX
12235 # The library search path used internally by the compiler when linking
12236 # a shared library.
12237 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12239 # Method to check whether dependent libraries are shared objects.
12240 deplibs_check_method=$lt_deplibs_check_method
12242 # Command to use when deplibs_check_method == file_magic.
12243 file_magic_cmd=$lt_file_magic_cmd
12245 # Flag that allows shared libraries with undefined symbols to be built.
12246 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12248 # Flag that forces no undefined symbols.
12249 no_undefined_flag=$lt_no_undefined_flag_CXX
12251 # Commands used to finish a libtool library installation in a directory.
12252 finish_cmds=$lt_finish_cmds
12254 # Same as above, but a single script fragment to be evaled but not shown.
12255 finish_eval=$lt_finish_eval
12257 # Take the output of nm and produce a listing of raw symbols and C names.
12258 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12260 # Transform the output of nm in a proper C declaration
12261 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12263 # Transform the output of nm in a C name address pair
12264 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12266 # This is the shared library runtime path variable.
12267 runpath_var=$runpath_var
12269 # This is the shared library path variable.
12270 shlibpath_var=$shlibpath_var
12272 # Is shlibpath searched before the hard-coded library search path?
12273 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12275 # How to hardcode a shared library path into an executable.
12276 hardcode_action=$hardcode_action_CXX
12278 # Whether we should hardcode library paths into libraries.
12279 hardcode_into_libs=$hardcode_into_libs
12281 # Flag to hardcode \$libdir into a binary during linking.
12282 # This must work even if \$libdir does not exist.
12283 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12285 # If ld is used when linking, flag to hardcode \$libdir into
12286 # a binary during linking. This must work even if \$libdir does
12288 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12290 # Whether we need a single -rpath flag with a separated argument.
12291 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12293 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12294 # resulting binary.
12295 hardcode_direct=$hardcode_direct_CXX
12297 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12298 # resulting binary.
12299 hardcode_minus_L=$hardcode_minus_L_CXX
12301 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12302 # the resulting binary.
12303 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12305 # Set to yes if building a shared library automatically hardcodes DIR into the library
12306 # and all subsequent libraries and executables linked against it.
12307 hardcode_automatic=$hardcode_automatic_CXX
12309 # Variables whose values should be saved in libtool wrapper scripts and
12310 # restored at relink time.
12311 variables_saved_for_relink="$variables_saved_for_relink"
12313 # Whether libtool must link a program against all its dependency libraries.
12314 link_all_deplibs=$link_all_deplibs_CXX
12316 # Compile-time system search path for libraries
12317 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12319 # Run-time system search path for libraries
12320 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12322 # Fix the shell variable \$srcfile for the compiler.
12323 fix_srcfile_path="$fix_srcfile_path_CXX"
12325 # Set to yes if exported symbols are required.
12326 always_export_symbols=$always_export_symbols_CXX
12328 # The commands to list exported symbols.
12329 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12331 # The commands to extract the exported symbol list from a shared archive.
12332 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12334 # Symbols that should not be listed in the preloaded symbols.
12335 exclude_expsyms=$lt_exclude_expsyms_CXX
12337 # Symbols that must always be exported.
12338 include_expsyms=$lt_include_expsyms_CXX
12340 # ### END LIBTOOL TAG CONFIG: $tagname
12346 # If there is no Makefile yet, we rely on a make rule to execute
12347 # `config.status --recheck' to rerun these tests and create the
12348 # libtool script then.
12349 test -f Makefile && make "$ltmain"
12354 ac_cpp='$CPP $CPPFLAGS'
12355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12363 with_gnu_ldcxx=$with_gnu_ld
12364 with_gnu_ld=$lt_save_with_gnu_ld
12365 lt_cv_path_LDCXX=$lt_cv_path_LD
12366 lt_cv_path_LD=$lt_save_path_LD
12367 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12368 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12376 if test -n "$F77" && test "X$F77" != "Xno"; then
12379 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12380 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12381 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12384 archive_cmds_need_lc_F77=no
12385 allow_undefined_flag_F77=
12386 always_export_symbols_F77=no
12387 archive_expsym_cmds_F77=
12388 export_dynamic_flag_spec_F77=
12389 hardcode_direct_F77=no
12390 hardcode_libdir_flag_spec_F77=
12391 hardcode_libdir_flag_spec_ld_F77=
12392 hardcode_libdir_separator_F77=
12393 hardcode_minus_L_F77=no
12394 hardcode_automatic_F77=no
12396 module_expsym_cmds_F77=
12397 link_all_deplibs_F77=unknown
12398 old_archive_cmds_F77=$old_archive_cmds
12399 no_undefined_flag_F77=
12400 whole_archive_flag_spec_F77=
12401 enable_shared_with_static_runtimes_F77=no
12403 # Source file extension for f77 test sources.
12406 # Object file extension for compiled f77 test sources.
12410 # Code to be used in simple compile tests
12411 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12413 # Code to be used in simple link tests
12414 lt_simple_link_test_code=" program t\n end\n"
12416 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12418 # If no C compiler was specified, use CC.
12421 # Allow CC to be a program name with arguments.
12425 # Allow CC to be a program name with arguments.
12430 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12432 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12433 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12434 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12435 echo "${ECHO_T}$can_build_shared" >&6
12437 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12438 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12439 test "$can_build_shared" = "no" && enable_shared=no
12441 # On AIX, shared libraries and static libraries use the same namespace, and
12442 # are all built from PIC.
12445 test "$enable_shared" = yes && enable_static=no
12446 if test -n "$RANLIB"; then
12447 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12448 postinstall_cmds='$RANLIB $lib'
12452 test "$enable_shared" = yes && enable_static=no
12455 echo "$as_me:$LINENO: result: $enable_shared" >&5
12456 echo "${ECHO_T}$enable_shared" >&6
12458 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12459 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12460 # Make sure either enable_shared or enable_static is yes.
12461 test "$enable_shared" = yes || enable_static=yes
12462 echo "$as_me:$LINENO: result: $enable_static" >&5
12463 echo "${ECHO_T}$enable_static" >&6
12465 test "$ld_shlibs_F77" = no && can_build_shared=no
12470 lt_prog_compiler_wl_F77=
12471 lt_prog_compiler_pic_F77=
12472 lt_prog_compiler_static_F77=
12474 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12475 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12477 if test "$GCC" = yes; then
12478 lt_prog_compiler_wl_F77='-Wl,'
12479 lt_prog_compiler_static_F77='-static'
12483 # All AIX code is PIC.
12484 if test "$host_cpu" = ia64; then
12485 # AIX 5 now supports IA64 processor
12486 lt_prog_compiler_static_F77='-Bstatic'
12491 # FIXME: we need at least 68020 code to build shared libraries, but
12492 # adding the `-m68020' flag to GCC prevents building anything better,
12494 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12497 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12498 # PIC is the default for these OSes.
12501 mingw* | pw32* | os2*)
12502 # This hack is so that the source file can tell whether it is being
12503 # built for inclusion in a dll (and should export symbols for example).
12504 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12507 darwin* | rhapsody*)
12508 # PIC is the default on this platform
12509 # Common symbols not allowed in MH_DYLIB files
12510 lt_prog_compiler_pic_F77='-fno-common'
12514 # Just because we use GCC doesn't mean we suddenly get shared libraries
12515 # on systems that don't support them.
12516 lt_prog_compiler_can_build_shared_F77=no
12521 if test -d /usr/nec; then
12522 lt_prog_compiler_pic_F77=-Kconform_pic
12527 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12528 # not for PA HP-UX.
12529 case "$host_cpu" in
12534 lt_prog_compiler_pic_F77='-fPIC'
12540 lt_prog_compiler_pic_F77='-fPIC'
12544 # PORTME Check for flag to pass linker flags through the system compiler.
12547 lt_prog_compiler_wl_F77='-Wl,'
12548 if test "$host_cpu" = ia64; then
12549 # AIX 5 now supports IA64 processor
12550 lt_prog_compiler_static_F77='-Bstatic'
12552 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12556 mingw* | pw32* | os2*)
12557 # This hack is so that the source file can tell whether it is being
12558 # built for inclusion in a dll (and should export symbols for example).
12559 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12562 hpux9* | hpux10* | hpux11*)
12563 lt_prog_compiler_wl_F77='-Wl,'
12564 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12565 # not for PA HP-UX.
12566 case "$host_cpu" in
12571 lt_prog_compiler_pic_F77='+Z'
12574 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12575 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12578 irix5* | irix6* | nonstopux*)
12579 lt_prog_compiler_wl_F77='-Wl,'
12580 # PIC (with -KPIC) is the default.
12581 lt_prog_compiler_static_F77='-non_shared'
12585 lt_prog_compiler_pic_F77='-KPIC'
12586 lt_prog_compiler_static_F77='-Bstatic'
12592 lt_prog_compiler_wl_F77='-Wl,'
12593 lt_prog_compiler_pic_F77='-KPIC'
12594 lt_prog_compiler_static_F77='-static'
12597 lt_prog_compiler_wl_F77='-Wl,'
12598 # All Alpha code is PIC.
12599 lt_prog_compiler_static_F77='-non_shared'
12604 osf3* | osf4* | osf5*)
12605 lt_prog_compiler_wl_F77='-Wl,'
12606 # All OSF/1 code is PIC.
12607 lt_prog_compiler_static_F77='-non_shared'
12611 lt_prog_compiler_pic_F77='-Kpic'
12612 lt_prog_compiler_static_F77='-dn'
12616 lt_prog_compiler_wl_F77='-Wl,'
12617 lt_prog_compiler_pic_F77='-KPIC'
12618 lt_prog_compiler_static_F77='-Bstatic'
12622 lt_prog_compiler_wl_F77='-Qoption ld '
12623 lt_prog_compiler_pic_F77='-PIC'
12624 lt_prog_compiler_static_F77='-Bstatic'
12627 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12628 lt_prog_compiler_wl_F77='-Wl,'
12629 lt_prog_compiler_pic_F77='-KPIC'
12630 lt_prog_compiler_static_F77='-Bstatic'
12634 if test -d /usr/nec ;then
12635 lt_prog_compiler_pic_F77='-Kconform_pic'
12636 lt_prog_compiler_static_F77='-Bstatic'
12641 lt_prog_compiler_pic_F77='-pic'
12642 lt_prog_compiler_static_F77='-Bstatic'
12646 lt_prog_compiler_can_build_shared_F77=no
12651 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12652 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12655 # Check to make sure the PIC flag actually works.
12657 if test -n "$lt_prog_compiler_pic_F77"; then
12658 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12659 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12660 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
12663 lt_prog_compiler_pic_works_F77=no
12664 ac_outfile=conftest.$ac_objext
12665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12666 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12667 # Insert the option either (1) after the last *FLAGS variable, or
12668 # (2) before a word containing "conftest.", or (3) at the end.
12669 # Note that $ac_compile itself does not contain backslashes and begins
12670 # with a dollar sign (not a hyphen), so the echo should work correctly.
12671 # The option is referenced via a variable to avoid confusing sed.
12672 lt_compile=`echo "$ac_compile" | $SED \
12673 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12675 -e 's:$: $lt_compiler_flag:'`
12676 (eval echo "\"\$as_me:12676: $lt_compile\"" >&5)
12677 (eval "$lt_compile" 2>conftest.err)
12679 cat conftest.err >&5
12680 echo "$as_me:12680: \$? = $ac_status" >&5
12681 if (exit $ac_status) && test -s "$ac_outfile"; then
12682 # The compiler can only warn and ignore the option if not recognized
12683 # So say no if there are warnings
12684 if test ! -s conftest.err; then
12685 lt_prog_compiler_pic_works_F77=yes
12691 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12692 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12694 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12695 case $lt_prog_compiler_pic_F77 in
12697 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12700 lt_prog_compiler_pic_F77=
12701 lt_prog_compiler_can_build_shared_F77=no
12706 # For platforms which do not support PIC, -DPIC is meaningless:
12708 lt_prog_compiler_pic_F77=
12711 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12715 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12716 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12717 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12718 echo $ECHO_N "(cached) $ECHO_C" >&6
12720 lt_cv_prog_compiler_c_o_F77=no
12721 $rm -r conftest 2>/dev/null
12725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12727 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12728 # that will create temporary files in the current directory regardless of
12729 # the output directory. Thus, making CWD read-only will cause this test
12730 # to fail, enabling locking or at least warning the user not to do parallel
12734 lt_compiler_flag="-o out/conftest2.$ac_objext"
12735 # Insert the option either (1) after the last *FLAGS variable, or
12736 # (2) before a word containing "conftest.", or (3) at the end.
12737 # Note that $ac_compile itself does not contain backslashes and begins
12738 # with a dollar sign (not a hyphen), so the echo should work correctly.
12739 lt_compile=`echo "$ac_compile" | $SED \
12740 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12742 -e 's:$: $lt_compiler_flag:'`
12743 (eval echo "\"\$as_me:12743: $lt_compile\"" >&5)
12744 (eval "$lt_compile" 2>out/conftest.err)
12746 cat out/conftest.err >&5
12747 echo "$as_me:12747: \$? = $ac_status" >&5
12748 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12750 # The compiler can only warn and ignore the option if not recognized
12751 # So say no if there are warnings
12752 if test ! -s out/conftest.err; then
12753 lt_cv_prog_compiler_c_o_F77=yes
12757 $rm conftest* out/*
12764 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12765 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12768 hard_links="nottested"
12769 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12770 # do not overwrite the value of need_locks provided by the user
12771 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12772 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12777 ln conftest.a conftest.b 2>&5 || hard_links=no
12778 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12779 echo "$as_me:$LINENO: result: $hard_links" >&5
12780 echo "${ECHO_T}$hard_links" >&6
12781 if test "$hard_links" = no; then
12782 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12783 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12790 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12791 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12794 allow_undefined_flag_F77=
12795 enable_shared_with_static_runtimes_F77=no
12797 archive_expsym_cmds_F77=
12798 old_archive_From_new_cmds_F77=
12799 old_archive_from_expsyms_cmds_F77=
12800 export_dynamic_flag_spec_F77=
12801 whole_archive_flag_spec_F77=
12802 thread_safe_flag_spec_F77=
12803 hardcode_libdir_flag_spec_F77=
12804 hardcode_libdir_flag_spec_ld_F77=
12805 hardcode_libdir_separator_F77=
12806 hardcode_direct_F77=no
12807 hardcode_minus_L_F77=no
12808 hardcode_shlibpath_var_F77=unsupported
12809 link_all_deplibs_F77=unknown
12810 hardcode_automatic_F77=no
12812 module_expsym_cmds_F77=
12813 always_export_symbols_F77=no
12814 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12815 # include_expsyms should be a list of space-separated symbols to be *always*
12816 # included in the symbol list
12817 include_expsyms_F77=
12818 # exclude_expsyms can be an extended regexp of symbols to exclude
12819 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12820 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12821 # as well as any symbol that contains `d'.
12822 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12823 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12824 # platforms (ab)use it in PIC code, but their linkers get confused if
12825 # the symbol is explicitly referenced. Since portable code cannot
12826 # rely on this symbol name, it's probably fine to never include it in
12827 # preloaded symbol tables.
12828 extract_expsyms_cmds=
12831 cygwin* | mingw* | pw32*)
12832 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12833 # When not using gcc, we currently assume that we are using
12834 # Microsoft Visual C++.
12835 if test "$GCC" != yes; then
12845 if test "$with_gnu_ld" = yes; then
12846 # If archive_cmds runs LD, not CC, wlarc should be empty
12849 # See if GNU ld supports shared libraries.
12851 aix3* | aix4* | aix5*)
12852 # On AIX/PPC, the GNU linker is very broken
12853 if test "$host_cpu" != ia64; then
12857 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12858 *** to be unable to reliably create shared libraries on AIX.
12859 *** Therefore, libtool is disabling shared libraries support. If you
12860 *** really care for shared libraries, you may want to modify your PATH
12861 *** so that a non-GNU linker is found, and then restart.
12868 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)'
12869 hardcode_libdir_flag_spec_F77='-L$libdir'
12870 hardcode_minus_L_F77=yes
12872 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12873 # that the semantics of dynamic libraries on AmigaOS, at least up
12874 # to version 4, is to share data among multiple programs linked
12875 # with the same dynamic library. Since this doesn't match the
12876 # behavior of shared libraries on other platforms, we can't use
12882 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12883 allow_undefined_flag_F77=unsupported
12884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12885 # support --undefined. This deserves some investigation. FIXME
12886 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12892 cygwin* | mingw* | pw32*)
12893 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12894 # as there is no search path for DLLs.
12895 hardcode_libdir_flag_spec_F77='-L$libdir'
12896 allow_undefined_flag_F77=unsupported
12897 always_export_symbols_F77=no
12898 enable_shared_with_static_runtimes_F77=yes
12899 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12901 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12902 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12903 # If the export-symbols file already is a .def file (1st line
12904 # is EXPORTS), use it as is; otherwise, prepend...
12905 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12906 cp $export_symbols $output_objdir/$soname.def;
12908 echo EXPORTS > $output_objdir/$soname.def;
12909 cat $export_symbols >> $output_objdir/$soname.def;
12911 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12918 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12919 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12922 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12923 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12928 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12932 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12933 *** create shared libraries on Solaris systems. Therefore, libtool
12934 *** is disabling shared libraries support. We urge you to upgrade GNU
12935 *** binutils to release 2.9.1 or newer. Another option is to modify
12936 *** your PATH or compiler configuration so that the native linker is
12937 *** used, and then restart.
12940 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12941 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12942 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12949 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12951 hardcode_direct_F77=yes
12952 hardcode_shlibpath_var_F77=no
12956 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12957 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12958 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12965 if test "$ld_shlibs_F77" = yes; then
12966 runpath_var=LD_RUN_PATH
12967 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12968 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12969 # ancient GNU ld didn't support --whole-archive et. al.
12970 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12971 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12973 whole_archive_flag_spec_F77=
12977 # PORTME fill in a description of your system's linker (not GNU ld)
12980 allow_undefined_flag_F77=unsupported
12981 always_export_symbols_F77=yes
12982 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'
12983 # Note: this linker hardcodes the directories in LIBPATH if there
12984 # are no directories specified by -L.
12985 hardcode_minus_L_F77=yes
12986 if test "$GCC" = yes && test -z "$link_static_flag"; then
12987 # Neither direct hardcoding nor static linking is supported with a
12989 hardcode_direct_F77=unsupported
12994 if test "$host_cpu" = ia64; then
12995 # On IA64, the linker does run time linking by default, so we don't
12996 # have to do anything special.
12997 aix_use_runtimelinking=no
12998 exp_sym_flag='-Bexport'
13001 # If we're using GNU nm, then we don't want the "-C" option.
13002 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13003 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13004 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'
13006 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'
13008 aix_use_runtimelinking=no
13010 # Test if we are trying to use run time linking or normal
13011 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13012 # need to do runtime linking.
13013 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13014 for ld_flag in $LDFLAGS; do
13015 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13016 aix_use_runtimelinking=yes
13022 exp_sym_flag='-bexport'
13023 no_entry_flag='-bnoentry'
13026 # When large executables or shared objects are built, AIX ld can
13027 # have problems creating the table of contents. If linking a library
13028 # or program results in "error TOC overflow" add -mminimal-toc to
13029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13032 archive_cmds_F77=''
13033 hardcode_direct_F77=yes
13034 hardcode_libdir_separator_F77=':'
13035 link_all_deplibs_F77=yes
13037 if test "$GCC" = yes; then
13038 case $host_os in aix4.012|aix4.012.*)
13039 # We only want to do this on AIX 4.2 and lower, the check
13040 # below for broken collect2 doesn't work under 4.3+
13041 collect2name=`${CC} -print-prog-name=collect2`
13042 if test -f "$collect2name" && \
13043 strings "$collect2name" | grep resolve_lib_name >/dev/null
13045 # We have reworked collect2
13046 hardcode_direct_F77=yes
13048 # We have old collect2
13049 hardcode_direct_F77=unsupported
13050 # It fails to find uninstalled libraries when the uninstalled
13051 # path is not listed in the libpath. Setting hardcode_minus_L
13052 # to unsupported forces relinking
13053 hardcode_minus_L_F77=yes
13054 hardcode_libdir_flag_spec_F77='-L$libdir'
13055 hardcode_libdir_separator_F77=
13058 shared_flag='-shared'
13061 if test "$host_cpu" = ia64; then
13062 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13063 # chokes on -Wl,-G. The following line is correct:
13066 if test "$aix_use_runtimelinking" = yes; then
13067 shared_flag='${wl}-G'
13069 shared_flag='${wl}-bM:SRE'
13074 # It seems that -bexpall does not export symbols beginning with
13075 # underscore (_), so it is better to generate a list of symbols to export.
13076 always_export_symbols_F77=yes
13077 if test "$aix_use_runtimelinking" = yes; then
13078 # Warning - without using the other runtime loading flags (-brtl),
13079 # -berok will link without error, but may produce a broken library.
13080 allow_undefined_flag_F77='-berok'
13081 # Determine the default libpath from the value encoded in an empty executable.
13082 cat >conftest.$ac_ext <<_ACEOF
13087 rm -f conftest.$ac_objext conftest$ac_exeext
13088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13089 (eval $ac_link) 2>&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
13093 { ac_try='test -s conftest$ac_exeext'
13094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095 (eval $ac_try) 2>&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; }; then
13100 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13102 # Check for a 64-bit object if we didn't find anything.
13103 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; }
13106 echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13111 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13113 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13114 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"
13116 if test "$host_cpu" = ia64; then
13117 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13118 allow_undefined_flag_F77="-z nodefs"
13119 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"
13121 # Determine the default libpath from the value encoded in an empty executable.
13122 cat >conftest.$ac_ext <<_ACEOF
13127 rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13129 (eval $ac_link) 2>&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } &&
13133 { ac_try='test -s conftest$ac_exeext'
13134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13142 # Check for a 64-bit object if we didn't find anything.
13143 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; }
13146 echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13151 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13153 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13154 # Warning - without using the other run time loading flags,
13155 # -berok will link without error, but may produce a broken library.
13156 no_undefined_flag_F77=' ${wl}-bernotok'
13157 allow_undefined_flag_F77=' ${wl}-berok'
13158 # -bexpall does not export symbols beginning with underscore (_)
13159 always_export_symbols_F77=yes
13160 # Exported symbols can be pulled into shared objects from archives
13161 whole_archive_flag_spec_F77=' '
13162 archive_cmds_need_lc_F77=yes
13163 # This is similar to how AIX traditionally builds it's shared libraries.
13164 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'
13170 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)'
13171 hardcode_libdir_flag_spec_F77='-L$libdir'
13172 hardcode_minus_L_F77=yes
13173 # see comment about different semantics on the GNU ld section
13178 export_dynamic_flag_spec_F77=-rdynamic
13181 cygwin* | mingw* | pw32*)
13182 # When not using gcc, we currently assume that we are using
13183 # Microsoft Visual C++.
13184 # hardcode_libdir_flag_spec is actually meaningless, as there is
13185 # no search path for DLLs.
13186 hardcode_libdir_flag_spec_F77=' '
13187 allow_undefined_flag_F77=unsupported
13188 # Tell ltmain to make .lib files, not .a files.
13190 # Tell ltmain to make .dll files, not .so files.
13192 # FIXME: Setting linknames here is a bad hack.
13193 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13194 # The linker will automatically build a .lib file if we build a DLL.
13195 old_archive_From_new_cmds_F77='true'
13196 # FIXME: Should let the user specify the lib program.
13197 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13198 fix_srcfile_path='`cygpath -w "$srcfile"`'
13199 enable_shared_with_static_runtimes_F77=yes
13202 darwin* | rhapsody*)
13203 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13204 archive_cmds_need_lc_F77=no
13206 rhapsody* | darwin1.[012])
13207 allow_undefined_flag_F77='-undefined suppress'
13210 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13213 # FIXME: Relying on posixy $() will cause problems for
13214 # cross-compilation, but unfortunately the echo tests do not
13215 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13216 # `"' quotes if we put them in here... so don't!
13217 lt_int_apple_cc_single_mod=no
13218 output_verbose_link_cmd='echo'
13219 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13220 lt_int_apple_cc_single_mod=yes
13222 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13223 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13225 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'
13227 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13228 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13229 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13230 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}'
13232 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}'
13234 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}'
13235 hardcode_direct_F77=no
13236 hardcode_automatic_F77=yes
13237 hardcode_shlibpath_var_F77=unsupported
13238 whole_archive_flag_spec_F77='-all_load $convenience'
13239 link_all_deplibs_F77=yes
13244 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13245 hardcode_libdir_flag_spec_F77='-L$libdir'
13246 hardcode_shlibpath_var_F77=no
13253 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13254 # support. Future versions do this automatically, but an explicit c++rt0.o
13255 # does not break anything, and helps significantly (at the cost of a little
13258 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13259 hardcode_libdir_flag_spec_F77='-R$libdir'
13260 hardcode_direct_F77=yes
13261 hardcode_shlibpath_var_F77=no
13264 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13266 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13267 hardcode_direct_F77=yes
13268 hardcode_minus_L_F77=yes
13269 hardcode_shlibpath_var_F77=no
13272 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13274 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13275 hardcode_libdir_flag_spec_F77='-R$libdir'
13276 hardcode_direct_F77=yes
13277 hardcode_shlibpath_var_F77=no
13281 if test "$GCC" = yes; then
13282 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'
13284 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'
13286 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13287 hardcode_libdir_separator_F77=:
13288 hardcode_direct_F77=yes
13290 # hardcode_minus_L: Not really in the search PATH,
13291 # but as the default location of the library.
13292 hardcode_minus_L_F77=yes
13293 export_dynamic_flag_spec_F77='${wl}-E'
13297 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13298 case "$host_cpu" in
13300 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13303 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13307 case "$host_cpu" in
13309 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13312 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13316 if test "$with_gnu_ld" = no; then
13317 case "$host_cpu" in
13319 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13320 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13321 hardcode_libdir_separator_F77=:
13322 hardcode_direct_F77=no
13323 hardcode_shlibpath_var_F77=no
13326 hardcode_libdir_flag_spec_F77='-L$libdir'
13327 hardcode_direct_F77=no
13328 hardcode_shlibpath_var_F77=no
13330 # hardcode_minus_L: Not really in the search PATH,
13331 # but as the default location of the library.
13332 hardcode_minus_L_F77=yes
13335 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13336 hardcode_libdir_separator_F77=:
13337 hardcode_direct_F77=yes
13338 export_dynamic_flag_spec_F77='${wl}-E'
13340 # hardcode_minus_L: Not really in the search PATH,
13341 # but as the default location of the library.
13342 hardcode_minus_L_F77=yes
13348 irix5* | irix6* | nonstopux*)
13349 if test "$GCC" = yes; then
13350 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'
13352 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'
13353 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13355 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13356 hardcode_libdir_separator_F77=:
13357 link_all_deplibs_F77=yes
13361 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13362 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13364 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13366 hardcode_libdir_flag_spec_F77='-R$libdir'
13367 hardcode_direct_F77=yes
13368 hardcode_shlibpath_var_F77=no
13372 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13373 hardcode_direct_F77=yes
13374 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13375 hardcode_libdir_separator_F77=:
13376 hardcode_shlibpath_var_F77=no
13380 hardcode_direct_F77=yes
13381 hardcode_shlibpath_var_F77=no
13382 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13383 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13384 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13385 export_dynamic_flag_spec_F77='${wl}-E'
13388 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13389 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13390 hardcode_libdir_flag_spec_F77='-R$libdir'
13393 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13394 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13401 hardcode_libdir_flag_spec_F77='-L$libdir'
13402 hardcode_minus_L_F77=yes
13403 allow_undefined_flag_F77=unsupported
13404 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'
13405 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13409 if test "$GCC" = yes; then
13410 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13411 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'
13413 allow_undefined_flag_F77=' -expect_unresolved \*'
13414 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'
13416 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13417 hardcode_libdir_separator_F77=:
13420 osf4* | osf5*) # as osf3* with the addition of -msym flag
13421 if test "$GCC" = yes; then
13422 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13423 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'
13424 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13426 allow_undefined_flag_F77=' -expect_unresolved \*'
13427 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'
13428 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~
13429 $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'
13431 # Both c and cxx compiler support -rpath directly
13432 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13434 hardcode_libdir_separator_F77=:
13438 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13439 hardcode_shlibpath_var_F77=no
13440 export_dynamic_flag_spec_F77='${wl}-Bexport'
13441 runpath_var=LD_RUN_PATH
13442 hardcode_runpath_var=yes
13446 no_undefined_flag_F77=' -z text'
13447 if test "$GCC" = yes; then
13448 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13449 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13450 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13452 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13453 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13454 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13456 hardcode_libdir_flag_spec_F77='-R$libdir'
13457 hardcode_shlibpath_var_F77=no
13459 solaris2.[0-5] | solaris2.[0-5].*) ;;
13460 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13461 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13463 link_all_deplibs_F77=yes
13467 if test "x$host_vendor" = xsequent; then
13468 # Use $CC to link under sequent, because it throws in some extra .o
13469 # files that make .init and .fini sections work.
13470 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13472 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13474 hardcode_libdir_flag_spec_F77='-L$libdir'
13475 hardcode_direct_F77=yes
13476 hardcode_minus_L_F77=yes
13477 hardcode_shlibpath_var_F77=no
13481 case $host_vendor in
13483 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13484 hardcode_direct_F77=yes # is this really true???
13487 ## LD is ld it makes a PLAMLIB
13488 ## CC just makes a GrossModule.
13489 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13490 reload_cmds_F77='$CC -r -o $output$reload_objs'
13491 hardcode_direct_F77=no
13494 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13495 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13498 runpath_var='LD_RUN_PATH'
13499 hardcode_shlibpath_var_F77=no
13503 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13504 hardcode_shlibpath_var_F77=no
13505 export_dynamic_flag_spec_F77='-Bexport'
13509 if test -d /usr/nec; then
13510 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13511 hardcode_shlibpath_var_F77=no
13512 runpath_var=LD_RUN_PATH
13513 hardcode_runpath_var=yes
13519 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13520 hardcode_direct_F77=yes
13521 hardcode_minus_L_F77=no
13522 hardcode_shlibpath_var_F77=no
13523 hardcode_runpath_var=yes
13524 runpath_var=LD_RUN_PATH
13527 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13528 no_undefined_flag_F77='${wl}-z ${wl}text'
13529 if test "$GCC" = yes; then
13530 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13532 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13534 runpath_var='LD_RUN_PATH'
13535 hardcode_shlibpath_var_F77=no
13539 no_undefined_flag_F77=' -z text'
13540 # $CC -shared without GNU ld will not create a library from C++
13541 # object files and a static libstdc++, better avoid it by now
13542 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13543 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13544 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13545 hardcode_libdir_flag_spec_F77=
13546 hardcode_shlibpath_var_F77=no
13547 runpath_var='LD_RUN_PATH'
13551 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13552 hardcode_libdir_flag_spec_F77='-L$libdir'
13553 hardcode_shlibpath_var_F77=no
13562 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13563 echo "${ECHO_T}$ld_shlibs_F77" >&6
13564 test "$ld_shlibs_F77" = no && can_build_shared=no
13566 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13567 if test "$GCC" = yes; then
13568 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13572 # Do we need to explicitly link libc?
13574 case "x$archive_cmds_need_lc_F77" in
13576 # Assume -lc should be added
13577 archive_cmds_need_lc_F77=yes
13579 if test "$enable_shared" = yes && test "$GCC" = yes; then
13580 case $archive_cmds_F77 in
13582 # FIXME: we may have to deal with multi-command sequences.
13585 # Test whether the compiler implicitly links with -lc since on some
13586 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13587 # to ld, don't add -lc before -lgcc.
13588 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13589 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13594 (eval $ac_compile) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } 2>conftest.err; then
13600 libobjs=conftest.$ac_objext
13602 wl=$lt_prog_compiler_wl_F77
13608 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13609 allow_undefined_flag_F77=
13610 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13611 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }
13616 archive_cmds_need_lc_F77=no
13618 archive_cmds_need_lc_F77=yes
13620 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13622 cat conftest.err 1>&5
13625 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13626 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13633 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13634 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13635 hardcode_action_F77=
13636 if test -n "$hardcode_libdir_flag_spec_F77" || \
13637 test -n "$runpath_var F77" || \
13638 test "X$hardcode_automatic_F77"="Xyes" ; then
13640 # We can hardcode non-existant directories.
13641 if test "$hardcode_direct_F77" != no &&
13642 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13643 # have to relink, otherwise we might link with an installed library
13644 # when we should be linking with a yet-to-be-installed one
13645 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13646 test "$hardcode_minus_L_F77" != no; then
13647 # Linking always hardcodes the temporary library directory.
13648 hardcode_action_F77=relink
13650 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13651 hardcode_action_F77=immediate
13654 # We cannot hardcode anything, or else we can only hardcode existing
13656 hardcode_action_F77=unsupported
13658 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13659 echo "${ECHO_T}$hardcode_action_F77" >&6
13661 if test "$hardcode_action_F77" = relink; then
13662 # Fast installation is not supported
13663 enable_fast_install=no
13664 elif test "$shlibpath_overrides_runpath" = yes ||
13665 test "$enable_shared" = no; then
13666 # Fast installation is not necessary
13667 enable_fast_install=needless
13672 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13673 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13674 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13675 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13676 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13677 echo "$as_me:$LINENO: result: yes" >&5
13678 echo "${ECHO_T}yes" >&6
13680 # FIXME - insert some real tests, host_os isn't really good enough
13683 if test -n "$STRIP" ; then
13684 striplib="$STRIP -x"
13685 echo "$as_me:$LINENO: result: yes" >&5
13686 echo "${ECHO_T}yes" >&6
13688 echo "$as_me:$LINENO: result: no" >&5
13689 echo "${ECHO_T}no" >&6
13693 echo "$as_me:$LINENO: result: no" >&5
13694 echo "${ECHO_T}no" >&6
13699 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13700 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13701 library_names_spec=
13702 libname_spec='lib$name'
13706 postuninstall_cmds=
13710 shlibpath_overrides_runpath=unknown
13712 dynamic_linker="$host_os ld.so"
13713 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13714 if test "$GCC" = yes; then
13715 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13716 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13717 # if the path contains ";" then we assume it to be the separator
13718 # otherwise default to the standard path separator (i.e. ":") - it is
13719 # assumed that no part of a normal pathname contains ";" but that should
13720 # okay in the real world where ";" in dirpaths is itself problematic.
13721 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13723 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13726 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13728 need_lib_prefix=unknown
13729 hardcode_into_libs=no
13731 # when you set need_version to no, make sure it does not cause -set_version
13732 # flags to be left without arguments
13733 need_version=unknown
13738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13739 shlibpath_var=LIBPATH
13741 # AIX 3 has no versioning support, so we append a major version to the name.
13742 soname_spec='${libname}${release}${shared_ext}$major'
13749 hardcode_into_libs=yes
13750 if test "$host_cpu" = ia64; then
13751 # AIX 5 supports IA64
13752 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13753 shlibpath_var=LD_LIBRARY_PATH
13755 # With GCC up to 2.95.x, collect2 would create an import file
13756 # for dependence libraries. The import file would start with
13757 # the line `#! .'. This would cause the generated library to
13758 # depend on `.', always an invalid library. This was fixed in
13759 # development snapshots of GCC prior to 3.0.
13761 aix4 | aix4.[01] | aix4.[01].*)
13762 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13764 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13767 can_build_shared=no
13771 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13772 # soname into executable. Probably we can add versioning support to
13773 # collect2, so additional links can be useful in future.
13774 if test "$aix_use_runtimelinking" = yes; then
13775 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13776 # instead of lib<name>.a to let people know that these are not
13777 # typical AIX shared libraries.
13778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13780 # We preserve .a as extension for shared libraries through AIX4.2
13781 # and later when we are not doing run time linking.
13782 library_names_spec='${libname}${release}.a $libname.a'
13783 soname_spec='${libname}${release}${shared_ext}$major'
13785 shlibpath_var=LIBPATH
13790 library_names_spec='$libname.ixlibrary $libname.a'
13791 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13792 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'
13796 library_names_spec='${libname}${shared_ext}'
13797 dynamic_linker="$host_os ld.so"
13798 shlibpath_var=LIBRARY_PATH
13804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13805 soname_spec='${libname}${release}${shared_ext}$major'
13806 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13807 shlibpath_var=LD_LIBRARY_PATH
13808 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13809 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13810 # the default ld.so.conf also contains /usr/contrib/lib and
13811 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13812 # libtool to hard-code these into programs
13815 cygwin* | mingw* | pw32*)
13816 version_type=windows
13821 case $GCC,$host_os in
13822 yes,cygwin* | yes,mingw* | yes,pw32*)
13823 library_names_spec='$libname.dll.a'
13824 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13825 postinstall_cmds='base_file=`basename \${file}`~
13826 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13827 dldir=$destdir/`dirname \$dlpath`~
13828 test -d \$dldir || mkdir -p \$dldir~
13829 $install_prog $dir/$dlname \$dldir/$dlname'
13830 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13831 dlpath=$dir/\$dldll~
13833 shlibpath_overrides_runpath=yes
13837 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13838 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13839 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13842 # MinGW DLLs use traditional 'lib' prefix
13843 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13844 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13845 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13846 # It is most probably a Windows format PATH printed by
13847 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13848 # path with ; separators, and with drive letters. We can handle the
13849 # drive letters (cygwin fileutils understands them), so leave them,
13850 # especially as we might pass files found there to a mingw objdump,
13851 # which wouldn't understand a cygwinified path. Ahh.
13852 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13854 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13858 # pw32 DLLs use 'pw' prefix rather than 'lib'
13859 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13865 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13868 dynamic_linker='Win32 ld.exe'
13869 # FIXME: first we should search . and the directory the executable is in
13873 darwin* | rhapsody*)
13874 dynamic_linker="$host_os dyld"
13875 version_type=darwin
13878 # FIXME: Relying on posixy $() will cause problems for
13879 # cross-compilation, but unfortunately the echo tests do not
13880 # yet detect zsh echo's removal of \ escapes.
13881 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13882 soname_spec='${libname}${release}${major}$shared_ext'
13883 shlibpath_overrides_runpath=yes
13884 shlibpath_var=DYLD_LIBRARY_PATH
13885 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13886 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13887 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13888 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"`
13890 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13898 soname_spec='${libname}${release}${shared_ext}$major'
13899 shlibpath_var=LD_LIBRARY_PATH
13907 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13908 version_type=freebsd-$objformat
13909 case $version_type in
13911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13920 shlibpath_var=LD_LIBRARY_PATH
13923 shlibpath_overrides_runpath=yes
13925 freebsd3.01* | freebsdelf3.01*)
13926 shlibpath_overrides_runpath=yes
13927 hardcode_into_libs=yes
13930 shlibpath_overrides_runpath=no
13931 hardcode_into_libs=yes
13940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13941 soname_spec='${libname}${release}${shared_ext}$major'
13942 shlibpath_var=LD_LIBRARY_PATH
13943 hardcode_into_libs=yes
13946 hpux9* | hpux10* | hpux11*)
13947 # Give a soname corresponding to the major version so that dld.sl refuses to
13948 # link against other versions.
13952 case "$host_cpu" in
13955 hardcode_into_libs=yes
13956 dynamic_linker="$host_os dld.so"
13957 shlibpath_var=LD_LIBRARY_PATH
13958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960 soname_spec='${libname}${release}${shared_ext}$major'
13961 if test "X$HPUX_IA64_MODE" = X32; then
13962 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13964 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13970 hardcode_into_libs=yes
13971 dynamic_linker="$host_os dld.sl"
13972 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13975 soname_spec='${libname}${release}${shared_ext}$major'
13976 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13981 dynamic_linker="$host_os dld.sl"
13982 shlibpath_var=SHLIB_PATH
13983 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13985 soname_spec='${libname}${release}${shared_ext}$major'
13988 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13989 postinstall_cmds='chmod 555 $lib'
13992 irix5* | irix6* | nonstopux*)
13994 nonstopux*) version_type=nonstopux ;;
13996 if test "$lt_cv_prog_gnu_ld" = yes; then
14004 soname_spec='${libname}${release}${shared_ext}$major'
14005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14007 irix5* | nonstopux*)
14008 libsuff= shlibsuff=
14011 case $LD in # libtool.m4 will add one of these switches to LD
14012 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14013 libsuff= shlibsuff= libmagic=32-bit;;
14014 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14015 libsuff=32 shlibsuff=N32 libmagic=N32;;
14016 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14017 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14018 *) libsuff= shlibsuff= libmagic=never-match;;
14022 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14023 shlibpath_overrides_runpath=no
14024 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14025 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14026 hardcode_into_libs=yes
14029 # No shared lib support for Linux oldld, aout, or coff.
14030 linux*oldld* | linux*aout* | linux*coff*)
14034 # This must be Linux ELF.
14039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14040 soname_spec='${libname}${release}${shared_ext}$major'
14041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14042 shlibpath_var=LD_LIBRARY_PATH
14043 shlibpath_overrides_runpath=no
14044 # This implies no fast_install, which is unacceptable.
14045 # Some rework will be needed to allow for fast_install
14046 # before this can be enabled.
14047 hardcode_into_libs=yes
14049 # We used to test for /lib/ld.so.1 and disable shared libraries on
14050 # powerpc, because MkLinux only supported shared libraries with the
14051 # GNU dynamic linker. Since this was broken with cross compilers,
14052 # most powerpc-linux boxes support dynamic linking these days and
14053 # people can always --disable-shared, the test was removed, and we
14054 # assume the GNU/Linux dynamic linker is in use.
14055 dynamic_linker='GNU/Linux ld.so'
14062 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14065 dynamic_linker='NetBSD (a.out) ld.so'
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 dynamic_linker='NetBSD ld.elf_so'
14071 shlibpath_var=LD_LIBRARY_PATH
14072 shlibpath_overrides_runpath=yes
14073 hardcode_into_libs=yes
14078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079 shlibpath_var=LD_LIBRARY_PATH
14080 shlibpath_overrides_runpath=yes
14087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14088 soname_spec='${libname}${release}${shared_ext}$major'
14089 shlibpath_var=LD_LIBRARY_PATH
14090 shlibpath_overrides_runpath=yes
14097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14099 shlibpath_var=LD_LIBRARY_PATH
14100 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14102 openbsd2.[89] | openbsd2.[89].*)
14103 shlibpath_overrides_runpath=no
14106 shlibpath_overrides_runpath=yes
14110 shlibpath_overrides_runpath=yes
14115 libname_spec='$name'
14118 library_names_spec='$libname${shared_ext} $libname.a'
14119 dynamic_linker='OS/2 ld.exe'
14120 shlibpath_var=LIBPATH
14123 osf3* | osf4* | osf5*)
14127 soname_spec='${libname}${release}${shared_ext}$major'
14128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14129 shlibpath_var=LD_LIBRARY_PATH
14130 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14131 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14136 soname_spec='${libname}${release}${shared_ext}$major'
14137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138 shlibpath_var=LD_LIBRARY_PATH
14145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14146 soname_spec='${libname}${release}${shared_ext}$major'
14147 shlibpath_var=LD_LIBRARY_PATH
14148 shlibpath_overrides_runpath=yes
14149 hardcode_into_libs=yes
14150 # ldd complains unless libraries are executable
14151 postinstall_cmds='chmod +x $lib'
14156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14157 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14158 shlibpath_var=LD_LIBRARY_PATH
14159 shlibpath_overrides_runpath=yes
14160 if test "$with_gnu_ld" = yes; then
14166 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14169 soname_spec='${libname}${release}${shared_ext}$major'
14170 shlibpath_var=LD_LIBRARY_PATH
14171 case $host_vendor in
14173 shlibpath_overrides_runpath=no
14175 export_dynamic_flag_spec='${wl}-Blargedynsym'
14176 runpath_var=LD_RUN_PATH
14184 shlibpath_overrides_runpath=no
14185 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14191 if test -d /usr/nec ;then
14193 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14194 soname_spec='$libname${shared_ext}.$major'
14195 shlibpath_var=LD_LIBRARY_PATH
14201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14202 soname_spec='${libname}${release}${shared_ext}$major'
14203 shlibpath_var=LD_LIBRARY_PATH
14210 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14211 echo "${ECHO_T}$dynamic_linker" >&6
14212 test "$dynamic_linker" = no && can_build_shared=no
14215 # The else clause should only fire when bootstrapping the
14216 # libtool distribution, otherwise you forgot to ship ltmain.sh
14217 # with your package, and you will get complaints that there are
14218 # no rules to generate ltmain.sh.
14219 if test -f "$ltmain"; then
14220 # See if we are running on zsh, and set the options which allow our commands through
14221 # without removal of \ escapes.
14222 if test -n "${ZSH_VERSION+set}" ; then
14223 setopt NO_GLOB_SUBST
14225 # Now quote all the things that may contain metacharacters while being
14226 # careful not to overquote the AC_SUBSTed values. We take copies of the
14227 # variables and quote the copies for generation of the libtool script.
14228 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14229 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14230 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14231 deplibs_check_method reload_flag reload_cmds need_locks \
14232 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14233 lt_cv_sys_global_symbol_to_c_name_address \
14234 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14235 old_postinstall_cmds old_postuninstall_cmds \
14239 lt_prog_compiler_wl_F77 \
14240 lt_prog_compiler_pic_F77 \
14241 lt_prog_compiler_static_F77 \
14242 lt_prog_compiler_no_builtin_flag_F77 \
14243 export_dynamic_flag_spec_F77 \
14244 thread_safe_flag_spec_F77 \
14245 whole_archive_flag_spec_F77 \
14246 enable_shared_with_static_runtimes_F77 \
14247 old_archive_cmds_F77 \
14248 old_archive_from_new_cmds_F77 \
14249 predep_objects_F77 \
14250 postdep_objects_F77 \
14253 compiler_lib_search_path_F77 \
14255 archive_expsym_cmds_F77 \
14256 postinstall_cmds_F77 \
14257 postuninstall_cmds_F77 \
14258 old_archive_from_expsyms_cmds_F77 \
14259 allow_undefined_flag_F77 \
14260 no_undefined_flag_F77 \
14261 export_symbols_cmds_F77 \
14262 hardcode_libdir_flag_spec_F77 \
14263 hardcode_libdir_flag_spec_ld_F77 \
14264 hardcode_libdir_separator_F77 \
14265 hardcode_automatic_F77 \
14267 module_expsym_cmds_F77 \
14268 lt_cv_prog_compiler_c_o_F77 \
14269 exclude_expsyms_F77 \
14270 include_expsyms_F77; do
14273 old_archive_cmds_F77 | \
14274 old_archive_from_new_cmds_F77 | \
14275 archive_cmds_F77 | \
14276 archive_expsym_cmds_F77 | \
14277 module_cmds_F77 | \
14278 module_expsym_cmds_F77 | \
14279 old_archive_from_expsyms_cmds_F77 | \
14280 export_symbols_cmds_F77 | \
14281 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14282 postinstall_cmds | postuninstall_cmds | \
14283 old_postinstall_cmds | old_postuninstall_cmds | \
14284 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14285 # Double-quote double-evaled strings.
14286 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14289 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14295 *'\$0 --fallback-echo"')
14296 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14302 cat <<__EOF__ >> "$cfgfile"
14303 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14305 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14307 # Shell to use when invoking shell scripts.
14310 # Whether or not to build shared libraries.
14311 build_libtool_libs=$enable_shared
14313 # Whether or not to build static libraries.
14314 build_old_libs=$enable_static
14316 # Whether or not to add -lc for building shared libraries.
14317 build_libtool_need_lc=$archive_cmds_need_lc_F77
14319 # Whether or not to disallow shared libs when runtime libs are static
14320 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14322 # Whether or not to optimize for fast installation.
14323 fast_install=$enable_fast_install
14326 host_alias=$host_alias
14329 # An echo program that does not interpret backslashes.
14334 AR_FLAGS=$lt_AR_FLAGS
14339 # A language-specific compiler.
14340 CC=$lt_compiler_F77
14342 # Is the compiler the GNU C compiler?
14348 # The linker used to build libraries.
14351 # Whether we need hard or soft links.
14354 # A BSD-compatible nm program.
14357 # A symbol stripping program
14360 # Used to examine libraries when file_magic_cmd begins "file"
14361 MAGIC_CMD=$MAGIC_CMD
14363 # Used on cygwin: DLL creation program.
14366 # Used on cygwin: object dumper.
14369 # Used on cygwin: assembler.
14372 # The name of the directory that contains temporary libtool files.
14375 # How to create reloadable object files.
14376 reload_flag=$lt_reload_flag
14377 reload_cmds=$lt_reload_cmds
14379 # How to pass a linker flag through the compiler.
14380 wl=$lt_lt_prog_compiler_wl_F77
14382 # Object file suffix (normally "o").
14383 objext="$ac_objext"
14385 # Old archive suffix (normally "a").
14388 # Shared library suffix (normally ".so").
14391 # Executable file suffix (normally "").
14394 # Additional compiler flags for building library objects.
14395 pic_flag=$lt_lt_prog_compiler_pic_F77
14398 # What is the maximum length of a command?
14399 max_cmd_len=$lt_cv_sys_max_cmd_len
14401 # Does compiler simultaneously support -c and -o options?
14402 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14404 # Must we lock files when doing compilation ?
14405 need_locks=$lt_need_locks
14407 # Do we need the lib prefix for modules?
14408 need_lib_prefix=$need_lib_prefix
14410 # Do we need a version for libraries?
14411 need_version=$need_version
14413 # Whether dlopen is supported.
14414 dlopen_support=$enable_dlopen
14416 # Whether dlopen of programs is supported.
14417 dlopen_self=$enable_dlopen_self
14419 # Whether dlopen of statically linked programs is supported.
14420 dlopen_self_static=$enable_dlopen_self_static
14422 # Compiler flag to prevent dynamic linking.
14423 link_static_flag=$lt_lt_prog_compiler_static_F77
14425 # Compiler flag to turn off builtin functions.
14426 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14428 # Compiler flag to allow reflexive dlopens.
14429 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14431 # Compiler flag to generate shared objects directly from archives.
14432 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14434 # Compiler flag to generate thread-safe objects.
14435 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14437 # Library versioning type.
14438 version_type=$version_type
14440 # Format of library name prefix.
14441 libname_spec=$lt_libname_spec
14443 # List of archive names. First name is the real one, the rest are links.
14444 # The last name is the one that the linker finds with -lNAME.
14445 library_names_spec=$lt_library_names_spec
14447 # The coded name of the library, if different from the real name.
14448 soname_spec=$lt_soname_spec
14450 # Commands used to build and install an old-style archive.
14452 old_archive_cmds=$lt_old_archive_cmds_F77
14453 old_postinstall_cmds=$lt_old_postinstall_cmds
14454 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14456 # Create an old-style archive from a shared archive.
14457 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14459 # Create a temporary old-style archive to link instead of a shared archive.
14460 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14462 # Commands used to build and install a shared archive.
14463 archive_cmds=$lt_archive_cmds_F77
14464 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14465 postinstall_cmds=$lt_postinstall_cmds
14466 postuninstall_cmds=$lt_postuninstall_cmds
14468 # Commands used to build a loadable module (assumed same as above if empty)
14469 module_cmds=$lt_module_cmds_F77
14470 module_expsym_cmds=$lt_module_expsym_cmds_F77
14472 # Commands to strip libraries.
14473 old_striplib=$lt_old_striplib
14474 striplib=$lt_striplib
14476 # Dependencies to place before the objects being linked to create a
14478 predep_objects=$lt_predep_objects_F77
14480 # Dependencies to place after the objects being linked to create a
14482 postdep_objects=$lt_postdep_objects_F77
14484 # Dependencies to place before the objects being linked to create a
14486 predeps=$lt_predeps_F77
14488 # Dependencies to place after the objects being linked to create a
14490 postdeps=$lt_postdeps_F77
14492 # The library search path used internally by the compiler when linking
14493 # a shared library.
14494 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14496 # Method to check whether dependent libraries are shared objects.
14497 deplibs_check_method=$lt_deplibs_check_method
14499 # Command to use when deplibs_check_method == file_magic.
14500 file_magic_cmd=$lt_file_magic_cmd
14502 # Flag that allows shared libraries with undefined symbols to be built.
14503 allow_undefined_flag=$lt_allow_undefined_flag_F77
14505 # Flag that forces no undefined symbols.
14506 no_undefined_flag=$lt_no_undefined_flag_F77
14508 # Commands used to finish a libtool library installation in a directory.
14509 finish_cmds=$lt_finish_cmds
14511 # Same as above, but a single script fragment to be evaled but not shown.
14512 finish_eval=$lt_finish_eval
14514 # Take the output of nm and produce a listing of raw symbols and C names.
14515 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14517 # Transform the output of nm in a proper C declaration
14518 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14520 # Transform the output of nm in a C name address pair
14521 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14523 # This is the shared library runtime path variable.
14524 runpath_var=$runpath_var
14526 # This is the shared library path variable.
14527 shlibpath_var=$shlibpath_var
14529 # Is shlibpath searched before the hard-coded library search path?
14530 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14532 # How to hardcode a shared library path into an executable.
14533 hardcode_action=$hardcode_action_F77
14535 # Whether we should hardcode library paths into libraries.
14536 hardcode_into_libs=$hardcode_into_libs
14538 # Flag to hardcode \$libdir into a binary during linking.
14539 # This must work even if \$libdir does not exist.
14540 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14542 # If ld is used when linking, flag to hardcode \$libdir into
14543 # a binary during linking. This must work even if \$libdir does
14545 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14547 # Whether we need a single -rpath flag with a separated argument.
14548 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14550 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14551 # resulting binary.
14552 hardcode_direct=$hardcode_direct_F77
14554 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14555 # resulting binary.
14556 hardcode_minus_L=$hardcode_minus_L_F77
14558 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14559 # the resulting binary.
14560 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14562 # Set to yes if building a shared library automatically hardcodes DIR into the library
14563 # and all subsequent libraries and executables linked against it.
14564 hardcode_automatic=$hardcode_automatic_F77
14566 # Variables whose values should be saved in libtool wrapper scripts and
14567 # restored at relink time.
14568 variables_saved_for_relink="$variables_saved_for_relink"
14570 # Whether libtool must link a program against all its dependency libraries.
14571 link_all_deplibs=$link_all_deplibs_F77
14573 # Compile-time system search path for libraries
14574 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14576 # Run-time system search path for libraries
14577 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14579 # Fix the shell variable \$srcfile for the compiler.
14580 fix_srcfile_path="$fix_srcfile_path_F77"
14582 # Set to yes if exported symbols are required.
14583 always_export_symbols=$always_export_symbols_F77
14585 # The commands to list exported symbols.
14586 export_symbols_cmds=$lt_export_symbols_cmds_F77
14588 # The commands to extract the exported symbol list from a shared archive.
14589 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14591 # Symbols that should not be listed in the preloaded symbols.
14592 exclude_expsyms=$lt_exclude_expsyms_F77
14594 # Symbols that must always be exported.
14595 include_expsyms=$lt_include_expsyms_F77
14597 # ### END LIBTOOL TAG CONFIG: $tagname
14603 # If there is no Makefile yet, we rely on a make rule to execute
14604 # `config.status --recheck' to rerun these tests and create the
14605 # libtool script then.
14606 test -f Makefile && make "$ltmain"
14611 ac_cpp='$CPP $CPPFLAGS'
14612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14624 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14628 # Source file extension for Java test sources.
14631 # Object file extension for compiled Java test sources.
14635 # Code to be used in simple compile tests
14636 lt_simple_compile_test_code="class foo {}\n"
14638 # Code to be used in simple link tests
14639 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14641 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14643 # If no C compiler was specified, use CC.
14646 # Allow CC to be a program name with arguments.
14650 # Allow CC to be a program name with arguments.
14656 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14657 archive_cmds_need_lc_GCJ=no
14660 lt_prog_compiler_no_builtin_flag_GCJ=
14662 if test "$GCC" = yes; then
14663 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14665 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14666 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14667 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14670 lt_cv_prog_compiler_rtti_exceptions=no
14671 ac_outfile=conftest.$ac_objext
14672 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14673 lt_compiler_flag="-fno-rtti -fno-exceptions"
14674 # Insert the option either (1) after the last *FLAGS variable, or
14675 # (2) before a word containing "conftest.", or (3) at the end.
14676 # Note that $ac_compile itself does not contain backslashes and begins
14677 # with a dollar sign (not a hyphen), so the echo should work correctly.
14678 # The option is referenced via a variable to avoid confusing sed.
14679 lt_compile=`echo "$ac_compile" | $SED \
14680 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14682 -e 's:$: $lt_compiler_flag:'`
14683 (eval echo "\"\$as_me:14683: $lt_compile\"" >&5)
14684 (eval "$lt_compile" 2>conftest.err)
14686 cat conftest.err >&5
14687 echo "$as_me:14687: \$? = $ac_status" >&5
14688 if (exit $ac_status) && test -s "$ac_outfile"; then
14689 # The compiler can only warn and ignore the option if not recognized
14690 # So say no if there are warnings
14691 if test ! -s conftest.err; then
14692 lt_cv_prog_compiler_rtti_exceptions=yes
14698 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14699 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14701 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14702 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14709 lt_prog_compiler_wl_GCJ=
14710 lt_prog_compiler_pic_GCJ=
14711 lt_prog_compiler_static_GCJ=
14713 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14714 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14716 if test "$GCC" = yes; then
14717 lt_prog_compiler_wl_GCJ='-Wl,'
14718 lt_prog_compiler_static_GCJ='-static'
14722 # All AIX code is PIC.
14723 if test "$host_cpu" = ia64; then
14724 # AIX 5 now supports IA64 processor
14725 lt_prog_compiler_static_GCJ='-Bstatic'
14730 # FIXME: we need at least 68020 code to build shared libraries, but
14731 # adding the `-m68020' flag to GCC prevents building anything better,
14733 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14736 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14737 # PIC is the default for these OSes.
14740 mingw* | pw32* | os2*)
14741 # This hack is so that the source file can tell whether it is being
14742 # built for inclusion in a dll (and should export symbols for example).
14743 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14746 darwin* | rhapsody*)
14747 # PIC is the default on this platform
14748 # Common symbols not allowed in MH_DYLIB files
14749 lt_prog_compiler_pic_GCJ='-fno-common'
14753 # Just because we use GCC doesn't mean we suddenly get shared libraries
14754 # on systems that don't support them.
14755 lt_prog_compiler_can_build_shared_GCJ=no
14760 if test -d /usr/nec; then
14761 lt_prog_compiler_pic_GCJ=-Kconform_pic
14766 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14767 # not for PA HP-UX.
14768 case "$host_cpu" in
14773 lt_prog_compiler_pic_GCJ='-fPIC'
14779 lt_prog_compiler_pic_GCJ='-fPIC'
14783 # PORTME Check for flag to pass linker flags through the system compiler.
14786 lt_prog_compiler_wl_GCJ='-Wl,'
14787 if test "$host_cpu" = ia64; then
14788 # AIX 5 now supports IA64 processor
14789 lt_prog_compiler_static_GCJ='-Bstatic'
14791 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14795 mingw* | pw32* | os2*)
14796 # This hack is so that the source file can tell whether it is being
14797 # built for inclusion in a dll (and should export symbols for example).
14798 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14801 hpux9* | hpux10* | hpux11*)
14802 lt_prog_compiler_wl_GCJ='-Wl,'
14803 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14804 # not for PA HP-UX.
14805 case "$host_cpu" in
14810 lt_prog_compiler_pic_GCJ='+Z'
14813 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14814 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14817 irix5* | irix6* | nonstopux*)
14818 lt_prog_compiler_wl_GCJ='-Wl,'
14819 # PIC (with -KPIC) is the default.
14820 lt_prog_compiler_static_GCJ='-non_shared'
14824 lt_prog_compiler_pic_GCJ='-KPIC'
14825 lt_prog_compiler_static_GCJ='-Bstatic'
14831 lt_prog_compiler_wl_GCJ='-Wl,'
14832 lt_prog_compiler_pic_GCJ='-KPIC'
14833 lt_prog_compiler_static_GCJ='-static'
14836 lt_prog_compiler_wl_GCJ='-Wl,'
14837 # All Alpha code is PIC.
14838 lt_prog_compiler_static_GCJ='-non_shared'
14843 osf3* | osf4* | osf5*)
14844 lt_prog_compiler_wl_GCJ='-Wl,'
14845 # All OSF/1 code is PIC.
14846 lt_prog_compiler_static_GCJ='-non_shared'
14850 lt_prog_compiler_pic_GCJ='-Kpic'
14851 lt_prog_compiler_static_GCJ='-dn'
14855 lt_prog_compiler_wl_GCJ='-Wl,'
14856 lt_prog_compiler_pic_GCJ='-KPIC'
14857 lt_prog_compiler_static_GCJ='-Bstatic'
14861 lt_prog_compiler_wl_GCJ='-Qoption ld '
14862 lt_prog_compiler_pic_GCJ='-PIC'
14863 lt_prog_compiler_static_GCJ='-Bstatic'
14866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14867 lt_prog_compiler_wl_GCJ='-Wl,'
14868 lt_prog_compiler_pic_GCJ='-KPIC'
14869 lt_prog_compiler_static_GCJ='-Bstatic'
14873 if test -d /usr/nec ;then
14874 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14875 lt_prog_compiler_static_GCJ='-Bstatic'
14880 lt_prog_compiler_pic_GCJ='-pic'
14881 lt_prog_compiler_static_GCJ='-Bstatic'
14885 lt_prog_compiler_can_build_shared_GCJ=no
14890 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14891 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14894 # Check to make sure the PIC flag actually works.
14896 if test -n "$lt_prog_compiler_pic_GCJ"; then
14897 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14898 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14899 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14900 echo $ECHO_N "(cached) $ECHO_C" >&6
14902 lt_prog_compiler_pic_works_GCJ=no
14903 ac_outfile=conftest.$ac_objext
14904 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14905 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14906 # Insert the option either (1) after the last *FLAGS variable, or
14907 # (2) before a word containing "conftest.", or (3) at the end.
14908 # Note that $ac_compile itself does not contain backslashes and begins
14909 # with a dollar sign (not a hyphen), so the echo should work correctly.
14910 # The option is referenced via a variable to avoid confusing sed.
14911 lt_compile=`echo "$ac_compile" | $SED \
14912 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14914 -e 's:$: $lt_compiler_flag:'`
14915 (eval echo "\"\$as_me:14915: $lt_compile\"" >&5)
14916 (eval "$lt_compile" 2>conftest.err)
14918 cat conftest.err >&5
14919 echo "$as_me:14919: \$? = $ac_status" >&5
14920 if (exit $ac_status) && test -s "$ac_outfile"; then
14921 # The compiler can only warn and ignore the option if not recognized
14922 # So say no if there are warnings
14923 if test ! -s conftest.err; then
14924 lt_prog_compiler_pic_works_GCJ=yes
14930 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14931 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14933 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14934 case $lt_prog_compiler_pic_GCJ in
14936 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14939 lt_prog_compiler_pic_GCJ=
14940 lt_prog_compiler_can_build_shared_GCJ=no
14945 # For platforms which do not support PIC, -DPIC is meaningless:
14947 lt_prog_compiler_pic_GCJ=
14950 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14954 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14955 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14956 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14957 echo $ECHO_N "(cached) $ECHO_C" >&6
14959 lt_cv_prog_compiler_c_o_GCJ=no
14960 $rm -r conftest 2>/dev/null
14964 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14966 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14967 # that will create temporary files in the current directory regardless of
14968 # the output directory. Thus, making CWD read-only will cause this test
14969 # to fail, enabling locking or at least warning the user not to do parallel
14973 lt_compiler_flag="-o out/conftest2.$ac_objext"
14974 # Insert the option either (1) after the last *FLAGS variable, or
14975 # (2) before a word containing "conftest.", or (3) at the end.
14976 # Note that $ac_compile itself does not contain backslashes and begins
14977 # with a dollar sign (not a hyphen), so the echo should work correctly.
14978 lt_compile=`echo "$ac_compile" | $SED \
14979 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14981 -e 's:$: $lt_compiler_flag:'`
14982 (eval echo "\"\$as_me:14982: $lt_compile\"" >&5)
14983 (eval "$lt_compile" 2>out/conftest.err)
14985 cat out/conftest.err >&5
14986 echo "$as_me:14986: \$? = $ac_status" >&5
14987 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14989 # The compiler can only warn and ignore the option if not recognized
14990 # So say no if there are warnings
14991 if test ! -s out/conftest.err; then
14992 lt_cv_prog_compiler_c_o_GCJ=yes
14996 $rm conftest* out/*
15003 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15004 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15007 hard_links="nottested"
15008 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15009 # do not overwrite the value of need_locks provided by the user
15010 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15011 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15014 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15016 ln conftest.a conftest.b 2>&5 || hard_links=no
15017 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15018 echo "$as_me:$LINENO: result: $hard_links" >&5
15019 echo "${ECHO_T}$hard_links" >&6
15020 if test "$hard_links" = no; then
15021 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15022 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15029 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15030 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15033 allow_undefined_flag_GCJ=
15034 enable_shared_with_static_runtimes_GCJ=no
15036 archive_expsym_cmds_GCJ=
15037 old_archive_From_new_cmds_GCJ=
15038 old_archive_from_expsyms_cmds_GCJ=
15039 export_dynamic_flag_spec_GCJ=
15040 whole_archive_flag_spec_GCJ=
15041 thread_safe_flag_spec_GCJ=
15042 hardcode_libdir_flag_spec_GCJ=
15043 hardcode_libdir_flag_spec_ld_GCJ=
15044 hardcode_libdir_separator_GCJ=
15045 hardcode_direct_GCJ=no
15046 hardcode_minus_L_GCJ=no
15047 hardcode_shlibpath_var_GCJ=unsupported
15048 link_all_deplibs_GCJ=unknown
15049 hardcode_automatic_GCJ=no
15051 module_expsym_cmds_GCJ=
15052 always_export_symbols_GCJ=no
15053 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15054 # include_expsyms should be a list of space-separated symbols to be *always*
15055 # included in the symbol list
15056 include_expsyms_GCJ=
15057 # exclude_expsyms can be an extended regexp of symbols to exclude
15058 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15059 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15060 # as well as any symbol that contains `d'.
15061 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15062 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15063 # platforms (ab)use it in PIC code, but their linkers get confused if
15064 # the symbol is explicitly referenced. Since portable code cannot
15065 # rely on this symbol name, it's probably fine to never include it in
15066 # preloaded symbol tables.
15067 extract_expsyms_cmds=
15070 cygwin* | mingw* | pw32*)
15071 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15072 # When not using gcc, we currently assume that we are using
15073 # Microsoft Visual C++.
15074 if test "$GCC" != yes; then
15084 if test "$with_gnu_ld" = yes; then
15085 # If archive_cmds runs LD, not CC, wlarc should be empty
15088 # See if GNU ld supports shared libraries.
15090 aix3* | aix4* | aix5*)
15091 # On AIX/PPC, the GNU linker is very broken
15092 if test "$host_cpu" != ia64; then
15096 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15097 *** to be unable to reliably create shared libraries on AIX.
15098 *** Therefore, libtool is disabling shared libraries support. If you
15099 *** really care for shared libraries, you may want to modify your PATH
15100 *** so that a non-GNU linker is found, and then restart.
15107 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)'
15108 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15109 hardcode_minus_L_GCJ=yes
15111 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15112 # that the semantics of dynamic libraries on AmigaOS, at least up
15113 # to version 4, is to share data among multiple programs linked
15114 # with the same dynamic library. Since this doesn't match the
15115 # behavior of shared libraries on other platforms, we can't use
15121 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15122 allow_undefined_flag_GCJ=unsupported
15123 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15124 # support --undefined. This deserves some investigation. FIXME
15125 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15131 cygwin* | mingw* | pw32*)
15132 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15133 # as there is no search path for DLLs.
15134 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15135 allow_undefined_flag_GCJ=unsupported
15136 always_export_symbols_GCJ=no
15137 enable_shared_with_static_runtimes_GCJ=yes
15138 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15140 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15141 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15142 # If the export-symbols file already is a .def file (1st line
15143 # is EXPORTS), use it as is; otherwise, prepend...
15144 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15145 cp $export_symbols $output_objdir/$soname.def;
15147 echo EXPORTS > $output_objdir/$soname.def;
15148 cat $export_symbols >> $output_objdir/$soname.def;
15150 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15158 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15161 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15162 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15167 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15171 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15172 *** create shared libraries on Solaris systems. Therefore, libtool
15173 *** is disabling shared libraries support. We urge you to upgrade GNU
15174 *** binutils to release 2.9.1 or newer. Another option is to modify
15175 *** your PATH or compiler configuration so that the native linker is
15176 *** used, and then restart.
15179 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15180 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15181 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15188 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15190 hardcode_direct_GCJ=yes
15191 hardcode_shlibpath_var_GCJ=no
15195 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15196 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15197 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15204 if test "$ld_shlibs_GCJ" = yes; then
15205 runpath_var=LD_RUN_PATH
15206 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15207 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15208 # ancient GNU ld didn't support --whole-archive et. al.
15209 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15210 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15212 whole_archive_flag_spec_GCJ=
15216 # PORTME fill in a description of your system's linker (not GNU ld)
15219 allow_undefined_flag_GCJ=unsupported
15220 always_export_symbols_GCJ=yes
15221 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'
15222 # Note: this linker hardcodes the directories in LIBPATH if there
15223 # are no directories specified by -L.
15224 hardcode_minus_L_GCJ=yes
15225 if test "$GCC" = yes && test -z "$link_static_flag"; then
15226 # Neither direct hardcoding nor static linking is supported with a
15228 hardcode_direct_GCJ=unsupported
15233 if test "$host_cpu" = ia64; then
15234 # On IA64, the linker does run time linking by default, so we don't
15235 # have to do anything special.
15236 aix_use_runtimelinking=no
15237 exp_sym_flag='-Bexport'
15240 # If we're using GNU nm, then we don't want the "-C" option.
15241 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15242 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15243 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'
15245 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'
15247 aix_use_runtimelinking=no
15249 # Test if we are trying to use run time linking or normal
15250 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15251 # need to do runtime linking.
15252 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15253 for ld_flag in $LDFLAGS; do
15254 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15255 aix_use_runtimelinking=yes
15261 exp_sym_flag='-bexport'
15262 no_entry_flag='-bnoentry'
15265 # When large executables or shared objects are built, AIX ld can
15266 # have problems creating the table of contents. If linking a library
15267 # or program results in "error TOC overflow" add -mminimal-toc to
15268 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15269 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15271 archive_cmds_GCJ=''
15272 hardcode_direct_GCJ=yes
15273 hardcode_libdir_separator_GCJ=':'
15274 link_all_deplibs_GCJ=yes
15276 if test "$GCC" = yes; then
15277 case $host_os in aix4.012|aix4.012.*)
15278 # We only want to do this on AIX 4.2 and lower, the check
15279 # below for broken collect2 doesn't work under 4.3+
15280 collect2name=`${CC} -print-prog-name=collect2`
15281 if test -f "$collect2name" && \
15282 strings "$collect2name" | grep resolve_lib_name >/dev/null
15284 # We have reworked collect2
15285 hardcode_direct_GCJ=yes
15287 # We have old collect2
15288 hardcode_direct_GCJ=unsupported
15289 # It fails to find uninstalled libraries when the uninstalled
15290 # path is not listed in the libpath. Setting hardcode_minus_L
15291 # to unsupported forces relinking
15292 hardcode_minus_L_GCJ=yes
15293 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15294 hardcode_libdir_separator_GCJ=
15297 shared_flag='-shared'
15300 if test "$host_cpu" = ia64; then
15301 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15302 # chokes on -Wl,-G. The following line is correct:
15305 if test "$aix_use_runtimelinking" = yes; then
15306 shared_flag='${wl}-G'
15308 shared_flag='${wl}-bM:SRE'
15313 # It seems that -bexpall does not export symbols beginning with
15314 # underscore (_), so it is better to generate a list of symbols to export.
15315 always_export_symbols_GCJ=yes
15316 if test "$aix_use_runtimelinking" = yes; then
15317 # Warning - without using the other runtime loading flags (-brtl),
15318 # -berok will link without error, but may produce a broken library.
15319 allow_undefined_flag_GCJ='-berok'
15320 # Determine the default libpath from the value encoded in an empty executable.
15321 cat >conftest.$ac_ext <<_ACEOF
15322 #line $LINENO "configure"
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15337 rm -f conftest.$ac_objext conftest$ac_exeext
15338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15339 (eval $ac_link) 2>&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } &&
15343 { ac_try='test -s conftest$ac_exeext'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }; then
15350 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15352 # Check for a 64-bit object if we didn't find anything.
15353 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; }
15356 echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15363 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15364 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"
15366 if test "$host_cpu" = ia64; then
15367 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15368 allow_undefined_flag_GCJ="-z nodefs"
15369 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"
15371 # Determine the default libpath from the value encoded in an empty executable.
15372 cat >conftest.$ac_ext <<_ACEOF
15373 #line $LINENO "configure"
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15388 rm -f conftest.$ac_objext conftest$ac_exeext
15389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15390 (eval $ac_link) 2>&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
15394 { ac_try='test -s conftest$ac_exeext'
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; }; then
15401 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15403 # Check for a 64-bit object if we didn't find anything.
15404 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; }
15407 echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15412 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15414 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15415 # Warning - without using the other run time loading flags,
15416 # -berok will link without error, but may produce a broken library.
15417 no_undefined_flag_GCJ=' ${wl}-bernotok'
15418 allow_undefined_flag_GCJ=' ${wl}-berok'
15419 # -bexpall does not export symbols beginning with underscore (_)
15420 always_export_symbols_GCJ=yes
15421 # Exported symbols can be pulled into shared objects from archives
15422 whole_archive_flag_spec_GCJ=' '
15423 archive_cmds_need_lc_GCJ=yes
15424 # This is similar to how AIX traditionally builds it's shared libraries.
15425 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'
15431 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)'
15432 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15433 hardcode_minus_L_GCJ=yes
15434 # see comment about different semantics on the GNU ld section
15439 export_dynamic_flag_spec_GCJ=-rdynamic
15442 cygwin* | mingw* | pw32*)
15443 # When not using gcc, we currently assume that we are using
15444 # Microsoft Visual C++.
15445 # hardcode_libdir_flag_spec is actually meaningless, as there is
15446 # no search path for DLLs.
15447 hardcode_libdir_flag_spec_GCJ=' '
15448 allow_undefined_flag_GCJ=unsupported
15449 # Tell ltmain to make .lib files, not .a files.
15451 # Tell ltmain to make .dll files, not .so files.
15453 # FIXME: Setting linknames here is a bad hack.
15454 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15455 # The linker will automatically build a .lib file if we build a DLL.
15456 old_archive_From_new_cmds_GCJ='true'
15457 # FIXME: Should let the user specify the lib program.
15458 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15459 fix_srcfile_path='`cygpath -w "$srcfile"`'
15460 enable_shared_with_static_runtimes_GCJ=yes
15463 darwin* | rhapsody*)
15464 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15465 archive_cmds_need_lc_GCJ=no
15467 rhapsody* | darwin1.[012])
15468 allow_undefined_flag_GCJ='-undefined suppress'
15471 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15474 # FIXME: Relying on posixy $() will cause problems for
15475 # cross-compilation, but unfortunately the echo tests do not
15476 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15477 # `"' quotes if we put them in here... so don't!
15478 lt_int_apple_cc_single_mod=no
15479 output_verbose_link_cmd='echo'
15480 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15481 lt_int_apple_cc_single_mod=yes
15483 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15484 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15486 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'
15488 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15489 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15490 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15491 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}'
15493 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}'
15495 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}'
15496 hardcode_direct_GCJ=no
15497 hardcode_automatic_GCJ=yes
15498 hardcode_shlibpath_var_GCJ=unsupported
15499 whole_archive_flag_spec_GCJ='-all_load $convenience'
15500 link_all_deplibs_GCJ=yes
15505 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15506 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15507 hardcode_shlibpath_var_GCJ=no
15514 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15515 # support. Future versions do this automatically, but an explicit c++rt0.o
15516 # does not break anything, and helps significantly (at the cost of a little
15519 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15520 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15521 hardcode_direct_GCJ=yes
15522 hardcode_shlibpath_var_GCJ=no
15525 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15527 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15528 hardcode_direct_GCJ=yes
15529 hardcode_minus_L_GCJ=yes
15530 hardcode_shlibpath_var_GCJ=no
15533 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15535 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15536 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15537 hardcode_direct_GCJ=yes
15538 hardcode_shlibpath_var_GCJ=no
15542 if test "$GCC" = yes; then
15543 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'
15545 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'
15547 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15548 hardcode_libdir_separator_GCJ=:
15549 hardcode_direct_GCJ=yes
15551 # hardcode_minus_L: Not really in the search PATH,
15552 # but as the default location of the library.
15553 hardcode_minus_L_GCJ=yes
15554 export_dynamic_flag_spec_GCJ='${wl}-E'
15558 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15559 case "$host_cpu" in
15561 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15564 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15568 case "$host_cpu" in
15570 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15573 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15577 if test "$with_gnu_ld" = no; then
15578 case "$host_cpu" in
15580 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15581 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15582 hardcode_libdir_separator_GCJ=:
15583 hardcode_direct_GCJ=no
15584 hardcode_shlibpath_var_GCJ=no
15587 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15588 hardcode_direct_GCJ=no
15589 hardcode_shlibpath_var_GCJ=no
15591 # hardcode_minus_L: Not really in the search PATH,
15592 # but as the default location of the library.
15593 hardcode_minus_L_GCJ=yes
15596 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15597 hardcode_libdir_separator_GCJ=:
15598 hardcode_direct_GCJ=yes
15599 export_dynamic_flag_spec_GCJ='${wl}-E'
15601 # hardcode_minus_L: Not really in the search PATH,
15602 # but as the default location of the library.
15603 hardcode_minus_L_GCJ=yes
15609 irix5* | irix6* | nonstopux*)
15610 if test "$GCC" = yes; then
15611 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'
15613 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'
15614 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15616 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15617 hardcode_libdir_separator_GCJ=:
15618 link_all_deplibs_GCJ=yes
15622 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15623 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15625 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15627 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15628 hardcode_direct_GCJ=yes
15629 hardcode_shlibpath_var_GCJ=no
15633 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15634 hardcode_direct_GCJ=yes
15635 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15636 hardcode_libdir_separator_GCJ=:
15637 hardcode_shlibpath_var_GCJ=no
15641 hardcode_direct_GCJ=yes
15642 hardcode_shlibpath_var_GCJ=no
15643 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15644 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15645 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15646 export_dynamic_flag_spec_GCJ='${wl}-E'
15649 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15650 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15651 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15654 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15655 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15662 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15663 hardcode_minus_L_GCJ=yes
15664 allow_undefined_flag_GCJ=unsupported
15665 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'
15666 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15670 if test "$GCC" = yes; then
15671 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15672 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'
15674 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15675 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'
15677 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15678 hardcode_libdir_separator_GCJ=:
15681 osf4* | osf5*) # as osf3* with the addition of -msym flag
15682 if test "$GCC" = yes; then
15683 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15684 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'
15685 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15687 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15688 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'
15689 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~
15690 $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'
15692 # Both c and cxx compiler support -rpath directly
15693 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15695 hardcode_libdir_separator_GCJ=:
15699 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15700 hardcode_shlibpath_var_GCJ=no
15701 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15702 runpath_var=LD_RUN_PATH
15703 hardcode_runpath_var=yes
15707 no_undefined_flag_GCJ=' -z text'
15708 if test "$GCC" = yes; then
15709 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15710 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15711 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15713 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15715 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15717 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15718 hardcode_shlibpath_var_GCJ=no
15720 solaris2.[0-5] | solaris2.[0-5].*) ;;
15721 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15722 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15724 link_all_deplibs_GCJ=yes
15728 if test "x$host_vendor" = xsequent; then
15729 # Use $CC to link under sequent, because it throws in some extra .o
15730 # files that make .init and .fini sections work.
15731 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15733 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15735 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15736 hardcode_direct_GCJ=yes
15737 hardcode_minus_L_GCJ=yes
15738 hardcode_shlibpath_var_GCJ=no
15742 case $host_vendor in
15744 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15745 hardcode_direct_GCJ=yes # is this really true???
15748 ## LD is ld it makes a PLAMLIB
15749 ## CC just makes a GrossModule.
15750 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15751 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15752 hardcode_direct_GCJ=no
15755 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15759 runpath_var='LD_RUN_PATH'
15760 hardcode_shlibpath_var_GCJ=no
15764 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15765 hardcode_shlibpath_var_GCJ=no
15766 export_dynamic_flag_spec_GCJ='-Bexport'
15770 if test -d /usr/nec; then
15771 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15772 hardcode_shlibpath_var_GCJ=no
15773 runpath_var=LD_RUN_PATH
15774 hardcode_runpath_var=yes
15780 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15781 hardcode_direct_GCJ=yes
15782 hardcode_minus_L_GCJ=no
15783 hardcode_shlibpath_var_GCJ=no
15784 hardcode_runpath_var=yes
15785 runpath_var=LD_RUN_PATH
15788 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15789 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15790 if test "$GCC" = yes; then
15791 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15793 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15795 runpath_var='LD_RUN_PATH'
15796 hardcode_shlibpath_var_GCJ=no
15800 no_undefined_flag_GCJ=' -z text'
15801 # $CC -shared without GNU ld will not create a library from C++
15802 # object files and a static libstdc++, better avoid it by now
15803 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15804 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15805 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15806 hardcode_libdir_flag_spec_GCJ=
15807 hardcode_shlibpath_var_GCJ=no
15808 runpath_var='LD_RUN_PATH'
15812 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15813 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15814 hardcode_shlibpath_var_GCJ=no
15823 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15824 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15825 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15827 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15828 if test "$GCC" = yes; then
15829 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15833 # Do we need to explicitly link libc?
15835 case "x$archive_cmds_need_lc_GCJ" in
15837 # Assume -lc should be added
15838 archive_cmds_need_lc_GCJ=yes
15840 if test "$enable_shared" = yes && test "$GCC" = yes; then
15841 case $archive_cmds_GCJ in
15843 # FIXME: we may have to deal with multi-command sequences.
15846 # Test whether the compiler implicitly links with -lc since on some
15847 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15848 # to ld, don't add -lc before -lgcc.
15849 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15850 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15852 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15855 (eval $ac_compile) 2>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } 2>conftest.err; then
15861 libobjs=conftest.$ac_objext
15863 wl=$lt_prog_compiler_wl_GCJ
15869 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15870 allow_undefined_flag_GCJ=
15871 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15872 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }
15877 archive_cmds_need_lc_GCJ=no
15879 archive_cmds_need_lc_GCJ=yes
15881 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15883 cat conftest.err 1>&5
15886 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15887 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15894 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15895 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15896 hardcode_action_GCJ=
15897 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15898 test -n "$runpath_var GCJ" || \
15899 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15901 # We can hardcode non-existant directories.
15902 if test "$hardcode_direct_GCJ" != no &&
15903 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15904 # have to relink, otherwise we might link with an installed library
15905 # when we should be linking with a yet-to-be-installed one
15906 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15907 test "$hardcode_minus_L_GCJ" != no; then
15908 # Linking always hardcodes the temporary library directory.
15909 hardcode_action_GCJ=relink
15911 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15912 hardcode_action_GCJ=immediate
15915 # We cannot hardcode anything, or else we can only hardcode existing
15917 hardcode_action_GCJ=unsupported
15919 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15920 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15922 if test "$hardcode_action_GCJ" = relink; then
15923 # Fast installation is not supported
15924 enable_fast_install=no
15925 elif test "$shlibpath_overrides_runpath" = yes ||
15926 test "$enable_shared" = no; then
15927 # Fast installation is not necessary
15928 enable_fast_install=needless
15933 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15934 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15935 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15936 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15937 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15938 echo "$as_me:$LINENO: result: yes" >&5
15939 echo "${ECHO_T}yes" >&6
15941 # FIXME - insert some real tests, host_os isn't really good enough
15944 if test -n "$STRIP" ; then
15945 striplib="$STRIP -x"
15946 echo "$as_me:$LINENO: result: yes" >&5
15947 echo "${ECHO_T}yes" >&6
15949 echo "$as_me:$LINENO: result: no" >&5
15950 echo "${ECHO_T}no" >&6
15954 echo "$as_me:$LINENO: result: no" >&5
15955 echo "${ECHO_T}no" >&6
15960 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15961 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15962 library_names_spec=
15963 libname_spec='lib$name'
15967 postuninstall_cmds=
15971 shlibpath_overrides_runpath=unknown
15973 dynamic_linker="$host_os ld.so"
15974 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15975 if test "$GCC" = yes; then
15976 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15977 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15978 # if the path contains ";" then we assume it to be the separator
15979 # otherwise default to the standard path separator (i.e. ":") - it is
15980 # assumed that no part of a normal pathname contains ";" but that should
15981 # okay in the real world where ";" in dirpaths is itself problematic.
15982 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15984 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15987 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15989 need_lib_prefix=unknown
15990 hardcode_into_libs=no
15992 # when you set need_version to no, make sure it does not cause -set_version
15993 # flags to be left without arguments
15994 need_version=unknown
15999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16000 shlibpath_var=LIBPATH
16002 # AIX 3 has no versioning support, so we append a major version to the name.
16003 soname_spec='${libname}${release}${shared_ext}$major'
16010 hardcode_into_libs=yes
16011 if test "$host_cpu" = ia64; then
16012 # AIX 5 supports IA64
16013 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16014 shlibpath_var=LD_LIBRARY_PATH
16016 # With GCC up to 2.95.x, collect2 would create an import file
16017 # for dependence libraries. The import file would start with
16018 # the line `#! .'. This would cause the generated library to
16019 # depend on `.', always an invalid library. This was fixed in
16020 # development snapshots of GCC prior to 3.0.
16022 aix4 | aix4.[01] | aix4.[01].*)
16023 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16025 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16028 can_build_shared=no
16032 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16033 # soname into executable. Probably we can add versioning support to
16034 # collect2, so additional links can be useful in future.
16035 if test "$aix_use_runtimelinking" = yes; then
16036 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16037 # instead of lib<name>.a to let people know that these are not
16038 # typical AIX shared libraries.
16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16041 # We preserve .a as extension for shared libraries through AIX4.2
16042 # and later when we are not doing run time linking.
16043 library_names_spec='${libname}${release}.a $libname.a'
16044 soname_spec='${libname}${release}${shared_ext}$major'
16046 shlibpath_var=LIBPATH
16051 library_names_spec='$libname.ixlibrary $libname.a'
16052 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16053 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'
16057 library_names_spec='${libname}${shared_ext}'
16058 dynamic_linker="$host_os ld.so"
16059 shlibpath_var=LIBRARY_PATH
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16066 soname_spec='${libname}${release}${shared_ext}$major'
16067 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16068 shlibpath_var=LD_LIBRARY_PATH
16069 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16070 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16071 # the default ld.so.conf also contains /usr/contrib/lib and
16072 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16073 # libtool to hard-code these into programs
16076 cygwin* | mingw* | pw32*)
16077 version_type=windows
16082 case $GCC,$host_os in
16083 yes,cygwin* | yes,mingw* | yes,pw32*)
16084 library_names_spec='$libname.dll.a'
16085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16086 postinstall_cmds='base_file=`basename \${file}`~
16087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16088 dldir=$destdir/`dirname \$dlpath`~
16089 test -d \$dldir || mkdir -p \$dldir~
16090 $install_prog $dir/$dlname \$dldir/$dlname'
16091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16092 dlpath=$dir/\$dldll~
16094 shlibpath_overrides_runpath=yes
16098 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16099 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16100 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16103 # MinGW DLLs use traditional 'lib' prefix
16104 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16105 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16106 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16107 # It is most probably a Windows format PATH printed by
16108 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16109 # path with ; separators, and with drive letters. We can handle the
16110 # drive letters (cygwin fileutils understands them), so leave them,
16111 # especially as we might pass files found there to a mingw objdump,
16112 # which wouldn't understand a cygwinified path. Ahh.
16113 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16119 # pw32 DLLs use 'pw' prefix rather than 'lib'
16120 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16126 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16129 dynamic_linker='Win32 ld.exe'
16130 # FIXME: first we should search . and the directory the executable is in
16134 darwin* | rhapsody*)
16135 dynamic_linker="$host_os dyld"
16136 version_type=darwin
16139 # FIXME: Relying on posixy $() will cause problems for
16140 # cross-compilation, but unfortunately the echo tests do not
16141 # yet detect zsh echo's removal of \ escapes.
16142 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16143 soname_spec='${libname}${release}${major}$shared_ext'
16144 shlibpath_overrides_runpath=yes
16145 shlibpath_var=DYLD_LIBRARY_PATH
16146 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16147 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16148 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16149 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"`
16151 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16159 soname_spec='${libname}${release}${shared_ext}$major'
16160 shlibpath_var=LD_LIBRARY_PATH
16168 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16169 version_type=freebsd-$objformat
16170 case $version_type in
16172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16177 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16181 shlibpath_var=LD_LIBRARY_PATH
16184 shlibpath_overrides_runpath=yes
16186 freebsd3.01* | freebsdelf3.01*)
16187 shlibpath_overrides_runpath=yes
16188 hardcode_into_libs=yes
16191 shlibpath_overrides_runpath=no
16192 hardcode_into_libs=yes
16201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16202 soname_spec='${libname}${release}${shared_ext}$major'
16203 shlibpath_var=LD_LIBRARY_PATH
16204 hardcode_into_libs=yes
16207 hpux9* | hpux10* | hpux11*)
16208 # Give a soname corresponding to the major version so that dld.sl refuses to
16209 # link against other versions.
16213 case "$host_cpu" in
16216 hardcode_into_libs=yes
16217 dynamic_linker="$host_os dld.so"
16218 shlibpath_var=LD_LIBRARY_PATH
16219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221 soname_spec='${libname}${release}${shared_ext}$major'
16222 if test "X$HPUX_IA64_MODE" = X32; then
16223 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16225 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16231 hardcode_into_libs=yes
16232 dynamic_linker="$host_os dld.sl"
16233 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16236 soname_spec='${libname}${release}${shared_ext}$major'
16237 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16242 dynamic_linker="$host_os dld.sl"
16243 shlibpath_var=SHLIB_PATH
16244 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16246 soname_spec='${libname}${release}${shared_ext}$major'
16249 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16250 postinstall_cmds='chmod 555 $lib'
16253 irix5* | irix6* | nonstopux*)
16255 nonstopux*) version_type=nonstopux ;;
16257 if test "$lt_cv_prog_gnu_ld" = yes; then
16265 soname_spec='${libname}${release}${shared_ext}$major'
16266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16268 irix5* | nonstopux*)
16269 libsuff= shlibsuff=
16272 case $LD in # libtool.m4 will add one of these switches to LD
16273 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16274 libsuff= shlibsuff= libmagic=32-bit;;
16275 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16276 libsuff=32 shlibsuff=N32 libmagic=N32;;
16277 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16278 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16279 *) libsuff= shlibsuff= libmagic=never-match;;
16283 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16284 shlibpath_overrides_runpath=no
16285 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16286 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16287 hardcode_into_libs=yes
16290 # No shared lib support for Linux oldld, aout, or coff.
16291 linux*oldld* | linux*aout* | linux*coff*)
16295 # This must be Linux ELF.
16300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16301 soname_spec='${libname}${release}${shared_ext}$major'
16302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16303 shlibpath_var=LD_LIBRARY_PATH
16304 shlibpath_overrides_runpath=no
16305 # This implies no fast_install, which is unacceptable.
16306 # Some rework will be needed to allow for fast_install
16307 # before this can be enabled.
16308 hardcode_into_libs=yes
16310 # We used to test for /lib/ld.so.1 and disable shared libraries on
16311 # powerpc, because MkLinux only supported shared libraries with the
16312 # GNU dynamic linker. Since this was broken with cross compilers,
16313 # most powerpc-linux boxes support dynamic linking these days and
16314 # people can always --disable-shared, the test was removed, and we
16315 # assume the GNU/Linux dynamic linker is in use.
16316 dynamic_linker='GNU/Linux ld.so'
16323 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16326 dynamic_linker='NetBSD (a.out) ld.so'
16328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16329 soname_spec='${libname}${release}${shared_ext}$major'
16330 dynamic_linker='NetBSD ld.elf_so'
16332 shlibpath_var=LD_LIBRARY_PATH
16333 shlibpath_overrides_runpath=yes
16334 hardcode_into_libs=yes
16339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16340 shlibpath_var=LD_LIBRARY_PATH
16341 shlibpath_overrides_runpath=yes
16348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16349 soname_spec='${libname}${release}${shared_ext}$major'
16350 shlibpath_var=LD_LIBRARY_PATH
16351 shlibpath_overrides_runpath=yes
16358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16363 openbsd2.[89] | openbsd2.[89].*)
16364 shlibpath_overrides_runpath=no
16367 shlibpath_overrides_runpath=yes
16371 shlibpath_overrides_runpath=yes
16376 libname_spec='$name'
16379 library_names_spec='$libname${shared_ext} $libname.a'
16380 dynamic_linker='OS/2 ld.exe'
16381 shlibpath_var=LIBPATH
16384 osf3* | osf4* | osf5*)
16388 soname_spec='${libname}${release}${shared_ext}$major'
16389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16390 shlibpath_var=LD_LIBRARY_PATH
16391 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16392 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16397 soname_spec='${libname}${release}${shared_ext}$major'
16398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399 shlibpath_var=LD_LIBRARY_PATH
16406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16407 soname_spec='${libname}${release}${shared_ext}$major'
16408 shlibpath_var=LD_LIBRARY_PATH
16409 shlibpath_overrides_runpath=yes
16410 hardcode_into_libs=yes
16411 # ldd complains unless libraries are executable
16412 postinstall_cmds='chmod +x $lib'
16417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16418 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16419 shlibpath_var=LD_LIBRARY_PATH
16420 shlibpath_overrides_runpath=yes
16421 if test "$with_gnu_ld" = yes; then
16427 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16430 soname_spec='${libname}${release}${shared_ext}$major'
16431 shlibpath_var=LD_LIBRARY_PATH
16432 case $host_vendor in
16434 shlibpath_overrides_runpath=no
16436 export_dynamic_flag_spec='${wl}-Blargedynsym'
16437 runpath_var=LD_RUN_PATH
16445 shlibpath_overrides_runpath=no
16446 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16452 if test -d /usr/nec ;then
16454 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16455 soname_spec='$libname${shared_ext}.$major'
16456 shlibpath_var=LD_LIBRARY_PATH
16462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16463 soname_spec='${libname}${release}${shared_ext}$major'
16464 shlibpath_var=LD_LIBRARY_PATH
16471 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16472 echo "${ECHO_T}$dynamic_linker" >&6
16473 test "$dynamic_linker" = no && can_build_shared=no
16475 if test "x$enable_dlopen" != xyes; then
16476 enable_dlopen=unknown
16477 enable_dlopen_self=unknown
16478 enable_dlopen_self_static=unknown
16485 lt_cv_dlopen="load_add_on"
16487 lt_cv_dlopen_self=yes
16491 lt_cv_dlopen="LoadLibrary"
16496 lt_cv_dlopen="dlopen"
16501 # if libdl is installed we need to link against it
16502 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16503 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16504 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16507 ac_check_lib_save_LIBS=$LIBS
16509 cat >conftest.$ac_ext <<_ACEOF
16510 #line $LINENO "configure"
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16517 /* Override any gcc2 internal prototype to avoid an error. */
16521 /* We use char because int might match the return type of a gcc2
16522 builtin and then its argument prototype would still apply. */
16532 rm -f conftest.$ac_objext conftest$ac_exeext
16533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16534 (eval $ac_link) 2>&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); } &&
16538 { ac_try='test -s conftest$ac_exeext'
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; }; then
16544 ac_cv_lib_dl_dlopen=yes
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16549 ac_cv_lib_dl_dlopen=no
16551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16552 LIBS=$ac_check_lib_save_LIBS
16554 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16555 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16556 if test $ac_cv_lib_dl_dlopen = yes; then
16557 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16560 lt_cv_dlopen="dyld"
16562 lt_cv_dlopen_self=yes
16569 echo "$as_me:$LINENO: checking for shl_load" >&5
16570 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16571 if test "${ac_cv_func_shl_load+set}" = set; then
16572 echo $ECHO_N "(cached) $ECHO_C" >&6
16574 cat >conftest.$ac_ext <<_ACEOF
16575 #line $LINENO "configure"
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16581 /* System header to define __stub macros and hopefully few prototypes,
16582 which can conflict with char shl_load (); below.
16583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16584 <limits.h> exists even on freestanding compilers. */
16586 # include <limits.h>
16588 # include <assert.h>
16590 /* Override any gcc2 internal prototype to avoid an error. */
16595 /* We use char because int might match the return type of a gcc2
16596 builtin and then its argument prototype would still apply. */
16598 /* The GNU C library defines this for functions which it implements
16599 to always fail with ENOSYS. Some functions are actually named
16600 something starting with __ and the normal name is an alias. */
16601 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16604 char (*f) () = shl_load;
16613 return f != shl_load;
16618 rm -f conftest.$ac_objext conftest$ac_exeext
16619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16620 (eval $ac_link) 2>&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
16624 { ac_try='test -s conftest$ac_exeext'
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; }; then
16630 ac_cv_func_shl_load=yes
16632 echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16635 ac_cv_func_shl_load=no
16637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16639 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16640 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16641 if test $ac_cv_func_shl_load = yes; then
16642 lt_cv_dlopen="shl_load"
16644 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16645 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16646 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 ac_check_lib_save_LIBS=$LIBS
16651 cat >conftest.$ac_ext <<_ACEOF
16652 #line $LINENO "configure"
16655 cat confdefs.h >>conftest.$ac_ext
16656 cat >>conftest.$ac_ext <<_ACEOF
16657 /* end confdefs.h. */
16659 /* Override any gcc2 internal prototype to avoid an error. */
16663 /* We use char because int might match the return type of a gcc2
16664 builtin and then its argument prototype would still apply. */
16674 rm -f conftest.$ac_objext conftest$ac_exeext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676 (eval $ac_link) 2>&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } &&
16680 { ac_try='test -s conftest$ac_exeext'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; }; then
16686 ac_cv_lib_dld_shl_load=yes
16688 echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16691 ac_cv_lib_dld_shl_load=no
16693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16694 LIBS=$ac_check_lib_save_LIBS
16696 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16697 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16698 if test $ac_cv_lib_dld_shl_load = yes; then
16699 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16701 echo "$as_me:$LINENO: checking for dlopen" >&5
16702 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16703 if test "${ac_cv_func_dlopen+set}" = set; then
16704 echo $ECHO_N "(cached) $ECHO_C" >&6
16706 cat >conftest.$ac_ext <<_ACEOF
16707 #line $LINENO "configure"
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h. */
16713 /* System header to define __stub macros and hopefully few prototypes,
16714 which can conflict with char dlopen (); below.
16715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16716 <limits.h> exists even on freestanding compilers. */
16718 # include <limits.h>
16720 # include <assert.h>
16722 /* Override any gcc2 internal prototype to avoid an error. */
16727 /* We use char because int might match the return type of a gcc2
16728 builtin and then its argument prototype would still apply. */
16730 /* The GNU C library defines this for functions which it implements
16731 to always fail with ENOSYS. Some functions are actually named
16732 something starting with __ and the normal name is an alias. */
16733 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16736 char (*f) () = dlopen;
16745 return f != dlopen;
16750 rm -f conftest.$ac_objext conftest$ac_exeext
16751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16752 (eval $ac_link) 2>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } &&
16756 { ac_try='test -s conftest$ac_exeext'
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; }; then
16762 ac_cv_func_dlopen=yes
16764 echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16767 ac_cv_func_dlopen=no
16769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16771 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16772 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16773 if test $ac_cv_func_dlopen = yes; then
16774 lt_cv_dlopen="dlopen"
16776 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16777 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16778 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16779 echo $ECHO_N "(cached) $ECHO_C" >&6
16781 ac_check_lib_save_LIBS=$LIBS
16783 cat >conftest.$ac_ext <<_ACEOF
16784 #line $LINENO "configure"
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h. */
16791 /* Override any gcc2 internal prototype to avoid an error. */
16795 /* We use char because int might match the return type of a gcc2
16796 builtin and then its argument prototype would still apply. */
16806 rm -f conftest.$ac_objext conftest$ac_exeext
16807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16808 (eval $ac_link) 2>&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try='test -s conftest$ac_exeext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 ac_cv_lib_dl_dlopen=yes
16820 echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16823 ac_cv_lib_dl_dlopen=no
16825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16826 LIBS=$ac_check_lib_save_LIBS
16828 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16829 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16830 if test $ac_cv_lib_dl_dlopen = yes; then
16831 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16833 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16834 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16835 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16836 echo $ECHO_N "(cached) $ECHO_C" >&6
16838 ac_check_lib_save_LIBS=$LIBS
16839 LIBS="-lsvld $LIBS"
16840 cat >conftest.$ac_ext <<_ACEOF
16841 #line $LINENO "configure"
16844 cat confdefs.h >>conftest.$ac_ext
16845 cat >>conftest.$ac_ext <<_ACEOF
16846 /* end confdefs.h. */
16848 /* Override any gcc2 internal prototype to avoid an error. */
16852 /* We use char because int might match the return type of a gcc2
16853 builtin and then its argument prototype would still apply. */
16863 rm -f conftest.$ac_objext conftest$ac_exeext
16864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16865 (eval $ac_link) 2>&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } &&
16869 { ac_try='test -s conftest$ac_exeext'
16870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; }; then
16875 ac_cv_lib_svld_dlopen=yes
16877 echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16880 ac_cv_lib_svld_dlopen=no
16882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16883 LIBS=$ac_check_lib_save_LIBS
16885 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16886 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16887 if test $ac_cv_lib_svld_dlopen = yes; then
16888 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16890 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16891 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16892 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16895 ac_check_lib_save_LIBS=$LIBS
16897 cat >conftest.$ac_ext <<_ACEOF
16898 #line $LINENO "configure"
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16905 /* Override any gcc2 internal prototype to avoid an error. */
16909 /* We use char because int might match the return type of a gcc2
16910 builtin and then its argument prototype would still apply. */
16920 rm -f conftest.$ac_objext conftest$ac_exeext
16921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16922 (eval $ac_link) 2>&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } &&
16926 { ac_try='test -s conftest$ac_exeext'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 ac_cv_lib_dld_dld_link=yes
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ac_cv_lib_dld_dld_link=no
16939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16940 LIBS=$ac_check_lib_save_LIBS
16942 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16943 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16944 if test $ac_cv_lib_dld_dld_link = yes; then
16945 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16966 if test "x$lt_cv_dlopen" != xno; then
16972 case $lt_cv_dlopen in
16974 save_CPPFLAGS="$CPPFLAGS"
16975 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16977 save_LDFLAGS="$LDFLAGS"
16978 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16981 LIBS="$lt_cv_dlopen_libs $LIBS"
16983 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16984 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16985 if test "${lt_cv_dlopen_self+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16988 if test "$cross_compiling" = yes; then :
16989 lt_cv_dlopen_self=cross
16991 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16992 lt_status=$lt_dlunknown
16993 cat > conftest.$ac_ext <<EOF
16994 #line 16994 "configure"
16995 #include "confdefs.h"
17004 # define LT_DLGLOBAL RTLD_GLOBAL
17007 # define LT_DLGLOBAL DL_GLOBAL
17009 # define LT_DLGLOBAL 0
17013 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17014 find out it does not work in some platform. */
17015 #ifndef LT_DLLAZY_OR_NOW
17017 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17020 # define LT_DLLAZY_OR_NOW DL_LAZY
17023 # define LT_DLLAZY_OR_NOW RTLD_NOW
17026 # define LT_DLLAZY_OR_NOW DL_NOW
17028 # define LT_DLLAZY_OR_NOW 0
17036 extern "C" void exit (int);
17039 void fnord() { int i=42;}
17042 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17043 int status = $lt_dlunknown;
17047 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17048 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17049 /* dlclose (self); */
17055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17056 (eval $ac_link) 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17060 (./conftest; exit; ) 2>/dev/null
17062 case x$lt_status in
17063 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17064 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17065 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17068 # compilation failed
17069 lt_cv_dlopen_self=no
17076 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17077 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17079 if test "x$lt_cv_dlopen_self" = xyes; then
17080 LDFLAGS="$LDFLAGS $link_static_flag"
17081 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17082 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17083 if test "${lt_cv_dlopen_self_static+set}" = set; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17086 if test "$cross_compiling" = yes; then :
17087 lt_cv_dlopen_self_static=cross
17089 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17090 lt_status=$lt_dlunknown
17091 cat > conftest.$ac_ext <<EOF
17092 #line 17092 "configure"
17093 #include "confdefs.h"
17102 # define LT_DLGLOBAL RTLD_GLOBAL
17105 # define LT_DLGLOBAL DL_GLOBAL
17107 # define LT_DLGLOBAL 0
17111 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17112 find out it does not work in some platform. */
17113 #ifndef LT_DLLAZY_OR_NOW
17115 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17118 # define LT_DLLAZY_OR_NOW DL_LAZY
17121 # define LT_DLLAZY_OR_NOW RTLD_NOW
17124 # define LT_DLLAZY_OR_NOW DL_NOW
17126 # define LT_DLLAZY_OR_NOW 0
17134 extern "C" void exit (int);
17137 void fnord() { int i=42;}
17140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17141 int status = $lt_dlunknown;
17145 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17146 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17147 /* dlclose (self); */
17153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17154 (eval $ac_link) 2>&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17158 (./conftest; exit; ) 2>/dev/null
17160 case x$lt_status in
17161 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17162 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17163 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17166 # compilation failed
17167 lt_cv_dlopen_self_static=no
17174 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17175 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17178 CPPFLAGS="$save_CPPFLAGS"
17179 LDFLAGS="$save_LDFLAGS"
17184 case $lt_cv_dlopen_self in
17185 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17186 *) enable_dlopen_self=unknown ;;
17189 case $lt_cv_dlopen_self_static in
17190 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17191 *) enable_dlopen_self_static=unknown ;;
17196 # The else clause should only fire when bootstrapping the
17197 # libtool distribution, otherwise you forgot to ship ltmain.sh
17198 # with your package, and you will get complaints that there are
17199 # no rules to generate ltmain.sh.
17200 if test -f "$ltmain"; then
17201 # See if we are running on zsh, and set the options which allow our commands through
17202 # without removal of \ escapes.
17203 if test -n "${ZSH_VERSION+set}" ; then
17204 setopt NO_GLOB_SUBST
17206 # Now quote all the things that may contain metacharacters while being
17207 # careful not to overquote the AC_SUBSTed values. We take copies of the
17208 # variables and quote the copies for generation of the libtool script.
17209 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17210 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17211 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17212 deplibs_check_method reload_flag reload_cmds need_locks \
17213 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17214 lt_cv_sys_global_symbol_to_c_name_address \
17215 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17216 old_postinstall_cmds old_postuninstall_cmds \
17220 lt_prog_compiler_wl_GCJ \
17221 lt_prog_compiler_pic_GCJ \
17222 lt_prog_compiler_static_GCJ \
17223 lt_prog_compiler_no_builtin_flag_GCJ \
17224 export_dynamic_flag_spec_GCJ \
17225 thread_safe_flag_spec_GCJ \
17226 whole_archive_flag_spec_GCJ \
17227 enable_shared_with_static_runtimes_GCJ \
17228 old_archive_cmds_GCJ \
17229 old_archive_from_new_cmds_GCJ \
17230 predep_objects_GCJ \
17231 postdep_objects_GCJ \
17234 compiler_lib_search_path_GCJ \
17236 archive_expsym_cmds_GCJ \
17237 postinstall_cmds_GCJ \
17238 postuninstall_cmds_GCJ \
17239 old_archive_from_expsyms_cmds_GCJ \
17240 allow_undefined_flag_GCJ \
17241 no_undefined_flag_GCJ \
17242 export_symbols_cmds_GCJ \
17243 hardcode_libdir_flag_spec_GCJ \
17244 hardcode_libdir_flag_spec_ld_GCJ \
17245 hardcode_libdir_separator_GCJ \
17246 hardcode_automatic_GCJ \
17248 module_expsym_cmds_GCJ \
17249 lt_cv_prog_compiler_c_o_GCJ \
17250 exclude_expsyms_GCJ \
17251 include_expsyms_GCJ; do
17254 old_archive_cmds_GCJ | \
17255 old_archive_from_new_cmds_GCJ | \
17256 archive_cmds_GCJ | \
17257 archive_expsym_cmds_GCJ | \
17258 module_cmds_GCJ | \
17259 module_expsym_cmds_GCJ | \
17260 old_archive_from_expsyms_cmds_GCJ | \
17261 export_symbols_cmds_GCJ | \
17262 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17263 postinstall_cmds | postuninstall_cmds | \
17264 old_postinstall_cmds | old_postuninstall_cmds | \
17265 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17266 # Double-quote double-evaled strings.
17267 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17276 *'\$0 --fallback-echo"')
17277 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17283 cat <<__EOF__ >> "$cfgfile"
17284 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17286 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17288 # Shell to use when invoking shell scripts.
17291 # Whether or not to build shared libraries.
17292 build_libtool_libs=$enable_shared
17294 # Whether or not to build static libraries.
17295 build_old_libs=$enable_static
17297 # Whether or not to add -lc for building shared libraries.
17298 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17300 # Whether or not to disallow shared libs when runtime libs are static
17301 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17303 # Whether or not to optimize for fast installation.
17304 fast_install=$enable_fast_install
17307 host_alias=$host_alias
17310 # An echo program that does not interpret backslashes.
17315 AR_FLAGS=$lt_AR_FLAGS
17320 # A language-specific compiler.
17321 CC=$lt_compiler_GCJ
17323 # Is the compiler the GNU C compiler?
17329 # The linker used to build libraries.
17332 # Whether we need hard or soft links.
17335 # A BSD-compatible nm program.
17338 # A symbol stripping program
17341 # Used to examine libraries when file_magic_cmd begins "file"
17342 MAGIC_CMD=$MAGIC_CMD
17344 # Used on cygwin: DLL creation program.
17347 # Used on cygwin: object dumper.
17350 # Used on cygwin: assembler.
17353 # The name of the directory that contains temporary libtool files.
17356 # How to create reloadable object files.
17357 reload_flag=$lt_reload_flag
17358 reload_cmds=$lt_reload_cmds
17360 # How to pass a linker flag through the compiler.
17361 wl=$lt_lt_prog_compiler_wl_GCJ
17363 # Object file suffix (normally "o").
17364 objext="$ac_objext"
17366 # Old archive suffix (normally "a").
17369 # Shared library suffix (normally ".so").
17372 # Executable file suffix (normally "").
17375 # Additional compiler flags for building library objects.
17376 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17379 # What is the maximum length of a command?
17380 max_cmd_len=$lt_cv_sys_max_cmd_len
17382 # Does compiler simultaneously support -c and -o options?
17383 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17385 # Must we lock files when doing compilation ?
17386 need_locks=$lt_need_locks
17388 # Do we need the lib prefix for modules?
17389 need_lib_prefix=$need_lib_prefix
17391 # Do we need a version for libraries?
17392 need_version=$need_version
17394 # Whether dlopen is supported.
17395 dlopen_support=$enable_dlopen
17397 # Whether dlopen of programs is supported.
17398 dlopen_self=$enable_dlopen_self
17400 # Whether dlopen of statically linked programs is supported.
17401 dlopen_self_static=$enable_dlopen_self_static
17403 # Compiler flag to prevent dynamic linking.
17404 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17406 # Compiler flag to turn off builtin functions.
17407 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17409 # Compiler flag to allow reflexive dlopens.
17410 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17412 # Compiler flag to generate shared objects directly from archives.
17413 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17415 # Compiler flag to generate thread-safe objects.
17416 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17418 # Library versioning type.
17419 version_type=$version_type
17421 # Format of library name prefix.
17422 libname_spec=$lt_libname_spec
17424 # List of archive names. First name is the real one, the rest are links.
17425 # The last name is the one that the linker finds with -lNAME.
17426 library_names_spec=$lt_library_names_spec
17428 # The coded name of the library, if different from the real name.
17429 soname_spec=$lt_soname_spec
17431 # Commands used to build and install an old-style archive.
17433 old_archive_cmds=$lt_old_archive_cmds_GCJ
17434 old_postinstall_cmds=$lt_old_postinstall_cmds
17435 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17437 # Create an old-style archive from a shared archive.
17438 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17440 # Create a temporary old-style archive to link instead of a shared archive.
17441 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17443 # Commands used to build and install a shared archive.
17444 archive_cmds=$lt_archive_cmds_GCJ
17445 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17446 postinstall_cmds=$lt_postinstall_cmds
17447 postuninstall_cmds=$lt_postuninstall_cmds
17449 # Commands used to build a loadable module (assumed same as above if empty)
17450 module_cmds=$lt_module_cmds_GCJ
17451 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17453 # Commands to strip libraries.
17454 old_striplib=$lt_old_striplib
17455 striplib=$lt_striplib
17457 # Dependencies to place before the objects being linked to create a
17459 predep_objects=$lt_predep_objects_GCJ
17461 # Dependencies to place after the objects being linked to create a
17463 postdep_objects=$lt_postdep_objects_GCJ
17465 # Dependencies to place before the objects being linked to create a
17467 predeps=$lt_predeps_GCJ
17469 # Dependencies to place after the objects being linked to create a
17471 postdeps=$lt_postdeps_GCJ
17473 # The library search path used internally by the compiler when linking
17474 # a shared library.
17475 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17477 # Method to check whether dependent libraries are shared objects.
17478 deplibs_check_method=$lt_deplibs_check_method
17480 # Command to use when deplibs_check_method == file_magic.
17481 file_magic_cmd=$lt_file_magic_cmd
17483 # Flag that allows shared libraries with undefined symbols to be built.
17484 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17486 # Flag that forces no undefined symbols.
17487 no_undefined_flag=$lt_no_undefined_flag_GCJ
17489 # Commands used to finish a libtool library installation in a directory.
17490 finish_cmds=$lt_finish_cmds
17492 # Same as above, but a single script fragment to be evaled but not shown.
17493 finish_eval=$lt_finish_eval
17495 # Take the output of nm and produce a listing of raw symbols and C names.
17496 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17498 # Transform the output of nm in a proper C declaration
17499 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17501 # Transform the output of nm in a C name address pair
17502 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17504 # This is the shared library runtime path variable.
17505 runpath_var=$runpath_var
17507 # This is the shared library path variable.
17508 shlibpath_var=$shlibpath_var
17510 # Is shlibpath searched before the hard-coded library search path?
17511 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17513 # How to hardcode a shared library path into an executable.
17514 hardcode_action=$hardcode_action_GCJ
17516 # Whether we should hardcode library paths into libraries.
17517 hardcode_into_libs=$hardcode_into_libs
17519 # Flag to hardcode \$libdir into a binary during linking.
17520 # This must work even if \$libdir does not exist.
17521 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17523 # If ld is used when linking, flag to hardcode \$libdir into
17524 # a binary during linking. This must work even if \$libdir does
17526 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17528 # Whether we need a single -rpath flag with a separated argument.
17529 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17531 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17532 # resulting binary.
17533 hardcode_direct=$hardcode_direct_GCJ
17535 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17536 # resulting binary.
17537 hardcode_minus_L=$hardcode_minus_L_GCJ
17539 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17540 # the resulting binary.
17541 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17543 # Set to yes if building a shared library automatically hardcodes DIR into the library
17544 # and all subsequent libraries and executables linked against it.
17545 hardcode_automatic=$hardcode_automatic_GCJ
17547 # Variables whose values should be saved in libtool wrapper scripts and
17548 # restored at relink time.
17549 variables_saved_for_relink="$variables_saved_for_relink"
17551 # Whether libtool must link a program against all its dependency libraries.
17552 link_all_deplibs=$link_all_deplibs_GCJ
17554 # Compile-time system search path for libraries
17555 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17557 # Run-time system search path for libraries
17558 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17560 # Fix the shell variable \$srcfile for the compiler.
17561 fix_srcfile_path="$fix_srcfile_path_GCJ"
17563 # Set to yes if exported symbols are required.
17564 always_export_symbols=$always_export_symbols_GCJ
17566 # The commands to list exported symbols.
17567 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17569 # The commands to extract the exported symbol list from a shared archive.
17570 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17572 # Symbols that should not be listed in the preloaded symbols.
17573 exclude_expsyms=$lt_exclude_expsyms_GCJ
17575 # Symbols that must always be exported.
17576 include_expsyms=$lt_include_expsyms_GCJ
17578 # ### END LIBTOOL TAG CONFIG: $tagname
17584 # If there is no Makefile yet, we rely on a make rule to execute
17585 # `config.status --recheck' to rerun these tests and create the
17586 # libtool script then.
17587 test -f Makefile && make "$ltmain"
17592 ac_cpp='$CPP $CPPFLAGS'
17593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17608 # Source file extension for RC test sources.
17611 # Object file extension for compiled RC test sources.
17615 # Code to be used in simple compile tests
17616 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17618 # Code to be used in simple link tests
17619 lt_simple_link_test_code="$lt_simple_compile_test_code"
17621 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17623 # If no C compiler was specified, use CC.
17626 # Allow CC to be a program name with arguments.
17630 # Allow CC to be a program name with arguments.
17635 lt_cv_prog_compiler_c_o_RC=yes
17637 # The else clause should only fire when bootstrapping the
17638 # libtool distribution, otherwise you forgot to ship ltmain.sh
17639 # with your package, and you will get complaints that there are
17640 # no rules to generate ltmain.sh.
17641 if test -f "$ltmain"; then
17642 # See if we are running on zsh, and set the options which allow our commands through
17643 # without removal of \ escapes.
17644 if test -n "${ZSH_VERSION+set}" ; then
17645 setopt NO_GLOB_SUBST
17647 # Now quote all the things that may contain metacharacters while being
17648 # careful not to overquote the AC_SUBSTed values. We take copies of the
17649 # variables and quote the copies for generation of the libtool script.
17650 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17651 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17652 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17653 deplibs_check_method reload_flag reload_cmds need_locks \
17654 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17655 lt_cv_sys_global_symbol_to_c_name_address \
17656 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17657 old_postinstall_cmds old_postuninstall_cmds \
17661 lt_prog_compiler_wl_RC \
17662 lt_prog_compiler_pic_RC \
17663 lt_prog_compiler_static_RC \
17664 lt_prog_compiler_no_builtin_flag_RC \
17665 export_dynamic_flag_spec_RC \
17666 thread_safe_flag_spec_RC \
17667 whole_archive_flag_spec_RC \
17668 enable_shared_with_static_runtimes_RC \
17669 old_archive_cmds_RC \
17670 old_archive_from_new_cmds_RC \
17671 predep_objects_RC \
17672 postdep_objects_RC \
17675 compiler_lib_search_path_RC \
17677 archive_expsym_cmds_RC \
17678 postinstall_cmds_RC \
17679 postuninstall_cmds_RC \
17680 old_archive_from_expsyms_cmds_RC \
17681 allow_undefined_flag_RC \
17682 no_undefined_flag_RC \
17683 export_symbols_cmds_RC \
17684 hardcode_libdir_flag_spec_RC \
17685 hardcode_libdir_flag_spec_ld_RC \
17686 hardcode_libdir_separator_RC \
17687 hardcode_automatic_RC \
17689 module_expsym_cmds_RC \
17690 lt_cv_prog_compiler_c_o_RC \
17691 exclude_expsyms_RC \
17692 include_expsyms_RC; do
17695 old_archive_cmds_RC | \
17696 old_archive_from_new_cmds_RC | \
17697 archive_cmds_RC | \
17698 archive_expsym_cmds_RC | \
17700 module_expsym_cmds_RC | \
17701 old_archive_from_expsyms_cmds_RC | \
17702 export_symbols_cmds_RC | \
17703 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17704 postinstall_cmds | postuninstall_cmds | \
17705 old_postinstall_cmds | old_postuninstall_cmds | \
17706 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17707 # Double-quote double-evaled strings.
17708 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17711 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17717 *'\$0 --fallback-echo"')
17718 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17724 cat <<__EOF__ >> "$cfgfile"
17725 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17727 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17729 # Shell to use when invoking shell scripts.
17732 # Whether or not to build shared libraries.
17733 build_libtool_libs=$enable_shared
17735 # Whether or not to build static libraries.
17736 build_old_libs=$enable_static
17738 # Whether or not to add -lc for building shared libraries.
17739 build_libtool_need_lc=$archive_cmds_need_lc_RC
17741 # Whether or not to disallow shared libs when runtime libs are static
17742 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17744 # Whether or not to optimize for fast installation.
17745 fast_install=$enable_fast_install
17748 host_alias=$host_alias
17751 # An echo program that does not interpret backslashes.
17756 AR_FLAGS=$lt_AR_FLAGS
17761 # A language-specific compiler.
17764 # Is the compiler the GNU C compiler?
17770 # The linker used to build libraries.
17773 # Whether we need hard or soft links.
17776 # A BSD-compatible nm program.
17779 # A symbol stripping program
17782 # Used to examine libraries when file_magic_cmd begins "file"
17783 MAGIC_CMD=$MAGIC_CMD
17785 # Used on cygwin: DLL creation program.
17788 # Used on cygwin: object dumper.
17791 # Used on cygwin: assembler.
17794 # The name of the directory that contains temporary libtool files.
17797 # How to create reloadable object files.
17798 reload_flag=$lt_reload_flag
17799 reload_cmds=$lt_reload_cmds
17801 # How to pass a linker flag through the compiler.
17802 wl=$lt_lt_prog_compiler_wl_RC
17804 # Object file suffix (normally "o").
17805 objext="$ac_objext"
17807 # Old archive suffix (normally "a").
17810 # Shared library suffix (normally ".so").
17813 # Executable file suffix (normally "").
17816 # Additional compiler flags for building library objects.
17817 pic_flag=$lt_lt_prog_compiler_pic_RC
17820 # What is the maximum length of a command?
17821 max_cmd_len=$lt_cv_sys_max_cmd_len
17823 # Does compiler simultaneously support -c and -o options?
17824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17826 # Must we lock files when doing compilation ?
17827 need_locks=$lt_need_locks
17829 # Do we need the lib prefix for modules?
17830 need_lib_prefix=$need_lib_prefix
17832 # Do we need a version for libraries?
17833 need_version=$need_version
17835 # Whether dlopen is supported.
17836 dlopen_support=$enable_dlopen
17838 # Whether dlopen of programs is supported.
17839 dlopen_self=$enable_dlopen_self
17841 # Whether dlopen of statically linked programs is supported.
17842 dlopen_self_static=$enable_dlopen_self_static
17844 # Compiler flag to prevent dynamic linking.
17845 link_static_flag=$lt_lt_prog_compiler_static_RC
17847 # Compiler flag to turn off builtin functions.
17848 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17850 # Compiler flag to allow reflexive dlopens.
17851 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17853 # Compiler flag to generate shared objects directly from archives.
17854 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17856 # Compiler flag to generate thread-safe objects.
17857 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17859 # Library versioning type.
17860 version_type=$version_type
17862 # Format of library name prefix.
17863 libname_spec=$lt_libname_spec
17865 # List of archive names. First name is the real one, the rest are links.
17866 # The last name is the one that the linker finds with -lNAME.
17867 library_names_spec=$lt_library_names_spec
17869 # The coded name of the library, if different from the real name.
17870 soname_spec=$lt_soname_spec
17872 # Commands used to build and install an old-style archive.
17874 old_archive_cmds=$lt_old_archive_cmds_RC
17875 old_postinstall_cmds=$lt_old_postinstall_cmds
17876 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17878 # Create an old-style archive from a shared archive.
17879 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17881 # Create a temporary old-style archive to link instead of a shared archive.
17882 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17884 # Commands used to build and install a shared archive.
17885 archive_cmds=$lt_archive_cmds_RC
17886 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17887 postinstall_cmds=$lt_postinstall_cmds
17888 postuninstall_cmds=$lt_postuninstall_cmds
17890 # Commands used to build a loadable module (assumed same as above if empty)
17891 module_cmds=$lt_module_cmds_RC
17892 module_expsym_cmds=$lt_module_expsym_cmds_RC
17894 # Commands to strip libraries.
17895 old_striplib=$lt_old_striplib
17896 striplib=$lt_striplib
17898 # Dependencies to place before the objects being linked to create a
17900 predep_objects=$lt_predep_objects_RC
17902 # Dependencies to place after the objects being linked to create a
17904 postdep_objects=$lt_postdep_objects_RC
17906 # Dependencies to place before the objects being linked to create a
17908 predeps=$lt_predeps_RC
17910 # Dependencies to place after the objects being linked to create a
17912 postdeps=$lt_postdeps_RC
17914 # The library search path used internally by the compiler when linking
17915 # a shared library.
17916 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17918 # Method to check whether dependent libraries are shared objects.
17919 deplibs_check_method=$lt_deplibs_check_method
17921 # Command to use when deplibs_check_method == file_magic.
17922 file_magic_cmd=$lt_file_magic_cmd
17924 # Flag that allows shared libraries with undefined symbols to be built.
17925 allow_undefined_flag=$lt_allow_undefined_flag_RC
17927 # Flag that forces no undefined symbols.
17928 no_undefined_flag=$lt_no_undefined_flag_RC
17930 # Commands used to finish a libtool library installation in a directory.
17931 finish_cmds=$lt_finish_cmds
17933 # Same as above, but a single script fragment to be evaled but not shown.
17934 finish_eval=$lt_finish_eval
17936 # Take the output of nm and produce a listing of raw symbols and C names.
17937 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17939 # Transform the output of nm in a proper C declaration
17940 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17942 # Transform the output of nm in a C name address pair
17943 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17945 # This is the shared library runtime path variable.
17946 runpath_var=$runpath_var
17948 # This is the shared library path variable.
17949 shlibpath_var=$shlibpath_var
17951 # Is shlibpath searched before the hard-coded library search path?
17952 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17954 # How to hardcode a shared library path into an executable.
17955 hardcode_action=$hardcode_action_RC
17957 # Whether we should hardcode library paths into libraries.
17958 hardcode_into_libs=$hardcode_into_libs
17960 # Flag to hardcode \$libdir into a binary during linking.
17961 # This must work even if \$libdir does not exist.
17962 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17964 # If ld is used when linking, flag to hardcode \$libdir into
17965 # a binary during linking. This must work even if \$libdir does
17967 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17969 # Whether we need a single -rpath flag with a separated argument.
17970 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17972 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17973 # resulting binary.
17974 hardcode_direct=$hardcode_direct_RC
17976 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17977 # resulting binary.
17978 hardcode_minus_L=$hardcode_minus_L_RC
17980 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17981 # the resulting binary.
17982 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17984 # Set to yes if building a shared library automatically hardcodes DIR into the library
17985 # and all subsequent libraries and executables linked against it.
17986 hardcode_automatic=$hardcode_automatic_RC
17988 # Variables whose values should be saved in libtool wrapper scripts and
17989 # restored at relink time.
17990 variables_saved_for_relink="$variables_saved_for_relink"
17992 # Whether libtool must link a program against all its dependency libraries.
17993 link_all_deplibs=$link_all_deplibs_RC
17995 # Compile-time system search path for libraries
17996 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17998 # Run-time system search path for libraries
17999 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18001 # Fix the shell variable \$srcfile for the compiler.
18002 fix_srcfile_path="$fix_srcfile_path_RC"
18004 # Set to yes if exported symbols are required.
18005 always_export_symbols=$always_export_symbols_RC
18007 # The commands to list exported symbols.
18008 export_symbols_cmds=$lt_export_symbols_cmds_RC
18010 # The commands to extract the exported symbol list from a shared archive.
18011 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18013 # Symbols that should not be listed in the preloaded symbols.
18014 exclude_expsyms=$lt_exclude_expsyms_RC
18016 # Symbols that must always be exported.
18017 include_expsyms=$lt_include_expsyms_RC
18019 # ### END LIBTOOL TAG CONFIG: $tagname
18025 # If there is no Makefile yet, we rely on a make rule to execute
18026 # `config.status --recheck' to rerun these tests and create the
18027 # libtool script then.
18028 test -f Makefile && make "$ltmain"
18033 ac_cpp='$CPP $CPPFLAGS'
18034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18043 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18044 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18045 { (exit 1); exit 1; }; }
18049 # Append the new tag name to the list of available tags.
18050 if test -n "$tagname" ; then
18051 available_tags="$available_tags $tagname"
18057 # Now substitute the updated list of available tags.
18058 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18059 mv "${ofile}T" "$ofile"
18063 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18064 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18065 { (exit 1); exit 1; }; }
18071 # This can be used to rebuild libtool when needed
18072 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18074 # Always use our own libtool.
18075 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18077 # Prevent multiple expansion
18099 # Extract the first word of "dot", so it can be a program name with args.
18100 set dummy dot; ac_word=$2
18101 echo "$as_me:$LINENO: checking for $ac_word" >&5
18102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18103 if test "${ac_cv_path_DOT+set}" = set; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18108 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18112 for as_dir in $PATH
18115 test -z "$as_dir" && as_dir=.
18116 for ac_exec_ext in '' $ac_executable_extensions; do
18117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18118 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18125 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18129 DOT=$ac_cv_path_DOT
18131 if test -n "$DOT"; then
18132 echo "$as_me:$LINENO: result: $DOT" >&5
18133 echo "${ECHO_T}$DOT" >&6
18135 echo "$as_me:$LINENO: result: no" >&5
18136 echo "${ECHO_T}no" >&6
18139 # Extract the first word of "etags", so it can be a program name with args.
18140 set dummy etags; ac_word=$2
18141 echo "$as_me:$LINENO: checking for $ac_word" >&5
18142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18143 if test "${ac_cv_path_ETAGS+set}" = set; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18152 for as_dir in $PATH
18155 test -z "$as_dir" && as_dir=.
18156 for ac_exec_ext in '' $ac_executable_extensions; do
18157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18158 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18165 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18169 ETAGS=$ac_cv_path_ETAGS
18171 if test -n "$ETAGS"; then
18172 echo "$as_me:$LINENO: result: $ETAGS" >&5
18173 echo "${ECHO_T}$ETAGS" >&6
18175 echo "$as_me:$LINENO: result: no" >&5
18176 echo "${ECHO_T}no" >&6
18179 etags_version=`$ETAGS --version 2>&1`
18180 case "$etags_version" in
18181 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18182 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18183 *) ETAGSFLAGS="" ;;
18185 ETAGSFLAGS=$ETAGSFLAGS
18187 # Extract the first word of "python", so it can be a program name with args.
18188 set dummy python; ac_word=$2
18189 echo "$as_me:$LINENO: checking for $ac_word" >&5
18190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18191 if test "${ac_cv_path_PYTHON+set}" = set; then
18192 echo $ECHO_N "(cached) $ECHO_C" >&6
18196 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18200 for as_dir in $PATH
18203 test -z "$as_dir" && as_dir=.
18204 for ac_exec_ext in '' $ac_executable_extensions; do
18205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18206 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18213 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18217 PYTHON=$ac_cv_path_PYTHON
18219 if test -n "$PYTHON"; then
18220 echo "$as_me:$LINENO: result: $PYTHON" >&5
18221 echo "${ECHO_T}$PYTHON" >&6
18223 echo "$as_me:$LINENO: result: no" >&5
18224 echo "${ECHO_T}no" >&6
18227 if test "$PYTHON" = "false"
18229 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18230 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18232 # Extract the first word of "qmtest", so it can be a program name with args.
18233 set dummy qmtest; ac_word=$2
18234 echo "$as_me:$LINENO: checking for $ac_word" >&5
18235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18236 if test "${ac_cv_path_QMTEST+set}" = set; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18241 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18245 for as_dir in $PATH
18248 test -z "$as_dir" && as_dir=.
18249 for ac_exec_ext in '' $ac_executable_extensions; do
18250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18251 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18258 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18262 QMTEST=$ac_cv_path_QMTEST
18264 if test -n "$QMTEST"; then
18265 echo "$as_me:$LINENO: result: $QMTEST" >&5
18266 echo "${ECHO_T}$QMTEST" >&6
18268 echo "$as_me:$LINENO: result: no" >&5
18269 echo "${ECHO_T}no" >&6
18272 if test "$QMTEST" = "false"
18274 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18275 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18278 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18279 pymajor=`echo $pyversion | cut -d. -f1`
18280 pyminor=`echo $pyversion | cut -d. -f2`
18282 if test "$pymajor" -ge "2"
18284 if test "$pymajor" -eq "2"
18286 if test "$pyminor" -lt "2"
18288 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18289 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18293 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18294 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18300 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18301 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18302 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18303 echo $ECHO_N "(cached) $ECHO_C" >&6
18305 ac_check_lib_save_LIBS=$LIBS
18307 cat >conftest.$ac_ext <<_ACEOF
18308 #line $LINENO "configure"
18311 cat confdefs.h >>conftest.$ac_ext
18312 cat >>conftest.$ac_ext <<_ACEOF
18313 /* end confdefs.h. */
18315 /* Override any gcc2 internal prototype to avoid an error. */
18319 /* We use char because int might match the return type of a gcc2
18320 builtin and then its argument prototype would still apply. */
18330 rm -f conftest.$ac_objext conftest$ac_exeext
18331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18332 (eval $ac_link) 2>&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
18336 { ac_try='test -s conftest$ac_exeext'
18337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338 (eval $ac_try) 2>&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; }; then
18342 ac_cv_lib_elf_elf_begin=yes
18344 echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18347 ac_cv_lib_elf_elf_begin=no
18349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18350 LIBS=$ac_check_lib_save_LIBS
18352 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18353 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18354 if test $ac_cv_lib_elf_elf_begin = yes; then
18355 cat >>confdefs.h <<_ACEOF
18356 #define HAVE_LIBELF 1
18364 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18365 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18366 if test "${ac_cv_search_dlopen+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18369 ac_func_search_save_LIBS=$LIBS
18370 ac_cv_search_dlopen=no
18371 cat >conftest.$ac_ext <<_ACEOF
18372 #line $LINENO "configure"
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18379 /* Override any gcc2 internal prototype to avoid an error. */
18383 /* We use char because int might match the return type of a gcc2
18384 builtin and then its argument prototype would still apply. */
18394 rm -f conftest.$ac_objext conftest$ac_exeext
18395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18396 (eval $ac_link) 2>&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); } &&
18400 { ac_try='test -s conftest$ac_exeext'
18401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18402 (eval $ac_try) 2>&5
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; }; then
18406 ac_cv_search_dlopen="none required"
18408 echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.$ac_ext >&5
18412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18413 if test "$ac_cv_search_dlopen" = no; then
18414 for ac_lib in dl; do
18415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18416 cat >conftest.$ac_ext <<_ACEOF
18417 #line $LINENO "configure"
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18424 /* Override any gcc2 internal prototype to avoid an error. */
18428 /* We use char because int might match the return type of a gcc2
18429 builtin and then its argument prototype would still apply. */
18439 rm -f conftest.$ac_objext conftest$ac_exeext
18440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18441 (eval $ac_link) 2>&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); } &&
18445 { ac_try='test -s conftest$ac_exeext'
18446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 ac_cv_search_dlopen="-l$ac_lib"
18454 echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18461 LIBS=$ac_func_search_save_LIBS
18463 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18464 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18465 if test "$ac_cv_search_dlopen" != no; then
18466 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18468 cat >>confdefs.h <<\_ACEOF
18469 #define HAVE_DLOPEN 1
18473 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18474 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18478 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18479 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18480 if test "${ac_cv_search_mallinfo+set}" = set; then
18481 echo $ECHO_N "(cached) $ECHO_C" >&6
18483 ac_func_search_save_LIBS=$LIBS
18484 ac_cv_search_mallinfo=no
18485 cat >conftest.$ac_ext <<_ACEOF
18486 #line $LINENO "configure"
18489 cat confdefs.h >>conftest.$ac_ext
18490 cat >>conftest.$ac_ext <<_ACEOF
18491 /* end confdefs.h. */
18493 /* Override any gcc2 internal prototype to avoid an error. */
18497 /* We use char because int might match the return type of a gcc2
18498 builtin and then its argument prototype would still apply. */
18508 rm -f conftest.$ac_objext conftest$ac_exeext
18509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18510 (eval $ac_link) 2>&5
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); } &&
18514 { ac_try='test -s conftest$ac_exeext'
18515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18516 (eval $ac_try) 2>&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; }; then
18520 ac_cv_search_mallinfo="none required"
18522 echo "$as_me: failed program was:" >&5
18523 sed 's/^/| /' conftest.$ac_ext >&5
18526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18527 if test "$ac_cv_search_mallinfo" = no; then
18528 for ac_lib in malloc; do
18529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18530 cat >conftest.$ac_ext <<_ACEOF
18531 #line $LINENO "configure"
18534 cat confdefs.h >>conftest.$ac_ext
18535 cat >>conftest.$ac_ext <<_ACEOF
18536 /* end confdefs.h. */
18538 /* Override any gcc2 internal prototype to avoid an error. */
18542 /* We use char because int might match the return type of a gcc2
18543 builtin and then its argument prototype would still apply. */
18553 rm -f conftest.$ac_objext conftest$ac_exeext
18554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18555 (eval $ac_link) 2>&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } &&
18559 { ac_try='test -s conftest$ac_exeext'
18560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18561 (eval $ac_try) 2>&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; }; then
18565 ac_cv_search_mallinfo="-l$ac_lib"
18568 echo "$as_me: failed program was:" >&5
18569 sed 's/^/| /' conftest.$ac_ext >&5
18572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18575 LIBS=$ac_func_search_save_LIBS
18577 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18578 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18579 if test "$ac_cv_search_mallinfo" != no; then
18580 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18582 cat >>confdefs.h <<\_ACEOF
18583 #define HAVE_MALLINFO 1
18589 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18590 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18591 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18592 echo $ECHO_N "(cached) $ECHO_C" >&6
18594 ac_func_search_save_LIBS=$LIBS
18595 ac_cv_search_pthread_mutex_lock=no
18596 cat >conftest.$ac_ext <<_ACEOF
18597 #line $LINENO "configure"
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18604 /* Override any gcc2 internal prototype to avoid an error. */
18608 /* We use char because int might match the return type of a gcc2
18609 builtin and then its argument prototype would still apply. */
18610 char pthread_mutex_lock ();
18614 pthread_mutex_lock ();
18619 rm -f conftest.$ac_objext conftest$ac_exeext
18620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18621 (eval $ac_link) 2>&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } &&
18625 { ac_try='test -s conftest$ac_exeext'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 ac_cv_search_pthread_mutex_lock="none required"
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18638 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18639 for ac_lib in pthread; do
18640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18641 cat >conftest.$ac_ext <<_ACEOF
18642 #line $LINENO "configure"
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h. */
18649 /* Override any gcc2 internal prototype to avoid an error. */
18653 /* We use char because int might match the return type of a gcc2
18654 builtin and then its argument prototype would still apply. */
18655 char pthread_mutex_lock ();
18659 pthread_mutex_lock ();
18664 rm -f conftest.$ac_objext conftest$ac_exeext
18665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18666 (eval $ac_link) 2>&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); } &&
18670 { ac_try='test -s conftest$ac_exeext'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; }; then
18676 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18679 echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18686 LIBS=$ac_func_search_save_LIBS
18688 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18689 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18690 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18691 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18692 HAVE_PTHREAD_MUTEX_LOCK=1
18694 HAVE_PTHREAD_MUTEX_LOCK=0
18699 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18700 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18701 if test "${ac_cv_header_stdc+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
18704 cat >conftest.$ac_ext <<_ACEOF
18705 #line $LINENO "configure"
18708 cat confdefs.h >>conftest.$ac_ext
18709 cat >>conftest.$ac_ext <<_ACEOF
18710 /* end confdefs.h. */
18711 #include <stdlib.h>
18712 #include <stdarg.h>
18713 #include <string.h>
18724 rm -f conftest.$ac_objext
18725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18726 (eval $ac_compile) 2>&5
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); } &&
18730 { ac_try='test -s conftest.$ac_objext'
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; }; then
18736 ac_cv_header_stdc=yes
18738 echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18741 ac_cv_header_stdc=no
18743 rm -f conftest.$ac_objext conftest.$ac_ext
18745 if test $ac_cv_header_stdc = yes; then
18746 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18747 cat >conftest.$ac_ext <<_ACEOF
18748 #line $LINENO "configure"
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h. */
18754 #include <string.h>
18757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18758 $EGREP "memchr" >/dev/null 2>&1; then
18761 ac_cv_header_stdc=no
18767 if test $ac_cv_header_stdc = yes; then
18768 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18769 cat >conftest.$ac_ext <<_ACEOF
18770 #line $LINENO "configure"
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h. */
18776 #include <stdlib.h>
18779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18780 $EGREP "free" >/dev/null 2>&1; then
18783 ac_cv_header_stdc=no
18789 if test $ac_cv_header_stdc = yes; then
18790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18791 if test "$cross_compiling" = yes; then
18794 cat >conftest.$ac_ext <<_ACEOF
18795 #line $LINENO "configure"
18798 cat confdefs.h >>conftest.$ac_ext
18799 cat >>conftest.$ac_ext <<_ACEOF
18800 /* end confdefs.h. */
18802 #if ((' ' & 0x0FF) == 0x020)
18803 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18804 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18806 # define ISLOWER(c) \
18807 (('a' <= (c) && (c) <= 'i') \
18808 || ('j' <= (c) && (c) <= 'r') \
18809 || ('s' <= (c) && (c) <= 'z'))
18810 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18813 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18818 for (i = 0; i < 256; i++)
18819 if (XOR (islower (i), ISLOWER (i))
18820 || toupper (i) != TOUPPER (i))
18825 rm -f conftest$ac_exeext
18826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18827 (eval $ac_link) 2>&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; }; then
18838 echo "$as_me: program exited with status $ac_status" >&5
18839 echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18842 ( exit $ac_status )
18843 ac_cv_header_stdc=no
18845 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18849 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18850 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18851 if test $ac_cv_header_stdc = yes; then
18853 cat >>confdefs.h <<\_ACEOF
18854 #define STDC_HEADERS 1
18859 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18860 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18861 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18862 echo $ECHO_N "(cached) $ECHO_C" >&6
18864 cat >conftest.$ac_ext <<_ACEOF
18865 #line $LINENO "configure"
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18871 #include <sys/types.h>
18872 #include <sys/wait.h>
18873 #ifndef WEXITSTATUS
18874 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18877 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18885 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18890 rm -f conftest.$ac_objext
18891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18892 (eval $ac_compile) 2>&5
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); } &&
18896 { ac_try='test -s conftest.$ac_objext'
18897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18898 (eval $ac_try) 2>&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; }; then
18902 ac_cv_header_sys_wait_h=yes
18904 echo "$as_me: failed program was:" >&5
18905 sed 's/^/| /' conftest.$ac_ext >&5
18907 ac_cv_header_sys_wait_h=no
18909 rm -f conftest.$ac_objext conftest.$ac_ext
18911 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18912 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18913 if test $ac_cv_header_sys_wait_h = yes; then
18915 cat >>confdefs.h <<\_ACEOF
18916 #define HAVE_SYS_WAIT_H 1
18933 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
18935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18937 echo "$as_me:$LINENO: checking for $ac_header" >&5
18938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18940 echo $ECHO_N "(cached) $ECHO_C" >&6
18942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18945 # Is the header compilable?
18946 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18948 cat >conftest.$ac_ext <<_ACEOF
18949 #line $LINENO "configure"
18952 cat confdefs.h >>conftest.$ac_ext
18953 cat >>conftest.$ac_ext <<_ACEOF
18954 /* end confdefs.h. */
18955 $ac_includes_default
18956 #include <$ac_header>
18958 rm -f conftest.$ac_objext
18959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18960 (eval $ac_compile) 2>&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } &&
18964 { ac_try='test -s conftest.$ac_objext'
18965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18966 (eval $ac_try) 2>&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; }; then
18970 ac_header_compiler=yes
18972 echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18975 ac_header_compiler=no
18977 rm -f conftest.$ac_objext conftest.$ac_ext
18978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18979 echo "${ECHO_T}$ac_header_compiler" >&6
18981 # Is the header present?
18982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18984 cat >conftest.$ac_ext <<_ACEOF
18985 #line $LINENO "configure"
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18991 #include <$ac_header>
18993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18996 grep -v '^ *+' conftest.er1 >conftest.err
18998 cat conftest.err >&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } >/dev/null; then
19001 if test -s conftest.err; then
19002 ac_cpp_err=$ac_c_preproc_warn_flag
19009 if test -z "$ac_cpp_err"; then
19010 ac_header_preproc=yes
19012 echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19015 ac_header_preproc=no
19017 rm -f conftest.err conftest.$ac_ext
19018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19019 echo "${ECHO_T}$ac_header_preproc" >&6
19021 # So? What about this header?
19022 case $ac_header_compiler:$ac_header_preproc in
19024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19030 ## ------------------------------------ ##
19031 ## Report this to bug-autoconf@gnu.org. ##
19032 ## ------------------------------------ ##
19035 sed "s/^/$as_me: WARNING: /" >&2
19038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19046 ## ------------------------------------ ##
19047 ## Report this to bug-autoconf@gnu.org. ##
19048 ## ------------------------------------ ##
19051 sed "s/^/$as_me: WARNING: /" >&2
19054 echo "$as_me:$LINENO: checking for $ac_header" >&5
19055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19057 echo $ECHO_N "(cached) $ECHO_C" >&6
19059 eval "$as_ac_Header=$ac_header_preproc"
19061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19066 cat >>confdefs.h <<_ACEOF
19067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19075 if test "${ac_cv_header_sys_types_h+set}" = set; then
19076 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19077 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19078 if test "${ac_cv_header_sys_types_h+set}" = set; then
19079 echo $ECHO_N "(cached) $ECHO_C" >&6
19081 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19082 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19084 # Is the header compilable?
19085 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19086 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19087 cat >conftest.$ac_ext <<_ACEOF
19088 #line $LINENO "configure"
19091 cat confdefs.h >>conftest.$ac_ext
19092 cat >>conftest.$ac_ext <<_ACEOF
19093 /* end confdefs.h. */
19094 $ac_includes_default
19095 #include <sys/types.h>
19097 rm -f conftest.$ac_objext
19098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19099 (eval $ac_compile) 2>&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -s conftest.$ac_objext'
19104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105 (eval $ac_try) 2>&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
19109 ac_header_compiler=yes
19111 echo "$as_me: failed program was:" >&5
19112 sed 's/^/| /' conftest.$ac_ext >&5
19114 ac_header_compiler=no
19116 rm -f conftest.$ac_objext conftest.$ac_ext
19117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19118 echo "${ECHO_T}$ac_header_compiler" >&6
19120 # Is the header present?
19121 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19122 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19123 cat >conftest.$ac_ext <<_ACEOF
19124 #line $LINENO "configure"
19127 cat confdefs.h >>conftest.$ac_ext
19128 cat >>conftest.$ac_ext <<_ACEOF
19129 /* end confdefs.h. */
19130 #include <sys/types.h>
19132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19135 grep -v '^ *+' conftest.er1 >conftest.err
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } >/dev/null; then
19140 if test -s conftest.err; then
19141 ac_cpp_err=$ac_c_preproc_warn_flag
19148 if test -z "$ac_cpp_err"; then
19149 ac_header_preproc=yes
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19154 ac_header_preproc=no
19156 rm -f conftest.err conftest.$ac_ext
19157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19158 echo "${ECHO_T}$ac_header_preproc" >&6
19160 # So? What about this header?
19161 case $ac_header_compiler:$ac_header_preproc in
19163 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19164 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19165 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19166 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19169 ## ------------------------------------ ##
19170 ## Report this to bug-autoconf@gnu.org. ##
19171 ## ------------------------------------ ##
19174 sed "s/^/$as_me: WARNING: /" >&2
19177 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19178 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19179 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19180 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19181 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19182 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19185 ## ------------------------------------ ##
19186 ## Report this to bug-autoconf@gnu.org. ##
19187 ## ------------------------------------ ##
19190 sed "s/^/$as_me: WARNING: /" >&2
19193 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19194 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19195 if test "${ac_cv_header_sys_types_h+set}" = set; then
19196 echo $ECHO_N "(cached) $ECHO_C" >&6
19198 ac_cv_header_sys_types_h=$ac_header_preproc
19200 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19201 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19204 if test $ac_cv_header_sys_types_h = yes; then
19205 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19207 INCLUDE_SYS_TYPES_H=''
19212 if test "${ac_cv_header_inttypes_h+set}" = set; then
19213 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19214 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19215 if test "${ac_cv_header_inttypes_h+set}" = set; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19218 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19219 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19221 # Is the header compilable?
19222 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19223 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19224 cat >conftest.$ac_ext <<_ACEOF
19225 #line $LINENO "configure"
19228 cat confdefs.h >>conftest.$ac_ext
19229 cat >>conftest.$ac_ext <<_ACEOF
19230 /* end confdefs.h. */
19231 $ac_includes_default
19232 #include <inttypes.h>
19234 rm -f conftest.$ac_objext
19235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19236 (eval $ac_compile) 2>&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } &&
19240 { ac_try='test -s conftest.$ac_objext'
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; }; then
19246 ac_header_compiler=yes
19248 echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19251 ac_header_compiler=no
19253 rm -f conftest.$ac_objext conftest.$ac_ext
19254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19255 echo "${ECHO_T}$ac_header_compiler" >&6
19257 # Is the header present?
19258 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19259 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19260 cat >conftest.$ac_ext <<_ACEOF
19261 #line $LINENO "configure"
19264 cat confdefs.h >>conftest.$ac_ext
19265 cat >>conftest.$ac_ext <<_ACEOF
19266 /* end confdefs.h. */
19267 #include <inttypes.h>
19269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19272 grep -v '^ *+' conftest.er1 >conftest.err
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } >/dev/null; then
19277 if test -s conftest.err; then
19278 ac_cpp_err=$ac_c_preproc_warn_flag
19285 if test -z "$ac_cpp_err"; then
19286 ac_header_preproc=yes
19288 echo "$as_me: failed program was:" >&5
19289 sed 's/^/| /' conftest.$ac_ext >&5
19291 ac_header_preproc=no
19293 rm -f conftest.err conftest.$ac_ext
19294 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19295 echo "${ECHO_T}$ac_header_preproc" >&6
19297 # So? What about this header?
19298 case $ac_header_compiler:$ac_header_preproc in
19300 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19301 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19302 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19303 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19306 ## ------------------------------------ ##
19307 ## Report this to bug-autoconf@gnu.org. ##
19308 ## ------------------------------------ ##
19311 sed "s/^/$as_me: WARNING: /" >&2
19314 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19315 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19316 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19317 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19318 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19319 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19322 ## ------------------------------------ ##
19323 ## Report this to bug-autoconf@gnu.org. ##
19324 ## ------------------------------------ ##
19327 sed "s/^/$as_me: WARNING: /" >&2
19330 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19331 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19332 if test "${ac_cv_header_inttypes_h+set}" = set; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19335 ac_cv_header_inttypes_h=$ac_header_preproc
19337 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19338 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19341 if test $ac_cv_header_inttypes_h = yes; then
19342 INCLUDE_INTTYPES_H='#include <inttypes.h>'
19344 INCLUDE_INTTYPES_H=''
19349 if test "${ac_cv_header_stdint_h+set}" = set; then
19350 echo "$as_me:$LINENO: checking for stdint.h" >&5
19351 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19352 if test "${ac_cv_header_stdint_h+set}" = set; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19355 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19356 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19358 # Is the header compilable?
19359 echo "$as_me:$LINENO: checking stdint.h usability" >&5
19360 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
19361 cat >conftest.$ac_ext <<_ACEOF
19362 #line $LINENO "configure"
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19368 $ac_includes_default
19369 #include <stdint.h>
19371 rm -f conftest.$ac_objext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19373 (eval $ac_compile) 2>&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } &&
19377 { ac_try='test -s conftest.$ac_objext'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; }; then
19383 ac_header_compiler=yes
19385 echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19388 ac_header_compiler=no
19390 rm -f conftest.$ac_objext conftest.$ac_ext
19391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19392 echo "${ECHO_T}$ac_header_compiler" >&6
19394 # Is the header present?
19395 echo "$as_me:$LINENO: checking stdint.h presence" >&5
19396 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
19397 cat >conftest.$ac_ext <<_ACEOF
19398 #line $LINENO "configure"
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19404 #include <stdint.h>
19406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19409 grep -v '^ *+' conftest.er1 >conftest.err
19411 cat conftest.err >&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } >/dev/null; then
19414 if test -s conftest.err; then
19415 ac_cpp_err=$ac_c_preproc_warn_flag
19422 if test -z "$ac_cpp_err"; then
19423 ac_header_preproc=yes
19425 echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19428 ac_header_preproc=no
19430 rm -f conftest.err conftest.$ac_ext
19431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19432 echo "${ECHO_T}$ac_header_preproc" >&6
19434 # So? What about this header?
19435 case $ac_header_compiler:$ac_header_preproc in
19437 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
19438 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19439 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19440 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19443 ## ------------------------------------ ##
19444 ## Report this to bug-autoconf@gnu.org. ##
19445 ## ------------------------------------ ##
19448 sed "s/^/$as_me: WARNING: /" >&2
19451 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
19452 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
19453 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
19454 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
19455 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19456 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19459 ## ------------------------------------ ##
19460 ## Report this to bug-autoconf@gnu.org. ##
19461 ## ------------------------------------ ##
19464 sed "s/^/$as_me: WARNING: /" >&2
19467 echo "$as_me:$LINENO: checking for stdint.h" >&5
19468 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19469 if test "${ac_cv_header_stdint_h+set}" = set; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
19472 ac_cv_header_stdint_h=$ac_header_preproc
19474 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19475 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19478 if test $ac_cv_header_stdint_h = yes; then
19479 INCLUDE_STDINT_H='#include <stdint.h>'
19481 INCLUDE_STDINT_H=''
19488 echo "$as_me:$LINENO: checking for pid_t" >&5
19489 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19490 if test "${ac_cv_type_pid_t+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19493 cat >conftest.$ac_ext <<_ACEOF
19494 #line $LINENO "configure"
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h. */
19500 $ac_includes_default
19506 if (sizeof (pid_t))
19512 rm -f conftest.$ac_objext
19513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19514 (eval $ac_compile) 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
19518 { ac_try='test -s conftest.$ac_objext'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 ac_cv_type_pid_t=yes
19526 echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19529 ac_cv_type_pid_t=no
19531 rm -f conftest.$ac_objext conftest.$ac_ext
19533 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19534 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19535 if test $ac_cv_type_pid_t = yes; then
19539 cat >>confdefs.h <<_ACEOF
19545 echo "$as_me:$LINENO: checking for size_t" >&5
19546 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19547 if test "${ac_cv_type_size_t+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 cat >conftest.$ac_ext <<_ACEOF
19551 #line $LINENO "configure"
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h. */
19557 $ac_includes_default
19563 if (sizeof (size_t))
19569 rm -f conftest.$ac_objext
19570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19571 (eval $ac_compile) 2>&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } &&
19575 { ac_try='test -s conftest.$ac_objext'
19576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; }; then
19581 ac_cv_type_size_t=yes
19583 echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19586 ac_cv_type_size_t=no
19588 rm -f conftest.$ac_objext conftest.$ac_ext
19590 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19591 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19592 if test $ac_cv_type_size_t = yes; then
19596 cat >>confdefs.h <<_ACEOF
19597 #define size_t unsigned
19602 echo "$as_me:$LINENO: checking for int64_t" >&5
19603 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19604 if test "${ac_cv_type_int64_t+set}" = set; then
19605 echo $ECHO_N "(cached) $ECHO_C" >&6
19607 cat >conftest.$ac_ext <<_ACEOF
19608 #line $LINENO "configure"
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h. */
19614 $ac_includes_default
19620 if (sizeof (int64_t))
19626 rm -f conftest.$ac_objext
19627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19628 (eval $ac_compile) 2>&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } &&
19632 { ac_try='test -s conftest.$ac_objext'
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; }; then
19638 ac_cv_type_int64_t=yes
19640 echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19643 ac_cv_type_int64_t=no
19645 rm -f conftest.$ac_objext conftest.$ac_ext
19647 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19648 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19649 if test $ac_cv_type_int64_t = yes; then
19651 cat >>confdefs.h <<_ACEOF
19652 #define HAVE_INT64_T 1
19657 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19658 echo "$as_me: error: Type int64_t required but not found" >&2;}
19659 { (exit 1); exit 1; }; }
19662 echo "$as_me:$LINENO: checking for uint64_t" >&5
19663 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19664 if test "${ac_cv_type_uint64_t+set}" = set; then
19665 echo $ECHO_N "(cached) $ECHO_C" >&6
19667 cat >conftest.$ac_ext <<_ACEOF
19668 #line $LINENO "configure"
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h. */
19674 $ac_includes_default
19678 if ((uint64_t *) 0)
19680 if (sizeof (uint64_t))
19686 rm -f conftest.$ac_objext
19687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19688 (eval $ac_compile) 2>&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } &&
19692 { ac_try='test -s conftest.$ac_objext'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 ac_cv_type_uint64_t=yes
19700 echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19703 ac_cv_type_uint64_t=no
19705 rm -f conftest.$ac_objext conftest.$ac_ext
19707 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19708 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19709 if test $ac_cv_type_uint64_t = yes; then
19711 cat >>confdefs.h <<_ACEOF
19712 #define HAVE_UINT64_T 1
19717 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19718 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19719 { (exit 1); exit 1; }; }
19722 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19723 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19724 if test "${ac_cv_header_time+set}" = set; then
19725 echo $ECHO_N "(cached) $ECHO_C" >&6
19727 cat >conftest.$ac_ext <<_ACEOF
19728 #line $LINENO "configure"
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h. */
19734 #include <sys/types.h>
19735 #include <sys/time.h>
19741 if ((struct tm *) 0)
19747 rm -f conftest.$ac_objext
19748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19749 (eval $ac_compile) 2>&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); } &&
19753 { ac_try='test -s conftest.$ac_objext'
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; }; then
19759 ac_cv_header_time=yes
19761 echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19764 ac_cv_header_time=no
19766 rm -f conftest.$ac_objext conftest.$ac_ext
19768 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19769 echo "${ECHO_T}$ac_cv_header_time" >&6
19770 if test $ac_cv_header_time = yes; then
19772 cat >>confdefs.h <<\_ACEOF
19773 #define TIME_WITH_SYS_TIME 1
19778 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19779 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19780 if test "${ac_cv_struct_tm+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19783 cat >conftest.$ac_ext <<_ACEOF
19784 #line $LINENO "configure"
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h. */
19790 #include <sys/types.h>
19796 struct tm *tp; tp->tm_sec;
19801 rm -f conftest.$ac_objext
19802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19803 (eval $ac_compile) 2>&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } &&
19807 { ac_try='test -s conftest.$ac_objext'
19808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809 (eval $ac_try) 2>&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; }; then
19813 ac_cv_struct_tm=time.h
19815 echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19818 ac_cv_struct_tm=sys/time.h
19820 rm -f conftest.$ac_objext conftest.$ac_ext
19822 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19823 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19824 if test $ac_cv_struct_tm = sys/time.h; then
19826 cat >>confdefs.h <<\_ACEOF
19827 #define TM_IN_SYS_TIME 1
19834 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
19835 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
19839 ac_cpp='$CPP $CPPFLAGS'
19840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19844 if test "$cross_compiling" = yes; then
19845 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19846 See \`config.log' for more details." >&5
19847 echo "$as_me: error: cannot run test program while cross compiling
19848 See \`config.log' for more details." >&2;}
19849 { (exit 1); exit 1; }; }
19851 cat >conftest.$ac_ext <<_ACEOF
19852 #line $LINENO "configure"
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19859 #include <stdlib.h>
19864 volatile double A, B;
19868 sprintf(Buffer, "%a", A);
19872 if (A != 0x1.999999999999ap-4)
19879 rm -f conftest$ac_exeext
19880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19881 (eval $ac_link) 2>&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886 (eval $ac_try) 2>&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; }; then
19892 echo "$as_me: program exited with status $ac_status" >&5
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19896 ( exit $ac_status )
19899 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19902 ac_cpp='$CPP $CPPFLAGS'
19903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19907 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
19908 echo "${ECHO_T}$ac_c_printf_a" >&6
19909 if test "$ac_c_printf_a" = "yes"; then
19911 cat >>confdefs.h <<\_ACEOF
19912 #define HAVE_PRINTF_A 1
19918 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19919 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19920 if test "${ac_cv_c_bigendian+set}" = set; then
19921 echo $ECHO_N "(cached) $ECHO_C" >&6
19923 # See if sys/param.h defines the BYTE_ORDER macro.
19924 cat >conftest.$ac_ext <<_ACEOF
19925 #line $LINENO "configure"
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19931 #include <sys/types.h>
19932 #include <sys/param.h>
19937 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19938 bogus endian macros
19945 rm -f conftest.$ac_objext
19946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19947 (eval $ac_compile) 2>&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } &&
19951 { ac_try='test -s conftest.$ac_objext'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }; then
19957 # It does; now see whether it defined to BIG_ENDIAN or not.
19958 cat >conftest.$ac_ext <<_ACEOF
19959 #line $LINENO "configure"
19962 cat confdefs.h >>conftest.$ac_ext
19963 cat >>conftest.$ac_ext <<_ACEOF
19964 /* end confdefs.h. */
19965 #include <sys/types.h>
19966 #include <sys/param.h>
19971 #if BYTE_ORDER != BIG_ENDIAN
19979 rm -f conftest.$ac_objext
19980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19981 (eval $ac_compile) 2>&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } &&
19985 { ac_try='test -s conftest.$ac_objext'
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; }; then
19991 ac_cv_c_bigendian=yes
19993 echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.$ac_ext >&5
19996 ac_cv_c_bigendian=no
19998 rm -f conftest.$ac_objext conftest.$ac_ext
20000 echo "$as_me: failed program was:" >&5
20001 sed 's/^/| /' conftest.$ac_ext >&5
20003 # It does not; compile a test program.
20004 if test "$cross_compiling" = yes; then
20005 # try to guess the endianness by grepping values into an object file
20006 ac_cv_c_bigendian=unknown
20007 cat >conftest.$ac_ext <<_ACEOF
20008 #line $LINENO "configure"
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20014 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20015 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20016 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20017 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20018 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20019 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20023 _ascii (); _ebcdic ();
20028 rm -f conftest.$ac_objext
20029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20030 (eval $ac_compile) 2>&5
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); } &&
20034 { ac_try='test -s conftest.$ac_objext'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
20040 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20041 ac_cv_c_bigendian=yes
20043 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20044 if test "$ac_cv_c_bigendian" = unknown; then
20045 ac_cv_c_bigendian=no
20047 # finding both strings is unlikely to happen, but who knows?
20048 ac_cv_c_bigendian=unknown
20052 echo "$as_me: failed program was:" >&5
20053 sed 's/^/| /' conftest.$ac_ext >&5
20056 rm -f conftest.$ac_objext conftest.$ac_ext
20058 cat >conftest.$ac_ext <<_ACEOF
20059 #line $LINENO "configure"
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20068 /* Are we little or big endian? From Harbison&Steele. */
20072 char c[sizeof (long)];
20075 exit (u.c[sizeof (long) - 1] == 1);
20078 rm -f conftest$ac_exeext
20079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20080 (eval $ac_link) 2>&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; }; then
20089 ac_cv_c_bigendian=no
20091 echo "$as_me: program exited with status $ac_status" >&5
20092 echo "$as_me: failed program was:" >&5
20093 sed 's/^/| /' conftest.$ac_ext >&5
20095 ( exit $ac_status )
20096 ac_cv_c_bigendian=yes
20098 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20101 rm -f conftest.$ac_objext conftest.$ac_ext
20103 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20104 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20105 case $ac_cv_c_bigendian in
20113 { { echo "$as_me:$LINENO: error: unknown endianness
20114 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20115 echo "$as_me: error: unknown endianness
20116 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20117 { (exit 1); exit 1; }; } ;;
20121 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20122 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20123 if test "${ac_cv_cxx_namespaces+set}" = set; then
20124 echo $ECHO_N "(cached) $ECHO_C" >&6
20129 ac_cpp='$CXXCPP $CPPFLAGS'
20130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20134 cat >conftest.$ac_ext <<_ACEOF
20135 #line $LINENO "configure"
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h. */
20141 namespace Outer { namespace Inner { int i = 0; }}
20145 using namespace Outer::Inner; return i;
20150 rm -f conftest.$ac_objext
20151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20152 (eval $ac_compile) 2>&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } &&
20156 { ac_try='test -s conftest.$ac_objext'
20157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158 (eval $ac_try) 2>&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; }; then
20162 ac_cv_cxx_namespaces=yes
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20167 ac_cv_cxx_namespaces=no
20169 rm -f conftest.$ac_objext conftest.$ac_ext
20171 ac_cpp='$CPP $CPPFLAGS'
20172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20178 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20179 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20180 if test "$ac_cv_cxx_namespaces" = yes; then
20182 cat >>confdefs.h <<\_ACEOF
20183 #define HAVE_NAMESPACES
20188 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20189 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20190 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20191 echo $ECHO_N "(cached) $ECHO_C" >&6
20197 ac_cpp='$CXXCPP $CPPFLAGS'
20198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20202 cat >conftest.$ac_ext <<_ACEOF
20203 #line $LINENO "configure"
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h. */
20209 #include <ext/hash_map>
20210 #ifdef HAVE_NAMESPACES
20211 using namespace std;
20216 hash_map<int, int> t;
20221 rm -f conftest.$ac_objext
20222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20223 (eval $ac_compile) 2>&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } &&
20227 { ac_try='test -s conftest.$ac_objext'
20228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229 (eval $ac_try) 2>&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); }; }; then
20233 ac_cv_cxx_have_std_ext_hash_map=yes
20235 echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.$ac_ext >&5
20238 ac_cv_cxx_have_std_ext_hash_map=no
20240 rm -f conftest.$ac_objext conftest.$ac_ext
20242 ac_cpp='$CPP $CPPFLAGS'
20243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20248 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20249 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20250 HAVE_STD_EXT_HASH_MAP=0
20251 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20253 HAVE_STD_EXT_HASH_MAP=1
20256 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20257 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20258 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20265 ac_cpp='$CXXCPP $CPPFLAGS'
20266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20270 cat >conftest.$ac_ext <<_ACEOF
20271 #line $LINENO "configure"
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h. */
20277 #include <ext/hash_map>
20278 #ifdef HAVE_NAMESPACES
20279 using namespace __gnu_cxx;
20284 hash_map<int,int> t;
20289 rm -f conftest.$ac_objext
20290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20291 (eval $ac_compile) 2>&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } &&
20295 { ac_try='test -s conftest.$ac_objext'
20296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297 (eval $ac_try) 2>&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); }; }; then
20301 ac_cv_cxx_have_gnu_ext_hash_map=yes
20303 echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.$ac_ext >&5
20306 ac_cv_cxx_have_gnu_ext_hash_map=no
20308 rm -f conftest.$ac_objext conftest.$ac_ext
20310 ac_cpp='$CPP $CPPFLAGS'
20311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20316 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20317 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20318 HAVE_GNU_EXT_HASH_MAP=0
20319 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20321 HAVE_GNU_EXT_HASH_MAP=1
20324 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20325 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20326 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20327 echo $ECHO_N "(cached) $ECHO_C" >&6
20333 ac_cpp='$CXXCPP $CPPFLAGS'
20334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20338 cat >conftest.$ac_ext <<_ACEOF
20339 #line $LINENO "configure"
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h. */
20345 #include <hash_map>
20349 hash_map<int,int> t;
20354 rm -f conftest.$ac_objext
20355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20356 (eval $ac_compile) 2>&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } &&
20360 { ac_try='test -s conftest.$ac_objext'
20361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362 (eval $ac_try) 2>&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; }; then
20366 ac_cv_cxx_have_global_hash_map=yes
20368 echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20371 ac_cv_cxx_have_global_hash_map=no
20373 rm -f conftest.$ac_objext conftest.$ac_ext
20375 ac_cpp='$CPP $CPPFLAGS'
20376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20381 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20382 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20383 HAVE_GLOBAL_HASH_MAP=0
20384 if test "$ac_cv_cxx_have_global_hash_map" = yes
20386 HAVE_GLOBAL_HASH_MAP=1
20389 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20390 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20391 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20392 echo $ECHO_N "(cached) $ECHO_C" >&6
20398 ac_cpp='$CXXCPP $CPPFLAGS'
20399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20403 cat >conftest.$ac_ext <<_ACEOF
20404 #line $LINENO "configure"
20407 cat confdefs.h >>conftest.$ac_ext
20408 cat >>conftest.$ac_ext <<_ACEOF
20409 /* end confdefs.h. */
20410 #include <ext/hash_set>
20411 #ifdef HAVE_NAMESPACES
20412 using namespace std;
20422 rm -f conftest.$ac_objext
20423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20424 (eval $ac_compile) 2>&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } &&
20428 { ac_try='test -s conftest.$ac_objext'
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; }; then
20434 ac_cv_cxx_have_std_ext_hash_set=yes
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20439 ac_cv_cxx_have_std_ext_hash_set=no
20441 rm -f conftest.$ac_objext conftest.$ac_ext
20443 ac_cpp='$CPP $CPPFLAGS'
20444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20449 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20450 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20451 HAVE_STD_EXT_HASH_SET=0
20452 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20454 HAVE_STD_EXT_HASH_SET=1
20457 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20458 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20459 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20460 echo $ECHO_N "(cached) $ECHO_C" >&6
20466 ac_cpp='$CXXCPP $CPPFLAGS'
20467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20471 cat >conftest.$ac_ext <<_ACEOF
20472 #line $LINENO "configure"
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20478 #include <ext/hash_set>
20479 #ifdef HAVE_NAMESPACES
20480 using namespace __gnu_cxx;
20490 rm -f conftest.$ac_objext
20491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20492 (eval $ac_compile) 2>&5
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } &&
20496 { ac_try='test -s conftest.$ac_objext'
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; }; then
20502 ac_cv_cxx_have_gnu_ext_hash_set=yes
20504 echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20507 ac_cv_cxx_have_gnu_ext_hash_set=no
20509 rm -f conftest.$ac_objext conftest.$ac_ext
20511 ac_cpp='$CPP $CPPFLAGS'
20512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20517 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20518 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20519 HAVE_GNU_EXT_HASH_SET=0
20520 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20522 HAVE_GNU_EXT_HASH_SET=1
20525 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20526 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20527 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20534 ac_cpp='$CXXCPP $CPPFLAGS'
20535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20539 cat >conftest.$ac_ext <<_ACEOF
20540 #line $LINENO "configure"
20543 cat confdefs.h >>conftest.$ac_ext
20544 cat >>conftest.$ac_ext <<_ACEOF
20545 /* end confdefs.h. */
20546 #include <hash_set>
20550 hash_set<int> t; return 0;
20555 rm -f conftest.$ac_objext
20556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20557 (eval $ac_compile) 2>&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); } &&
20561 { ac_try='test -s conftest.$ac_objext'
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; }; then
20567 ac_cv_cxx_have_global_hash_set=yes
20569 echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20572 ac_cv_cxx_have_global_hash_set=no
20574 rm -f conftest.$ac_objext conftest.$ac_ext
20576 ac_cpp='$CPP $CPPFLAGS'
20577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20582 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20583 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20584 HAVE_GLOBAL_HASH_SET=0
20585 if test "$ac_cv_cxx_have_global_hash_set" = yes
20587 HAVE_GLOBAL_HASH_SET=1
20590 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20591 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20592 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20593 echo $ECHO_N "(cached) $ECHO_C" >&6
20599 ac_cpp='$CXXCPP $CPPFLAGS'
20600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20604 cat >conftest.$ac_ext <<_ACEOF
20605 #line $LINENO "configure"
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h. */
20611 #include <iterator>
20612 #ifdef HAVE_NAMESPACES
20613 using namespace std;
20618 iterator<int,int,int> t; return 0;
20623 rm -f conftest.$ac_objext
20624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20625 (eval $ac_compile) 2>&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
20629 { ac_try='test -s conftest.$ac_objext'
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20635 ac_cv_cxx_have_std_iterator=yes
20637 echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20640 ac_cv_cxx_have_std_iterator=no
20642 rm -f conftest.$ac_objext conftest.$ac_ext
20644 ac_cpp='$CPP $CPPFLAGS'
20645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20651 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20652 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20653 HAVE_STD_ITERATOR=0
20654 if test "$ac_cv_cxx_have_std_iterator" = yes
20656 HAVE_STD_ITERATOR=1
20659 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20660 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20661 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20662 echo $ECHO_N "(cached) $ECHO_C" >&6
20668 ac_cpp='$CXXCPP $CPPFLAGS'
20669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20673 cat >conftest.$ac_ext <<_ACEOF
20674 #line $LINENO "configure"
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20680 #include <iterator>
20681 #ifdef HAVE_NAMESPACES
20682 using namespace std;
20687 bidirectional_iterator<int,int> t; return 0;
20692 rm -f conftest.$ac_objext
20693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20694 (eval $ac_compile) 2>&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); } &&
20698 { ac_try='test -s conftest.$ac_objext'
20699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700 (eval $ac_try) 2>&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); }; }; then
20704 ac_cv_cxx_have_bi_iterator=yes
20706 echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20709 ac_cv_cxx_have_bi_iterator=no
20711 rm -f conftest.$ac_objext conftest.$ac_ext
20713 ac_cpp='$CPP $CPPFLAGS'
20714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20720 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20721 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20723 if test "$ac_cv_cxx_have_bi_iterator" = yes
20728 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20729 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20730 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20731 echo $ECHO_N "(cached) $ECHO_C" >&6
20737 ac_cpp='$CXXCPP $CPPFLAGS'
20738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20742 cat >conftest.$ac_ext <<_ACEOF
20743 #line $LINENO "configure"
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h. */
20749 #include <iterator>
20750 #ifdef HAVE_NAMESPACES
20751 using namespace std;
20756 forward_iterator<int,int> t; return 0;
20761 rm -f conftest.$ac_objext
20762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20763 (eval $ac_compile) 2>&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } &&
20767 { ac_try='test -s conftest.$ac_objext'
20768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769 (eval $ac_try) 2>&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; }; then
20773 ac_cv_cxx_have_fwd_iterator=yes
20775 echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20778 ac_cv_cxx_have_fwd_iterator=no
20780 rm -f conftest.$ac_objext conftest.$ac_ext
20782 ac_cpp='$CPP $CPPFLAGS'
20783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20789 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20790 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20791 HAVE_FWD_ITERATOR=0
20792 if test "$ac_cv_cxx_have_fwd_iterator" = yes
20794 HAVE_FWD_ITERATOR=1
20799 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20800 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
20801 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20802 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 ac_cpp='$CXXCPP $CPPFLAGS'
20806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20810 cat >conftest.$ac_ext <<_ACEOF
20811 #line $LINENO "configure"
20814 cat confdefs.h >>conftest.$ac_ext
20815 cat >>conftest.$ac_ext <<_ACEOF
20816 /* end confdefs.h. */
20818 int foo(float f) {return isnan(f);}
20820 rm -f conftest.$ac_objext
20821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20822 (eval $ac_compile) 2>&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); } &&
20826 { ac_try='test -s conftest.$ac_objext'
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; }; then
20832 ac_cv_func_isnan_in_math_h=yes
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20837 ac_cv_func_isnan_in_math_h=no
20839 rm -f conftest.$ac_objext conftest.$ac_ext
20841 ac_cpp='$CPP $CPPFLAGS'
20842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20847 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20848 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
20849 if test "$ac_cv_func_isnan_in_math_h" = "yes"
20852 cat >>confdefs.h <<\_ACEOF
20853 #define HAVE_ISNAN_IN_MATH_H 1
20857 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20858 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
20859 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20863 ac_cpp='$CXXCPP $CPPFLAGS'
20864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20868 cat >conftest.$ac_ext <<_ACEOF
20869 #line $LINENO "configure"
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20876 int foo(float f) {return isnan(f);}
20878 rm -f conftest.$ac_objext
20879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20880 (eval $ac_compile) 2>&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } &&
20884 { ac_try='test -s conftest.$ac_objext'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; }; then
20890 ac_cv_func_isnan_in_cmath=yes
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20895 ac_cv_func_isnan_in_cmath=no
20897 rm -f conftest.$ac_objext conftest.$ac_ext
20899 ac_cpp='$CPP $CPPFLAGS'
20900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20905 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20906 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
20907 if test "$ac_cv_func_isnan_in_cmath" = "yes"
20910 cat >>confdefs.h <<\_ACEOF
20911 #define HAVE_ISNAN_IN_CMATH 1
20915 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20916 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
20917 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20918 echo $ECHO_N "(cached) $ECHO_C" >&6
20921 ac_cpp='$CXXCPP $CPPFLAGS'
20922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20926 cat >conftest.$ac_ext <<_ACEOF
20927 #line $LINENO "configure"
20930 cat confdefs.h >>conftest.$ac_ext
20931 cat >>conftest.$ac_ext <<_ACEOF
20932 /* end confdefs.h. */
20934 using std::isnan; int foo(float f) {return isnan(f);}
20936 rm -f conftest.$ac_objext
20937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20938 (eval $ac_compile) 2>&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } &&
20942 { ac_try='test -s conftest.$ac_objext'
20943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20944 (eval $ac_try) 2>&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); }; }; then
20948 ac_cv_func_std_isnan_in_cmath=yes
20950 echo "$as_me: failed program was:" >&5
20951 sed 's/^/| /' conftest.$ac_ext >&5
20953 ac_cv_func_std_isnan_in_cmath=no
20955 rm -f conftest.$ac_objext conftest.$ac_ext
20957 ac_cpp='$CPP $CPPFLAGS'
20958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20963 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20964 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
20965 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
20968 cat >>confdefs.h <<\_ACEOF
20969 #define HAVE_STD_ISNAN_IN_CMATH 1
20975 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20976 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
20977 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20978 echo $ECHO_N "(cached) $ECHO_C" >&6
20981 ac_cpp='$CXXCPP $CPPFLAGS'
20982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20986 cat >conftest.$ac_ext <<_ACEOF
20987 #line $LINENO "configure"
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h. */
20994 int foo(float f) {return isinf(f);}
20996 rm -f conftest.$ac_objext
20997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20998 (eval $ac_compile) 2>&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } &&
21002 { ac_try='test -s conftest.$ac_objext'
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; }; then
21008 ac_cv_func_isinf_in_math_h=yes
21010 echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21013 ac_cv_func_isinf_in_math_h=no
21015 rm -f conftest.$ac_objext conftest.$ac_ext
21017 ac_cpp='$CPP $CPPFLAGS'
21018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21023 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21024 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21025 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21028 cat >>confdefs.h <<\_ACEOF
21029 #define HAVE_ISINF_IN_MATH_H 1
21033 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21034 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21035 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21039 ac_cpp='$CXXCPP $CPPFLAGS'
21040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21044 cat >conftest.$ac_ext <<_ACEOF
21045 #line $LINENO "configure"
21048 cat confdefs.h >>conftest.$ac_ext
21049 cat >>conftest.$ac_ext <<_ACEOF
21050 /* end confdefs.h. */
21052 int foo(float f) {return isinf(f);}
21054 rm -f conftest.$ac_objext
21055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21056 (eval $ac_compile) 2>&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } &&
21060 { ac_try='test -s conftest.$ac_objext'
21061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062 (eval $ac_try) 2>&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; }; then
21066 ac_cv_func_isinf_in_cmath=yes
21068 echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21071 ac_cv_func_isinf_in_cmath=no
21073 rm -f conftest.$ac_objext conftest.$ac_ext
21075 ac_cpp='$CPP $CPPFLAGS'
21076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21081 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21082 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
21083 if test "$ac_cv_func_isinf_in_cmath" = "yes"
21086 cat >>confdefs.h <<\_ACEOF
21087 #define HAVE_ISINF_IN_CMATH 1
21091 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21092 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
21093 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21094 echo $ECHO_N "(cached) $ECHO_C" >&6
21097 ac_cpp='$CXXCPP $CPPFLAGS'
21098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21102 cat >conftest.$ac_ext <<_ACEOF
21103 #line $LINENO "configure"
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h. */
21110 using std::isinf; int foo(float f) {return isinf(f);}
21112 rm -f conftest.$ac_objext
21113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21114 (eval $ac_compile) 2>&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } &&
21118 { ac_try='test -s conftest.$ac_objext'
21119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120 (eval $ac_try) 2>&5
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; }; then
21124 ac_cv_func_std_isinf_in_cmath=yes
21126 echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.$ac_ext >&5
21129 ac_cv_func_std_isinf_in_cmath=no
21131 rm -f conftest.$ac_objext conftest.$ac_ext
21133 ac_cpp='$CPP $CPPFLAGS'
21134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21139 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21140 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
21141 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
21144 cat >>confdefs.h <<\_ACEOF
21145 #define HAVE_STD_ISINF_IN_CMATH 1
21149 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21150 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
21151 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21152 echo $ECHO_N "(cached) $ECHO_C" >&6
21155 ac_cpp='$CXXCPP $CPPFLAGS'
21156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21160 cat >conftest.$ac_ext <<_ACEOF
21161 #line $LINENO "configure"
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h. */
21167 #include <ieeefp.h>
21168 int foo(float f) {return finite(f);}
21170 rm -f conftest.$ac_objext
21171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21172 (eval $ac_compile) 2>&5
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); } &&
21176 { ac_try='test -s conftest.$ac_objext'
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; }; then
21182 ac_cv_func_finite_in_ieeefp_h=yes
21184 echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21187 ac_cv_func_finite_in_ieeefp_h=no
21189 rm -f conftest.$ac_objext conftest.$ac_ext
21191 ac_cpp='$CPP $CPPFLAGS'
21192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21197 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21198 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
21199 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
21202 cat >>confdefs.h <<\_ACEOF
21203 #define HAVE_FINITE_IN_IEEEFP_H 1
21209 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21210 # for constant arguments. Useless!
21211 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21212 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21213 if test "${ac_cv_working_alloca_h+set}" = set; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
21216 cat >conftest.$ac_ext <<_ACEOF
21217 #line $LINENO "configure"
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h. */
21223 #include <alloca.h>
21227 char *p = (char *) alloca (2 * sizeof (int));
21232 rm -f conftest.$ac_objext conftest$ac_exeext
21233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21234 (eval $ac_link) 2>&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } &&
21238 { ac_try='test -s conftest$ac_exeext'
21239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240 (eval $ac_try) 2>&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 ac_cv_working_alloca_h=yes
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 ac_cv_working_alloca_h=no
21251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21253 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21254 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21255 if test $ac_cv_working_alloca_h = yes; then
21257 cat >>confdefs.h <<\_ACEOF
21258 #define HAVE_ALLOCA_H 1
21263 echo "$as_me:$LINENO: checking for alloca" >&5
21264 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21265 if test "${ac_cv_func_alloca_works+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21268 cat >conftest.$ac_ext <<_ACEOF
21269 #line $LINENO "configure"
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h. */
21276 # define alloca __builtin_alloca
21279 # include <malloc.h>
21280 # define alloca _alloca
21283 # include <alloca.h>
21288 # ifndef alloca /* predefined by HP cc +Olibcalls */
21299 char *p = (char *) alloca (1);
21304 rm -f conftest.$ac_objext conftest$ac_exeext
21305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21306 (eval $ac_link) 2>&5
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } &&
21310 { ac_try='test -s conftest$ac_exeext'
21311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21312 (eval $ac_try) 2>&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }; }; then
21316 ac_cv_func_alloca_works=yes
21318 echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21321 ac_cv_func_alloca_works=no
21323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21325 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21326 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21328 if test $ac_cv_func_alloca_works = yes; then
21330 cat >>confdefs.h <<\_ACEOF
21331 #define HAVE_ALLOCA 1
21335 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21336 # that cause trouble. Some versions do not even contain alloca or
21337 # contain a buggy version. If you still want to use their alloca,
21338 # use ar to extract alloca.o from them instead of compiling alloca.c.
21340 ALLOCA=alloca.$ac_objext
21342 cat >>confdefs.h <<\_ACEOF
21347 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21348 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21349 if test "${ac_cv_os_cray+set}" = set; then
21350 echo $ECHO_N "(cached) $ECHO_C" >&6
21352 cat >conftest.$ac_ext <<_ACEOF
21353 #line $LINENO "configure"
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h. */
21359 #if defined(CRAY) && ! defined(CRAY2)
21366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21367 $EGREP "webecray" >/dev/null 2>&1; then
21375 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21376 echo "${ECHO_T}$ac_cv_os_cray" >&6
21377 if test $ac_cv_os_cray = yes; then
21378 for ac_func in _getb67 GETB67 getb67; do
21379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21380 echo "$as_me:$LINENO: checking for $ac_func" >&5
21381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21382 if eval "test \"\${$as_ac_var+set}\" = set"; then
21383 echo $ECHO_N "(cached) $ECHO_C" >&6
21385 cat >conftest.$ac_ext <<_ACEOF
21386 #line $LINENO "configure"
21389 cat confdefs.h >>conftest.$ac_ext
21390 cat >>conftest.$ac_ext <<_ACEOF
21391 /* end confdefs.h. */
21392 /* System header to define __stub macros and hopefully few prototypes,
21393 which can conflict with char $ac_func (); below.
21394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21395 <limits.h> exists even on freestanding compilers. */
21397 # include <limits.h>
21399 # include <assert.h>
21401 /* Override any gcc2 internal prototype to avoid an error. */
21406 /* We use char because int might match the return type of a gcc2
21407 builtin and then its argument prototype would still apply. */
21409 /* The GNU C library defines this for functions which it implements
21410 to always fail with ENOSYS. Some functions are actually named
21411 something starting with __ and the normal name is an alias. */
21412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21415 char (*f) () = $ac_func;
21424 return f != $ac_func;
21429 rm -f conftest.$ac_objext conftest$ac_exeext
21430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21431 (eval $ac_link) 2>&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } &&
21435 { ac_try='test -s conftest$ac_exeext'
21436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; }; then
21441 eval "$as_ac_var=yes"
21443 echo "$as_me: failed program was:" >&5
21444 sed 's/^/| /' conftest.$ac_ext >&5
21446 eval "$as_ac_var=no"
21448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21452 if test `eval echo '${'$as_ac_var'}'` = yes; then
21454 cat >>confdefs.h <<_ACEOF
21455 #define CRAY_STACKSEG_END $ac_func
21464 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21465 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21466 if test "${ac_cv_c_stack_direction+set}" = set; then
21467 echo $ECHO_N "(cached) $ECHO_C" >&6
21469 if test "$cross_compiling" = yes; then
21470 ac_cv_c_stack_direction=0
21472 cat >conftest.$ac_ext <<_ACEOF
21473 #line $LINENO "configure"
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h. */
21480 find_stack_direction ()
21482 static char *addr = 0;
21487 return find_stack_direction ();
21490 return (&dummy > addr) ? 1 : -1;
21496 exit (find_stack_direction () < 0);
21499 rm -f conftest$ac_exeext
21500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21501 (eval $ac_link) 2>&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506 (eval $ac_try) 2>&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); }; }; then
21510 ac_cv_c_stack_direction=1
21512 echo "$as_me: program exited with status $ac_status" >&5
21513 echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21516 ( exit $ac_status )
21517 ac_cv_c_stack_direction=-1
21519 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21522 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21523 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21525 cat >>confdefs.h <<_ACEOF
21526 #define STACK_DIRECTION $ac_cv_c_stack_direction
21534 for ac_header in stdlib.h unistd.h
21536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21538 echo "$as_me:$LINENO: checking for $ac_header" >&5
21539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21541 echo $ECHO_N "(cached) $ECHO_C" >&6
21543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21546 # Is the header compilable?
21547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21549 cat >conftest.$ac_ext <<_ACEOF
21550 #line $LINENO "configure"
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h. */
21556 $ac_includes_default
21557 #include <$ac_header>
21559 rm -f conftest.$ac_objext
21560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21561 (eval $ac_compile) 2>&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); } &&
21565 { ac_try='test -s conftest.$ac_objext'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21571 ac_header_compiler=yes
21573 echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21576 ac_header_compiler=no
21578 rm -f conftest.$ac_objext conftest.$ac_ext
21579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21580 echo "${ECHO_T}$ac_header_compiler" >&6
21582 # Is the header present?
21583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21585 cat >conftest.$ac_ext <<_ACEOF
21586 #line $LINENO "configure"
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h. */
21592 #include <$ac_header>
21594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21597 grep -v '^ *+' conftest.er1 >conftest.err
21599 cat conftest.err >&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); } >/dev/null; then
21602 if test -s conftest.err; then
21603 ac_cpp_err=$ac_c_preproc_warn_flag
21610 if test -z "$ac_cpp_err"; then
21611 ac_header_preproc=yes
21613 echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21616 ac_header_preproc=no
21618 rm -f conftest.err conftest.$ac_ext
21619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21620 echo "${ECHO_T}$ac_header_preproc" >&6
21622 # So? What about this header?
21623 case $ac_header_compiler:$ac_header_preproc in
21625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21631 ## ------------------------------------ ##
21632 ## Report this to bug-autoconf@gnu.org. ##
21633 ## ------------------------------------ ##
21636 sed "s/^/$as_me: WARNING: /" >&2
21639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21647 ## ------------------------------------ ##
21648 ## Report this to bug-autoconf@gnu.org. ##
21649 ## ------------------------------------ ##
21652 sed "s/^/$as_me: WARNING: /" >&2
21655 echo "$as_me:$LINENO: checking for $ac_header" >&5
21656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21658 echo $ECHO_N "(cached) $ECHO_C" >&6
21660 eval "$as_ac_Header=$ac_header_preproc"
21662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21667 cat >>confdefs.h <<_ACEOF
21668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21676 for ac_func in getpagesize
21678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21679 echo "$as_me:$LINENO: checking for $ac_func" >&5
21680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21681 if eval "test \"\${$as_ac_var+set}\" = set"; then
21682 echo $ECHO_N "(cached) $ECHO_C" >&6
21684 cat >conftest.$ac_ext <<_ACEOF
21685 #line $LINENO "configure"
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21691 /* System header to define __stub macros and hopefully few prototypes,
21692 which can conflict with char $ac_func (); below.
21693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21694 <limits.h> exists even on freestanding compilers. */
21696 # include <limits.h>
21698 # include <assert.h>
21700 /* Override any gcc2 internal prototype to avoid an error. */
21705 /* We use char because int might match the return type of a gcc2
21706 builtin and then its argument prototype would still apply. */
21708 /* The GNU C library defines this for functions which it implements
21709 to always fail with ENOSYS. Some functions are actually named
21710 something starting with __ and the normal name is an alias. */
21711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21714 char (*f) () = $ac_func;
21723 return f != $ac_func;
21728 rm -f conftest.$ac_objext conftest$ac_exeext
21729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21730 (eval $ac_link) 2>&5
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); } &&
21734 { ac_try='test -s conftest$ac_exeext'
21735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736 (eval $ac_try) 2>&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); }; }; then
21740 eval "$as_ac_var=yes"
21742 echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21745 eval "$as_ac_var=no"
21747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21751 if test `eval echo '${'$as_ac_var'}'` = yes; then
21752 cat >>confdefs.h <<_ACEOF
21753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21759 echo "$as_me:$LINENO: checking for working mmap" >&5
21760 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21761 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21764 if test "$cross_compiling" = yes; then
21765 ac_cv_func_mmap_fixed_mapped=no
21767 cat >conftest.$ac_ext <<_ACEOF
21768 #line $LINENO "configure"
21771 cat confdefs.h >>conftest.$ac_ext
21772 cat >>conftest.$ac_ext <<_ACEOF
21773 /* end confdefs.h. */
21774 $ac_includes_default
21775 /* malloc might have been renamed as rpl_malloc. */
21778 /* Thanks to Mike Haertel and Jim Avera for this test.
21779 Here is a matrix of mmap possibilities:
21780 mmap private not fixed
21781 mmap private fixed at somewhere currently unmapped
21782 mmap private fixed at somewhere already mapped
21783 mmap shared not fixed
21784 mmap shared fixed at somewhere currently unmapped
21785 mmap shared fixed at somewhere already mapped
21786 For private mappings, we should verify that changes cannot be read()
21787 back from the file, nor mmap's back from the file at a different
21788 address. (There have been systems where private was not correctly
21789 implemented like the infamous i386 svr4.0, and systems where the
21790 VM page cache was not coherent with the file system buffer cache
21791 like early versions of FreeBSD and possibly contemporary NetBSD.)
21792 For shared mappings, we should conversely verify that changes get
21793 propagated back to all the places they're supposed to be.
21795 Grep wants private fixed already mapped.
21796 The main things grep needs to know about mmap are:
21797 * does it exist and is it safe to write into the mmap'd area
21798 * how to use it (BSD variants) */
21801 #include <sys/mman.h>
21803 #if !STDC_HEADERS && !HAVE_STDLIB_H
21807 /* This mess was copied from the GNU getpagesize.h. */
21808 #if !HAVE_GETPAGESIZE
21809 /* Assume that all systems that can run configure have sys/param.h. */
21810 # if !HAVE_SYS_PARAM_H
21811 # define HAVE_SYS_PARAM_H 1
21814 # ifdef _SC_PAGESIZE
21815 # define getpagesize() sysconf(_SC_PAGESIZE)
21816 # else /* no _SC_PAGESIZE */
21817 # if HAVE_SYS_PARAM_H
21818 # include <sys/param.h>
21819 # ifdef EXEC_PAGESIZE
21820 # define getpagesize() EXEC_PAGESIZE
21821 # else /* no EXEC_PAGESIZE */
21823 # define getpagesize() NBPG * CLSIZE
21826 # endif /* no CLSIZE */
21827 # else /* no NBPG */
21829 # define getpagesize() NBPC
21830 # else /* no NBPC */
21832 # define getpagesize() PAGESIZE
21833 # endif /* PAGESIZE */
21834 # endif /* no NBPC */
21835 # endif /* no NBPG */
21836 # endif /* no EXEC_PAGESIZE */
21837 # else /* no HAVE_SYS_PARAM_H */
21838 # define getpagesize() 8192 /* punt totally */
21839 # endif /* no HAVE_SYS_PARAM_H */
21840 # endif /* no _SC_PAGESIZE */
21842 #endif /* no HAVE_GETPAGESIZE */
21847 char *data, *data2, *data3;
21851 pagesize = getpagesize ();
21853 /* First, make a file with some known garbage in it. */
21854 data = (char *) malloc (pagesize);
21857 for (i = 0; i < pagesize; ++i)
21858 *(data + i) = rand ();
21860 fd = creat ("conftest.mmap", 0600);
21863 if (write (fd, data, pagesize) != pagesize)
21867 /* Next, try to mmap the file at a fixed address which already has
21868 something else allocated at it. If we can, also make sure that
21869 we see the same garbage. */
21870 fd = open ("conftest.mmap", O_RDWR);
21873 data2 = (char *) malloc (2 * pagesize);
21876 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21877 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21878 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21880 for (i = 0; i < pagesize; ++i)
21881 if (*(data + i) != *(data2 + i))
21884 /* Finally, make sure that changes to the mapped area do not
21885 percolate back to the file as seen by read(). (This is a bug on
21886 some variants of i386 svr4.0.) */
21887 for (i = 0; i < pagesize; ++i)
21888 *(data2 + i) = *(data2 + i) + 1;
21889 data3 = (char *) malloc (pagesize);
21892 if (read (fd, data3, pagesize) != pagesize)
21894 for (i = 0; i < pagesize; ++i)
21895 if (*(data + i) != *(data3 + i))
21901 rm -f conftest$ac_exeext
21902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21903 (eval $ac_link) 2>&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; }; then
21912 ac_cv_func_mmap_fixed_mapped=yes
21914 echo "$as_me: program exited with status $ac_status" >&5
21915 echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21918 ( exit $ac_status )
21919 ac_cv_func_mmap_fixed_mapped=no
21921 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21924 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21925 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21926 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21928 cat >>confdefs.h <<\_ACEOF
21929 #define HAVE_MMAP 1
21933 rm -f conftest.mmap
21935 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21937 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
21938 echo "$as_me: WARNING: mmap() required but not found" >&2;}
21940 echo "$as_me:$LINENO: checking for mmap of files" >&5
21941 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21942 if test "${ac_cv_func_mmap_file+set}" = set; then
21943 echo $ECHO_N "(cached) $ECHO_C" >&6
21948 ac_cpp='$CPP $CPPFLAGS'
21949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21953 if test "$cross_compiling" = yes; then
21954 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21955 See \`config.log' for more details." >&5
21956 echo "$as_me: error: cannot run test program while cross compiling
21957 See \`config.log' for more details." >&2;}
21958 { (exit 1); exit 1; }; }
21960 cat >conftest.$ac_ext <<_ACEOF
21961 #line $LINENO "configure"
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h. */
21968 #ifdef HAVE_SYS_TYPES_H
21969 #include <sys/types.h>
21972 #ifdef HAVE_SYS_MMAN_H
21973 #include <sys/mman.h>
21976 #ifdef HAVE_FCNTL_H
21982 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
21984 rm -f conftest$ac_exeext
21985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21986 (eval $ac_link) 2>&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; }; then
21995 ac_cv_func_mmap_file=yes
21997 echo "$as_me: program exited with status $ac_status" >&5
21998 echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22001 ( exit $ac_status )
22002 ac_cv_func_mmap_file=no
22004 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22007 ac_cpp='$CPP $CPPFLAGS'
22008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22014 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22015 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22016 if test "$ac_cv_func_mmap_file" = yes; then
22018 cat >>confdefs.h <<\_ACEOF
22019 #define HAVE_MMAP_FILE
22026 if test "$ac_cv_func_mmap_file" = "no"
22028 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22029 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22031 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22032 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22033 if test "${ac_cv_header_mmap_anon+set}" = set; then
22034 echo $ECHO_N "(cached) $ECHO_C" >&6
22039 ac_cpp='$CPP $CPPFLAGS'
22040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22044 cat >conftest.$ac_ext <<_ACEOF
22045 #line $LINENO "configure"
22048 cat confdefs.h >>conftest.$ac_ext
22049 cat >>conftest.$ac_ext <<_ACEOF
22050 /* end confdefs.h. */
22051 #include <sys/mman.h>
22052 #include <unistd.h>
22057 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22062 rm -f conftest.$ac_objext
22063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22064 (eval $ac_compile) 2>&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } &&
22068 { ac_try='test -s conftest.$ac_objext'
22069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070 (eval $ac_try) 2>&5
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); }; }; then
22074 ac_cv_header_mmap_anon=yes
22076 echo "$as_me: failed program was:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22079 ac_cv_header_mmap_anon=no
22081 rm -f conftest.$ac_objext conftest.$ac_ext
22083 ac_cpp='$CPP $CPPFLAGS'
22084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22090 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22091 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22092 if test "$ac_cv_header_mmap_anon" = yes; then
22094 cat >>confdefs.h <<\_ACEOF
22095 #define HAVE_MMAP_ANONYMOUS
22100 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22101 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22102 if test "${ac_cv_type_signal+set}" = set; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
22105 cat >conftest.$ac_ext <<_ACEOF
22106 #line $LINENO "configure"
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h. */
22112 #include <sys/types.h>
22113 #include <signal.h>
22118 extern "C" void (*signal (int, void (*)(int)))(int);
22120 void (*signal ()) ();
22131 rm -f conftest.$ac_objext
22132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22133 (eval $ac_compile) 2>&5
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); } &&
22137 { ac_try='test -s conftest.$ac_objext'
22138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22139 (eval $ac_try) 2>&5
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); }; }; then
22143 ac_cv_type_signal=void
22145 echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22148 ac_cv_type_signal=int
22150 rm -f conftest.$ac_objext conftest.$ac_ext
22152 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22153 echo "${ECHO_T}$ac_cv_type_signal" >&6
22155 cat >>confdefs.h <<_ACEOF
22156 #define RETSIGTYPE $ac_cv_type_signal
22169 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
22171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22172 echo "$as_me:$LINENO: checking for $ac_func" >&5
22173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22174 if eval "test \"\${$as_ac_var+set}\" = set"; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22177 cat >conftest.$ac_ext <<_ACEOF
22178 #line $LINENO "configure"
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h. */
22184 /* System header to define __stub macros and hopefully few prototypes,
22185 which can conflict with char $ac_func (); below.
22186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22187 <limits.h> exists even on freestanding compilers. */
22189 # include <limits.h>
22191 # include <assert.h>
22193 /* Override any gcc2 internal prototype to avoid an error. */
22198 /* We use char because int might match the return type of a gcc2
22199 builtin and then its argument prototype would still apply. */
22201 /* The GNU C library defines this for functions which it implements
22202 to always fail with ENOSYS. Some functions are actually named
22203 something starting with __ and the normal name is an alias. */
22204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22207 char (*f) () = $ac_func;
22216 return f != $ac_func;
22221 rm -f conftest.$ac_objext conftest$ac_exeext
22222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22223 (eval $ac_link) 2>&5
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); } &&
22227 { ac_try='test -s conftest$ac_exeext'
22228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22229 (eval $ac_try) 2>&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); }; }; then
22233 eval "$as_ac_var=yes"
22235 echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22238 eval "$as_ac_var=no"
22240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22244 if test `eval echo '${'$as_ac_var'}'` = yes; then
22245 cat >>confdefs.h <<_ACEOF
22246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22252 echo "$as_me:$LINENO: checking for mprotect" >&5
22253 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22254 if test "${ac_cv_func_mprotect+set}" = set; then
22255 echo $ECHO_N "(cached) $ECHO_C" >&6
22257 cat >conftest.$ac_ext <<_ACEOF
22258 #line $LINENO "configure"
22261 cat confdefs.h >>conftest.$ac_ext
22262 cat >>conftest.$ac_ext <<_ACEOF
22263 /* end confdefs.h. */
22264 /* System header to define __stub macros and hopefully few prototypes,
22265 which can conflict with char mprotect (); below.
22266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22267 <limits.h> exists even on freestanding compilers. */
22269 # include <limits.h>
22271 # include <assert.h>
22273 /* Override any gcc2 internal prototype to avoid an error. */
22278 /* We use char because int might match the return type of a gcc2
22279 builtin and then its argument prototype would still apply. */
22281 /* The GNU C library defines this for functions which it implements
22282 to always fail with ENOSYS. Some functions are actually named
22283 something starting with __ and the normal name is an alias. */
22284 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22287 char (*f) () = mprotect;
22296 return f != mprotect;
22301 rm -f conftest.$ac_objext conftest$ac_exeext
22302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22303 (eval $ac_link) 2>&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } &&
22307 { ac_try='test -s conftest$ac_exeext'
22308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22309 (eval $ac_try) 2>&5
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); }; }; then
22313 ac_cv_func_mprotect=yes
22315 echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22318 ac_cv_func_mprotect=no
22320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22322 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22323 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22324 if test $ac_cv_func_mprotect = yes; then
22327 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22328 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22329 { (exit 1); exit 1; }; }
22334 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
22335 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
22339 ac_cpp='$CPP $CPPFLAGS'
22340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22344 oldcflags="$CFLAGS"
22345 CFLAGS="$CFLAGS -Wl,-R."
22346 cat >conftest.$ac_ext <<_ACEOF
22347 int main() { return 0; }
22349 rm -f conftest.$ac_objext conftest$ac_exeext
22350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22351 (eval $ac_link) 2>&5
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); } &&
22355 { ac_try='test -s conftest$ac_exeext'
22356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22357 (eval $ac_try) 2>&5
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); }; }; then
22361 ac_cv_link_use_r=yes
22363 echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22366 ac_cv_link_use_r=no
22368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22369 CFLAGS="$oldcflags"
22371 ac_cpp='$CPP $CPPFLAGS'
22372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22376 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
22377 echo "${ECHO_T}$ac_cv_link_use_r" >&6
22378 if test "$ac_cv_link_use_r" = yes
22381 cat >>confdefs.h <<\_ACEOF
22382 #define HAVE_LINK_R 1
22388 # Check whether --enable-optimized or --disable-optimized was given.
22389 if test "${enable_optimized+set}" = set; then
22390 enableval="$enable_optimized"
22395 if test ${enableval} = "no"
22400 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22407 # Check whether --enable-spec95 or --disable-spec95 was given.
22408 if test "${enable_spec95+set}" = set; then
22409 enableval="$enable_spec95"
22410 checkresult=$enableval
22414 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
22415 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
22416 case "$checkresult" in
22418 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
22419 if test -d "$defaultdir"
22421 SPEC95_ROOT=$defaultdir
22423 USE_SPEC95=USE_SPEC95=1
22425 checkresult="yes, found in $defaultdir"
22435 *) if test -d "$checkresult"
22437 SPEC95_ROOT="$checkresult"
22439 USE_SPEC95=USE_SPEC95=1
22441 checkresult="yes, in $checkresult"
22445 checkresult="no, not found in $checkresult"
22449 echo "$as_me:$LINENO: result: $checkresult" >&5
22450 echo "${ECHO_T}$checkresult" >&6
22454 # Check whether --enable-spec2000 or --disable-spec2000 was given.
22455 if test "${enable_spec2000+set}" = set; then
22456 enableval="$enable_spec2000"
22457 checkresult=$enableval
22461 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
22462 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
22463 case "$checkresult" in
22465 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22466 if test -d "$defaultdir"
22468 SPEC2000_ROOT=$defaultdir
22470 USE_SPEC2000=USE_SPEC2000=1
22472 checkresult="yes, found in $defaultdir"
22482 *) if test -d "$checkresult"
22484 SPEC2000_ROOT="$checkresult"
22486 USE_SPEC2000=USE_SPEC2000=1
22488 checkresult="yes, in $checkresult"
22492 checkresult="no, not found in $checkresult"
22496 echo "$as_me:$LINENO: result: $checkresult" >&5
22497 echo "${ECHO_T}$checkresult" >&6
22501 # Check whether --enable-povray or --disable-povray was given.
22502 if test "${enable_povray+set}" = set; then
22503 enableval="$enable_povray"
22504 checkresult=$enableval
22508 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
22509 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
22510 case "$checkresult" in
22512 defaultdir=/home/vadve/shared/benchmarks/povray31
22513 if test -d "$defaultdir"
22515 POVRAY_ROOT=$defaultdir
22517 USE_POVRAY=USE_POVRAY=1
22519 checkresult="yes, found in $defaultdir"
22529 *) if test -d "$checkresult"
22531 POVRAY_ROOT="$checkresult"
22533 USE_POVRAY=USE_POVRAY=1
22535 checkresult="yes, in $checkresult"
22539 checkresult="no, not found in $checkresult"
22543 echo "$as_me:$LINENO: result: $checkresult" >&5
22544 echo "${ECHO_T}$checkresult" >&6
22548 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22549 if test "${enable_precompiled_bytecode+set}" = set; then
22550 enableval="$enable_precompiled_bytecode"
22555 if test ${enableval} = "no"
22560 UPB=USE_PRECOMPILED_BYTECODE=1
22564 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22565 if test "${enable_llc_diffs+set}" = set; then
22566 enableval="$enable_llc_diffs"
22571 if test ${enableval} = "no"
22573 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22580 # Check whether --enable-jit or --disable-jit was given.
22581 if test "${enable_jit+set}" = set; then
22582 enableval="$enable_jit"
22587 if test ${enableval} = "no"
22594 JIT=TARGET_HAS_JIT=1
22598 JIT=TARGET_HAS_JIT=1
22609 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22610 if test "${with_llvmgccdir+set}" = set; then
22611 withval="$with_llvmgccdir"
22612 LLVMGCCDIR=$withval
22615 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22616 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22618 if test -d "$LLVMGCCDIR"
22620 if test -x "$LLVMGCCDIR/bin/gcc"
22622 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22626 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22627 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22628 if test "$LLVM_GCC_CHECK" = "no"
22632 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22633 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22635 if test -x "$LLVM_GCC_CHECK"
22637 cp /dev/null conftest.c
22638 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22644 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
22645 LLVMCC1=$llvmcc1path
22647 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
22648 LLVMCC1PLUS=$llvmcc1pluspath
22651 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22652 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22653 if test "$LLVM_GCC_SANE" = "no"
22659 # Check whether --with-bcrepos or --without-bcrepos was given.
22660 if test "${with_bcrepos+set}" = set; then
22661 withval="$with_bcrepos"
22665 BCR=/home/vadve/lattner/LLVMPrograms
22670 # Check whether --with-papi or --without-papi was given.
22671 if test "${with_papi+set}" = set; then
22672 withval="$with_papi"
22676 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22680 echo "$as_me:$LINENO: checking for shared library suffix" >&5
22681 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22682 eval "SHLIBEXT=$shrext"
22683 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22684 echo "${ECHO_T}$SHLIBEXT" >&6
22688 cat >>confdefs.h <<_ACEOF
22689 #define SHLIBEXT "$SHLIBEXT"
22693 cat >confcache <<\_ACEOF
22694 # This file is a shell script that caches the results of configure
22695 # tests run on this system so they can be shared between configure
22696 # scripts and configure runs, see configure's option --config-cache.
22697 # It is not useful on other systems. If it contains results you don't
22698 # want to keep, you may remove or edit it.
22700 # config.status only pays attention to the cache file if you give it
22701 # the --recheck option to rerun configure.
22703 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22704 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22705 # following values.
22709 # The following way of writing the cache mishandles newlines in values,
22710 # but we know of no workaround that is simple, portable, and efficient.
22711 # So, don't put newlines in cache variables' values.
22712 # Ultrix sh set writes to stderr and can't be redirected directly,
22713 # and sets the high bit in the cache file unless we assign to the vars.
22716 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22718 # `set' does not quote correctly, so add quotes (double-quote
22719 # substitution turns \\\\ into \\, and sed turns \\ into \).
22722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22725 # `set' quotes correctly as required by POSIX, so do not add quotes.
22727 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22734 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22736 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22738 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22739 if test -w $cache_file; then
22740 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22741 cat confcache >$cache_file
22743 echo "not updating unwritable cache $cache_file"
22748 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22749 # Let make expand exec_prefix.
22750 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22752 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22753 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22754 # trailing colons and then remove the whole line if VPATH becomes empty
22755 # (actually we leave an empty line to preserve line numbers).
22756 if test "x$srcdir" = x.; then
22757 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22758 s/:*\$(srcdir):*/:/;
22759 s/:*\${srcdir}:*/:/;
22761 s/^\([^=]*=[ ]*\):*/\1/;
22767 DEFS=-DHAVE_CONFIG_H
22771 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22772 # 1. Remove the extension, and $U if already installed.
22773 ac_i=`echo "$ac_i" |
22774 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22776 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22777 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22779 LIBOBJS=$ac_libobjs
22781 LTLIBOBJS=$ac_ltlibobjs
22785 : ${CONFIG_STATUS=./config.status}
22786 ac_clean_files_save=$ac_clean_files
22787 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22788 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22789 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22790 cat >$CONFIG_STATUS <<_ACEOF
22792 # Generated by $as_me.
22793 # Run this file to recreate the current configuration.
22794 # Compiler output produced by configure, useful for debugging
22795 # configure, is in config.log if it exists.
22798 ac_cs_recheck=false
22800 SHELL=\${CONFIG_SHELL-$SHELL}
22803 cat >>$CONFIG_STATUS <<\_ACEOF
22804 ## --------------------- ##
22805 ## M4sh Initialization. ##
22806 ## --------------------- ##
22808 # Be Bourne compatible
22809 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22812 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22813 # is contrary to our usage. Disable this feature.
22814 alias -g '${1+"$@"}'='"$@"'
22815 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22819 # Support unset when possible.
22820 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22827 # Work around bugs in pre-3.0 UWIN ksh.
22828 $as_unset ENV MAIL MAILPATH
22835 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22836 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22837 LC_TELEPHONE LC_TIME
22839 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22840 eval $as_var=C; export $as_var
22846 # Required to use basename.
22847 if expr a : '\(a\)' >/dev/null 2>&1; then
22853 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22854 as_basename=basename
22860 # Name of the executable.
22861 as_me=`$as_basename "$0" ||
22862 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22863 X"$0" : 'X\(//\)$' \| \
22864 X"$0" : 'X\(/\)$' \| \
22865 . : '\(.\)' 2>/dev/null ||
22867 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22868 /^X\/\(\/\/\)$/{ s//\1/; q; }
22869 /^X\/\(\/\).*/{ s//\1/; q; }
22873 # PATH needs CR, and LINENO needs CR and PATH.
22874 # Avoid depending upon Character Ranges.
22875 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22876 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22877 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22878 as_cr_digits='0123456789'
22879 as_cr_alnum=$as_cr_Letters$as_cr_digits
22881 # The user is always right.
22882 if test "${PATH_SEPARATOR+set}" != set; then
22883 echo "#! /bin/sh" >conf$$.sh
22884 echo "exit 0" >>conf$$.sh
22886 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22895 as_lineno_1=$LINENO
22896 as_lineno_2=$LINENO
22897 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22898 test "x$as_lineno_1" != "x$as_lineno_2" &&
22899 test "x$as_lineno_3" = "x$as_lineno_2" || {
22900 # Find who we are. Look in the path if we contain no path at all
22903 *[\\/]* ) as_myself=$0 ;;
22904 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22905 for as_dir in $PATH
22908 test -z "$as_dir" && as_dir=.
22909 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22914 # We did not find ourselves, most probably we were run as `sh COMMAND'
22915 # in which case we are not to be found in the path.
22916 if test "x$as_myself" = x; then
22919 if test ! -f "$as_myself"; then
22920 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22921 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22922 { (exit 1); exit 1; }; }
22924 case $CONFIG_SHELL in
22926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22927 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22930 test -z "$as_dir" && as_dir=.
22931 for as_base in sh bash ksh sh5; do
22934 if ("$as_dir/$as_base" -c '
22935 as_lineno_1=$LINENO
22936 as_lineno_2=$LINENO
22937 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22938 test "x$as_lineno_1" != "x$as_lineno_2" &&
22939 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22940 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22941 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22942 CONFIG_SHELL=$as_dir/$as_base
22943 export CONFIG_SHELL
22944 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22952 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22953 # uniformly replaced by the line number. The first 'sed' inserts a
22954 # line-number line before each line; the second 'sed' does the real
22955 # work. The second script uses 'N' to pair each line-number line
22956 # with the numbered line, and appends trailing '-' during
22957 # substitution so that $LINENO is not a special case at line end.
22958 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22959 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22960 sed '=' <$as_myself |
22965 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22968 s,^['$as_cr_digits']*\n,,
22969 ' >$as_me.lineno &&
22970 chmod +x $as_me.lineno ||
22971 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22972 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22973 { (exit 1); exit 1; }; }
22975 # Don't try to exec as it changes $[0], causing all sort of problems
22976 # (the dirname of $[0] is not the place where we might find the
22977 # original and so on. Autoconf is especially sensible to this).
22979 # Exit status is that of the last command.
22984 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22985 *c*,-n*) ECHO_N= ECHO_C='
22987 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22988 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22991 if expr a : '\(a\)' >/dev/null 2>&1; then
22997 rm -f conf$$ conf$$.exe conf$$.file
22999 if ln -s conf$$.file conf$$ 2>/dev/null; then
23000 # We could just check for DJGPP; but this test a) works b) is more generic
23001 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23002 if test -f conf$$.exe; then
23003 # Don't use ln at all; we don't have any links
23008 elif ln conf$$.file conf$$ 2>/dev/null; then
23013 rm -f conf$$ conf$$.exe conf$$.file
23015 if mkdir -p . 2>/dev/null; then
23021 as_executable_p="test -f"
23023 # Sed expression to map a string onto a valid CPP name.
23024 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23026 # Sed expression to map a string onto a valid variable name.
23027 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23031 # We need space, tab and new line, in precisely that order.
23041 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23042 # report actual input values of CONFIG_FILES etc. instead of their
23043 # values after options handling. Logging --version etc. is OK.
23047 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23048 ## Running $as_me. ##
23053 This file was extended by [LLVM] $as_me [1.3], which was
23054 generated by GNU Autoconf 2.57. Invocation command line was
23056 CONFIG_FILES = $CONFIG_FILES
23057 CONFIG_HEADERS = $CONFIG_HEADERS
23058 CONFIG_LINKS = $CONFIG_LINKS
23059 CONFIG_COMMANDS = $CONFIG_COMMANDS
23063 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23067 # Files that config.status was made for.
23068 if test -n "$ac_config_files"; then
23069 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23072 if test -n "$ac_config_headers"; then
23073 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23076 if test -n "$ac_config_links"; then
23077 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23080 if test -n "$ac_config_commands"; then
23081 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23084 cat >>$CONFIG_STATUS <<\_ACEOF
23087 \`$as_me' instantiates files from templates according to the
23088 current configuration.
23090 Usage: $0 [OPTIONS] [FILE]...
23092 -h, --help print this help, then exit
23093 -V, --version print version number, then exit
23094 -q, --quiet do not print progress messages
23095 -d, --debug don't remove temporary files
23096 --recheck update $as_me by reconfiguring in the same conditions
23097 --file=FILE[:TEMPLATE]
23098 instantiate the configuration file FILE
23099 --header=FILE[:TEMPLATE]
23100 instantiate the configuration header FILE
23102 Configuration files:
23105 Configuration headers:
23108 Configuration commands:
23111 Report bugs to <bug-autoconf@gnu.org>."
23114 cat >>$CONFIG_STATUS <<_ACEOF
23116 [LLVM] config.status [1.3]
23117 configured by $0, generated by GNU Autoconf 2.57,
23118 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23120 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23121 Free Software Foundation, Inc.
23122 This config.status script is free software; the Free Software Foundation
23123 gives unlimited permission to copy, distribute and modify it."
23128 cat >>$CONFIG_STATUS <<\_ACEOF
23129 # If no file are specified by the user, then we need to provide default
23130 # value. By we need to know if files were specified by the user.
23136 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23137 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23145 *) # This is not an option, so the user has probably given explicit
23148 ac_need_defaults=false;;
23152 # Handling of the options.
23154 cat >>$CONFIG_STATUS <<\_ACEOF
23155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23157 --version | --vers* | -V )
23158 echo "$ac_cs_version"; exit 0 ;;
23160 # Conflict between --help and --header
23161 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23162 Try \`$0 --help' for more information." >&5
23163 echo "$as_me: error: ambiguous option: $1
23164 Try \`$0 --help' for more information." >&2;}
23165 { (exit 1); exit 1; }; };;
23166 --help | --hel | -h )
23167 echo "$ac_cs_usage"; exit 0 ;;
23168 --debug | --d* | -d )
23170 --file | --fil | --fi | --f )
23172 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23173 ac_need_defaults=false;;
23174 --header | --heade | --head | --hea )
23176 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23177 ac_need_defaults=false;;
23178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23179 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23182 # This is an error.
23183 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23184 Try \`$0 --help' for more information." >&5
23185 echo "$as_me: error: unrecognized option: $1
23186 Try \`$0 --help' for more information." >&2;}
23187 { (exit 1); exit 1; }; } ;;
23189 *) ac_config_targets="$ac_config_targets $1" ;;
23195 ac_configure_extra_args=
23197 if $ac_cs_silent; then
23199 ac_configure_extra_args="$ac_configure_extra_args --silent"
23203 cat >>$CONFIG_STATUS <<_ACEOF
23204 if \$ac_cs_recheck; then
23205 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23206 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23211 cat >>$CONFIG_STATUS <<_ACEOF
23213 # INIT-COMMANDS section.
23216 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23217 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23218 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23219 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23220 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23221 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23222 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23223 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23224 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23225 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23226 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
23227 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23228 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23229 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23230 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23231 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23232 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23233 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23234 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23235 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23236 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23237 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23238 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23239 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
23240 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23241 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23242 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23243 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
23244 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
23245 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23246 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23247 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23248 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23249 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23250 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23251 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23252 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23253 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23254 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23255 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23256 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23257 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23258 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23259 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
23260 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23261 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23262 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23263 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23264 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23265 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23271 cat >>$CONFIG_STATUS <<\_ACEOF
23272 for ac_config_target in $ac_config_targets
23274 case "$ac_config_target" in
23275 # Handling of arguments.
23276 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23277 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
23278 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
23279 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
23280 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
23281 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
23282 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23283 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23284 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23285 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23286 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23287 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23288 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23289 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23290 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23291 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23292 "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
23293 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23294 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23295 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23296 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23297 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23298 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23299 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23300 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23301 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23302 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23303 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23304 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23305 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
23306 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23307 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23308 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23309 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
23310 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
23311 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23312 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23313 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23314 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
23315 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
23316 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
23317 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
23318 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
23319 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
23320 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
23321 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
23322 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
23323 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
23324 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
23325 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
23326 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23327 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23328 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23329 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23330 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23331 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23332 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23333 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23334 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23335 { (exit 1); exit 1; }; };;
23339 # If the user did not use the arguments to specify the items to instantiate,
23340 # then the envvar interface is used. Set only those that are not.
23341 # We use the long form for the default assignment because of an extremely
23342 # bizarre bug on SunOS 4.1.3.
23343 if $ac_need_defaults; then
23344 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23345 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23346 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23349 # Have a temporary directory for convenience. Make it in the build tree
23350 # simply because there is no reason to put it here, and in addition,
23351 # creating and moving files from /tmp can sometimes cause problems.
23352 # Create a temporary directory, and hook for its removal unless debugging.
23355 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23356 trap '{ (exit 1); exit 1; }' 1 2 13 15
23359 # Create a (secure) tmp directory for tmp files.
23362 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23363 test -n "$tmp" && test -d "$tmp"
23366 tmp=./confstat$$-$RANDOM
23367 (umask 077 && mkdir $tmp)
23370 echo "$me: cannot create a temporary directory in ." >&2
23371 { (exit 1); exit 1; }
23376 cat >>$CONFIG_STATUS <<_ACEOF
23379 # CONFIG_FILES section.
23382 # No need to generate the scripts if there are no CONFIG_FILES.
23383 # This happens for instance when ./config.status config.h
23384 if test -n "\$CONFIG_FILES"; then
23385 # Protect against being on the right side of a sed subst in config.status.
23386 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23387 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23388 s,@SHELL@,$SHELL,;t t
23389 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23390 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23391 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23392 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23393 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23394 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23395 s,@exec_prefix@,$exec_prefix,;t t
23396 s,@prefix@,$prefix,;t t
23397 s,@program_transform_name@,$program_transform_name,;t t
23398 s,@bindir@,$bindir,;t t
23399 s,@sbindir@,$sbindir,;t t
23400 s,@libexecdir@,$libexecdir,;t t
23401 s,@datadir@,$datadir,;t t
23402 s,@sysconfdir@,$sysconfdir,;t t
23403 s,@sharedstatedir@,$sharedstatedir,;t t
23404 s,@localstatedir@,$localstatedir,;t t
23405 s,@libdir@,$libdir,;t t
23406 s,@includedir@,$includedir,;t t
23407 s,@oldincludedir@,$oldincludedir,;t t
23408 s,@infodir@,$infodir,;t t
23409 s,@mandir@,$mandir,;t t
23410 s,@build_alias@,$build_alias,;t t
23411 s,@host_alias@,$host_alias,;t t
23412 s,@target_alias@,$target_alias,;t t
23413 s,@DEFS@,$DEFS,;t t
23414 s,@ECHO_C@,$ECHO_C,;t t
23415 s,@ECHO_N@,$ECHO_N,;t t
23416 s,@ECHO_T@,$ECHO_T,;t t
23417 s,@LIBS@,$LIBS,;t t
23418 s,@subdirs@,$subdirs,;t t
23419 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23420 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23421 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23422 s,@build@,$build,;t t
23423 s,@build_cpu@,$build_cpu,;t t
23424 s,@build_vendor@,$build_vendor,;t t
23425 s,@build_os@,$build_os,;t t
23426 s,@host@,$host,;t t
23427 s,@host_cpu@,$host_cpu,;t t
23428 s,@host_vendor@,$host_vendor,;t t
23429 s,@host_os@,$host_os,;t t
23430 s,@target@,$target,;t t
23431 s,@target_cpu@,$target_cpu,;t t
23432 s,@target_vendor@,$target_vendor,;t t
23433 s,@target_os@,$target_os,;t t
23435 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23436 s,@ARCH@,$ARCH,;t t
23438 s,@CXXFLAGS@,$CXXFLAGS,;t t
23439 s,@LDFLAGS@,$LDFLAGS,;t t
23440 s,@CPPFLAGS@,$CPPFLAGS,;t t
23441 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23442 s,@EXEEXT@,$EXEEXT,;t t
23443 s,@OBJEXT@,$OBJEXT,;t t
23445 s,@CFLAGS@,$CFLAGS,;t t
23446 s,@ac_ct_CC@,$ac_ct_CC,;t t
23448 s,@ifGNUmake@,$ifGNUmake,;t t
23450 s,@LEXLIB@,$LEXLIB,;t t
23451 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23452 s,@YACC@,$YACC,;t t
23453 s,@BISON@,$BISON,;t t
23454 s,@EGREP@,$EGREP,;t t
23455 s,@LN_S@,$LN_S,;t t
23456 s,@ECHO@,$ECHO,;t t
23458 s,@ac_ct_AR@,$ac_ct_AR,;t t
23459 s,@RANLIB@,$RANLIB,;t t
23460 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23461 s,@STRIP@,$STRIP,;t t
23462 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23463 s,@CXXCPP@,$CXXCPP,;t t
23465 s,@FFLAGS@,$FFLAGS,;t t
23466 s,@ac_ct_F77@,$ac_ct_F77,;t t
23467 s,@LIBTOOL@,$LIBTOOL,;t t
23469 s,@ETAGS@,$ETAGS,;t t
23470 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
23471 s,@PYTHON@,$PYTHON,;t t
23472 s,@QMTEST@,$QMTEST,;t t
23473 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
23474 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
23475 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
23476 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
23477 s,@ENDIAN@,$ENDIAN,;t t
23478 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
23479 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
23480 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
23481 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
23482 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
23483 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
23484 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
23485 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
23486 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
23487 s,@ALLOCA@,$ALLOCA,;t t
23488 s,@MMAP_FILE@,$MMAP_FILE,;t t
23489 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23490 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
23491 s,@USE_SPEC95@,$USE_SPEC95,;t t
23492 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
23493 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
23494 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
23495 s,@USE_POVRAY@,$USE_POVRAY,;t t
23497 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23499 s,@LLVMCC1@,$LLVMCC1,;t t
23500 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
23502 s,@PAPIDIR@,$PAPIDIR,;t t
23503 s,@SHLIBEXT@,$SHLIBEXT,;t t
23504 s,@LIBOBJS@,$LIBOBJS,;t t
23505 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23510 cat >>$CONFIG_STATUS <<\_ACEOF
23511 # Split the substitutions into bite-sized pieces for seds with
23512 # small command number limits, like on Digital OSF/1 and HP-UX.
23513 ac_max_sed_lines=48
23514 ac_sed_frag=1 # Number of current file.
23515 ac_beg=1 # First line for current file.
23516 ac_end=$ac_max_sed_lines # Line after last line for current file.
23519 while $ac_more_lines; do
23520 if test $ac_beg -gt 1; then
23521 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23523 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23525 if test ! -s $tmp/subs.frag; then
23526 ac_more_lines=false
23528 # The purpose of the label and of the branching condition is to
23529 # speed up the sed processing (if there are no `@' at all, there
23530 # is no need to browse any of the substitutions).
23531 # These are the two extra sed commands mentioned above.
23533 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23534 if test -z "$ac_sed_cmds"; then
23535 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23537 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23539 ac_sed_frag=`expr $ac_sed_frag + 1`
23541 ac_end=`expr $ac_end + $ac_max_sed_lines`
23544 if test -z "$ac_sed_cmds"; then
23547 fi # test -n "$CONFIG_FILES"
23550 cat >>$CONFIG_STATUS <<\_ACEOF
23551 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23552 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23554 - | *:- | *:-:* ) # input from stdin
23556 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23557 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23558 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23559 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23560 * ) ac_file_in=$ac_file.in ;;
23563 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23564 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23565 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23566 X"$ac_file" : 'X\(//\)[^/]' \| \
23567 X"$ac_file" : 'X\(//\)$' \| \
23568 X"$ac_file" : 'X\(/\)' \| \
23569 . : '\(.\)' 2>/dev/null ||
23571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23573 /^X\(\/\/\)$/{ s//\1/; q; }
23574 /^X\(\/\).*/{ s//\1/; q; }
23576 { if $as_mkdir_p; then
23581 while test ! -d "$as_dir"; do
23582 as_dirs="$as_dir $as_dirs"
23583 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23585 X"$as_dir" : 'X\(//\)[^/]' \| \
23586 X"$as_dir" : 'X\(//\)$' \| \
23587 X"$as_dir" : 'X\(/\)' \| \
23588 . : '\(.\)' 2>/dev/null ||
23590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23592 /^X\(\/\/\)$/{ s//\1/; q; }
23593 /^X\(\/\).*/{ s//\1/; q; }
23596 test ! -n "$as_dirs" || mkdir $as_dirs
23597 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23598 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23599 { (exit 1); exit 1; }; }; }
23603 if test "$ac_dir" != .; then
23604 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23605 # A "../" for each directory in $ac_dir_suffix.
23606 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23608 ac_dir_suffix= ac_top_builddir=
23612 .) # No --srcdir option. We are building in place.
23614 if test -z "$ac_top_builddir"; then
23617 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23619 [\\/]* | ?:[\\/]* ) # Absolute path.
23620 ac_srcdir=$srcdir$ac_dir_suffix;
23621 ac_top_srcdir=$srcdir ;;
23622 *) # Relative path.
23623 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23624 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23626 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23628 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23629 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23630 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23631 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23635 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23636 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23639 if test x"$ac_file" != x-; then
23640 { echo "$as_me:$LINENO: creating $ac_file" >&5
23641 echo "$as_me: creating $ac_file" >&6;}
23644 # Let's still pretend it is `configure' which instantiates (i.e., don't
23645 # use $as_me), people would be surprised to read:
23646 # /* config.h. Generated by config.status. */
23647 if test x"$ac_file" = x-; then
23650 configure_input="$ac_file. "
23652 configure_input=$configure_input"Generated from `echo $ac_file_in |
23653 sed 's,.*/,,'` by configure."
23655 # First look for the input files in the build tree, otherwise in the
23657 ac_file_inputs=`IFS=:
23658 for f in $ac_file_in; do
23660 -) echo $tmp/stdin ;;
23662 # Absolute (can't be DOS-style, as IFS=:)
23663 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23664 echo "$as_me: error: cannot find input file: $f" >&2;}
23665 { (exit 1); exit 1; }; }
23668 if test -f "$f"; then
23671 elif test -f "$srcdir/$f"; then
23676 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23677 echo "$as_me: error: cannot find input file: $f" >&2;}
23678 { (exit 1); exit 1; }; }
23681 done` || { (exit 1); exit 1; }
23683 cat >>$CONFIG_STATUS <<_ACEOF
23687 cat >>$CONFIG_STATUS <<\_ACEOF
23689 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23690 s,@configure_input@,$configure_input,;t t
23691 s,@srcdir@,$ac_srcdir,;t t
23692 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23693 s,@top_srcdir@,$ac_top_srcdir,;t t
23694 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23695 s,@builddir@,$ac_builddir,;t t
23696 s,@abs_builddir@,$ac_abs_builddir,;t t
23697 s,@top_builddir@,$ac_top_builddir,;t t
23698 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23699 s,@INSTALL@,$ac_INSTALL,;t t
23700 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23702 if test x"$ac_file" != x-; then
23703 mv $tmp/out $ac_file
23711 cat >>$CONFIG_STATUS <<\_ACEOF
23714 # CONFIG_HEADER section.
23717 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23718 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23720 # ac_d sets the value in "#define NAME VALUE" lines.
23721 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23722 ac_dB='[ ].*$,\1#\2'
23725 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23726 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23727 ac_uB='$,\1#\2define\3'
23731 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23732 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23734 - | *:- | *:-:* ) # input from stdin
23736 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23737 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23738 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23739 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23740 * ) ac_file_in=$ac_file.in ;;
23743 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23744 echo "$as_me: creating $ac_file" >&6;}
23746 # First look for the input files in the build tree, otherwise in the
23748 ac_file_inputs=`IFS=:
23749 for f in $ac_file_in; do
23751 -) echo $tmp/stdin ;;
23753 # Absolute (can't be DOS-style, as IFS=:)
23754 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23755 echo "$as_me: error: cannot find input file: $f" >&2;}
23756 { (exit 1); exit 1; }; }
23759 if test -f "$f"; then
23762 elif test -f "$srcdir/$f"; then
23767 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23768 echo "$as_me: error: cannot find input file: $f" >&2;}
23769 { (exit 1); exit 1; }; }
23772 done` || { (exit 1); exit 1; }
23773 # Remove the trailing spaces.
23774 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23778 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23779 # `conftest.undefs', that substitutes the proper values into
23780 # config.h.in to produce config.h. The first handles `#define'
23781 # templates, and the second `#undef' templates.
23782 # And first: Protect against being on the right side of a sed subst in
23783 # config.status. Protect against being in an unquoted here document
23784 # in config.status.
23785 rm -f conftest.defines conftest.undefs
23786 # Using a here document instead of a string reduces the quoting nightmare.
23787 # Putting comments in sed scripts is not portable.
23789 # `end' is used to avoid that the second main sed command (meant for
23790 # 0-ary CPP macros) applies to n-ary macro definitions.
23791 # See the Autoconf documentation for `clear'.
23792 cat >confdef2sed.sed <<\_ACEOF
23797 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23799 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23802 # If some macros were called several times there might be several times
23803 # the same #defines, which is useless. Nevertheless, we may not want to
23804 # sort them, since we want the *last* AC-DEFINE to be honored.
23805 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23806 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23807 rm -f confdef2sed.sed
23809 # This sed command replaces #undef with comments. This is necessary, for
23810 # example, in the case of _POSIX_SOURCE, which is predefined and required
23811 # on some systems where configure will not decide to define it.
23812 cat >>conftest.undefs <<\_ACEOF
23813 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23816 # Break up conftest.defines because some shells have a limit on the size
23817 # of here documents, and old seds have small limits too (100 cmds).
23818 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23819 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23820 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23821 echo ' :' >>$CONFIG_STATUS
23822 rm -f conftest.tail
23823 while grep . conftest.defines >/dev/null
23825 # Write a limited-size here document to $tmp/defines.sed.
23826 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23827 # Speed up: don't consider the non `#define' lines.
23828 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23829 # Work around the forget-to-reset-the-flag bug.
23830 echo 't clr' >>$CONFIG_STATUS
23831 echo ': clr' >>$CONFIG_STATUS
23832 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23834 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23836 mv $tmp/out $tmp/in
23838 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23839 rm -f conftest.defines
23840 mv conftest.tail conftest.defines
23842 rm -f conftest.defines
23843 echo ' fi # grep' >>$CONFIG_STATUS
23844 echo >>$CONFIG_STATUS
23846 # Break up conftest.undefs because some shells have a limit on the size
23847 # of here documents, and old seds have small limits too (100 cmds).
23848 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23849 rm -f conftest.tail
23850 while grep . conftest.undefs >/dev/null
23852 # Write a limited-size here document to $tmp/undefs.sed.
23853 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23854 # Speed up: don't consider the non `#undef'
23855 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23856 # Work around the forget-to-reset-the-flag bug.
23857 echo 't clr' >>$CONFIG_STATUS
23858 echo ': clr' >>$CONFIG_STATUS
23859 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23861 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23863 mv $tmp/out $tmp/in
23865 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23866 rm -f conftest.undefs
23867 mv conftest.tail conftest.undefs
23869 rm -f conftest.undefs
23871 cat >>$CONFIG_STATUS <<\_ACEOF
23872 # Let's still pretend it is `configure' which instantiates (i.e., don't
23873 # use $as_me), people would be surprised to read:
23874 # /* config.h. Generated by config.status. */
23875 if test x"$ac_file" = x-; then
23876 echo "/* Generated by configure. */" >$tmp/config.h
23878 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23880 cat $tmp/in >>$tmp/config.h
23882 if test x"$ac_file" != x-; then
23883 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23884 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23885 echo "$as_me: $ac_file is unchanged" >&6;}
23887 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23889 X"$ac_file" : 'X\(//\)[^/]' \| \
23890 X"$ac_file" : 'X\(//\)$' \| \
23891 X"$ac_file" : 'X\(/\)' \| \
23892 . : '\(.\)' 2>/dev/null ||
23894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23895 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23896 /^X\(\/\/\)$/{ s//\1/; q; }
23897 /^X\(\/\).*/{ s//\1/; q; }
23899 { if $as_mkdir_p; then
23904 while test ! -d "$as_dir"; do
23905 as_dirs="$as_dir $as_dirs"
23906 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23907 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23908 X"$as_dir" : 'X\(//\)[^/]' \| \
23909 X"$as_dir" : 'X\(//\)$' \| \
23910 X"$as_dir" : 'X\(/\)' \| \
23911 . : '\(.\)' 2>/dev/null ||
23913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23914 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23915 /^X\(\/\/\)$/{ s//\1/; q; }
23916 /^X\(\/\).*/{ s//\1/; q; }
23919 test ! -n "$as_dirs" || mkdir $as_dirs
23920 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23921 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23922 { (exit 1); exit 1; }; }; }
23925 mv $tmp/config.h $ac_file
23929 rm -f $tmp/config.h
23933 cat >>$CONFIG_STATUS <<\_ACEOF
23936 # CONFIG_COMMANDS section.
23938 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23939 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23940 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23941 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23942 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23943 X"$ac_dest" : 'X\(//\)[^/]' \| \
23944 X"$ac_dest" : 'X\(//\)$' \| \
23945 X"$ac_dest" : 'X\(/\)' \| \
23946 . : '\(.\)' 2>/dev/null ||
23948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23950 /^X\(\/\/\)$/{ s//\1/; q; }
23951 /^X\(\/\).*/{ s//\1/; q; }
23955 if test "$ac_dir" != .; then
23956 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23957 # A "../" for each directory in $ac_dir_suffix.
23958 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23960 ac_dir_suffix= ac_top_builddir=
23964 .) # No --srcdir option. We are building in place.
23966 if test -z "$ac_top_builddir"; then
23969 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23971 [\\/]* | ?:[\\/]* ) # Absolute path.
23972 ac_srcdir=$srcdir$ac_dir_suffix;
23973 ac_top_srcdir=$srcdir ;;
23974 *) # Relative path.
23975 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23976 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23978 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23980 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23981 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23982 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23983 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23986 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23987 echo "$as_me: executing $ac_dest commands" >&6;}
23989 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23990 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
23991 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
23992 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23993 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23994 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23995 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23996 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
23997 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23998 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23999 test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
24000 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24001 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24002 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24003 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24004 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24005 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24006 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24007 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24008 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24009 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24010 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24011 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24012 test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
24013 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24014 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24015 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 ;;
24016 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 ;;
24017 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 ;;
24018 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24019 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24020 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 ;;
24021 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 ;;
24022 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 ;;
24023 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 ;;
24024 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 ;;
24025 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 ;;
24026 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 ;;
24027 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 ;;
24028 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 ;;
24029 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 ;;
24030 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 ;;
24031 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 ;;
24032 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 ;;
24033 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24034 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24035 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 ;;
24036 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24037 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24038 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24043 cat >>$CONFIG_STATUS <<\_ACEOF
24045 { (exit 0); exit 0; }
24047 chmod +x $CONFIG_STATUS
24048 ac_clean_files=$ac_clean_files_save
24051 # configure is writing to config.log, and then calls config.status.
24052 # config.status does its own redirection, appending to config.log.
24053 # Unfortunately, on DOS this fails, as config.log is still kept open
24054 # by configure, so config.status won't be able to write to it; its
24055 # output is simply discarded. So we exec the FD to /dev/null,
24056 # effectively closing config.log, so it can be properly (re)opened and
24057 # appended to by config.status. When coming back to configure, we
24058 # need to make the FD available again.
24059 if test "$no_create" != yes; then
24061 ac_config_status_args=
24062 test "$silent" = yes &&
24063 ac_config_status_args="$ac_config_status_args --quiet"
24065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24068 # would make configure fail if this is the last instruction.
24069 $ac_cs_success || { (exit 1); exit 1; }
24073 # CONFIG_SUBDIRS section.
24075 if test "$no_recursion" != yes; then
24077 # Remove --cache-file and --srcdir arguments so they do not pile up.
24078 ac_sub_configure_args=
24080 for ac_arg in $ac_configure_args; do
24081 if test -n "$ac_prev"; then
24086 -cache-file | --cache-file | --cache-fil | --cache-fi \
24087 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24088 ac_prev=cache_file ;;
24089 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24090 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24093 --config-cache | -C)
24095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24103 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24107 # Always prepend --prefix to ensure using the same prefix
24108 # in subdir configurations.
24109 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24112 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24114 # Do not complain, so a configure script can configure whichever
24115 # parts of a large source tree are present.
24116 test -d $srcdir/$ac_dir || continue
24118 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24119 echo "$as_me: configuring in $ac_dir" >&6;}
24120 { if $as_mkdir_p; then
24125 while test ! -d "$as_dir"; do
24126 as_dirs="$as_dir $as_dirs"
24127 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24129 X"$as_dir" : 'X\(//\)[^/]' \| \
24130 X"$as_dir" : 'X\(//\)$' \| \
24131 X"$as_dir" : 'X\(/\)' \| \
24132 . : '\(.\)' 2>/dev/null ||
24134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24136 /^X\(\/\/\)$/{ s//\1/; q; }
24137 /^X\(\/\).*/{ s//\1/; q; }
24140 test ! -n "$as_dirs" || mkdir $as_dirs
24141 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24142 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24143 { (exit 1); exit 1; }; }; }
24147 if test "$ac_dir" != .; then
24148 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24149 # A "../" for each directory in $ac_dir_suffix.
24150 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24152 ac_dir_suffix= ac_top_builddir=
24156 .) # No --srcdir option. We are building in place.
24158 if test -z "$ac_top_builddir"; then
24161 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24163 [\\/]* | ?:[\\/]* ) # Absolute path.
24164 ac_srcdir=$srcdir$ac_dir_suffix;
24165 ac_top_srcdir=$srcdir ;;
24166 *) # Relative path.
24167 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24168 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24170 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24172 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24173 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24174 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24175 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24180 # Check for guested configure; otherwise get Cygnus style configure.
24181 if test -f $ac_srcdir/configure.gnu; then
24182 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24183 elif test -f $ac_srcdir/configure; then
24184 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24185 elif test -f $ac_srcdir/configure.in; then
24186 ac_sub_configure=$ac_configure
24188 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24189 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24193 # The recursion is here.
24194 if test -n "$ac_sub_configure"; then
24195 # Make the cache file name correct relative to the subdirectory.
24196 case $cache_file in
24197 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24198 *) # Relative path.
24199 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24202 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24203 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24204 # The eval makes quoting arguments work.
24205 eval $ac_sub_configure $ac_sub_configure_args \
24206 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24207 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24208 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24209 { (exit 1); exit 1; }; }
24217 if test $llvmgccwarn = yes
24219 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24220 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24221 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24222 echo "$as_me: WARNING: ***** appear to be working." >&2;}
24223 { echo "$as_me:$LINENO: WARNING: ***** " >&5
24224 echo "$as_me: WARNING: ***** " >&2;}
24225 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24226 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24227 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24228 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24229 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24230 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}