2 # From configure.in Id: configure.in,v 1.29.2.41 2005/12/16 08:12:19 tbe Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 DUALCASE=1; export DUALCASE # for MKS sh
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
222 test -d ./-p && rmdir ./-p
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval 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="eval 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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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=${tagnames+${tagnames},}CXX
397 tagnames=${tagnames+${tagnames},}F77
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.
429 ac_unique_file="pubtext"
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_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT SP_LIBOSP_CUR SP_LIBOSP_REV SP_LIBOSP_AGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LN_S PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC2 ALLOCA GLIBC21 INTL_MACOSX_LIBS HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB SP_MESSAGE_DOMAIN LIBOBJS DTDDECL_TRUE DTDDECL_FALSE XMLTO DOCSRC PDF2PS JADE JADETEX PDFJADETEX EXTRADOCS LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures this package to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1020 if test -n "$ac_init_help"; then
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --enable-maintainer-mode enable make rules and dependencies not useful
1028 (and sometimes confusing) to the casual installer
1029 --disable-dependency-tracking speeds up one-time build
1030 --enable-dependency-tracking do not reject slow dependency extractors
1031 --enable-shared[=PKGS]
1032 build shared libraries [default=yes]
1033 --enable-static[=PKGS]
1034 build static libraries [default=yes]
1035 --enable-fast-install[=PKGS]
1036 optimize for fast installation [default=yes]
1037 --disable-libtool-lock avoid locking (might break parallel builds)
1038 --disable-nls do not use Native Language Support
1039 --disable-rpath do not hardcode runtime library paths
1040 --enable-http include support for http
1041 --enable-default-catalog=pathlist
1042 provide one or more default catalog files or
1043 sysids, e.g. /usr/local/lib/sgml/catalog
1044 --enable-default-search-path=pathlist
1045 provide a default value for SGML_SEARCH_PATH
1046 --enable-xml-messages include support for XML Formatted Messages
1047 --disable-dtddecl disable support for DTDDECL catalog entries
1048 --disable-doc-build do not build docs from source
1049 --enable-full-doc-build build all docs from source
1052 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1053 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1054 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1055 --with-pic try to use only PIC/non-PIC objects [default=use
1058 include additional configurations [automatic]
1059 --with-gnu-ld assume the C compiler uses GNU ld default=no
1060 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1061 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1062 --with-included-gettext use the GNU gettext library included here
1063 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1064 --without-libintl-prefix don't search for libintl in includedir and libdir
1066 Some influential environment variables:
1067 CC C compiler command
1068 CFLAGS C compiler flags
1069 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1070 nonstandard directory <lib dir>
1071 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072 headers in a nonstandard directory <include dir>
1074 CXX C++ compiler command
1075 CXXFLAGS C++ compiler flags
1076 CXXCPP C++ preprocessor
1077 F77 Fortran 77 compiler command
1078 FFLAGS Fortran 77 compiler flags
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1086 if test "$ac_init_help" = "recursive"; then
1087 # If there are subdirs, report their specific --help.
1089 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1090 test -d $ac_dir || continue
1093 if test "$ac_dir" != .; then
1094 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1095 # A "../" for each directory in $ac_dir_suffix.
1096 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098 ac_dir_suffix= ac_top_builddir=
1102 .) # No --srcdir option. We are building in place.
1104 if test -z "$ac_top_builddir"; then
1107 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109 [\\/]* | ?:[\\/]* ) # Absolute path.
1110 ac_srcdir=$srcdir$ac_dir_suffix;
1111 ac_top_srcdir=$srcdir ;;
1113 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1114 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1117 # Do not use `cd foo && pwd` to compute absolute paths, because
1118 # the directories may not exist.
1120 .) ac_abs_builddir="$ac_dir";;
1123 .) ac_abs_builddir=`pwd`;;
1124 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1125 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1128 case $ac_abs_builddir in
1129 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 case ${ac_top_builddir}. in
1132 .) ac_abs_top_builddir=$ac_abs_builddir;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1134 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1137 case $ac_abs_builddir in
1138 .) ac_abs_srcdir=$ac_srcdir;;
1141 .) ac_abs_srcdir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1143 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1146 case $ac_abs_builddir in
1147 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 case $ac_top_srcdir in
1150 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1152 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1157 # Check for guested configure; otherwise get Cygnus style configure.
1158 if test -f $ac_srcdir/configure.gnu; then
1160 $SHELL $ac_srcdir/configure.gnu --help=recursive
1161 elif test -f $ac_srcdir/configure; then
1163 $SHELL $ac_srcdir/configure --help=recursive
1164 elif test -f $ac_srcdir/configure.ac ||
1165 test -f $ac_srcdir/configure.in; then
1167 $ac_configure --help
1169 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1175 test -n "$ac_init_help" && exit 0
1176 if $ac_init_version; then
1179 Copyright (C) 2003 Free Software Foundation, Inc.
1180 This configure script is free software; the Free Software Foundation
1181 gives unlimited permission to copy, distribute and modify it.
1187 This file contains any messages produced by compilers while
1188 running configure, to aid debugging if configure makes a mistake.
1190 It was created by $as_me, which was
1191 generated by GNU Autoconf 2.59. Invocation command line was
1202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1211 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1212 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1215 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1216 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1217 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1225 test -z "$as_dir" && as_dir=.
1226 echo "PATH: $as_dir"
1241 # Keep a trace of the command line.
1242 # Strip out --no-create and --no-recursion so they do not pile up.
1243 # Strip out --silent because we don't want to record it for future runs.
1244 # Also quote any args containing shell meta-characters.
1245 # Make two passes to allow for proper duplicate-argument suppression.
1250 ac_must_keep_next=false
1256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1264 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267 if test $ac_must_keep_next = true; then
1268 ac_must_keep_next=false # Got value, back to normal.
1271 *=* | --config-cache | -C | -disable-* | --disable-* \
1272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274 | -with-* | --with-* | -without-* | --without-* | --x)
1275 case "$ac_configure_args0 " in
1276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1279 -* ) ac_must_keep_next=true ;;
1282 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283 # Get rid of the leading space.
1289 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1292 # When interrupted or exit'd, cleanup temporary files, and complete
1293 # config.log. We remove comments because anyway the quotes in there
1294 # would cause problems or look ugly.
1295 # WARNING: Be sure not to use single quotes in there, as some shells,
1296 # such as our DU 5.0 friend, will then `close' the trap.
1297 trap 'exit_status=$?
1298 # Save into config.log some information that might help in debugging.
1303 ## ---------------- ##
1304 ## Cache variables. ##
1305 ## ---------------- ##
1308 # The following way of writing the cache mishandles newlines in values,
1311 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1314 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1319 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1326 ## ----------------- ##
1327 ## Output variables. ##
1328 ## ----------------- ##
1331 for ac_var in $ac_subst_vars
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1338 if test -n "$ac_subst_files"; then
1345 for ac_var in $ac_subst_files
1347 eval ac_val=$`echo $ac_var`
1348 echo "$ac_var='"'"'$ac_val'"'"'"
1353 if test -s confdefs.h; then
1360 sed "/^$/d" confdefs.h | sort
1363 test "$ac_signal" != 0 &&
1364 echo "$as_me: caught signal $ac_signal"
1365 echo "$as_me: exit $exit_status"
1367 rm -f core *.core &&
1368 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1371 for ac_signal in 1 2 13 15; do
1372 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1377 rm -rf conftest* confdefs.h
1378 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1381 # Predefined preprocessor variables.
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_NAME "$PACKAGE_NAME"
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_STRING "$PACKAGE_STRING"
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1408 # Let the site file select an alternate cache file if it wants to.
1409 # Prefer explicitly selected file to automatically selected ones.
1410 if test -z "$CONFIG_SITE"; then
1411 if test "x$prefix" != xNONE; then
1412 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1417 for ac_site_file in $CONFIG_SITE; do
1418 if test -r "$ac_site_file"; then
1419 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420 echo "$as_me: loading site script $ac_site_file" >&6;}
1421 sed 's/^/| /' "$ac_site_file" >&5
1426 if test -r "$cache_file"; then
1427 # Some versions of bash will fail to source /dev/null (special
1428 # files actually), so we avoid doing that.
1429 if test -f "$cache_file"; then
1430 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431 echo "$as_me: loading cache $cache_file" >&6;}
1433 [\\/]* | ?:[\\/]* ) . $cache_file;;
1434 *) . ./$cache_file;;
1438 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439 echo "$as_me: creating cache $cache_file" >&6;}
1443 # Check that the precious variables saved in the cache have kept the same
1445 ac_cache_corrupted=false
1446 for ac_var in `(set) 2>&1 |
1447 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449 eval ac_new_set=\$ac_env_${ac_var}_set
1450 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451 eval ac_new_val="\$ac_env_${ac_var}_value"
1452 case $ac_old_set,$ac_new_set in
1454 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456 ac_cache_corrupted=: ;;
1458 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460 ac_cache_corrupted=: ;;
1463 if test "x$ac_old_val" != "x$ac_new_val"; then
1464 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1467 echo "$as_me: former value: $ac_old_val" >&2;}
1468 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1469 echo "$as_me: current value: $ac_new_val" >&2;}
1470 ac_cache_corrupted=:
1473 # Pass precious variables to config.status.
1474 if test "$ac_new_set" = set; then
1476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478 *) ac_arg=$ac_var=$ac_new_val ;;
1480 case " $ac_configure_args " in
1481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1482 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1486 if $ac_cache_corrupted; then
1487 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491 { (exit 1); exit 1; }; }
1495 ac_cpp='$CPP $CPPFLAGS'
1496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1519 am__api_version="1.9"
1521 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1522 if test -f $ac_dir/install-sh; then
1524 ac_install_sh="$ac_aux_dir/install-sh -c"
1526 elif test -f $ac_dir/install.sh; then
1528 ac_install_sh="$ac_aux_dir/install.sh -c"
1530 elif test -f $ac_dir/shtool; then
1532 ac_install_sh="$ac_aux_dir/shtool install -c"
1536 if test -z "$ac_aux_dir"; then
1537 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1538 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1539 { (exit 1); exit 1; }; }
1541 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1542 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1543 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1545 # Find a good install program. We prefer a C program (faster),
1546 # so one script is as good as another. But avoid the broken or
1547 # incompatible versions:
1548 # SysV /etc/install, /usr/sbin/install
1549 # SunOS /usr/etc/install
1550 # IRIX /sbin/install
1552 # AmigaOS /C/install, which installs bootblocks on floppy discs
1553 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1554 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1555 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1556 # OS/2's system install, which has a completely different semantic
1557 # ./install, which can be erroneously created by make from ./install.sh.
1558 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1559 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1560 if test -z "$INSTALL"; then
1561 if test "${ac_cv_path_install+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 test -z "$as_dir" && as_dir=.
1569 # Account for people who put trailing slashes in PATH elements.
1571 ./ | .// | /cC/* | \
1572 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1573 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1576 # OSF1 and SCO ODT 3.0 have their own names for install.
1577 # Don't use installbsd from OSF since it installs stuff as root
1579 for ac_prog in ginstall scoinst install; do
1580 for ac_exec_ext in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1582 if test $ac_prog = install &&
1583 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1584 # AIX install. It has an incompatible calling convention.
1586 elif test $ac_prog = install &&
1587 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1588 # program-specific install script used by HP pwplus--don't use.
1591 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1603 if test "${ac_cv_path_install+set}" = set; then
1604 INSTALL=$ac_cv_path_install
1606 # As a last resort, use the slow shell script. We don't cache a
1607 # path for INSTALL within a source directory, because that will
1608 # break other packages using the cache if that directory is
1609 # removed, or if the path is relative.
1610 INSTALL=$ac_install_sh
1613 echo "$as_me:$LINENO: result: $INSTALL" >&5
1614 echo "${ECHO_T}$INSTALL" >&6
1616 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1617 # It thinks the first close brace ends the variable substitution.
1618 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1620 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1622 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1624 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1625 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1628 echo timestamp > conftest.file
1629 # Do `set' in a subshell so we don't clobber the current shell's
1630 # arguments. Must try -L first in case configure is actually a
1631 # symlink; some systems play weird games with the mod time of symlinks
1632 # (eg FreeBSD returns the mod time of the symlink's containing
1635 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1636 if test "$*" = "X"; then
1638 set X `ls -t $srcdir/configure conftest.file`
1641 if test "$*" != "X $srcdir/configure conftest.file" \
1642 && test "$*" != "X conftest.file $srcdir/configure"; then
1644 # If neither matched, then we have a broken ls. This can happen
1645 # if, for instance, CONFIG_SHELL is bash and it inherits a
1646 # broken ls alias from the environment. This has actually
1647 # happened. Such a system could not be considered "sane".
1648 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1649 alias in your environment" >&5
1650 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1651 alias in your environment" >&2;}
1652 { (exit 1); exit 1; }; }
1655 test "$2" = conftest.file
1661 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1662 Check your system clock" >&5
1663 echo "$as_me: error: newly created file is older than distributed files!
1664 Check your system clock" >&2;}
1665 { (exit 1); exit 1; }; }
1667 echo "$as_me:$LINENO: result: yes" >&5
1668 echo "${ECHO_T}yes" >&6
1669 test "$program_prefix" != NONE &&
1670 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1671 # Use a double $ so make ignores it.
1672 test "$program_suffix" != NONE &&
1673 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1674 # Double any \ or $. echo might interpret backslashes.
1675 # By default was `s,x,x', remove it if useless.
1676 cat <<\_ACEOF >conftest.sed
1677 s/[\\$]/&&/g;s/;s,x,x,$//
1679 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1682 # expand $ac_aux_dir to an absolute path
1683 am_aux_dir=`cd $ac_aux_dir && pwd`
1685 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1686 # Use eval to expand $SHELL
1687 if eval "$MISSING --run true"; then
1688 am_missing_run="$MISSING --run "
1691 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1692 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1695 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1696 # We used to keeping the `.' as first argument, in order to
1697 # allow $(mkdir_p) to be used without argument. As in
1698 # $(mkdir_p) $(somedir)
1699 # where $(somedir) is conditionally defined. However this is wrong
1701 # 1. if the package is installed by a user who cannot write `.'
1702 # make install will fail,
1703 # 2. the above comment should most certainly read
1704 # $(mkdir_p) $(DESTDIR)$(somedir)
1705 # so it does not work when $(somedir) is undefined and
1706 # $(DESTDIR) is not.
1707 # To support the latter case, we have to write
1708 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1709 # so the `.' trick is pointless.
1710 mkdir_p='mkdir -p --'
1712 # On NextStep and OpenStep, the `mkdir' command does not
1713 # recognize any option. It will interpret all options as
1714 # directories to create, and then abort because `.' already
1716 for d in ./-p ./--version;
1718 test -d $d && rmdir $d
1720 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1721 if test -f "$ac_aux_dir/mkinstalldirs"; then
1722 mkdir_p='$(mkinstalldirs)'
1724 mkdir_p='$(install_sh) -d'
1728 for ac_prog in gawk mawk nawk awk
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy $ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_AWK+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 if test -n "$AWK"; then
1738 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_AWK="$ac_prog"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 if test -n "$AWK"; then
1758 echo "$as_me:$LINENO: result: $AWK" >&5
1759 echo "${ECHO_T}$AWK" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1765 test -n "$AWK" && break
1768 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1769 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1770 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1771 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 cat >conftest.make <<\_ACEOF
1776 @echo 'ac_maketemp="$(MAKE)"'
1778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1779 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1780 if test -n "$ac_maketemp"; then
1781 eval ac_cv_prog_make_${ac_make}_set=yes
1783 eval ac_cv_prog_make_${ac_make}_set=no
1787 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1788 echo "$as_me:$LINENO: result: yes" >&5
1789 echo "${ECHO_T}yes" >&6
1792 echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6
1794 SET_MAKE="MAKE=${MAKE-make}"
1797 rm -rf .tst 2>/dev/null
1798 mkdir .tst 2>/dev/null
1799 if test -d .tst; then
1804 rmdir .tst 2>/dev/null
1806 # test to see if srcdir already configured
1807 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1808 test -f $srcdir/config.status; then
1809 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1810 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1811 { (exit 1); exit 1; }; }
1814 # test whether we have cygpath
1815 if test -z "$CYGPATH_W"; then
1816 if (cygpath --version) >/dev/null 2>/dev/null; then
1817 CYGPATH_W='cygpath -w'
1824 # Define the identity of the package.
1829 # Some tools Automake needs.
1831 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1834 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1837 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1840 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1843 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1845 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1847 # Installed binaries are usually stripped using `strip' when the user
1848 # run `make install-strip'. However `strip' might not be the right
1849 # tool to use in cross-compilation environments, therefore Automake
1850 # will honor the `STRIP' environment variable to overrule this program.
1851 if test "$cross_compiling" != no; then
1852 if test -n "$ac_tool_prefix"; then
1853 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1854 set dummy ${ac_tool_prefix}strip; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_STRIP+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 if test -n "$STRIP"; then
1861 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 test -z "$as_dir" && as_dir=.
1868 for ac_exec_ext in '' $ac_executable_extensions; do
1869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 STRIP=$ac_cv_prog_STRIP
1880 if test -n "$STRIP"; then
1881 echo "$as_me:$LINENO: result: $STRIP" >&5
1882 echo "${ECHO_T}$STRIP" >&6
1884 echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1889 if test -z "$ac_cv_prog_STRIP"; then
1891 # Extract the first word of "strip", so it can be a program name with args.
1892 set dummy strip; ac_word=$2
1893 echo "$as_me:$LINENO: checking for $ac_word" >&5
1894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 if test -n "$ac_ct_STRIP"; then
1899 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 test -z "$as_dir" && as_dir=.
1906 for ac_exec_ext in '' $ac_executable_extensions; do
1907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908 ac_cv_prog_ac_ct_STRIP="strip"
1909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1918 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1919 if test -n "$ac_ct_STRIP"; then
1920 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1921 echo "${ECHO_T}$ac_ct_STRIP" >&6
1923 echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1929 STRIP="$ac_cv_prog_STRIP"
1933 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1935 # We need awk for the "check" target. The system "awk" is bad on
1937 # Always define AMTAR for backward compatibility.
1939 AMTAR=${AMTAR-"${am_missing_run}tar"}
1941 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1947 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1948 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1949 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1950 if test "${enable_maintainer_mode+set}" = set; then
1951 enableval="$enable_maintainer_mode"
1952 USE_MAINTAINER_MODE=$enableval
1954 USE_MAINTAINER_MODE=no
1956 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1957 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1960 if test $USE_MAINTAINER_MODE = yes; then
1961 MAINTAINER_MODE_TRUE=
1962 MAINTAINER_MODE_FALSE='#'
1964 MAINTAINER_MODE_TRUE='#'
1965 MAINTAINER_MODE_FALSE=
1968 MAINT=$MAINTAINER_MODE_TRUE
1972 ac_config_headers="$ac_config_headers config.h"
1974 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1975 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1978 echo timestamp > conftest.file
1979 # Do `set' in a subshell so we don't clobber the current shell's
1980 # arguments. Must try -L first in case configure is actually a
1981 # symlink; some systems play weird games with the mod time of symlinks
1982 # (eg FreeBSD returns the mod time of the symlink's containing
1985 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1986 if test "$*" = "X"; then
1988 set X `ls -t $srcdir/configure conftest.file`
1991 if test "$*" != "X $srcdir/configure conftest.file" \
1992 && test "$*" != "X conftest.file $srcdir/configure"; then
1994 # If neither matched, then we have a broken ls. This can happen
1995 # if, for instance, CONFIG_SHELL is bash and it inherits a
1996 # broken ls alias from the environment. This has actually
1997 # happened. Such a system could not be considered "sane".
1998 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1999 alias in your environment" >&5
2000 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2001 alias in your environment" >&2;}
2002 { (exit 1); exit 1; }; }
2005 test "$2" = conftest.file
2011 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2012 Check your system clock" >&5
2013 echo "$as_me: error: newly created file is older than distributed files!
2014 Check your system clock" >&2;}
2015 { (exit 1); exit 1; }; }
2017 echo "$as_me:$LINENO: result: yes" >&5
2018 echo "${ECHO_T}yes" >&6
2042 cat >>confdefs.h <<\_ACEOF
2043 #define SP_MULTI_BYTE 1
2090 cat >>confdefs.h <<_ACEOF
2091 #define SP_PACKAGE "$PACKAGE"
2095 cat >>confdefs.h <<_ACEOF
2096 #define SP_VERSION "$VERSION"
2108 ac_cpp='$CPP $CPPFLAGS'
2109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2112 if test -n "$ac_tool_prefix"; then
2113 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2114 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2115 echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117 if test "${ac_cv_prog_CC+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 if test -n "$CC"; then
2121 ac_cv_prog_CC="$CC" # Let the user override the test.
2123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 test -z "$as_dir" && as_dir=.
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2130 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 if test -n "$CC"; then
2141 echo "$as_me:$LINENO: result: $CC" >&5
2142 echo "${ECHO_T}$CC" >&6
2144 echo "$as_me:$LINENO: result: no" >&5
2145 echo "${ECHO_T}no" >&6
2149 if test -z "$ac_cv_prog_CC"; then
2151 # Extract the first word of "gcc", so it can be a program name with args.
2152 set dummy gcc; ac_word=$2
2153 echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2155 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 if test -n "$ac_ct_CC"; then
2159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2168 ac_cv_prog_ac_ct_CC="gcc"
2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2178 if test -n "$ac_ct_CC"; then
2179 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2180 echo "${ECHO_T}$ac_ct_CC" >&6
2182 echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6
2191 if test -z "$CC"; then
2192 if test -n "$ac_tool_prefix"; then
2193 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2194 set dummy ${ac_tool_prefix}cc; ac_word=$2
2195 echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2197 if test "${ac_cv_prog_CC+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2200 if test -n "$CC"; then
2201 ac_cv_prog_CC="$CC" # Let the user override the test.
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 test -z "$as_dir" && as_dir=.
2208 for ac_exec_ext in '' $ac_executable_extensions; do
2209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2210 ac_cv_prog_CC="${ac_tool_prefix}cc"
2211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 if test -n "$CC"; then
2221 echo "$as_me:$LINENO: result: $CC" >&5
2222 echo "${ECHO_T}$CC" >&6
2224 echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6
2229 if test -z "$ac_cv_prog_CC"; then
2231 # Extract the first word of "cc", so it can be a program name with args.
2232 set dummy cc; ac_word=$2
2233 echo "$as_me:$LINENO: checking for $ac_word" >&5
2234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2235 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 if test -n "$ac_ct_CC"; then
2239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 test -z "$as_dir" && as_dir=.
2246 for ac_exec_ext in '' $ac_executable_extensions; do
2247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2248 ac_cv_prog_ac_ct_CC="cc"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2258 if test -n "$ac_ct_CC"; then
2259 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2260 echo "${ECHO_T}$ac_ct_CC" >&6
2262 echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6
2272 if test -z "$CC"; then
2273 # Extract the first word of "cc", so it can be a program name with args.
2274 set dummy cc; ac_word=$2
2275 echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2277 if test "${ac_cv_prog_CC+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC="$CC" # Let the user override the test.
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2292 ac_prog_rejected=yes
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 if test $ac_prog_rejected = yes; then
2303 # We found a bogon in the path, so make sure we never use it.
2304 set dummy $ac_cv_prog_CC
2306 if test $# != 0; then
2307 # We chose a different compiler from the bogus one.
2308 # However, it has the same basename, so the bogon will be chosen
2309 # first if we set CC to just the basename; use the full file name.
2311 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2317 if test -n "$CC"; then
2318 echo "$as_me:$LINENO: result: $CC" >&5
2319 echo "${ECHO_T}$CC" >&6
2321 echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6
2326 if test -z "$CC"; then
2327 if test -n "$ac_tool_prefix"; then
2330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2332 echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2334 if test "${ac_cv_prog_CC+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 if test -n "$CC"; then
2338 ac_cv_prog_CC="$CC" # Let the user override the test.
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 if test -n "$CC"; then
2358 echo "$as_me:$LINENO: result: $CC" >&5
2359 echo "${ECHO_T}$CC" >&6
2361 echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6
2365 test -n "$CC" && break
2368 if test -z "$CC"; then
2372 # Extract the first word of "$ac_prog", so it can be a program name with args.
2373 set dummy $ac_prog; ac_word=$2
2374 echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2376 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 if test -n "$ac_ct_CC"; then
2380 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2389 ac_cv_prog_ac_ct_CC="$ac_prog"
2390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2398 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2399 if test -n "$ac_ct_CC"; then
2400 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2401 echo "${ECHO_T}$ac_ct_CC" >&6
2403 echo "$as_me:$LINENO: result: no" >&5
2404 echo "${ECHO_T}no" >&6
2407 test -n "$ac_ct_CC" && break
2416 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2417 See \`config.log' for more details." >&5
2418 echo "$as_me: error: no acceptable C compiler found in \$PATH
2419 See \`config.log' for more details." >&2;}
2420 { (exit 1); exit 1; }; }
2422 # Provide some information about the compiler.
2423 echo "$as_me:$LINENO:" \
2424 "checking for C compiler version" >&5
2425 ac_compiler=`set X $ac_compile; echo $2`
2426 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2427 (eval $ac_compiler --version </dev/null >&5) 2>&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }
2431 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2432 (eval $ac_compiler -v </dev/null >&5) 2>&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }
2436 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2437 (eval $ac_compiler -V </dev/null >&5) 2>&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }
2442 cat >conftest.$ac_ext <<_ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2457 ac_clean_files_save=$ac_clean_files
2458 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2459 # Try to create an executable without -o first, disregard a.out.
2460 # It will help us diagnose broken compilers, and finding out an intuition
2462 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2463 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2464 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2465 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2466 (eval $ac_link_default) 2>&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; then
2470 # Find the output, starting from the most likely. This scheme is
2471 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2474 # Be careful to initialize this variable, since it used to be cached.
2475 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2477 # b.out is created by i960 compilers.
2478 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2480 test -f "$ac_file" || continue
2482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2485 # This is the source file.
2488 # We found the default executable, but exeext='' is most
2492 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2493 # FIXME: I believe we export ac_cv_exeext for Libtool,
2494 # but it would be cool to find out if it's true. Does anybody
2495 # maintain Libtool? --akim.
2503 echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2506 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2507 See \`config.log' for more details." >&5
2508 echo "$as_me: error: C compiler cannot create executables
2509 See \`config.log' for more details." >&2;}
2510 { (exit 77); exit 77; }; }
2513 ac_exeext=$ac_cv_exeext
2514 echo "$as_me:$LINENO: result: $ac_file" >&5
2515 echo "${ECHO_T}$ac_file" >&6
2517 # Check the compiler produces executables we can run. If not, either
2518 # the compiler is broken, or we cross compile.
2519 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2520 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2521 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2522 # If not cross compiling, check that we can run a simple program.
2523 if test "$cross_compiling" != yes; then
2524 if { ac_try='./$ac_file'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2532 if test "$cross_compiling" = maybe; then
2535 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2536 If you meant to cross compile, use \`--host'.
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: cannot run C compiled programs.
2539 If you meant to cross compile, use \`--host'.
2540 See \`config.log' for more details." >&2;}
2541 { (exit 1); exit 1; }; }
2545 echo "$as_me:$LINENO: result: yes" >&5
2546 echo "${ECHO_T}yes" >&6
2548 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2549 ac_clean_files=$ac_clean_files_save
2550 # Check the compiler produces executables we can run. If not, either
2551 # the compiler is broken, or we cross compile.
2552 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2553 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2554 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2555 echo "${ECHO_T}$cross_compiling" >&6
2557 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2558 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2560 (eval $ac_link) 2>&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; then
2564 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2565 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2566 # work properly (i.e., refer to `conftest.exe'), while it won't with
2568 for ac_file in conftest.exe conftest conftest.*; do
2569 test -f "$ac_file" || continue
2571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2572 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2579 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2580 See \`config.log' for more details." >&5
2581 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2582 See \`config.log' for more details." >&2;}
2583 { (exit 1); exit 1; }; }
2586 rm -f conftest$ac_cv_exeext
2587 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2588 echo "${ECHO_T}$ac_cv_exeext" >&6
2590 rm -f conftest.$ac_ext
2591 EXEEXT=$ac_cv_exeext
2593 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2594 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2595 if test "${ac_cv_objext+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 cat >conftest.$ac_ext <<_ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2613 rm -f conftest.o conftest.obj
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 (eval $ac_compile) 2>&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; then
2619 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2622 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2630 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2631 See \`config.log' for more details." >&5
2632 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2633 See \`config.log' for more details." >&2;}
2634 { (exit 1); exit 1; }; }
2637 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2639 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2640 echo "${ECHO_T}$ac_cv_objext" >&6
2641 OBJEXT=$ac_cv_objext
2643 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2644 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2645 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 cat >conftest.$ac_ext <<_ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>conftest.er1
2670 grep -v '^ *+' conftest.er1 >conftest.err
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -z "$ac_c_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2699 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2700 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2701 GCC=`test $ac_compiler_gnu = yes && echo yes`
2702 ac_test_CFLAGS=${CFLAGS+set}
2703 ac_save_CFLAGS=$CFLAGS
2705 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2706 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2707 if test "${ac_cv_prog_cc_g+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 cat >conftest.$ac_ext <<_ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727 (eval $ac_compile) 2>conftest.er1
2729 grep -v '^ *+' conftest.er1 >conftest.err
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 { ac_try='test -z "$ac_c_werror_flag"
2735 || test ! -s conftest.err'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; } &&
2741 { ac_try='test -s conftest.$ac_objext'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2756 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2757 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2758 if test "$ac_test_CFLAGS" = set; then
2759 CFLAGS=$ac_save_CFLAGS
2760 elif test $ac_cv_prog_cc_g = yes; then
2761 if test "$GCC" = yes; then
2767 if test "$GCC" = yes; then
2773 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2774 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2775 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 ac_cv_prog_cc_stdc=no
2780 cat >conftest.$ac_ext <<_ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h. */
2788 #include <sys/types.h>
2789 #include <sys/stat.h>
2790 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2791 struct buf { int x; };
2792 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2793 static char *e (p, i)
2799 static char *f (char * (*g) (char **, int), char **p, ...)
2804 s = g (p, va_arg (v,int));
2809 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2810 function prototypes and stuff, but not '\xHH' hex character constants.
2811 These don't provoke an error unfortunately, instead are silently treated
2812 as 'x'. The following induces an error, until -std1 is added to get
2813 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2814 array size at least. It's necessary to write '\x00'==0 to get something
2815 that's true only with -std1. */
2816 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2818 int test (int i, double x);
2819 struct s1 {int (*f) (int a);};
2820 struct s2 {int (*f) (double a);};
2821 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2827 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2832 # Don't try gcc -ansi; that turns off useful extensions and
2833 # breaks some systems' header files.
2834 # AIX -qlanglvl=ansi
2835 # Ultrix and OSF/1 -std1
2836 # HP-UX 10.20 and later -Ae
2837 # HP-UX older versions -Aa -D_HPUX_SOURCE
2838 # SVR4 -Xc -D__EXTENSIONS__
2839 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2841 CC="$ac_save_CC $ac_arg"
2842 rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844 (eval $ac_compile) 2>conftest.er1
2846 grep -v '^ *+' conftest.er1 >conftest.err
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
2851 { ac_try='test -z "$ac_c_werror_flag"
2852 || test ! -s conftest.err'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 ac_cv_prog_cc_stdc=$ac_arg
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2871 rm -f conftest.err conftest.$ac_objext
2873 rm -f conftest.$ac_ext conftest.$ac_objext
2878 case "x$ac_cv_prog_cc_stdc" in
2880 echo "$as_me:$LINENO: result: none needed" >&5
2881 echo "${ECHO_T}none needed" >&6 ;;
2883 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2884 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2885 CC="$CC $ac_cv_prog_cc_stdc" ;;
2888 # Some people use a C++ compiler to compile C. Since we use `exit',
2889 # in C++ we need to declare it. In case someone uses the same compiler
2890 # for both compiling C and C++ we need to have the C++ compiler decide
2891 # the declaration of exit, since it's the most demanding environment.
2892 cat >conftest.$ac_ext <<_ACEOF
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899 (eval $ac_compile) 2>conftest.er1
2901 grep -v '^ *+' conftest.er1 >conftest.err
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } &&
2906 { ac_try='test -z "$ac_c_werror_flag"
2907 || test ! -s conftest.err'
2908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; } &&
2913 { ac_try='test -s conftest.$ac_objext'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; }; then
2919 for ac_declaration in \
2921 'extern "C" void std::exit (int) throw (); using std::exit;' \
2922 'extern "C" void std::exit (int); using std::exit;' \
2923 'extern "C" void exit (int) throw ();' \
2924 'extern "C" void exit (int);' \
2927 cat >conftest.$ac_ext <<_ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2945 (eval $ac_compile) 2>conftest.er1
2947 grep -v '^ *+' conftest.er1 >conftest.err
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -z "$ac_c_werror_flag"
2953 || test ! -s conftest.err'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; } &&
2959 { ac_try='test -s conftest.$ac_objext'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; }; then
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2973 cat >conftest.$ac_ext <<_ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2988 rm -f conftest.$ac_objext
2989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2990 (eval $ac_compile) 2>conftest.er1
2992 grep -v '^ *+' conftest.er1 >conftest.err
2994 cat conftest.err >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); } &&
2997 { ac_try='test -z "$ac_c_werror_flag"
2998 || test ! -s conftest.err'
2999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; } &&
3004 { ac_try='test -s conftest.$ac_objext'
3005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; }; then
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3019 if test -n "$ac_declaration"; then
3020 echo '#ifdef __cplusplus' >>confdefs.h
3021 echo $ac_declaration >>confdefs.h
3022 echo '#endif' >>confdefs.h
3026 echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036 DEPDIR="${am__leading_dot}deps"
3038 ac_config_commands="$ac_config_commands depfiles"
3041 am_make=${MAKE-make}
3042 cat > confinc << 'END'
3047 # If we don't find an include directive, just comment out the code.
3048 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3049 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3053 # First try GNU make style include.
3054 echo "include confinc" > confmf
3055 # We grep out `Entering directory' and `Leaving directory'
3056 # messages which can occur if `w' ends up in MAKEFLAGS.
3057 # In particular we don't look at `^make:' because GNU make might
3058 # be invoked under some other name (usually "gmake"), in which
3059 # case it prints its new name instead of `make'.
3060 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3065 # Now try BSD make style include.
3066 if test "$am__include" = "#"; then
3067 echo '.include "confinc"' > confmf
3068 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3069 am__include=.include
3076 echo "$as_me:$LINENO: result: $_am_result" >&5
3077 echo "${ECHO_T}$_am_result" >&6
3078 rm -f confinc confmf
3080 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3081 if test "${enable_dependency_tracking+set}" = set; then
3082 enableval="$enable_dependency_tracking"
3085 if test "x$enable_dependency_tracking" != xno; then
3086 am_depcomp="$ac_aux_dir/depcomp"
3091 if test "x$enable_dependency_tracking" != xno; then
3102 depcc="$CC" am_compiler_list=
3104 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3105 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3106 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3110 # We make a subdir and do the tests there. Otherwise we can end up
3111 # making bogus files that we don't know about and never remove. For
3112 # instance it was reported that on HP-UX the gcc test will end up
3113 # making a dummy file named `D' -- because `-MD' means `put the output
3116 # Copy depcomp to subdir because otherwise we won't find it if we're
3117 # using a relative directory.
3118 cp "$am_depcomp" conftest.dir
3120 # We will build objects and dependencies in a subdirectory because
3121 # it helps to detect inapplicable dependency modes. For instance
3122 # both Tru64's cc and ICC support -MD to output dependencies as a
3123 # side effect of compilation, but ICC will put the dependencies in
3124 # the current directory while Tru64 will put them in the object
3128 am_cv_CC_dependencies_compiler_type=none
3129 if test "$am_compiler_list" = ""; then
3130 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3132 for depmode in $am_compiler_list; do
3133 # Setup a source with many dependencies, because some compilers
3134 # like to wrap large dependency lists on column 80 (with \), and
3135 # we should not choose a depcomp mode which is confused by this.
3137 # We need to recreate these files for each test, as the compiler may
3138 # overwrite some of them when testing with obscure command lines.
3139 # This happens at least with the AIX C compiler.
3141 for i in 1 2 3 4 5 6; do
3142 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3143 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3144 # Solaris 8's {/usr,}/bin/sh.
3145 touch sub/conftst$i.h
3147 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3151 # after this tag, mechanisms are not by side-effect, so they'll
3152 # only be used when explicitly requested
3153 if test "x$enable_dependency_tracking" = xyes; then
3161 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3162 # mode. It turns out that the SunPro C++ compiler does not properly
3163 # handle `-M -o', and we need to detect this.
3164 if depmode=$depmode \
3165 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3166 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3167 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3168 >/dev/null 2>conftest.err &&
3169 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3170 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3171 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3172 # icc doesn't choke on unknown options, it will just issue warnings
3173 # or remarks (even with -Werror). So we grep stderr for any message
3174 # that says an option was ignored or not supported.
3175 # When given -MP, icc 7.0 and 7.1 complain thusly:
3176 # icc: Command line warning: ignoring option '-M'; no argument required
3177 # The diagnosis changed in icc 8.0:
3178 # icc: Command line remark: option '-MP' not supported
3179 if (grep 'ignoring option' conftest.err ||
3180 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3181 am_cv_CC_dependencies_compiler_type=$depmode
3190 am_cv_CC_dependencies_compiler_type=none
3194 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3195 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3196 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3201 test "x$enable_dependency_tracking" != xno \
3202 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3204 am__fastdepCC_FALSE='#'
3206 am__fastdepCC_TRUE='#'
3207 am__fastdepCC_FALSE=
3212 ac_cpp='$CPP $CPPFLAGS'
3213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3217 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3218 # On Suns, sometimes $CPP names a directory.
3219 if test -n "$CPP" && test -d "$CPP"; then
3222 if test -z "$CPP"; then
3223 if test "${ac_cv_prog_CPP+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 # Double quotes because CPP needs to be expanded
3227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3230 for ac_c_preproc_warn_flag in '' yes
3232 # Use a header file that comes with gcc, so configuring glibc
3233 # with a fresh cross-compiler works.
3234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3235 # <limits.h> exists even on freestanding compilers.
3236 # On the NeXT, cc -E runs the code through the compiler's parser,
3237 # not just through cpp. "Syntax error" is here to catch this case.
3238 cat >conftest.$ac_ext <<_ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3245 # include <limits.h>
3247 # include <assert.h>
3251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3254 grep -v '^ *+' conftest.er1 >conftest.err
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then
3259 if test -s conftest.err; then
3260 ac_cpp_err=$ac_c_preproc_warn_flag
3261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3268 if test -z "$ac_cpp_err"; then
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 # Broken: fails on valid input.
3277 rm -f conftest.err conftest.$ac_ext
3279 # OK, works on sane cases. Now check whether non-existent headers
3280 # can be detected and how.
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include <ac_nonexistent.h>
3289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3292 grep -v '^ *+' conftest.er1 >conftest.err
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } >/dev/null; then
3297 if test -s conftest.err; then
3298 ac_cpp_err=$ac_c_preproc_warn_flag
3299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306 if test -z "$ac_cpp_err"; then
3307 # Broken: success on invalid input.
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3313 # Passes both tests.
3317 rm -f conftest.err conftest.$ac_ext
3320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3321 rm -f conftest.err conftest.$ac_ext
3322 if $ac_preproc_ok; then
3334 echo "$as_me:$LINENO: result: $CPP" >&5
3335 echo "${ECHO_T}$CPP" >&6
3337 for ac_c_preproc_warn_flag in '' yes
3339 # Use a header file that comes with gcc, so configuring glibc
3340 # with a fresh cross-compiler works.
3341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342 # <limits.h> exists even on freestanding compilers.
3343 # On the NeXT, cc -E runs the code through the compiler's parser,
3344 # not just through cpp. "Syntax error" is here to catch this case.
3345 cat >conftest.$ac_ext <<_ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3352 # include <limits.h>
3354 # include <assert.h>
3358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3361 grep -v '^ *+' conftest.er1 >conftest.err
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } >/dev/null; then
3366 if test -s conftest.err; then
3367 ac_cpp_err=$ac_c_preproc_warn_flag
3368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3375 if test -z "$ac_cpp_err"; then
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3381 # Broken: fails on valid input.
3384 rm -f conftest.err conftest.$ac_ext
3386 # OK, works on sane cases. Now check whether non-existent headers
3387 # can be detected and how.
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394 #include <ac_nonexistent.h>
3396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1 >conftest.err
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } >/dev/null; then
3404 if test -s conftest.err; then
3405 ac_cpp_err=$ac_c_preproc_warn_flag
3406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3413 if test -z "$ac_cpp_err"; then
3414 # Broken: success on invalid input.
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3420 # Passes both tests.
3424 rm -f conftest.err conftest.$ac_ext
3427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428 rm -f conftest.err conftest.$ac_ext
3429 if $ac_preproc_ok; then
3432 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3433 See \`config.log' for more details." >&5
3434 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3435 See \`config.log' for more details." >&2;}
3436 { (exit 1); exit 1; }; }
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3446 ac_cpp='$CXXCPP $CPPFLAGS'
3447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3450 if test -n "$ac_tool_prefix"; then
3451 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3455 echo "$as_me:$LINENO: checking for $ac_word" >&5
3456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3457 if test "${ac_cv_prog_CXX+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 if test -n "$CXX"; then
3461 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3470 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 if test -n "$CXX"; then
3481 echo "$as_me:$LINENO: result: $CXX" >&5
3482 echo "${ECHO_T}$CXX" >&6
3484 echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6
3488 test -n "$CXX" && break
3491 if test -z "$CXX"; then
3493 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3495 # Extract the first word of "$ac_prog", so it can be a program name with args.
3496 set dummy $ac_prog; ac_word=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 if test -n "$ac_ct_CXX"; then
3503 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_ac_ct_CXX="$ac_prog"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3522 if test -n "$ac_ct_CXX"; then
3523 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3524 echo "${ECHO_T}$ac_ct_CXX" >&6
3526 echo "$as_me:$LINENO: result: no" >&5
3527 echo "${ECHO_T}no" >&6
3530 test -n "$ac_ct_CXX" && break
3532 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3538 # Provide some information about the compiler.
3539 echo "$as_me:$LINENO:" \
3540 "checking for C++ compiler version" >&5
3541 ac_compiler=`set X $ac_compile; echo $2`
3542 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3543 (eval $ac_compiler --version </dev/null >&5) 2>&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }
3547 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3548 (eval $ac_compiler -v </dev/null >&5) 2>&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }
3552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3553 (eval $ac_compiler -V </dev/null >&5) 2>&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }
3558 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3559 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3560 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 cat >conftest.$ac_ext <<_ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3581 rm -f conftest.$ac_objext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583 (eval $ac_compile) 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try='test -z "$ac_cxx_werror_flag"
3591 || test ! -s conftest.err'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; } &&
3597 { ac_try='test -s conftest.$ac_objext'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; }; then
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3611 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3614 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3615 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3616 GXX=`test $ac_compiler_gnu = yes && echo yes`
3617 ac_test_CXXFLAGS=${CXXFLAGS+set}
3618 ac_save_CXXFLAGS=$CXXFLAGS
3620 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3621 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3622 if test "${ac_cv_prog_cxx_g+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 cat >conftest.$ac_ext <<_ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3640 rm -f conftest.$ac_objext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3642 (eval $ac_compile) 2>conftest.er1
3644 grep -v '^ *+' conftest.er1 >conftest.err
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
3649 { ac_try='test -z "$ac_cxx_werror_flag"
3650 || test ! -s conftest.err'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; } &&
3656 { ac_try='test -s conftest.$ac_objext'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3662 ac_cv_prog_cxx_g=yes
3664 echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3671 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3672 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3673 if test "$ac_test_CXXFLAGS" = set; then
3674 CXXFLAGS=$ac_save_CXXFLAGS
3675 elif test $ac_cv_prog_cxx_g = yes; then
3676 if test "$GXX" = yes; then
3682 if test "$GXX" = yes; then
3688 for ac_declaration in \
3690 'extern "C" void std::exit (int) throw (); using std::exit;' \
3691 'extern "C" void std::exit (int); using std::exit;' \
3692 'extern "C" void exit (int) throw ();' \
3693 'extern "C" void exit (int);' \
3696 cat >conftest.$ac_ext <<_ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3712 rm -f conftest.$ac_objext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714 (eval $ac_compile) 2>conftest.er1
3716 grep -v '^ *+' conftest.er1 >conftest.err
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } &&
3721 { ac_try='test -z "$ac_cxx_werror_flag"
3722 || test ! -s conftest.err'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; } &&
3728 { ac_try='test -s conftest.$ac_objext'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3742 cat >conftest.$ac_ext <<_ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3757 rm -f conftest.$ac_objext
3758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3759 (eval $ac_compile) 2>conftest.er1
3761 grep -v '^ *+' conftest.er1 >conftest.err
3763 cat conftest.err >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); } &&
3766 { ac_try='test -z "$ac_cxx_werror_flag"
3767 || test ! -s conftest.err'
3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; } &&
3773 { ac_try='test -s conftest.$ac_objext'
3774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; }; then
3781 echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3788 if test -n "$ac_declaration"; then
3789 echo '#ifdef __cplusplus' >>confdefs.h
3790 echo $ac_declaration >>confdefs.h
3791 echo '#endif' >>confdefs.h
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800 depcc="$CXX" am_compiler_list=
3802 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3803 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3804 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3808 # We make a subdir and do the tests there. Otherwise we can end up
3809 # making bogus files that we don't know about and never remove. For
3810 # instance it was reported that on HP-UX the gcc test will end up
3811 # making a dummy file named `D' -- because `-MD' means `put the output
3814 # Copy depcomp to subdir because otherwise we won't find it if we're
3815 # using a relative directory.
3816 cp "$am_depcomp" conftest.dir
3818 # We will build objects and dependencies in a subdirectory because
3819 # it helps to detect inapplicable dependency modes. For instance
3820 # both Tru64's cc and ICC support -MD to output dependencies as a
3821 # side effect of compilation, but ICC will put the dependencies in
3822 # the current directory while Tru64 will put them in the object
3826 am_cv_CXX_dependencies_compiler_type=none
3827 if test "$am_compiler_list" = ""; then
3828 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3830 for depmode in $am_compiler_list; do
3831 # Setup a source with many dependencies, because some compilers
3832 # like to wrap large dependency lists on column 80 (with \), and
3833 # we should not choose a depcomp mode which is confused by this.
3835 # We need to recreate these files for each test, as the compiler may
3836 # overwrite some of them when testing with obscure command lines.
3837 # This happens at least with the AIX C compiler.
3839 for i in 1 2 3 4 5 6; do
3840 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3841 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3842 # Solaris 8's {/usr,}/bin/sh.
3843 touch sub/conftst$i.h
3845 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3849 # after this tag, mechanisms are not by side-effect, so they'll
3850 # only be used when explicitly requested
3851 if test "x$enable_dependency_tracking" = xyes; then
3859 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3860 # mode. It turns out that the SunPro C++ compiler does not properly
3861 # handle `-M -o', and we need to detect this.
3862 if depmode=$depmode \
3863 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3864 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3865 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3866 >/dev/null 2>conftest.err &&
3867 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3868 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3869 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3870 # icc doesn't choke on unknown options, it will just issue warnings
3871 # or remarks (even with -Werror). So we grep stderr for any message
3872 # that says an option was ignored or not supported.
3873 # When given -MP, icc 7.0 and 7.1 complain thusly:
3874 # icc: Command line warning: ignoring option '-M'; no argument required
3875 # The diagnosis changed in icc 8.0:
3876 # icc: Command line remark: option '-MP' not supported
3877 if (grep 'ignoring option' conftest.err ||
3878 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3879 am_cv_CXX_dependencies_compiler_type=$depmode
3888 am_cv_CXX_dependencies_compiler_type=none
3892 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3893 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3894 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3899 test "x$enable_dependency_tracking" != xno \
3900 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3901 am__fastdepCXX_TRUE=
3902 am__fastdepCXX_FALSE='#'
3904 am__fastdepCXX_TRUE='#'
3905 am__fastdepCXX_FALSE=
3910 ac_cpp='$CXXCPP $CPPFLAGS'
3911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3914 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3915 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3916 if test -z "$CXXCPP"; then
3917 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 # Double quotes because CXXCPP needs to be expanded
3921 for CXXCPP in "$CXX -E" "/lib/cpp"
3924 for ac_cxx_preproc_warn_flag in '' yes
3926 # Use a header file that comes with gcc, so configuring glibc
3927 # with a fresh cross-compiler works.
3928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3929 # <limits.h> exists even on freestanding compilers.
3930 # On the NeXT, cc -E runs the code through the compiler's parser,
3931 # not just through cpp. "Syntax error" is here to catch this case.
3932 cat >conftest.$ac_ext <<_ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3939 # include <limits.h>
3941 # include <assert.h>
3945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3948 grep -v '^ *+' conftest.er1 >conftest.err
3950 cat conftest.err >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } >/dev/null; then
3953 if test -s conftest.err; then
3954 ac_cpp_err=$ac_cxx_preproc_warn_flag
3955 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3962 if test -z "$ac_cpp_err"; then
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3968 # Broken: fails on valid input.
3971 rm -f conftest.err conftest.$ac_ext
3973 # OK, works on sane cases. Now check whether non-existent headers
3974 # can be detected and how.
3975 cat >conftest.$ac_ext <<_ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 #include <ac_nonexistent.h>
3983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3986 grep -v '^ *+' conftest.er1 >conftest.err
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } >/dev/null; then
3991 if test -s conftest.err; then
3992 ac_cpp_err=$ac_cxx_preproc_warn_flag
3993 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4000 if test -z "$ac_cpp_err"; then
4001 # Broken: success on invalid input.
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4007 # Passes both tests.
4011 rm -f conftest.err conftest.$ac_ext
4014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4015 rm -f conftest.err conftest.$ac_ext
4016 if $ac_preproc_ok; then
4021 ac_cv_prog_CXXCPP=$CXXCPP
4024 CXXCPP=$ac_cv_prog_CXXCPP
4026 ac_cv_prog_CXXCPP=$CXXCPP
4028 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4029 echo "${ECHO_T}$CXXCPP" >&6
4031 for ac_cxx_preproc_warn_flag in '' yes
4033 # Use a header file that comes with gcc, so configuring glibc
4034 # with a fresh cross-compiler works.
4035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4036 # <limits.h> exists even on freestanding compilers.
4037 # On the NeXT, cc -E runs the code through the compiler's parser,
4038 # not just through cpp. "Syntax error" is here to catch this case.
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4046 # include <limits.h>
4048 # include <assert.h>
4052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4055 grep -v '^ *+' conftest.er1 >conftest.err
4057 cat conftest.err >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } >/dev/null; then
4060 if test -s conftest.err; then
4061 ac_cpp_err=$ac_cxx_preproc_warn_flag
4062 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4069 if test -z "$ac_cpp_err"; then
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4075 # Broken: fails on valid input.
4078 rm -f conftest.err conftest.$ac_ext
4080 # OK, works on sane cases. Now check whether non-existent headers
4081 # can be detected and how.
4082 cat >conftest.$ac_ext <<_ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h. */
4088 #include <ac_nonexistent.h>
4090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4093 grep -v '^ *+' conftest.er1 >conftest.err
4095 cat conftest.err >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } >/dev/null; then
4098 if test -s conftest.err; then
4099 ac_cpp_err=$ac_cxx_preproc_warn_flag
4100 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4107 if test -z "$ac_cpp_err"; then
4108 # Broken: success on invalid input.
4111 echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4114 # Passes both tests.
4118 rm -f conftest.err conftest.$ac_ext
4121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4122 rm -f conftest.err conftest.$ac_ext
4123 if $ac_preproc_ok; then
4126 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4127 See \`config.log' for more details." >&5
4128 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4129 See \`config.log' for more details." >&2;}
4130 { (exit 1); exit 1; }; }
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139 # Find a good install program. We prefer a C program (faster),
4140 # so one script is as good as another. But avoid the broken or
4141 # incompatible versions:
4142 # SysV /etc/install, /usr/sbin/install
4143 # SunOS /usr/etc/install
4144 # IRIX /sbin/install
4146 # AmigaOS /C/install, which installs bootblocks on floppy discs
4147 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4148 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4149 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4150 # OS/2's system install, which has a completely different semantic
4151 # ./install, which can be erroneously created by make from ./install.sh.
4152 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4153 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4154 if test -z "$INSTALL"; then
4155 if test "${ac_cv_path_install+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 test -z "$as_dir" && as_dir=.
4163 # Account for people who put trailing slashes in PATH elements.
4165 ./ | .// | /cC/* | \
4166 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4167 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4170 # OSF1 and SCO ODT 3.0 have their own names for install.
4171 # Don't use installbsd from OSF since it installs stuff as root
4173 for ac_prog in ginstall scoinst install; do
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4176 if test $ac_prog = install &&
4177 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4178 # AIX install. It has an incompatible calling convention.
4180 elif test $ac_prog = install &&
4181 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4182 # program-specific install script used by HP pwplus--don't use.
4185 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4197 if test "${ac_cv_path_install+set}" = set; then
4198 INSTALL=$ac_cv_path_install
4200 # As a last resort, use the slow shell script. We don't cache a
4201 # path for INSTALL within a source directory, because that will
4202 # break other packages using the cache if that directory is
4203 # removed, or if the path is relative.
4204 INSTALL=$ac_install_sh
4207 echo "$as_me:$LINENO: result: $INSTALL" >&5
4208 echo "${ECHO_T}$INSTALL" >&6
4210 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4211 # It thinks the first close brace ends the variable substitution.
4212 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4214 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4216 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4218 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4219 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4221 if test "$LN_S" = "ln -s"; then
4222 echo "$as_me:$LINENO: result: yes" >&5
4223 echo "${ECHO_T}yes" >&6
4225 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4226 echo "${ECHO_T}no, using $LN_S" >&6
4229 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4230 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4231 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4232 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 cat >conftest.make <<\_ACEOF
4237 @echo 'ac_maketemp="$(MAKE)"'
4239 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4240 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4241 if test -n "$ac_maketemp"; then
4242 eval ac_cv_prog_make_${ac_make}_set=yes
4244 eval ac_cv_prog_make_${ac_make}_set=no
4248 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4249 echo "$as_me:$LINENO: result: yes" >&5
4250 echo "${ECHO_T}yes" >&6
4253 echo "$as_me:$LINENO: result: no" >&5
4254 echo "${ECHO_T}no" >&6
4255 SET_MAKE="MAKE=${MAKE-make}"
4260 # Extract the first word of "$ac_prog", so it can be a program name with args.
4261 set dummy $ac_prog; ac_word=$2
4262 echo "$as_me:$LINENO: checking for $ac_word" >&5
4263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4264 if test "${ac_cv_path_PERL+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 PERL=$ac_cv_path_PERL
4291 if test -n "$PERL"; then
4292 echo "$as_me:$LINENO: result: $PERL" >&5
4293 echo "${ECHO_T}$PERL" >&6
4295 echo "$as_me:$LINENO: result: no" >&5
4296 echo "${ECHO_T}no" >&6
4299 test -n "$PERL" && break
4301 test -n "$PERL" || PERL="perl"
4303 # Check whether --enable-shared or --disable-shared was given.
4304 if test "${enable_shared+set}" = set; then
4305 enableval="$enable_shared"
4306 p=${PACKAGE-default}
4308 yes) enable_shared=yes ;;
4309 no) enable_shared=no ;;
4312 # Look at the argument we got. We use all the common list separators.
4313 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4314 for pkg in $enableval; do
4316 if test "X$pkg" = "X$p"; then
4327 # Check whether --enable-static or --disable-static was given.
4328 if test "${enable_static+set}" = set; then
4329 enableval="$enable_static"
4330 p=${PACKAGE-default}
4332 yes) enable_static=yes ;;
4333 no) enable_static=no ;;
4336 # Look at the argument we got. We use all the common list separators.
4337 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4338 for pkg in $enableval; do
4340 if test "X$pkg" = "X$p"; then
4351 # Check whether --enable-fast-install or --disable-fast-install was given.
4352 if test "${enable_fast_install+set}" = set; then
4353 enableval="$enable_fast_install"
4354 p=${PACKAGE-default}
4356 yes) enable_fast_install=yes ;;
4357 no) enable_fast_install=no ;;
4359 enable_fast_install=no
4360 # Look at the argument we got. We use all the common list separators.
4361 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4362 for pkg in $enableval; do
4364 if test "X$pkg" = "X$p"; then
4365 enable_fast_install=yes
4372 enable_fast_install=yes
4375 # Make sure we can run config.sub.
4376 $ac_config_sub sun4 >/dev/null 2>&1 ||
4377 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4378 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4379 { (exit 1); exit 1; }; }
4381 echo "$as_me:$LINENO: checking build system type" >&5
4382 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4383 if test "${ac_cv_build+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 ac_cv_build_alias=$build_alias
4387 test -z "$ac_cv_build_alias" &&
4388 ac_cv_build_alias=`$ac_config_guess`
4389 test -z "$ac_cv_build_alias" &&
4390 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4391 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4392 { (exit 1); exit 1; }; }
4393 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4394 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4395 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4396 { (exit 1); exit 1; }; }
4399 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4400 echo "${ECHO_T}$ac_cv_build" >&6
4402 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4403 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4404 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4407 echo "$as_me:$LINENO: checking host system type" >&5
4408 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4409 if test "${ac_cv_host+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 ac_cv_host_alias=$host_alias
4413 test -z "$ac_cv_host_alias" &&
4414 ac_cv_host_alias=$ac_cv_build_alias
4415 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4416 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4417 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4418 { (exit 1); exit 1; }; }
4421 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4422 echo "${ECHO_T}$ac_cv_host" >&6
4424 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4425 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4426 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4429 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4430 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4431 if test "${lt_cv_path_SED+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 # Loop through the user's path and test for sed and gsed.
4435 # Then use that list of sed's as ones to test for truncation.
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 test -z "$as_dir" && as_dir=.
4441 for lt_ac_prog in sed gsed; do
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4444 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4451 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4452 # along with /bin/sed that truncates output.
4453 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4454 test ! -f $lt_ac_sed && continue
4455 cat /dev/null > conftest.in
4457 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4458 # Check for GNU sed and select it if it is found.
4459 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4460 lt_cv_path_SED=$lt_ac_sed
4464 cat conftest.in conftest.in >conftest.tmp
4465 mv conftest.tmp conftest.in
4466 cp conftest.in conftest.nl
4468 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4469 cmp -s conftest.out conftest.nl || break
4470 # 10000 chars as input seems more than enough
4471 test $lt_ac_count -gt 10 && break
4472 lt_ac_count=`expr $lt_ac_count + 1`
4473 if test $lt_ac_count -gt $lt_ac_max; then
4474 lt_ac_max=$lt_ac_count
4475 lt_cv_path_SED=$lt_ac_sed
4483 echo "$as_me:$LINENO: result: $SED" >&5
4484 echo "${ECHO_T}$SED" >&6
4486 echo "$as_me:$LINENO: checking for egrep" >&5
4487 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4488 if test "${ac_cv_prog_egrep+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4492 then ac_cv_prog_egrep='grep -E'
4493 else ac_cv_prog_egrep='egrep'
4496 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4497 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4498 EGREP=$ac_cv_prog_egrep
4502 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4503 if test "${with_gnu_ld+set}" = set; then
4504 withval="$with_gnu_ld"
4505 test "$withval" = no || with_gnu_ld=yes
4510 if test "$GCC" = yes; then
4511 # Check if gcc -print-prog-name=ld gives a path.
4512 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4513 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4516 # gcc leaves a trailing carriage return which upsets mingw
4517 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4519 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4522 # Accept absolute paths.
4524 re_direlt='/[^/][^/]*/\.\./'
4525 # Canonicalize the pathname of ld
4526 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4527 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4528 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4530 test -z "$LD" && LD="$ac_prog"
4533 # If it fails, then pretend we aren't using GCC.
4537 # If it is relative, then search for the first ld in PATH.
4541 elif test "$with_gnu_ld" = yes; then
4542 echo "$as_me:$LINENO: checking for GNU ld" >&5
4543 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4545 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4546 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4548 if test "${lt_cv_path_LD+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 if test -z "$LD"; then
4552 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4553 for ac_dir in $PATH; do
4555 test -z "$ac_dir" && ac_dir=.
4556 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4557 lt_cv_path_LD="$ac_dir/$ac_prog"
4558 # Check to see if the program is GNU ld. I'd rather use --version,
4559 # but apparently some variants of GNU ld only accept -v.
4560 # Break only if it was the GNU/non-GNU ld that we prefer.
4561 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4562 *GNU* | *'with BFD'*)
4563 test "$with_gnu_ld" != no && break
4566 test "$with_gnu_ld" != yes && break
4573 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4578 if test -n "$LD"; then
4579 echo "$as_me:$LINENO: result: $LD" >&5
4580 echo "${ECHO_T}$LD" >&6
4582 echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6
4585 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4586 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4587 { (exit 1); exit 1; }; }
4588 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4589 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4590 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4594 case `$LD -v 2>&1 </dev/null` in
4595 *GNU* | *'with BFD'*)
4596 lt_cv_prog_gnu_ld=yes
4599 lt_cv_prog_gnu_ld=no
4603 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4604 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4605 with_gnu_ld=$lt_cv_prog_gnu_ld
4608 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4609 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4610 if test "${lt_cv_ld_reload_flag+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 lt_cv_ld_reload_flag='-r'
4615 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4616 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4617 reload_flag=$lt_cv_ld_reload_flag
4618 case $reload_flag in
4620 *) reload_flag=" $reload_flag" ;;
4622 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4625 if test "$GCC" = yes; then
4626 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4628 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4633 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4634 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4635 if test "${lt_cv_path_NM+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 if test -n "$NM"; then
4639 # Let the user override the test.
4642 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4643 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4645 test -z "$ac_dir" && ac_dir=.
4646 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4647 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4648 # Check to see if the nm accepts a BSD-compat flag.
4649 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4650 # nm: unknown option "B" ignored
4651 # Tru64's nm complains that /dev/null is an invalid object file
4652 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4653 */dev/null* | *'Invalid file or object type'*)
4654 lt_cv_path_NM="$tmp_nm -B"
4658 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4660 lt_cv_path_NM="$tmp_nm -p"
4664 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4665 continue # so that we can try to find one that supports BSD flags
4672 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4675 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4676 echo "${ECHO_T}$lt_cv_path_NM" >&6
4679 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4680 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4681 if test "${lt_cv_deplibs_check_method+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 lt_cv_file_magic_cmd='$MAGIC_CMD'
4685 lt_cv_file_magic_test_file=
4686 lt_cv_deplibs_check_method='unknown'
4687 # Need to set the preceding variable on all platforms that support
4688 # interlibrary dependencies.
4689 # 'none' -- dependencies not supported.
4690 # `unknown' -- same as none, but documents that we really don't know.
4691 # 'pass_all' -- all dependencies passed with no checks.
4692 # 'test_compile' -- check by making test program.
4693 # 'file_magic [[regex]]' -- check by looking for files in library path
4694 # which responds to the $file_magic_cmd with a given extended regex.
4695 # If you have `file' or equivalent on your system and you're not sure
4696 # whether `pass_all' will *always* work, you probably want this one.
4700 lt_cv_deplibs_check_method=pass_all
4704 lt_cv_deplibs_check_method=pass_all
4708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4709 lt_cv_file_magic_cmd='/usr/bin/file -L'
4710 lt_cv_file_magic_test_file=/shlib/libc.so
4714 # func_win32_libid is a shell function defined in ltmain.sh
4715 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4716 lt_cv_file_magic_cmd='func_win32_libid'
4720 # Base MSYS/MinGW do not provide the 'file' command needed by
4721 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4722 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4723 lt_cv_file_magic_cmd='$OBJDUMP -f'
4726 darwin* | rhapsody*)
4727 lt_cv_deplibs_check_method=pass_all
4730 freebsd* | kfreebsd*-gnu | dragonfly*)
4731 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4734 # Not sure whether the presence of OpenBSD here was a mistake.
4735 # Let's accept both of them until this is cleared up.
4736 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4737 lt_cv_file_magic_cmd=/usr/bin/file
4738 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4742 lt_cv_deplibs_check_method=pass_all
4747 lt_cv_deplibs_check_method=pass_all
4750 hpux10.20* | hpux11*)
4751 lt_cv_file_magic_cmd=/usr/bin/file
4754 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4755 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4758 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]'
4759 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4762 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4763 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4768 irix5* | irix6* | nonstopux*)
4770 *-32|*"-32 ") libmagic=32-bit;;
4771 *-n32|*"-n32 ") libmagic=N32;;
4772 *-64|*"-64 ") libmagic=64-bit;;
4773 *) libmagic=never-match;;
4775 lt_cv_deplibs_check_method=pass_all
4778 # This must be Linux ELF.
4780 lt_cv_deplibs_check_method=pass_all
4784 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4785 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4793 lt_cv_file_magic_cmd=/usr/bin/file
4794 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4798 lt_cv_deplibs_check_method=unknown
4802 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4803 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4809 osf3* | osf4* | osf5*)
4810 lt_cv_deplibs_check_method=pass_all
4814 lt_cv_deplibs_check_method=pass_all
4818 lt_cv_deplibs_check_method=pass_all
4821 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4822 case $host_vendor in
4824 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]'
4825 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4828 lt_cv_deplibs_check_method=pass_all
4831 lt_cv_file_magic_cmd='/bin/file'
4832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4835 lt_cv_file_magic_cmd='/bin/file'
4836 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4837 lt_cv_file_magic_test_file=/lib/libc.so
4840 lt_cv_deplibs_check_method=pass_all
4845 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4846 lt_cv_deplibs_check_method=pass_all
4851 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4852 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4853 file_magic_cmd=$lt_cv_file_magic_cmd
4854 deplibs_check_method=$lt_cv_deplibs_check_method
4855 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4860 # If no C compiler was specified, use CC.
4863 # Allow CC to be a program name with arguments.
4867 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4868 if test "${enable_libtool_lock+set}" = set; then
4869 enableval="$enable_libtool_lock"
4872 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4874 # Some flags need to be propagated to the compiler or linker for good
4878 # Find out which ABI we are using.
4879 echo 'int i;' > conftest.$ac_ext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881 (eval $ac_compile) 2>&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; then
4885 case `/usr/bin/file conftest.$ac_objext` in
4897 # Find out which ABI we are using.
4898 echo '#line 4898 "configure"' > conftest.$ac_ext
4899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900 (eval $ac_compile) 2>&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; then
4904 if test "$lt_cv_prog_gnu_ld" = yes; then
4905 case `/usr/bin/file conftest.$ac_objext` in
4907 LD="${LD-ld} -melf32bsmip"
4910 LD="${LD-ld} -melf32bmipn32"
4913 LD="${LD-ld} -melf64bmip"
4917 case `/usr/bin/file conftest.$ac_objext` in
4933 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4934 # Find out which ABI we are using.
4935 echo 'int i;' > conftest.$ac_ext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937 (eval $ac_compile) 2>&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; then
4941 case `/usr/bin/file conftest.o` in
4945 LD="${LD-ld} -m elf_i386"
4947 ppc64-*linux*|powerpc64-*linux*)
4948 LD="${LD-ld} -m elf32ppclinux"
4951 LD="${LD-ld} -m elf_s390"
4954 LD="${LD-ld} -m elf32_sparc"
4961 LD="${LD-ld} -m elf_x86_64"
4963 ppc*-*linux*|powerpc*-*linux*)
4964 LD="${LD-ld} -m elf64ppc"
4967 LD="${LD-ld} -m elf64_s390"
4970 LD="${LD-ld} -m elf64_sparc"
4980 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4981 SAVE_CFLAGS="$CFLAGS"
4982 CFLAGS="$CFLAGS -belf"
4983 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4984 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4985 if test "${lt_cv_cc_needs_belf+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 ac_cpp='$CPP $CPPFLAGS'
4990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4994 cat >conftest.$ac_ext <<_ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5009 rm -f conftest.$ac_objext conftest$ac_exeext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5011 (eval $ac_link) 2>conftest.er1
5013 grep -v '^ *+' conftest.er1 >conftest.err
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try='test -z "$ac_c_werror_flag"
5019 || test ! -s conftest.err'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; } &&
5025 { ac_try='test -s conftest$ac_exeext'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; }; then
5031 lt_cv_cc_needs_belf=yes
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5036 lt_cv_cc_needs_belf=no
5038 rm -f conftest.err conftest.$ac_objext \
5039 conftest$ac_exeext conftest.$ac_ext
5041 ac_cpp='$CPP $CPPFLAGS'
5042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5047 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5048 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5049 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5050 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5051 CFLAGS="$SAVE_CFLAGS"
5057 need_locks="$enable_libtool_lock"
5061 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5062 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5063 if test "${ac_cv_header_stdc+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 cat >conftest.$ac_ext <<_ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5085 rm -f conftest.$ac_objext
5086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5087 (eval $ac_compile) 2>conftest.er1
5089 grep -v '^ *+' conftest.er1 >conftest.err
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } &&
5094 { ac_try='test -z "$ac_c_werror_flag"
5095 || test ! -s conftest.err'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; } &&
5101 { ac_try='test -s conftest.$ac_objext'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; }; then
5107 ac_cv_header_stdc=yes
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5112 ac_cv_header_stdc=no
5114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5116 if test $ac_cv_header_stdc = yes; then
5117 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5118 cat >conftest.$ac_ext <<_ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h. */
5127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5128 $EGREP "memchr" >/dev/null 2>&1; then
5131 ac_cv_header_stdc=no
5137 if test $ac_cv_header_stdc = yes; then
5138 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5139 cat >conftest.$ac_ext <<_ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5149 $EGREP "free" >/dev/null 2>&1; then
5152 ac_cv_header_stdc=no
5158 if test $ac_cv_header_stdc = yes; then
5159 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5160 if test "$cross_compiling" = yes; then
5163 cat >conftest.$ac_ext <<_ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5170 #if ((' ' & 0x0FF) == 0x020)
5171 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5172 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5174 # define ISLOWER(c) \
5175 (('a' <= (c) && (c) <= 'i') \
5176 || ('j' <= (c) && (c) <= 'r') \
5177 || ('s' <= (c) && (c) <= 'z'))
5178 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5186 for (i = 0; i < 256; i++)
5187 if (XOR (islower (i), ISLOWER (i))
5188 || toupper (i) != TOUPPER (i))
5193 rm -f conftest$ac_exeext
5194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5195 (eval $ac_link) 2>&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5206 echo "$as_me: program exited with status $ac_status" >&5
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5211 ac_cv_header_stdc=no
5213 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5217 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5218 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5219 if test $ac_cv_header_stdc = yes; then
5221 cat >>confdefs.h <<\_ACEOF
5222 #define STDC_HEADERS 1
5227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5237 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5238 inttypes.h stdint.h unistd.h
5240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5241 echo "$as_me:$LINENO: checking for $ac_header" >&5
5242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 cat >conftest.$ac_ext <<_ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5252 $ac_includes_default
5254 #include <$ac_header>
5256 rm -f conftest.$ac_objext
5257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5258 (eval $ac_compile) 2>conftest.er1
5260 grep -v '^ *+' conftest.er1 >conftest.err
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } &&
5265 { ac_try='test -z "$ac_c_werror_flag"
5266 || test ! -s conftest.err'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; } &&
5272 { ac_try='test -s conftest.$ac_objext'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5278 eval "$as_ac_Header=yes"
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5283 eval "$as_ac_Header=no"
5285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5290 cat >>confdefs.h <<_ACEOF
5291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5300 for ac_header in dlfcn.h
5302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5304 echo "$as_me:$LINENO: checking for $ac_header" >&5
5305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5312 # Is the header compilable?
5313 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5315 cat >conftest.$ac_ext <<_ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 $ac_includes_default
5322 #include <$ac_header>
5324 rm -f conftest.$ac_objext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5326 (eval $ac_compile) 2>conftest.er1
5328 grep -v '^ *+' conftest.er1 >conftest.err
5330 cat conftest.err >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } &&
5333 { ac_try='test -z "$ac_c_werror_flag"
5334 || test ! -s conftest.err'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; } &&
5340 { ac_try='test -s conftest.$ac_objext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5346 ac_header_compiler=yes
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5351 ac_header_compiler=no
5353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5355 echo "${ECHO_T}$ac_header_compiler" >&6
5357 # Is the header present?
5358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5360 cat >conftest.$ac_ext <<_ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 #include <$ac_header>
5368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5371 grep -v '^ *+' conftest.er1 >conftest.err
5373 cat conftest.err >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } >/dev/null; then
5376 if test -s conftest.err; then
5377 ac_cpp_err=$ac_c_preproc_warn_flag
5378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5385 if test -z "$ac_cpp_err"; then
5386 ac_header_preproc=yes
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5391 ac_header_preproc=no
5393 rm -f conftest.err conftest.$ac_ext
5394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5395 echo "${ECHO_T}$ac_header_preproc" >&6
5397 # So? What about this header?
5398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5404 ac_header_preproc=yes
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5414 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5421 ## ------------------------------------------ ##
5422 ## Report this to the AC_PACKAGE_NAME lists. ##
5423 ## ------------------------------------------ ##
5426 sed "s/^/$as_me: WARNING: /" >&2
5429 echo "$as_me:$LINENO: checking for $ac_header" >&5
5430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 eval "$as_ac_Header=\$ac_header_preproc"
5436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5441 cat >>confdefs.h <<_ACEOF
5442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5451 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5452 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5453 (test "X$CXX" != "Xg++"))) ; then
5455 ac_cpp='$CXXCPP $CPPFLAGS'
5456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5459 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5460 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5461 if test -z "$CXXCPP"; then
5462 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 # Double quotes because CXXCPP needs to be expanded
5466 for CXXCPP in "$CXX -E" "/lib/cpp"
5469 for ac_cxx_preproc_warn_flag in '' yes
5471 # Use a header file that comes with gcc, so configuring glibc
5472 # with a fresh cross-compiler works.
5473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5474 # <limits.h> exists even on freestanding compilers.
5475 # On the NeXT, cc -E runs the code through the compiler's parser,
5476 # not just through cpp. "Syntax error" is here to catch this case.
5477 cat >conftest.$ac_ext <<_ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h. */
5484 # include <limits.h>
5486 # include <assert.h>
5490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5493 grep -v '^ *+' conftest.er1 >conftest.err
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } >/dev/null; then
5498 if test -s conftest.err; then
5499 ac_cpp_err=$ac_cxx_preproc_warn_flag
5500 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5507 if test -z "$ac_cpp_err"; then
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 # Broken: fails on valid input.
5516 rm -f conftest.err conftest.$ac_ext
5518 # OK, works on sane cases. Now check whether non-existent headers
5519 # can be detected and how.
5520 cat >conftest.$ac_ext <<_ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526 #include <ac_nonexistent.h>
5528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5531 grep -v '^ *+' conftest.er1 >conftest.err
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } >/dev/null; then
5536 if test -s conftest.err; then
5537 ac_cpp_err=$ac_cxx_preproc_warn_flag
5538 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5545 if test -z "$ac_cpp_err"; then
5546 # Broken: success on invalid input.
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5552 # Passes both tests.
5556 rm -f conftest.err conftest.$ac_ext
5559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5560 rm -f conftest.err conftest.$ac_ext
5561 if $ac_preproc_ok; then
5566 ac_cv_prog_CXXCPP=$CXXCPP
5569 CXXCPP=$ac_cv_prog_CXXCPP
5571 ac_cv_prog_CXXCPP=$CXXCPP
5573 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5574 echo "${ECHO_T}$CXXCPP" >&6
5576 for ac_cxx_preproc_warn_flag in '' yes
5578 # Use a header file that comes with gcc, so configuring glibc
5579 # with a fresh cross-compiler works.
5580 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5581 # <limits.h> exists even on freestanding compilers.
5582 # On the NeXT, cc -E runs the code through the compiler's parser,
5583 # not just through cpp. "Syntax error" is here to catch this case.
5584 cat >conftest.$ac_ext <<_ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5591 # include <limits.h>
5593 # include <assert.h>
5597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5600 grep -v '^ *+' conftest.er1 >conftest.err
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } >/dev/null; then
5605 if test -s conftest.err; then
5606 ac_cpp_err=$ac_cxx_preproc_warn_flag
5607 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5614 if test -z "$ac_cpp_err"; then
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5620 # Broken: fails on valid input.
5623 rm -f conftest.err conftest.$ac_ext
5625 # OK, works on sane cases. Now check whether non-existent headers
5626 # can be detected and how.
5627 cat >conftest.$ac_ext <<_ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5633 #include <ac_nonexistent.h>
5635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5638 grep -v '^ *+' conftest.er1 >conftest.err
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } >/dev/null; then
5643 if test -s conftest.err; then
5644 ac_cpp_err=$ac_cxx_preproc_warn_flag
5645 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5652 if test -z "$ac_cpp_err"; then
5653 # Broken: success on invalid input.
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5659 # Passes both tests.
5663 rm -f conftest.err conftest.$ac_ext
5666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5667 rm -f conftest.err conftest.$ac_ext
5668 if $ac_preproc_ok; then
5671 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5672 See \`config.log' for more details." >&5
5673 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5674 See \`config.log' for more details." >&2;}
5675 { (exit 1); exit 1; }; }
5679 ac_cpp='$CXXCPP $CPPFLAGS'
5680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5688 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5689 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5690 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5691 if test -n "$ac_tool_prefix"; then
5692 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5696 echo "$as_me:$LINENO: checking for $ac_word" >&5
5697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5698 if test "${ac_cv_prog_F77+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 if test -n "$F77"; then
5702 ac_cv_prog_F77="$F77" # Let the user override the test.
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 if test -n "$F77"; then
5722 echo "$as_me:$LINENO: result: $F77" >&5
5723 echo "${ECHO_T}$F77" >&6
5725 echo "$as_me:$LINENO: result: no" >&5
5726 echo "${ECHO_T}no" >&6
5729 test -n "$F77" && break
5732 if test -z "$F77"; then
5734 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5736 # Extract the first word of "$ac_prog", so it can be a program name with args.
5737 set dummy $ac_prog; ac_word=$2
5738 echo "$as_me:$LINENO: checking for $ac_word" >&5
5739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5740 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 if test -n "$ac_ct_F77"; then
5744 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753 ac_cv_prog_ac_ct_F77="$ac_prog"
5754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5763 if test -n "$ac_ct_F77"; then
5764 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5765 echo "${ECHO_T}$ac_ct_F77" >&6
5767 echo "$as_me:$LINENO: result: no" >&5
5768 echo "${ECHO_T}no" >&6
5771 test -n "$ac_ct_F77" && break
5778 # Provide some information about the compiler.
5779 echo "$as_me:5779:" \
5780 "checking for Fortran 77 compiler version" >&5
5781 ac_compiler=`set X $ac_compile; echo $2`
5782 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5783 (eval $ac_compiler --version </dev/null >&5) 2>&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }
5787 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5788 (eval $ac_compiler -v </dev/null >&5) 2>&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }
5792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5793 (eval $ac_compiler -V </dev/null >&5) 2>&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }
5799 # If we don't use `.F' as extension, the preprocessor is not run on the
5800 # input file. (Note that this only needs to work for GNU compilers.)
5803 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5804 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5805 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 cat >conftest.$ac_ext <<_ACEOF
5816 rm -f conftest.$ac_objext
5817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5818 (eval $ac_compile) 2>conftest.er1
5820 grep -v '^ *+' conftest.er1 >conftest.err
5822 cat conftest.err >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } &&
5825 { ac_try='test -z "$ac_f77_werror_flag"
5826 || test ! -s conftest.err'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; } &&
5832 { ac_try='test -s conftest.$ac_objext'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; }; then
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5846 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5849 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5850 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5852 ac_test_FFLAGS=${FFLAGS+set}
5853 ac_save_FFLAGS=$FFLAGS
5855 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5856 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5857 if test "${ac_cv_prog_f77_g+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 cat >conftest.$ac_ext <<_ACEOF
5866 rm -f conftest.$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868 (eval $ac_compile) 2>conftest.er1
5870 grep -v '^ *+' conftest.er1 >conftest.err
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try='test -z "$ac_f77_werror_flag"
5876 || test ! -s conftest.err'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest.$ac_objext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 ac_cv_prog_f77_g=yes
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5898 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5899 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5900 if test "$ac_test_FFLAGS" = set; then
5901 FFLAGS=$ac_save_FFLAGS
5902 elif test $ac_cv_prog_f77_g = yes; then
5903 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5909 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5916 G77=`test $ac_compiler_gnu = yes && echo yes`
5918 ac_cpp='$CPP $CPPFLAGS'
5919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5925 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5927 # find the maximum length of command line arguments
5928 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5929 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5930 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 # On DJGPP, this test can blow up pretty badly due to problems in libc
5939 # (any single argument exceeding 2000 bytes causes a buffer overrun
5940 # during glob expansion). Even if it were fixed, the result of this
5941 # check would be larger than it should be.
5942 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5946 # Under GNU Hurd, this test is not required because there is
5947 # no limit to the length of command line arguments.
5948 # Libtool will interpret -1 as no limit whatsoever
5949 lt_cv_sys_max_cmd_len=-1;
5953 # On Win9x/ME, this test blows up -- it succeeds, but takes
5954 # about 5 minutes as the teststring grows exponentially.
5955 # Worse, since 9x/ME are not pre-emptively multitasking,
5956 # you end up with a "frozen" computer, even though with patience
5957 # the test eventually succeeds (with a max line length of 256k).
5958 # Instead, let's just punt: use the minimum linelength reported by
5959 # all of the supported platforms: 8192 (on NT/2K/XP).
5960 lt_cv_sys_max_cmd_len=8192;
5964 # On AmigaOS with pdksh, this test takes hours, literally.
5965 # So we just punt and use a minimum line length of 8192.
5966 lt_cv_sys_max_cmd_len=8192;
5969 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5970 # This has been around since 386BSD, at least. Likely further.
5971 if test -x /sbin/sysctl; then
5972 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5973 elif test -x /usr/sbin/sysctl; then
5974 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5976 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5978 # And add a safety zone
5979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5980 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5983 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5984 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5985 # nice to cause kernel panics so lets avoid the loop below.
5986 # First set a reasonable default.
5987 lt_cv_sys_max_cmd_len=16384
5989 if test -x /sbin/sysconfig; then
5990 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5991 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5996 # If test is not a shell built-in, we'll probably end up computing a
5997 # maximum length that is only half of the actual maximum length, but
5999 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6000 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6001 = "XX$teststring") >/dev/null 2>&1 &&
6002 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6003 lt_cv_sys_max_cmd_len=$new_result &&
6004 test $i != 17 # 1/2 MB should be enough
6007 teststring=$teststring$teststring
6010 # Add a significant safety factor because C++ compilers can tack on massive
6011 # amounts of additional arguments before passing them to the linker.
6012 # It appears as though 1/2 is a usable value.
6013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6019 if test -n $lt_cv_sys_max_cmd_len ; then
6020 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6021 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6023 echo "$as_me:$LINENO: result: none" >&5
6024 echo "${ECHO_T}none" >&6
6030 # Check for command to grab the raw symbol name followed by C symbol from nm.
6031 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6032 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6033 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 # These are sane defaults that work on at least a few old systems.
6038 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6040 # Character class describing NM global symbol codes.
6041 symcode='[BCDEGRST]'
6043 # Regexp to match symbols that can be accessed directly from C.
6044 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6046 # Transform an extracted symbol line into a proper C declaration
6047 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6049 # Transform an extracted symbol line into symbol name and symbol address
6050 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'"
6052 # Define system-specific variables.
6057 cygwin* | mingw* | pw32*)
6058 symcode='[ABCDGISTW]'
6060 hpux*) # Its linker distinguishes data from code symbols
6061 if test "$host_cpu" = ia64; then
6062 symcode='[ABCDEGRST]'
6064 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6065 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'"
6068 if test "$host_cpu" = ia64; then
6069 symcode='[ABCDGIRSTW]'
6070 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6071 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'"
6075 symcode='[BCDEGRST]'
6078 symcode='[BCDEGQRST]'
6088 # Handle CRLF in mingw tool chain
6092 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6096 # If we're using GNU nm, then use its standard symbol codes.
6097 case `$NM -V 2>&1` in
6098 *GNU* | *'with BFD'*)
6099 symcode='[ABCDGIRSTW]' ;;
6102 # Try without a prefix undercore, then with it.
6103 for ac_symprfx in "" "_"; do
6105 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6106 symxfrm="\\1 $ac_symprfx\\2 \\2"
6108 # Write the raw and C identifiers.
6109 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6111 # Check to see that the pipe works correctly.
6115 cat > conftest.$ac_ext <<EOF
6120 void nm_test_func(){}
6124 int main(){nm_test_var='a';nm_test_func();return(0);}
6127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6128 (eval $ac_compile) 2>&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; then
6132 # Now try to grab the symbols.
6134 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6135 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } && test -s "$nlist"; then
6139 # Try sorting and uniquifying the output.
6140 if sort "$nlist" | uniq > "$nlist"T; then
6141 mv -f "$nlist"T "$nlist"
6146 # Make sure that we snagged all the symbols we need.
6147 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6148 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6149 cat <<EOF > conftest.$ac_ext
6155 # Now generate the symbol file.
6156 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6158 cat <<EOF >> conftest.$ac_ext
6159 #if defined (__STDC__) && __STDC__
6160 # define lt_ptr_t void *
6162 # define lt_ptr_t char *
6166 /* The mapping between symbol names and symbols. */
6171 lt_preloaded_symbols[] =
6174 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6175 cat <<\EOF >> conftest.$ac_ext
6183 # Now try linking the two files.
6184 mv conftest.$ac_objext conftstm.$ac_objext
6185 lt_save_LIBS="$LIBS"
6186 lt_save_CFLAGS="$CFLAGS"
6187 LIBS="conftstm.$ac_objext"
6188 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6190 (eval $ac_link) 2>&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6196 LIBS="$lt_save_LIBS"
6197 CFLAGS="$lt_save_CFLAGS"
6199 echo "cannot find nm_test_func in $nlist" >&5
6202 echo "cannot find nm_test_var in $nlist" >&5
6205 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6208 echo "$progname: failed program was:" >&5
6209 cat conftest.$ac_ext >&5
6211 rm -f conftest* conftst*
6213 # Do not use the global_symbol_pipe unless it works.
6214 if test "$pipe_works" = yes; then
6217 lt_cv_sys_global_symbol_pipe=
6223 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6224 lt_cv_sys_global_symbol_to_cdecl=
6226 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6227 echo "$as_me:$LINENO: result: failed" >&5
6228 echo "${ECHO_T}failed" >&6
6230 echo "$as_me:$LINENO: result: ok" >&5
6231 echo "${ECHO_T}ok" >&6
6234 echo "$as_me:$LINENO: checking for objdir" >&5
6235 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6236 if test "${lt_cv_objdir+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 rm -f .libs 2>/dev/null
6240 mkdir .libs 2>/dev/null
6241 if test -d .libs; then
6244 # MS-DOS does not allow filenames that begin with a dot.
6247 rmdir .libs 2>/dev/null
6249 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6250 echo "${ECHO_T}$lt_cv_objdir" >&6
6251 objdir=$lt_cv_objdir
6259 # AIX sometimes has problems with the GCC collect2 program. For some
6260 # reason, if we set the COLLECT_NAMES environment variable, the problems
6261 # vanish in a puff of smoke.
6262 if test "X${COLLECT_NAMES+set}" != Xset; then
6264 export COLLECT_NAMES
6269 # Sed substitution that helps us do robust quoting. It backslashifies
6270 # metacharacters that are still active within double-quoted strings.
6271 Xsed='sed -e 1s/^X//'
6272 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6274 # Same as above, but do not quote variable references.
6275 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6277 # Sed substitution to delay expansion of an escaped shell variable in a
6278 # double_quote_subst'ed string.
6279 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6281 # Sed substitution to avoid accidental globbing in evaled expressions
6282 no_glob_subst='s/\*/\\\*/g'
6288 default_ofile=libtool
6289 can_build_shared=yes
6291 # All known linkers require a `.a' archive for static linking (except MSVC,
6292 # which needs '.lib').
6294 ltmain="$ac_aux_dir/ltmain.sh"
6295 ofile="$default_ofile"
6296 with_gnu_ld="$lt_cv_prog_gnu_ld"
6298 if test -n "$ac_tool_prefix"; then
6299 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6300 set dummy ${ac_tool_prefix}ar; ac_word=$2
6301 echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6303 if test "${ac_cv_prog_AR+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 if test -n "$AR"; then
6307 ac_cv_prog_AR="$AR" # Let the user override the test.
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6316 ac_cv_prog_AR="${ac_tool_prefix}ar"
6317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 if test -n "$AR"; then
6327 echo "$as_me:$LINENO: result: $AR" >&5
6328 echo "${ECHO_T}$AR" >&6
6330 echo "$as_me:$LINENO: result: no" >&5
6331 echo "${ECHO_T}no" >&6
6335 if test -z "$ac_cv_prog_AR"; then
6337 # Extract the first word of "ar", so it can be a program name with args.
6338 set dummy ar; ac_word=$2
6339 echo "$as_me:$LINENO: checking for $ac_word" >&5
6340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6341 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 if test -n "$ac_ct_AR"; then
6345 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354 ac_cv_prog_ac_ct_AR="ar"
6355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6361 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6364 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6365 if test -n "$ac_ct_AR"; then
6366 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6367 echo "${ECHO_T}$ac_ct_AR" >&6
6369 echo "$as_me:$LINENO: result: no" >&5
6370 echo "${ECHO_T}no" >&6
6378 if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6381 echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6383 if test "${ac_cv_prog_RANLIB+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 if test -n "$RANLIB"; then
6387 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 RANLIB=$ac_cv_prog_RANLIB
6406 if test -n "$RANLIB"; then
6407 echo "$as_me:$LINENO: result: $RANLIB" >&5
6408 echo "${ECHO_T}$RANLIB" >&6
6410 echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6
6415 if test -z "$ac_cv_prog_RANLIB"; then
6416 ac_ct_RANLIB=$RANLIB
6417 # Extract the first word of "ranlib", so it can be a program name with args.
6418 set dummy ranlib; ac_word=$2
6419 echo "$as_me:$LINENO: checking for $ac_word" >&5
6420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6421 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 if test -n "$ac_ct_RANLIB"; then
6425 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6434 ac_cv_prog_ac_ct_RANLIB="ranlib"
6435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6444 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6445 if test -n "$ac_ct_RANLIB"; then
6446 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6447 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6449 echo "$as_me:$LINENO: result: no" >&5
6450 echo "${ECHO_T}no" >&6
6453 RANLIB=$ac_ct_RANLIB
6455 RANLIB="$ac_cv_prog_RANLIB"
6458 if test -n "$ac_tool_prefix"; then
6459 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6460 set dummy ${ac_tool_prefix}strip; ac_word=$2
6461 echo "$as_me:$LINENO: checking for $ac_word" >&5
6462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6463 if test "${ac_cv_prog_STRIP+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 if test -n "$STRIP"; then
6467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 STRIP=$ac_cv_prog_STRIP
6486 if test -n "$STRIP"; then
6487 echo "$as_me:$LINENO: result: $STRIP" >&5
6488 echo "${ECHO_T}$STRIP" >&6
6490 echo "$as_me:$LINENO: result: no" >&5
6491 echo "${ECHO_T}no" >&6
6495 if test -z "$ac_cv_prog_STRIP"; then
6497 # Extract the first word of "strip", so it can be a program name with args.
6498 set dummy strip; ac_word=$2
6499 echo "$as_me:$LINENO: checking for $ac_word" >&5
6500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6501 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 if test -n "$ac_ct_STRIP"; then
6505 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514 ac_cv_prog_ac_ct_STRIP="strip"
6515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6524 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6525 if test -n "$ac_ct_STRIP"; then
6526 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6527 echo "${ECHO_T}$ac_ct_STRIP" >&6
6529 echo "$as_me:$LINENO: result: no" >&5
6530 echo "${ECHO_T}no" >&6
6535 STRIP="$ac_cv_prog_STRIP"
6540 old_CFLAGS="$CFLAGS"
6542 # Set sane defaults for various variables
6543 test -z "$AR" && AR=ar
6544 test -z "$AR_FLAGS" && AR_FLAGS=cru
6545 test -z "$AS" && AS=as
6546 test -z "$CC" && CC=cc
6547 test -z "$LTCC" && LTCC=$CC
6548 test -z "$DLLTOOL" && DLLTOOL=dlltool
6549 test -z "$LD" && LD=ld
6550 test -z "$LN_S" && LN_S="ln -s"
6551 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6552 test -z "$NM" && NM=nm
6553 test -z "$SED" && SED=sed
6554 test -z "$OBJDUMP" && OBJDUMP=objdump
6555 test -z "$RANLIB" && RANLIB=:
6556 test -z "$STRIP" && STRIP=:
6557 test -z "$ac_objext" && ac_objext=o
6559 # Determine commands to create old-style static archives.
6560 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6561 old_postinstall_cmds='chmod 644 $oldlib'
6562 old_postuninstall_cmds=
6564 if test -n "$RANLIB"; then
6567 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6570 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6573 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6576 for cc_temp in $compiler""; do
6578 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6579 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6584 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6587 # Only perform the check for file, if the check method requires it
6588 case $deplibs_check_method in
6590 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6591 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6592 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6593 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6601 lt_save_MAGIC_CMD="$MAGIC_CMD"
6602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6603 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6604 for ac_dir in $ac_dummy; do
6606 test -z "$ac_dir" && ac_dir=.
6607 if test -f $ac_dir/${ac_tool_prefix}file; then
6608 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6609 if test -n "$file_magic_test_file"; then
6610 case $deplibs_check_method in
6612 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6613 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6614 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6615 $EGREP "$file_magic_regex" > /dev/null; then
6620 *** Warning: the command libtool uses to detect shared libraries,
6621 *** $file_magic_cmd, produces output that libtool cannot recognize.
6622 *** The result is that libtool may fail to recognize shared libraries
6623 *** as such. This will affect the creation of libtool libraries that
6624 *** depend on shared libraries, but programs linked with such libtool
6625 *** libraries will work regardless of this problem. Nevertheless, you
6626 *** may want to report the problem to your system manager and/or to
6627 *** bug-libtool@gnu.org
6637 MAGIC_CMD="$lt_save_MAGIC_CMD"
6642 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6643 if test -n "$MAGIC_CMD"; then
6644 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6645 echo "${ECHO_T}$MAGIC_CMD" >&6
6647 echo "$as_me:$LINENO: result: no" >&5
6648 echo "${ECHO_T}no" >&6
6651 if test -z "$lt_cv_path_MAGIC_CMD"; then
6652 if test -n "$ac_tool_prefix"; then
6653 echo "$as_me:$LINENO: checking for file" >&5
6654 echo $ECHO_N "checking for file... $ECHO_C" >&6
6655 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6663 lt_save_MAGIC_CMD="$MAGIC_CMD"
6664 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6665 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6666 for ac_dir in $ac_dummy; do
6668 test -z "$ac_dir" && ac_dir=.
6669 if test -f $ac_dir/file; then
6670 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6671 if test -n "$file_magic_test_file"; then
6672 case $deplibs_check_method in
6674 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6675 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6676 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6677 $EGREP "$file_magic_regex" > /dev/null; then
6682 *** Warning: the command libtool uses to detect shared libraries,
6683 *** $file_magic_cmd, produces output that libtool cannot recognize.
6684 *** The result is that libtool may fail to recognize shared libraries
6685 *** as such. This will affect the creation of libtool libraries that
6686 *** depend on shared libraries, but programs linked with such libtool
6687 *** libraries will work regardless of this problem. Nevertheless, you
6688 *** may want to report the problem to your system manager and/or to
6689 *** bug-libtool@gnu.org
6699 MAGIC_CMD="$lt_save_MAGIC_CMD"
6704 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6705 if test -n "$MAGIC_CMD"; then
6706 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6707 echo "${ECHO_T}$MAGIC_CMD" >&6
6709 echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6
6725 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6726 if test "${enable_libtool_lock+set}" = set; then
6727 enableval="$enable_libtool_lock"
6730 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6733 # Check whether --with-pic or --without-pic was given.
6734 if test "${with_pic+set}" = set; then
6740 test -z "$pic_mode" && pic_mode=default
6742 # Use C for the default configuration in the libtool script
6746 ac_cpp='$CPP $CPPFLAGS'
6747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6752 # Source file extension for C test sources.
6755 # Object file extension for compiled C test sources.
6759 # Code to be used in simple compile tests
6760 lt_simple_compile_test_code="int some_variable = 0;\n"
6762 # Code to be used in simple link tests
6763 lt_simple_link_test_code='int main(){return(0);}\n'
6766 # If no C compiler was specified, use CC.
6769 # Allow CC to be a program name with arguments.
6773 # save warnings/boilerplate of simple test code
6774 ac_outfile=conftest.$ac_objext
6775 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6776 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6777 _lt_compiler_boilerplate=`cat conftest.err`
6780 ac_outfile=conftest.$ac_objext
6781 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6782 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6783 _lt_linker_boilerplate=`cat conftest.err`
6788 # Check for any special shared library compilation flags.
6791 if test "$GCC" = no; then
6794 lt_prog_cc_shlib='-belf'
6798 if test -n "$lt_prog_cc_shlib"; then
6799 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6800 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6801 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6803 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6804 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6805 lt_cv_prog_cc_can_build_shared=no
6811 # Check to make sure the static flag actually works.
6813 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6814 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6815 if test "${lt_prog_compiler_static_works+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 lt_prog_compiler_static_works=no
6819 save_LDFLAGS="$LDFLAGS"
6820 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6821 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6822 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6823 # The linker can only warn and ignore the option if not recognized
6824 # So say no if there are warnings
6825 if test -s conftest.err; then
6826 # Append any errors to the config.log.
6827 cat conftest.err 1>&5
6828 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6829 $SED '/^$/d' conftest.err >conftest.er2
6830 if diff conftest.exp conftest.er2 >/dev/null; then
6831 lt_prog_compiler_static_works=yes
6834 lt_prog_compiler_static_works=yes
6838 LDFLAGS="$save_LDFLAGS"
6841 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6842 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6844 if test x"$lt_prog_compiler_static_works" = xyes; then
6847 lt_prog_compiler_static=
6853 lt_prog_compiler_no_builtin_flag=
6855 if test "$GCC" = yes; then
6856 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6859 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6860 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6861 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 lt_cv_prog_compiler_rtti_exceptions=no
6865 ac_outfile=conftest.$ac_objext
6866 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6867 lt_compiler_flag="-fno-rtti -fno-exceptions"
6868 # Insert the option either (1) after the last *FLAGS variable, or
6869 # (2) before a word containing "conftest.", or (3) at the end.
6870 # Note that $ac_compile itself does not contain backslashes and begins
6871 # with a dollar sign (not a hyphen), so the echo should work correctly.
6872 # The option is referenced via a variable to avoid confusing sed.
6873 lt_compile=`echo "$ac_compile" | $SED \
6874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6876 -e 's:$: $lt_compiler_flag:'`
6877 (eval echo "\"\$as_me:6877: $lt_compile\"" >&5)
6878 (eval "$lt_compile" 2>conftest.err)
6880 cat conftest.err >&5
6881 echo "$as_me:6881: \$? = $ac_status" >&5
6882 if (exit $ac_status) && test -s "$ac_outfile"; then
6883 # The compiler can only warn and ignore the option if not recognized
6884 # So say no if there are warnings other than the usual output.
6885 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6886 $SED '/^$/d' conftest.err >conftest.er2
6887 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6888 lt_cv_prog_compiler_rtti_exceptions=yes
6894 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6895 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6897 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6898 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6905 lt_prog_compiler_wl=
6906 lt_prog_compiler_pic=
6907 lt_prog_compiler_static=
6909 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6910 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6912 if test "$GCC" = yes; then
6913 lt_prog_compiler_wl='-Wl,'
6914 lt_prog_compiler_static='-static'
6918 # All AIX code is PIC.
6919 if test "$host_cpu" = ia64; then
6920 # AIX 5 now supports IA64 processor
6921 lt_prog_compiler_static='-Bstatic'
6926 # FIXME: we need at least 68020 code to build shared libraries, but
6927 # adding the `-m68020' flag to GCC prevents building anything better,
6929 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6932 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6933 # PIC is the default for these OSes.
6936 mingw* | pw32* | os2*)
6937 # This hack is so that the source file can tell whether it is being
6938 # built for inclusion in a dll (and should export symbols for example).
6939 lt_prog_compiler_pic='-DDLL_EXPORT'
6942 darwin* | rhapsody*)
6943 # PIC is the default on this platform
6944 # Common symbols not allowed in MH_DYLIB files
6945 lt_prog_compiler_pic='-fno-common'
6949 # Just because we use GCC doesn't mean we suddenly get shared libraries
6950 # on systems that don't support them.
6951 lt_prog_compiler_can_build_shared=no
6956 if test -d /usr/nec; then
6957 lt_prog_compiler_pic=-Kconform_pic
6962 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6969 lt_prog_compiler_pic='-fPIC'
6975 lt_prog_compiler_pic='-fPIC'
6979 # PORTME Check for flag to pass linker flags through the system compiler.
6982 lt_prog_compiler_wl='-Wl,'
6983 if test "$host_cpu" = ia64; then
6984 # AIX 5 now supports IA64 processor
6985 lt_prog_compiler_static='-Bstatic'
6987 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6991 # PIC is the default on this platform
6992 # Common symbols not allowed in MH_DYLIB files
6993 case $cc_basename in
6995 lt_prog_compiler_pic='-qnocommon'
6996 lt_prog_compiler_wl='-Wl,'
7001 mingw* | pw32* | os2*)
7002 # This hack is so that the source file can tell whether it is being
7003 # built for inclusion in a dll (and should export symbols for example).
7004 lt_prog_compiler_pic='-DDLL_EXPORT'
7007 hpux9* | hpux10* | hpux11*)
7008 lt_prog_compiler_wl='-Wl,'
7009 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7016 lt_prog_compiler_pic='+Z'
7019 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7020 lt_prog_compiler_static='${wl}-a ${wl}archive'
7023 irix5* | irix6* | nonstopux*)
7024 lt_prog_compiler_wl='-Wl,'
7025 # PIC (with -KPIC) is the default.
7026 lt_prog_compiler_static='-non_shared'
7030 lt_prog_compiler_pic='-KPIC'
7031 lt_prog_compiler_static='-Bstatic'
7035 case $cc_basename in
7037 lt_prog_compiler_wl='-Wl,'
7038 lt_prog_compiler_pic='-KPIC'
7039 lt_prog_compiler_static='-static'
7041 pgcc* | pgf77* | pgf90* | pgf95*)
7042 # Portland Group compilers (*not* the Pentium gcc compiler,
7043 # which looks to be a dead project)
7044 lt_prog_compiler_wl='-Wl,'
7045 lt_prog_compiler_pic='-fpic'
7046 lt_prog_compiler_static='-Bstatic'
7049 lt_prog_compiler_wl='-Wl,'
7050 # All Alpha code is PIC.
7051 lt_prog_compiler_static='-non_shared'
7056 osf3* | osf4* | osf5*)
7057 lt_prog_compiler_wl='-Wl,'
7058 # All OSF/1 code is PIC.
7059 lt_prog_compiler_static='-non_shared'
7063 lt_prog_compiler_pic='-Kpic'
7064 lt_prog_compiler_static='-dn'
7068 lt_prog_compiler_pic='-KPIC'
7069 lt_prog_compiler_static='-Bstatic'
7070 case $cc_basename in
7072 lt_prog_compiler_wl='-Qoption ld ';;
7074 lt_prog_compiler_wl='-Wl,';;
7079 lt_prog_compiler_wl='-Qoption ld '
7080 lt_prog_compiler_pic='-PIC'
7081 lt_prog_compiler_static='-Bstatic'
7084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7085 lt_prog_compiler_wl='-Wl,'
7086 lt_prog_compiler_pic='-KPIC'
7087 lt_prog_compiler_static='-Bstatic'
7091 if test -d /usr/nec ;then
7092 lt_prog_compiler_pic='-Kconform_pic'
7093 lt_prog_compiler_static='-Bstatic'
7098 lt_prog_compiler_wl='-Wl,'
7099 lt_prog_compiler_can_build_shared=no
7103 lt_prog_compiler_pic='-pic'
7104 lt_prog_compiler_static='-Bstatic'
7108 lt_prog_compiler_can_build_shared=no
7113 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7114 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7117 # Check to make sure the PIC flag actually works.
7119 if test -n "$lt_prog_compiler_pic"; then
7121 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7122 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7123 if test "${lt_prog_compiler_pic_works+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 lt_prog_compiler_pic_works=no
7127 ac_outfile=conftest.$ac_objext
7128 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7129 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7130 # Insert the option either (1) after the last *FLAGS variable, or
7131 # (2) before a word containing "conftest.", or (3) at the end.
7132 # Note that $ac_compile itself does not contain backslashes and begins
7133 # with a dollar sign (not a hyphen), so the echo should work correctly.
7134 # The option is referenced via a variable to avoid confusing sed.
7135 lt_compile=`echo "$ac_compile" | $SED \
7136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7138 -e 's:$: $lt_compiler_flag:'`
7139 (eval echo "\"\$as_me:7139: $lt_compile\"" >&5)
7140 (eval "$lt_compile" 2>conftest.err)
7142 cat conftest.err >&5
7143 echo "$as_me:7143: \$? = $ac_status" >&5
7144 if (exit $ac_status) && test -s "$ac_outfile"; then
7145 # The compiler can only warn and ignore the option if not recognized
7146 # So say no if there are warnings other than the usual output.
7147 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7148 $SED '/^$/d' conftest.err >conftest.er2
7149 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7150 lt_prog_compiler_pic_works=yes
7156 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7157 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7159 if test x"$lt_prog_compiler_pic_works" = xyes; then
7160 case $lt_prog_compiler_pic in
7162 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7165 lt_prog_compiler_pic=
7166 lt_prog_compiler_can_build_shared=no
7171 # For platforms which do not support PIC, -DPIC is meaningless:
7173 lt_prog_compiler_pic=
7176 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7180 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7181 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7182 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 lt_cv_prog_compiler_c_o=no
7186 $rm -r conftest 2>/dev/null
7190 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7192 lt_compiler_flag="-o out/conftest2.$ac_objext"
7193 # Insert the option either (1) after the last *FLAGS variable, or
7194 # (2) before a word containing "conftest.", or (3) at the end.
7195 # Note that $ac_compile itself does not contain backslashes and begins
7196 # with a dollar sign (not a hyphen), so the echo should work correctly.
7197 lt_compile=`echo "$ac_compile" | $SED \
7198 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7199 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7200 -e 's:$: $lt_compiler_flag:'`
7201 (eval echo "\"\$as_me:7201: $lt_compile\"" >&5)
7202 (eval "$lt_compile" 2>out/conftest.err)
7204 cat out/conftest.err >&5
7205 echo "$as_me:7205: \$? = $ac_status" >&5
7206 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7208 # The compiler can only warn and ignore the option if not recognized
7209 # So say no if there are warnings
7210 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7211 $SED '/^$/d' out/conftest.err >out/conftest.er2
7212 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7213 lt_cv_prog_compiler_c_o=yes
7218 # SGI C++ compiler will create directory out/ii_files/ for
7219 # template instantiation
7220 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7221 $rm out/* && rmdir out
7227 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7228 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7231 hard_links="nottested"
7232 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7233 # do not overwrite the value of need_locks provided by the user
7234 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7235 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7238 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7240 ln conftest.a conftest.b 2>&5 || hard_links=no
7241 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7242 echo "$as_me:$LINENO: result: $hard_links" >&5
7243 echo "${ECHO_T}$hard_links" >&6
7244 if test "$hard_links" = no; then
7245 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7246 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7253 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7254 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7257 allow_undefined_flag=
7258 enable_shared_with_static_runtimes=no
7260 archive_expsym_cmds=
7261 old_archive_From_new_cmds=
7262 old_archive_from_expsyms_cmds=
7263 export_dynamic_flag_spec=
7264 whole_archive_flag_spec=
7265 thread_safe_flag_spec=
7266 hardcode_libdir_flag_spec=
7267 hardcode_libdir_flag_spec_ld=
7268 hardcode_libdir_separator=
7271 hardcode_shlibpath_var=unsupported
7272 link_all_deplibs=unknown
7273 hardcode_automatic=no
7276 always_export_symbols=no
7277 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7278 # include_expsyms should be a list of space-separated symbols to be *always*
7279 # included in the symbol list
7281 # exclude_expsyms can be an extended regexp of symbols to exclude
7282 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7283 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7284 # as well as any symbol that contains `d'.
7285 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7286 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7287 # platforms (ab)use it in PIC code, but their linkers get confused if
7288 # the symbol is explicitly referenced. Since portable code cannot
7289 # rely on this symbol name, it's probably fine to never include it in
7290 # preloaded symbol tables.
7291 extract_expsyms_cmds=
7292 # Just being paranoid about ensuring that cc_basename is set.
7293 for cc_temp in $compiler""; do
7295 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7296 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7301 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7304 cygwin* | mingw* | pw32*)
7305 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7306 # When not using gcc, we currently assume that we are using
7307 # Microsoft Visual C++.
7308 if test "$GCC" != yes; then
7318 if test "$with_gnu_ld" = yes; then
7319 # If archive_cmds runs LD, not CC, wlarc should be empty
7322 # Set some defaults for GNU ld with shared library support. These
7323 # are reset later if shared libraries are not supported. Putting them
7324 # here allows them to be overridden if necessary.
7325 runpath_var=LD_RUN_PATH
7326 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7327 export_dynamic_flag_spec='${wl}--export-dynamic'
7328 # ancient GNU ld didn't support --whole-archive et. al.
7329 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7330 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7332 whole_archive_flag_spec=
7334 supports_anon_versioning=no
7335 case `$LD -v 2>/dev/null` in
7336 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7337 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7338 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7339 *\ 2.11.*) ;; # other 2.11 versions
7340 *) supports_anon_versioning=yes ;;
7343 # See if GNU ld supports shared libraries.
7345 aix3* | aix4* | aix5*)
7346 # On AIX/PPC, the GNU linker is very broken
7347 if test "$host_cpu" != ia64; then
7351 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7352 *** to be unable to reliably create shared libraries on AIX.
7353 *** Therefore, libtool is disabling shared libraries support. If you
7354 *** really care for shared libraries, you may want to modify your PATH
7355 *** so that a non-GNU linker is found, and then restart.
7362 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)'
7363 hardcode_libdir_flag_spec='-L$libdir'
7364 hardcode_minus_L=yes
7366 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7367 # that the semantics of dynamic libraries on AmigaOS, at least up
7368 # to version 4, is to share data among multiple programs linked
7369 # with the same dynamic library. Since this doesn't match the
7370 # behavior of shared libraries on other platforms, we can't use
7376 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7377 allow_undefined_flag=unsupported
7378 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7379 # support --undefined. This deserves some investigation. FIXME
7380 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7386 cygwin* | mingw* | pw32*)
7387 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7388 # as there is no search path for DLLs.
7389 hardcode_libdir_flag_spec='-L$libdir'
7390 allow_undefined_flag=unsupported
7391 always_export_symbols=no
7392 enable_shared_with_static_runtimes=yes
7393 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7395 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7397 # If the export-symbols file already is a .def file (1st line
7398 # is EXPORTS), use it as is; otherwise, prepend...
7399 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7400 cp $export_symbols $output_objdir/$soname.def;
7402 echo EXPORTS > $output_objdir/$soname.def;
7403 cat $export_symbols >> $output_objdir/$soname.def;
7405 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7412 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7414 case $cc_basename,$host_cpu in
7415 pgcc*) # Portland Group C compiler
7416 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7417 tmp_addflag=' $pic_flag'
7419 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7420 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7421 tmp_addflag=' $pic_flag -Mnomain' ;;
7422 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7423 tmp_addflag=' -i_dynamic' ;;
7424 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7425 tmp_addflag=' -i_dynamic -nofor_main' ;;
7426 ifc* | ifort*) # Intel Fortran compiler
7427 tmp_addflag=' -nofor_main' ;;
7429 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7431 if test $supports_anon_versioning = yes; then
7432 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7433 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7434 $echo "local: *; };" >> $output_objdir/$libname.ver~
7435 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7443 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7444 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7448 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7453 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7457 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7458 *** create shared libraries on Solaris systems. Therefore, libtool
7459 *** is disabling shared libraries support. We urge you to upgrade GNU
7460 *** binutils to release 2.9.1 or newer. Another option is to modify
7461 *** your PATH or compiler configuration so that the native linker is
7462 *** used, and then restart.
7465 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7474 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7477 hardcode_shlibpath_var=no
7481 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7483 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7490 if test "$ld_shlibs" = no; then
7492 hardcode_libdir_flag_spec=
7493 export_dynamic_flag_spec=
7494 whole_archive_flag_spec=
7497 # PORTME fill in a description of your system's linker (not GNU ld)
7500 allow_undefined_flag=unsupported
7501 always_export_symbols=yes
7502 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'
7503 # Note: this linker hardcodes the directories in LIBPATH if there
7504 # are no directories specified by -L.
7505 hardcode_minus_L=yes
7506 if test "$GCC" = yes && test -z "$link_static_flag"; then
7507 # Neither direct hardcoding nor static linking is supported with a
7509 hardcode_direct=unsupported
7514 if test "$host_cpu" = ia64; then
7515 # On IA64, the linker does run time linking by default, so we don't
7516 # have to do anything special.
7517 aix_use_runtimelinking=no
7518 exp_sym_flag='-Bexport'
7521 # If we're using GNU nm, then we don't want the "-C" option.
7522 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7523 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7524 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'
7526 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'
7528 aix_use_runtimelinking=no
7530 # Test if we are trying to use run time linking or normal
7531 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7532 # need to do runtime linking.
7533 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7534 for ld_flag in $LDFLAGS; do
7535 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7536 aix_use_runtimelinking=yes
7542 exp_sym_flag='-bexport'
7543 no_entry_flag='-bnoentry'
7546 # When large executables or shared objects are built, AIX ld can
7547 # have problems creating the table of contents. If linking a library
7548 # or program results in "error TOC overflow" add -mminimal-toc to
7549 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7550 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7554 hardcode_libdir_separator=':'
7555 link_all_deplibs=yes
7557 if test "$GCC" = yes; then
7558 case $host_os in aix4.[012]|aix4.[012].*)
7559 # We only want to do this on AIX 4.2 and lower, the check
7560 # below for broken collect2 doesn't work under 4.3+
7561 collect2name=`${CC} -print-prog-name=collect2`
7562 if test -f "$collect2name" && \
7563 strings "$collect2name" | grep resolve_lib_name >/dev/null
7565 # We have reworked collect2
7568 # We have old collect2
7569 hardcode_direct=unsupported
7570 # It fails to find uninstalled libraries when the uninstalled
7571 # path is not listed in the libpath. Setting hardcode_minus_L
7572 # to unsupported forces relinking
7573 hardcode_minus_L=yes
7574 hardcode_libdir_flag_spec='-L$libdir'
7575 hardcode_libdir_separator=
7578 shared_flag='-shared'
7579 if test "$aix_use_runtimelinking" = yes; then
7580 shared_flag="$shared_flag "'${wl}-G'
7584 if test "$host_cpu" = ia64; then
7585 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7586 # chokes on -Wl,-G. The following line is correct:
7589 if test "$aix_use_runtimelinking" = yes; then
7590 shared_flag='${wl}-G'
7592 shared_flag='${wl}-bM:SRE'
7597 # It seems that -bexpall does not export symbols beginning with
7598 # underscore (_), so it is better to generate a list of symbols to export.
7599 always_export_symbols=yes
7600 if test "$aix_use_runtimelinking" = yes; then
7601 # Warning - without using the other runtime loading flags (-brtl),
7602 # -berok will link without error, but may produce a broken library.
7603 allow_undefined_flag='-berok'
7604 # Determine the default libpath from the value encoded in an empty executable.
7605 cat >conftest.$ac_ext <<_ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7622 (eval $ac_link) 2>conftest.er1
7624 grep -v '^ *+' conftest.er1 >conftest.err
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } &&
7629 { ac_try='test -z "$ac_c_werror_flag"
7630 || test ! -s conftest.err'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; } &&
7636 { ac_try='test -s conftest$ac_exeext'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7643 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7645 # Check for a 64-bit object if we didn't find anything.
7646 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; }
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7653 rm -f conftest.err conftest.$ac_objext \
7654 conftest$ac_exeext conftest.$ac_ext
7655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7657 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7658 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"
7660 if test "$host_cpu" = ia64; then
7661 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7662 allow_undefined_flag="-z nodefs"
7663 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"
7665 # Determine the default libpath from the value encoded in an empty executable.
7666 cat >conftest.$ac_ext <<_ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7681 rm -f conftest.$ac_objext conftest$ac_exeext
7682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7683 (eval $ac_link) 2>conftest.er1
7685 grep -v '^ *+' conftest.er1 >conftest.err
7687 cat conftest.err >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } &&
7690 { ac_try='test -z "$ac_c_werror_flag"
7691 || test ! -s conftest.err'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; } &&
7697 { ac_try='test -s conftest$ac_exeext'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7706 # Check for a 64-bit object if we didn't find anything.
7707 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; }
7710 echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7714 rm -f conftest.err conftest.$ac_objext \
7715 conftest$ac_exeext conftest.$ac_ext
7716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7718 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7719 # Warning - without using the other run time loading flags,
7720 # -berok will link without error, but may produce a broken library.
7721 no_undefined_flag=' ${wl}-bernotok'
7722 allow_undefined_flag=' ${wl}-berok'
7723 # -bexpall does not export symbols beginning with underscore (_)
7724 always_export_symbols=yes
7725 # Exported symbols can be pulled into shared objects from archives
7726 whole_archive_flag_spec=' '
7727 archive_cmds_need_lc=yes
7728 # This is similar to how AIX traditionally builds its shared libraries.
7729 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'
7735 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)'
7736 hardcode_libdir_flag_spec='-L$libdir'
7737 hardcode_minus_L=yes
7738 # see comment about different semantics on the GNU ld section
7743 export_dynamic_flag_spec=-rdynamic
7746 cygwin* | mingw* | pw32*)
7747 # When not using gcc, we currently assume that we are using
7748 # Microsoft Visual C++.
7749 # hardcode_libdir_flag_spec is actually meaningless, as there is
7750 # no search path for DLLs.
7751 hardcode_libdir_flag_spec=' '
7752 allow_undefined_flag=unsupported
7753 # Tell ltmain to make .lib files, not .a files.
7755 # Tell ltmain to make .dll files, not .so files.
7757 # FIXME: Setting linknames here is a bad hack.
7758 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7759 # The linker will automatically build a .lib file if we build a DLL.
7760 old_archive_From_new_cmds='true'
7761 # FIXME: Should let the user specify the lib program.
7762 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7763 fix_srcfile_path='`cygpath -w "$srcfile"`'
7764 enable_shared_with_static_runtimes=yes
7767 darwin* | rhapsody*)
7769 rhapsody* | darwin1.[012])
7770 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7773 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7774 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7776 case ${MACOSX_DEPLOYMENT_TARGET} in
7778 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7781 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7787 archive_cmds_need_lc=no
7789 hardcode_automatic=yes
7790 hardcode_shlibpath_var=unsupported
7791 whole_archive_flag_spec=''
7792 link_all_deplibs=yes
7793 if test "$GCC" = yes ; then
7794 output_verbose_link_cmd='echo'
7795 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7796 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7797 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7798 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}'
7799 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7801 case $cc_basename in
7803 output_verbose_link_cmd='echo'
7804 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7805 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7806 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7807 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7808 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7819 hardcode_libdir_flag_spec='-L$libdir'
7820 hardcode_shlibpath_var=no
7827 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7828 # support. Future versions do this automatically, but an explicit c++rt0.o
7829 # does not break anything, and helps significantly (at the cost of a little
7832 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7833 hardcode_libdir_flag_spec='-R$libdir'
7835 hardcode_shlibpath_var=no
7838 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7840 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7842 hardcode_minus_L=yes
7843 hardcode_shlibpath_var=no
7846 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7847 freebsd* | kfreebsd*-gnu | dragonfly*)
7848 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7849 hardcode_libdir_flag_spec='-R$libdir'
7851 hardcode_shlibpath_var=no
7855 if test "$GCC" = yes; then
7856 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'
7858 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'
7860 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7861 hardcode_libdir_separator=:
7864 # hardcode_minus_L: Not really in the search PATH,
7865 # but as the default location of the library.
7866 hardcode_minus_L=yes
7867 export_dynamic_flag_spec='${wl}-E'
7871 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7874 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7877 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7883 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7886 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7890 if test "$with_gnu_ld" = no; then
7893 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7894 hardcode_libdir_flag_spec_ld='+b $libdir'
7895 hardcode_libdir_separator=:
7897 hardcode_shlibpath_var=no
7900 hardcode_libdir_flag_spec='-L$libdir'
7902 hardcode_shlibpath_var=no
7904 # hardcode_minus_L: Not really in the search PATH,
7905 # but as the default location of the library.
7906 hardcode_minus_L=yes
7909 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7910 hardcode_libdir_separator=:
7912 export_dynamic_flag_spec='${wl}-E'
7914 # hardcode_minus_L: Not really in the search PATH,
7915 # but as the default location of the library.
7916 hardcode_minus_L=yes
7922 irix5* | irix6* | nonstopux*)
7923 if test "$GCC" = yes; then
7924 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'
7926 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'
7927 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7930 hardcode_libdir_separator=:
7931 link_all_deplibs=yes
7935 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7936 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7938 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7940 hardcode_libdir_flag_spec='-R$libdir'
7942 hardcode_shlibpath_var=no
7946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7949 hardcode_libdir_separator=:
7950 hardcode_shlibpath_var=no
7955 hardcode_shlibpath_var=no
7956 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7957 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7958 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7959 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7960 export_dynamic_flag_spec='${wl}-E'
7963 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7964 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7965 hardcode_libdir_flag_spec='-R$libdir'
7968 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7969 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7976 hardcode_libdir_flag_spec='-L$libdir'
7977 hardcode_minus_L=yes
7978 allow_undefined_flag=unsupported
7979 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'
7980 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7984 if test "$GCC" = yes; then
7985 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7986 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7988 allow_undefined_flag=' -expect_unresolved \*'
7989 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'
7991 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7992 hardcode_libdir_separator=:
7995 osf4* | osf5*) # as osf3* with the addition of -msym flag
7996 if test "$GCC" = yes; then
7997 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7998 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'
7999 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8001 allow_undefined_flag=' -expect_unresolved \*'
8002 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'
8003 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8004 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8006 # Both c and cxx compiler support -rpath directly
8007 hardcode_libdir_flag_spec='-rpath $libdir'
8009 hardcode_libdir_separator=:
8013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8014 hardcode_shlibpath_var=no
8015 export_dynamic_flag_spec='${wl}-Bexport'
8016 runpath_var=LD_RUN_PATH
8017 hardcode_runpath_var=yes
8021 no_undefined_flag=' -z text'
8022 if test "$GCC" = yes; then
8024 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8025 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8026 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8029 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8030 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8031 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8033 hardcode_libdir_flag_spec='-R$libdir'
8034 hardcode_shlibpath_var=no
8036 solaris2.[0-5] | solaris2.[0-5].*) ;;
8038 # The compiler driver will combine linker options so we
8039 # cannot just pass the convience library names through
8040 # without $wl, iff we do not link with $LD.
8041 # Luckily, gcc supports the same syntax we need for Sun Studio.
8042 # Supported since Solaris 2.6 (maybe 2.5.1?)
8045 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8047 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8050 link_all_deplibs=yes
8054 if test "x$host_vendor" = xsequent; then
8055 # Use $CC to link under sequent, because it throws in some extra .o
8056 # files that make .init and .fini sections work.
8057 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8059 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8061 hardcode_libdir_flag_spec='-L$libdir'
8063 hardcode_minus_L=yes
8064 hardcode_shlibpath_var=no
8068 case $host_vendor in
8070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8071 hardcode_direct=yes # is this really true???
8074 ## LD is ld it makes a PLAMLIB
8075 ## CC just makes a GrossModule.
8076 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8077 reload_cmds='$CC -r -o $output$reload_objs'
8081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8082 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8085 runpath_var='LD_RUN_PATH'
8086 hardcode_shlibpath_var=no
8090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8091 hardcode_shlibpath_var=no
8092 export_dynamic_flag_spec='-Bexport'
8096 if test -d /usr/nec; then
8097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8098 hardcode_shlibpath_var=no
8099 runpath_var=LD_RUN_PATH
8100 hardcode_runpath_var=yes
8106 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8109 hardcode_shlibpath_var=no
8110 hardcode_runpath_var=yes
8111 runpath_var=LD_RUN_PATH
8114 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8115 no_undefined_flag='${wl}-z ${wl}text'
8116 if test "$GCC" = yes; then
8117 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8119 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8121 runpath_var='LD_RUN_PATH'
8122 hardcode_shlibpath_var=no
8126 no_undefined_flag=' -z text'
8127 # $CC -shared without GNU ld will not create a library from C++
8128 # object files and a static libstdc++, better avoid it by now
8129 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8130 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8131 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8132 hardcode_libdir_flag_spec=
8133 hardcode_shlibpath_var=no
8134 runpath_var='LD_RUN_PATH'
8138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8139 hardcode_libdir_flag_spec='-L$libdir'
8140 hardcode_shlibpath_var=no
8149 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8150 echo "${ECHO_T}$ld_shlibs" >&6
8151 test "$ld_shlibs" = no && can_build_shared=no
8153 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8154 if test "$GCC" = yes; then
8155 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8159 # Do we need to explicitly link libc?
8161 case "x$archive_cmds_need_lc" in
8163 # Assume -lc should be added
8164 archive_cmds_need_lc=yes
8166 if test "$enable_shared" = yes && test "$GCC" = yes; then
8167 case $archive_cmds in
8169 # FIXME: we may have to deal with multi-command sequences.
8172 # Test whether the compiler implicitly links with -lc since on some
8173 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8174 # to ld, don't add -lc before -lgcc.
8175 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8176 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8178 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8181 (eval $ac_compile) 2>&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } 2>conftest.err; then
8187 libobjs=conftest.$ac_objext
8189 wl=$lt_prog_compiler_wl
8195 lt_save_allow_undefined_flag=$allow_undefined_flag
8196 allow_undefined_flag=
8197 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8198 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }
8203 archive_cmds_need_lc=no
8205 archive_cmds_need_lc=yes
8207 allow_undefined_flag=$lt_save_allow_undefined_flag
8209 cat conftest.err 1>&5
8212 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8213 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8220 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8221 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8223 libname_spec='lib$name'
8231 shlibpath_overrides_runpath=unknown
8233 dynamic_linker="$host_os ld.so"
8234 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8235 if test "$GCC" = yes; then
8236 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8237 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8238 # if the path contains ";" then we assume it to be the separator
8239 # otherwise default to the standard path separator (i.e. ":") - it is
8240 # assumed that no part of a normal pathname contains ";" but that should
8241 # okay in the real world where ";" in dirpaths is itself problematic.
8242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8244 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8247 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8249 need_lib_prefix=unknown
8250 hardcode_into_libs=no
8252 # when you set need_version to no, make sure it does not cause -set_version
8253 # flags to be left without arguments
8254 need_version=unknown
8259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8260 shlibpath_var=LIBPATH
8262 # AIX 3 has no versioning support, so we append a major version to the name.
8263 soname_spec='${libname}${release}${shared_ext}$major'
8270 hardcode_into_libs=yes
8271 if test "$host_cpu" = ia64; then
8272 # AIX 5 supports IA64
8273 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8274 shlibpath_var=LD_LIBRARY_PATH
8276 # With GCC up to 2.95.x, collect2 would create an import file
8277 # for dependence libraries. The import file would start with
8278 # the line `#! .'. This would cause the generated library to
8279 # depend on `.', always an invalid library. This was fixed in
8280 # development snapshots of GCC prior to 3.0.
8282 aix4 | aix4.[01] | aix4.[01].*)
8283 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8285 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8292 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8293 # soname into executable. Probably we can add versioning support to
8294 # collect2, so additional links can be useful in future.
8295 if test "$aix_use_runtimelinking" = yes; then
8296 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8297 # instead of lib<name>.a to let people know that these are not
8298 # typical AIX shared libraries.
8299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8301 # We preserve .a as extension for shared libraries through AIX4.2
8302 # and later when we are not doing run time linking.
8303 library_names_spec='${libname}${release}.a $libname.a'
8304 soname_spec='${libname}${release}${shared_ext}$major'
8306 shlibpath_var=LIBPATH
8311 library_names_spec='$libname.ixlibrary $libname.a'
8312 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8313 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'
8317 library_names_spec='${libname}${shared_ext}'
8318 dynamic_linker="$host_os ld.so"
8319 shlibpath_var=LIBRARY_PATH
8325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8326 soname_spec='${libname}${release}${shared_ext}$major'
8327 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8328 shlibpath_var=LD_LIBRARY_PATH
8329 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8330 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8331 # the default ld.so.conf also contains /usr/contrib/lib and
8332 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8333 # libtool to hard-code these into programs
8336 cygwin* | mingw* | pw32*)
8337 version_type=windows
8342 case $GCC,$host_os in
8343 yes,cygwin* | yes,mingw* | yes,pw32*)
8344 library_names_spec='$libname.dll.a'
8345 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8346 postinstall_cmds='base_file=`basename \${file}`~
8347 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8348 dldir=$destdir/`dirname \$dlpath`~
8349 test -d \$dldir || mkdir -p \$dldir~
8350 $install_prog $dir/$dlname \$dldir/$dlname~
8351 chmod a+x \$dldir/$dlname'
8352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8353 dlpath=$dir/\$dldll~
8355 shlibpath_overrides_runpath=yes
8359 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8360 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8361 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8364 # MinGW DLLs use traditional 'lib' prefix
8365 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8366 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8367 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8368 # It is most probably a Windows format PATH printed by
8369 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8370 # path with ; separators, and with drive letters. We can handle the
8371 # drive letters (cygwin fileutils understands them), so leave them,
8372 # especially as we might pass files found there to a mingw objdump,
8373 # which wouldn't understand a cygwinified path. Ahh.
8374 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8376 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8380 # pw32 DLLs use 'pw' prefix rather than 'lib'
8381 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8387 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8390 dynamic_linker='Win32 ld.exe'
8391 # FIXME: first we should search . and the directory the executable is in
8395 darwin* | rhapsody*)
8396 dynamic_linker="$host_os dyld"
8400 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8401 soname_spec='${libname}${release}${major}$shared_ext'
8402 shlibpath_overrides_runpath=yes
8403 shlibpath_var=DYLD_LIBRARY_PATH
8404 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8405 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8406 if test "$GCC" = yes; then
8407 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"`
8409 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8411 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8419 soname_spec='${libname}${release}${shared_ext}$major'
8420 shlibpath_var=LD_LIBRARY_PATH
8431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8432 soname_spec='${libname}${release}${shared_ext}$major'
8433 shlibpath_var=LD_LIBRARY_PATH
8434 shlibpath_overrides_runpath=no
8435 hardcode_into_libs=yes
8436 dynamic_linker='GNU ld.so'
8439 freebsd* | dragonfly*)
8440 # DragonFly does not have aout. When/if they implement a new
8441 # versioning mechanism, adjust this.
8442 if test -x /usr/bin/objformat; then
8443 objformat=`/usr/bin/objformat`
8446 freebsd[123]*) objformat=aout ;;
8450 version_type=freebsd-$objformat
8451 case $version_type in
8453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8458 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8462 shlibpath_var=LD_LIBRARY_PATH
8465 shlibpath_overrides_runpath=yes
8467 freebsd3.[01]* | freebsdelf3.[01]*)
8468 shlibpath_overrides_runpath=yes
8469 hardcode_into_libs=yes
8472 shlibpath_overrides_runpath=no
8473 hardcode_into_libs=yes
8482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8483 soname_spec='${libname}${release}${shared_ext}$major'
8484 shlibpath_var=LD_LIBRARY_PATH
8485 hardcode_into_libs=yes
8488 hpux9* | hpux10* | hpux11*)
8489 # Give a soname corresponding to the major version so that dld.sl refuses to
8490 # link against other versions.
8497 hardcode_into_libs=yes
8498 dynamic_linker="$host_os dld.so"
8499 shlibpath_var=LD_LIBRARY_PATH
8500 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8502 soname_spec='${libname}${release}${shared_ext}$major'
8503 if test "X$HPUX_IA64_MODE" = X32; then
8504 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8506 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8508 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8512 hardcode_into_libs=yes
8513 dynamic_linker="$host_os dld.sl"
8514 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8515 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8517 soname_spec='${libname}${release}${shared_ext}$major'
8518 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8519 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8523 dynamic_linker="$host_os dld.sl"
8524 shlibpath_var=SHLIB_PATH
8525 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8527 soname_spec='${libname}${release}${shared_ext}$major'
8530 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8531 postinstall_cmds='chmod 555 $lib'
8534 irix5* | irix6* | nonstopux*)
8536 nonstopux*) version_type=nonstopux ;;
8538 if test "$lt_cv_prog_gnu_ld" = yes; then
8546 soname_spec='${libname}${release}${shared_ext}$major'
8547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8549 irix5* | nonstopux*)
8553 case $LD in # libtool.m4 will add one of these switches to LD
8554 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8555 libsuff= shlibsuff= libmagic=32-bit;;
8556 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8557 libsuff=32 shlibsuff=N32 libmagic=N32;;
8558 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8559 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8560 *) libsuff= shlibsuff= libmagic=never-match;;
8564 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8565 shlibpath_overrides_runpath=no
8566 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8567 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8568 hardcode_into_libs=yes
8571 # No shared lib support for Linux oldld, aout, or coff.
8572 linux*oldld* | linux*aout* | linux*coff*)
8576 # This must be Linux ELF.
8581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8582 soname_spec='${libname}${release}${shared_ext}$major'
8583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8584 shlibpath_var=LD_LIBRARY_PATH
8585 shlibpath_overrides_runpath=no
8586 # This implies no fast_install, which is unacceptable.
8587 # Some rework will be needed to allow for fast_install
8588 # before this can be enabled.
8589 hardcode_into_libs=yes
8591 # find out which ABI we are using
8594 x86_64*|s390x*|powerpc64*)
8595 echo '#line 8595 "configure"' > conftest.$ac_ext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8597 (eval $ac_compile) 2>&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; then
8601 case `/usr/bin/file conftest.$ac_objext` in
8604 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8612 # Append ld.so.conf contents to the search path
8613 if test -f /etc/ld.so.conf; then
8614 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8615 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8618 # We used to test for /lib/ld.so.1 and disable shared libraries on
8619 # powerpc, because MkLinux only supported shared libraries with the
8620 # GNU dynamic linker. Since this was broken with cross compilers,
8621 # most powerpc-linux boxes support dynamic linking these days and
8622 # people can always --disable-shared, the test was removed, and we
8623 # assume the GNU/Linux dynamic linker is in use.
8624 dynamic_linker='GNU/Linux ld.so'
8631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8632 soname_spec='${libname}${release}${shared_ext}$major'
8633 shlibpath_var=LD_LIBRARY_PATH
8634 shlibpath_overrides_runpath=no
8635 hardcode_into_libs=yes
8636 dynamic_linker='GNU ld.so'
8643 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8646 dynamic_linker='NetBSD (a.out) ld.so'
8648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8649 soname_spec='${libname}${release}${shared_ext}$major'
8650 dynamic_linker='NetBSD ld.elf_so'
8652 shlibpath_var=LD_LIBRARY_PATH
8653 shlibpath_overrides_runpath=yes
8654 hardcode_into_libs=yes
8659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8660 shlibpath_var=LD_LIBRARY_PATH
8661 shlibpath_overrides_runpath=yes
8668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8669 soname_spec='${libname}${release}${shared_ext}$major'
8670 shlibpath_var=LD_LIBRARY_PATH
8671 shlibpath_overrides_runpath=yes
8677 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8679 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8680 *) need_version=no ;;
8682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8684 shlibpath_var=LD_LIBRARY_PATH
8685 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8687 openbsd2.[89] | openbsd2.[89].*)
8688 shlibpath_overrides_runpath=no
8691 shlibpath_overrides_runpath=yes
8695 shlibpath_overrides_runpath=yes
8700 libname_spec='$name'
8703 library_names_spec='$libname${shared_ext} $libname.a'
8704 dynamic_linker='OS/2 ld.exe'
8705 shlibpath_var=LIBPATH
8708 osf3* | osf4* | osf5*)
8712 soname_spec='${libname}${release}${shared_ext}$major'
8713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8714 shlibpath_var=LD_LIBRARY_PATH
8715 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8716 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8721 soname_spec='${libname}${release}${shared_ext}$major'
8722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8723 shlibpath_var=LD_LIBRARY_PATH
8730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8731 soname_spec='${libname}${release}${shared_ext}$major'
8732 shlibpath_var=LD_LIBRARY_PATH
8733 shlibpath_overrides_runpath=yes
8734 hardcode_into_libs=yes
8735 # ldd complains unless libraries are executable
8736 postinstall_cmds='chmod +x $lib'
8741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8742 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8743 shlibpath_var=LD_LIBRARY_PATH
8744 shlibpath_overrides_runpath=yes
8745 if test "$with_gnu_ld" = yes; then
8751 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8754 soname_spec='${libname}${release}${shared_ext}$major'
8755 shlibpath_var=LD_LIBRARY_PATH
8756 case $host_vendor in
8758 shlibpath_overrides_runpath=no
8760 export_dynamic_flag_spec='${wl}-Blargedynsym'
8761 runpath_var=LD_RUN_PATH
8769 shlibpath_overrides_runpath=no
8770 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8776 if test -d /usr/nec ;then
8778 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8779 soname_spec='$libname${shared_ext}.$major'
8780 shlibpath_var=LD_LIBRARY_PATH
8786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8787 soname_spec='${libname}${release}${shared_ext}$major'
8788 shlibpath_var=LD_LIBRARY_PATH
8795 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8796 echo "${ECHO_T}$dynamic_linker" >&6
8797 test "$dynamic_linker" = no && can_build_shared=no
8799 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8800 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8802 if test -n "$hardcode_libdir_flag_spec" || \
8803 test -n "$runpath_var" || \
8804 test "X$hardcode_automatic" = "Xyes" ; then
8806 # We can hardcode non-existant directories.
8807 if test "$hardcode_direct" != no &&
8808 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8809 # have to relink, otherwise we might link with an installed library
8810 # when we should be linking with a yet-to-be-installed one
8811 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8812 test "$hardcode_minus_L" != no; then
8813 # Linking always hardcodes the temporary library directory.
8814 hardcode_action=relink
8816 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8817 hardcode_action=immediate
8820 # We cannot hardcode anything, or else we can only hardcode existing
8822 hardcode_action=unsupported
8824 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8825 echo "${ECHO_T}$hardcode_action" >&6
8827 if test "$hardcode_action" = relink; then
8828 # Fast installation is not supported
8829 enable_fast_install=no
8830 elif test "$shlibpath_overrides_runpath" = yes ||
8831 test "$enable_shared" = no; then
8832 # Fast installation is not necessary
8833 enable_fast_install=needless
8838 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8839 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8840 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8841 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8842 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8843 echo "$as_me:$LINENO: result: yes" >&5
8844 echo "${ECHO_T}yes" >&6
8846 # FIXME - insert some real tests, host_os isn't really good enough
8849 if test -n "$STRIP" ; then
8850 striplib="$STRIP -x"
8851 echo "$as_me:$LINENO: result: yes" >&5
8852 echo "${ECHO_T}yes" >&6
8854 echo "$as_me:$LINENO: result: no" >&5
8855 echo "${ECHO_T}no" >&6
8859 echo "$as_me:$LINENO: result: no" >&5
8860 echo "${ECHO_T}no" >&6
8865 if test "x$enable_dlopen" != xyes; then
8866 enable_dlopen=unknown
8867 enable_dlopen_self=unknown
8868 enable_dlopen_self_static=unknown
8875 lt_cv_dlopen="load_add_on"
8877 lt_cv_dlopen_self=yes
8881 lt_cv_dlopen="LoadLibrary"
8886 lt_cv_dlopen="dlopen"
8891 # if libdl is installed we need to link against it
8892 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8893 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8894 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 ac_check_lib_save_LIBS=$LIBS
8899 cat >conftest.$ac_ext <<_ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8906 /* Override any gcc2 internal prototype to avoid an error. */
8910 /* We use char because int might match the return type of a gcc2
8911 builtin and then its argument prototype would still apply. */
8921 rm -f conftest.$ac_objext conftest$ac_exeext
8922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8923 (eval $ac_link) 2>conftest.er1
8925 grep -v '^ *+' conftest.er1 >conftest.err
8927 cat conftest.err >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } &&
8930 { ac_try='test -z "$ac_c_werror_flag"
8931 || test ! -s conftest.err'
8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; } &&
8937 { ac_try='test -s conftest$ac_exeext'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; }; then
8943 ac_cv_lib_dl_dlopen=yes
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8948 ac_cv_lib_dl_dlopen=no
8950 rm -f conftest.err conftest.$ac_objext \
8951 conftest$ac_exeext conftest.$ac_ext
8952 LIBS=$ac_check_lib_save_LIBS
8954 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8955 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8956 if test $ac_cv_lib_dl_dlopen = yes; then
8957 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8962 lt_cv_dlopen_self=yes
8969 echo "$as_me:$LINENO: checking for shl_load" >&5
8970 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8971 if test "${ac_cv_func_shl_load+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 cat >conftest.$ac_ext <<_ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8980 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8982 #define shl_load innocuous_shl_load
8984 /* System header to define __stub macros and hopefully few prototypes,
8985 which can conflict with char shl_load (); below.
8986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8987 <limits.h> exists even on freestanding compilers. */
8990 # include <limits.h>
8992 # include <assert.h>
8997 /* Override any gcc2 internal prototype to avoid an error. */
9002 /* We use char because int might match the return type of a gcc2
9003 builtin and then its argument prototype would still apply. */
9005 /* The GNU C library defines this for functions which it implements
9006 to always fail with ENOSYS. Some functions are actually named
9007 something starting with __ and the normal name is an alias. */
9008 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9011 char (*f) () = shl_load;
9020 return f != shl_load;
9025 rm -f conftest.$ac_objext conftest$ac_exeext
9026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9027 (eval $ac_link) 2>conftest.er1
9029 grep -v '^ *+' conftest.er1 >conftest.err
9031 cat conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } &&
9034 { ac_try='test -z "$ac_c_werror_flag"
9035 || test ! -s conftest.err'
9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; } &&
9041 { ac_try='test -s conftest$ac_exeext'
9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; }; then
9047 ac_cv_func_shl_load=yes
9049 echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9052 ac_cv_func_shl_load=no
9054 rm -f conftest.err conftest.$ac_objext \
9055 conftest$ac_exeext conftest.$ac_ext
9057 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9058 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9059 if test $ac_cv_func_shl_load = yes; then
9060 lt_cv_dlopen="shl_load"
9062 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9063 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9064 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 ac_check_lib_save_LIBS=$LIBS
9069 cat >conftest.$ac_ext <<_ACEOF
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h. */
9076 /* Override any gcc2 internal prototype to avoid an error. */
9080 /* We use char because int might match the return type of a gcc2
9081 builtin and then its argument prototype would still apply. */
9091 rm -f conftest.$ac_objext conftest$ac_exeext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9093 (eval $ac_link) 2>conftest.er1
9095 grep -v '^ *+' conftest.er1 >conftest.err
9097 cat conftest.err >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } &&
9100 { ac_try='test -z "$ac_c_werror_flag"
9101 || test ! -s conftest.err'
9102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; } &&
9107 { ac_try='test -s conftest$ac_exeext'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; }; then
9113 ac_cv_lib_dld_shl_load=yes
9115 echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9118 ac_cv_lib_dld_shl_load=no
9120 rm -f conftest.err conftest.$ac_objext \
9121 conftest$ac_exeext conftest.$ac_ext
9122 LIBS=$ac_check_lib_save_LIBS
9124 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9125 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9126 if test $ac_cv_lib_dld_shl_load = yes; then
9127 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9129 echo "$as_me:$LINENO: checking for dlopen" >&5
9130 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9131 if test "${ac_cv_func_dlopen+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 cat >conftest.$ac_ext <<_ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9140 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9142 #define dlopen innocuous_dlopen
9144 /* System header to define __stub macros and hopefully few prototypes,
9145 which can conflict with char dlopen (); below.
9146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9147 <limits.h> exists even on freestanding compilers. */
9150 # include <limits.h>
9152 # include <assert.h>
9157 /* Override any gcc2 internal prototype to avoid an error. */
9162 /* We use char because int might match the return type of a gcc2
9163 builtin and then its argument prototype would still apply. */
9165 /* The GNU C library defines this for functions which it implements
9166 to always fail with ENOSYS. Some functions are actually named
9167 something starting with __ and the normal name is an alias. */
9168 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9171 char (*f) () = dlopen;
9185 rm -f conftest.$ac_objext conftest$ac_exeext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9187 (eval $ac_link) 2>conftest.er1
9189 grep -v '^ *+' conftest.er1 >conftest.err
9191 cat conftest.err >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } &&
9194 { ac_try='test -z "$ac_c_werror_flag"
9195 || test ! -s conftest.err'
9196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; } &&
9201 { ac_try='test -s conftest$ac_exeext'
9202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9207 ac_cv_func_dlopen=yes
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9212 ac_cv_func_dlopen=no
9214 rm -f conftest.err conftest.$ac_objext \
9215 conftest$ac_exeext conftest.$ac_ext
9217 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9218 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9219 if test $ac_cv_func_dlopen = yes; then
9220 lt_cv_dlopen="dlopen"
9222 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9223 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9224 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9227 ac_check_lib_save_LIBS=$LIBS
9229 cat >conftest.$ac_ext <<_ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9236 /* Override any gcc2 internal prototype to avoid an error. */
9240 /* We use char because int might match the return type of a gcc2
9241 builtin and then its argument prototype would still apply. */
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253 (eval $ac_link) 2>conftest.er1
9255 grep -v '^ *+' conftest.er1 >conftest.err
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } &&
9260 { ac_try='test -z "$ac_c_werror_flag"
9261 || test ! -s conftest.err'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; } &&
9267 { ac_try='test -s conftest$ac_exeext'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; }; then
9273 ac_cv_lib_dl_dlopen=yes
9275 echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9278 ac_cv_lib_dl_dlopen=no
9280 rm -f conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9282 LIBS=$ac_check_lib_save_LIBS
9284 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9285 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9286 if test $ac_cv_lib_dl_dlopen = yes; then
9287 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9289 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9290 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9291 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 ac_check_lib_save_LIBS=$LIBS
9296 cat >conftest.$ac_ext <<_ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9303 /* Override any gcc2 internal prototype to avoid an error. */
9307 /* We use char because int might match the return type of a gcc2
9308 builtin and then its argument prototype would still apply. */
9318 rm -f conftest.$ac_objext conftest$ac_exeext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320 (eval $ac_link) 2>conftest.er1
9322 grep -v '^ *+' conftest.er1 >conftest.err
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } &&
9327 { ac_try='test -z "$ac_c_werror_flag"
9328 || test ! -s conftest.err'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; } &&
9334 { ac_try='test -s conftest$ac_exeext'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 ac_cv_lib_svld_dlopen=yes
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9345 ac_cv_lib_svld_dlopen=no
9347 rm -f conftest.err conftest.$ac_objext \
9348 conftest$ac_exeext conftest.$ac_ext
9349 LIBS=$ac_check_lib_save_LIBS
9351 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9352 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9353 if test $ac_cv_lib_svld_dlopen = yes; then
9354 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9356 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9357 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9358 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9359 echo $ECHO_N "(cached) $ECHO_C" >&6
9361 ac_check_lib_save_LIBS=$LIBS
9363 cat >conftest.$ac_ext <<_ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9370 /* Override any gcc2 internal prototype to avoid an error. */
9374 /* We use char because int might match the return type of a gcc2
9375 builtin and then its argument prototype would still apply. */
9385 rm -f conftest.$ac_objext conftest$ac_exeext
9386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9387 (eval $ac_link) 2>conftest.er1
9389 grep -v '^ *+' conftest.er1 >conftest.err
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } &&
9394 { ac_try='test -z "$ac_c_werror_flag"
9395 || test ! -s conftest.err'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; } &&
9401 { ac_try='test -s conftest$ac_exeext'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; }; then
9407 ac_cv_lib_dld_dld_link=yes
9409 echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9412 ac_cv_lib_dld_dld_link=no
9414 rm -f conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
9416 LIBS=$ac_check_lib_save_LIBS
9418 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9419 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9420 if test $ac_cv_lib_dld_dld_link = yes; then
9421 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9442 if test "x$lt_cv_dlopen" != xno; then
9448 case $lt_cv_dlopen in
9450 save_CPPFLAGS="$CPPFLAGS"
9451 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9453 save_LDFLAGS="$LDFLAGS"
9454 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9457 LIBS="$lt_cv_dlopen_libs $LIBS"
9459 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9460 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9461 if test "${lt_cv_dlopen_self+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 if test "$cross_compiling" = yes; then :
9465 lt_cv_dlopen_self=cross
9467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9468 lt_status=$lt_dlunknown
9469 cat > conftest.$ac_ext <<EOF
9470 #line 9470 "configure"
9471 #include "confdefs.h"
9480 # define LT_DLGLOBAL RTLD_GLOBAL
9483 # define LT_DLGLOBAL DL_GLOBAL
9485 # define LT_DLGLOBAL 0
9489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9490 find out it does not work in some platform. */
9491 #ifndef LT_DLLAZY_OR_NOW
9493 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9496 # define LT_DLLAZY_OR_NOW DL_LAZY
9499 # define LT_DLLAZY_OR_NOW RTLD_NOW
9502 # define LT_DLLAZY_OR_NOW DL_NOW
9504 # define LT_DLLAZY_OR_NOW 0
9512 extern "C" void exit (int);
9515 void fnord() { int i=42;}
9518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9519 int status = $lt_dlunknown;
9523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9524 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9525 /* dlclose (self); */
9531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9532 (eval $ac_link) 2>&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9536 (./conftest; exit; ) >&5 2>/dev/null
9539 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9540 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9541 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9544 # compilation failed
9545 lt_cv_dlopen_self=no
9552 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9553 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9555 if test "x$lt_cv_dlopen_self" = xyes; then
9556 LDFLAGS="$LDFLAGS $link_static_flag"
9557 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9558 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9559 if test "${lt_cv_dlopen_self_static+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 if test "$cross_compiling" = yes; then :
9563 lt_cv_dlopen_self_static=cross
9565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9566 lt_status=$lt_dlunknown
9567 cat > conftest.$ac_ext <<EOF
9568 #line 9568 "configure"
9569 #include "confdefs.h"
9578 # define LT_DLGLOBAL RTLD_GLOBAL
9581 # define LT_DLGLOBAL DL_GLOBAL
9583 # define LT_DLGLOBAL 0
9587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9588 find out it does not work in some platform. */
9589 #ifndef LT_DLLAZY_OR_NOW
9591 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9594 # define LT_DLLAZY_OR_NOW DL_LAZY
9597 # define LT_DLLAZY_OR_NOW RTLD_NOW
9600 # define LT_DLLAZY_OR_NOW DL_NOW
9602 # define LT_DLLAZY_OR_NOW 0
9610 extern "C" void exit (int);
9613 void fnord() { int i=42;}
9616 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9617 int status = $lt_dlunknown;
9621 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9622 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9623 /* dlclose (self); */
9629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9630 (eval $ac_link) 2>&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9634 (./conftest; exit; ) >&5 2>/dev/null
9637 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9638 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9639 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9642 # compilation failed
9643 lt_cv_dlopen_self_static=no
9650 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9651 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9654 CPPFLAGS="$save_CPPFLAGS"
9655 LDFLAGS="$save_LDFLAGS"
9660 case $lt_cv_dlopen_self in
9661 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9662 *) enable_dlopen_self=unknown ;;
9665 case $lt_cv_dlopen_self_static in
9666 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9667 *) enable_dlopen_self_static=unknown ;;
9672 # Report which librarie types wil actually be built
9673 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9674 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9675 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9676 echo "${ECHO_T}$can_build_shared" >&6
9678 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9679 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9680 test "$can_build_shared" = "no" && enable_shared=no
9682 # On AIX, shared libraries and static libraries use the same namespace, and
9683 # are all built from PIC.
9686 test "$enable_shared" = yes && enable_static=no
9687 if test -n "$RANLIB"; then
9688 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9689 postinstall_cmds='$RANLIB $lib'
9694 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9695 test "$enable_shared" = yes && enable_static=no
9699 echo "$as_me:$LINENO: result: $enable_shared" >&5
9700 echo "${ECHO_T}$enable_shared" >&6
9702 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9703 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9704 # Make sure either enable_shared or enable_static is yes.
9705 test "$enable_shared" = yes || enable_static=yes
9706 echo "$as_me:$LINENO: result: $enable_static" >&5
9707 echo "${ECHO_T}$enable_static" >&6
9709 # The else clause should only fire when bootstrapping the
9710 # libtool distribution, otherwise you forgot to ship ltmain.sh
9711 # with your package, and you will get complaints that there are
9712 # no rules to generate ltmain.sh.
9713 if test -f "$ltmain"; then
9714 # See if we are running on zsh, and set the options which allow our commands through
9715 # without removal of \ escapes.
9716 if test -n "${ZSH_VERSION+set}" ; then
9717 setopt NO_GLOB_SUBST
9719 # Now quote all the things that may contain metacharacters while being
9720 # careful not to overquote the AC_SUBSTed values. We take copies of the
9721 # variables and quote the copies for generation of the libtool script.
9722 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9724 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9725 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9726 deplibs_check_method reload_flag reload_cmds need_locks \
9727 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9728 lt_cv_sys_global_symbol_to_c_name_address \
9729 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9730 old_postinstall_cmds old_postuninstall_cmds \
9734 lt_prog_compiler_wl \
9735 lt_prog_compiler_pic \
9736 lt_prog_compiler_static \
9737 lt_prog_compiler_no_builtin_flag \
9738 export_dynamic_flag_spec \
9739 thread_safe_flag_spec \
9740 whole_archive_flag_spec \
9741 enable_shared_with_static_runtimes \
9743 old_archive_from_new_cmds \
9748 compiler_lib_search_path \
9750 archive_expsym_cmds \
9752 postuninstall_cmds \
9753 old_archive_from_expsyms_cmds \
9754 allow_undefined_flag \
9756 export_symbols_cmds \
9757 hardcode_libdir_flag_spec \
9758 hardcode_libdir_flag_spec_ld \
9759 hardcode_libdir_separator \
9760 hardcode_automatic \
9762 module_expsym_cmds \
9763 lt_cv_prog_compiler_c_o \
9768 old_archive_cmds | \
9769 old_archive_from_new_cmds | \
9771 archive_expsym_cmds | \
9773 module_expsym_cmds | \
9774 old_archive_from_expsyms_cmds | \
9775 export_symbols_cmds | \
9776 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9777 postinstall_cmds | postuninstall_cmds | \
9778 old_postinstall_cmds | old_postuninstall_cmds | \
9779 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9780 # Double-quote double-evaled strings.
9781 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9784 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9790 *'\$0 --fallback-echo"')
9791 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9796 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9798 { echo "$as_me:$LINENO: creating $ofile" >&5
9799 echo "$as_me: creating $ofile" >&6;}
9801 cat <<__EOF__ >> "$cfgfile"
9804 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9805 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9806 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9808 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9809 # Free Software Foundation, Inc.
9811 # This file is part of GNU Libtool:
9812 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9814 # This program is free software; you can redistribute it and/or modify
9815 # it under the terms of the GNU General Public License as published by
9816 # the Free Software Foundation; either version 2 of the License, or
9817 # (at your option) any later version.
9819 # This program is distributed in the hope that it will be useful, but
9820 # WITHOUT ANY WARRANTY; without even the implied warranty of
9821 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9822 # General Public License for more details.
9824 # You should have received a copy of the GNU General Public License
9825 # along with this program; if not, write to the Free Software
9826 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9828 # As a special exception to the GNU General Public License, if you
9829 # distribute this file as part of a program that contains a
9830 # configuration script generated by Autoconf, you may include it under
9831 # the same distribution terms that you use for the rest of that program.
9833 # A sed program that does not truncate output.
9836 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9837 Xsed="$SED -e 1s/^X//"
9839 # The HP-UX ksh and POSIX shell print the target directory to stdout
9841 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9843 # The names of the tagged configurations supported by this script.
9846 # ### BEGIN LIBTOOL CONFIG
9848 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9850 # Shell to use when invoking shell scripts.
9853 # Whether or not to build shared libraries.
9854 build_libtool_libs=$enable_shared
9856 # Whether or not to build static libraries.
9857 build_old_libs=$enable_static
9859 # Whether or not to add -lc for building shared libraries.
9860 build_libtool_need_lc=$archive_cmds_need_lc
9862 # Whether or not to disallow shared libs when runtime libs are static
9863 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9865 # Whether or not to optimize for fast installation.
9866 fast_install=$enable_fast_install
9869 host_alias=$host_alias
9874 build_alias=$build_alias
9878 # An echo program that does not interpret backslashes.
9883 AR_FLAGS=$lt_AR_FLAGS
9888 # A language-specific compiler.
9891 # Is the compiler the GNU C compiler?
9897 # The linker used to build libraries.
9900 # Whether we need hard or soft links.
9903 # A BSD-compatible nm program.
9906 # A symbol stripping program
9909 # Used to examine libraries when file_magic_cmd begins "file"
9910 MAGIC_CMD=$MAGIC_CMD
9912 # Used on cygwin: DLL creation program.
9915 # Used on cygwin: object dumper.
9918 # Used on cygwin: assembler.
9921 # The name of the directory that contains temporary libtool files.
9924 # How to create reloadable object files.
9925 reload_flag=$lt_reload_flag
9926 reload_cmds=$lt_reload_cmds
9928 # How to pass a linker flag through the compiler.
9929 wl=$lt_lt_prog_compiler_wl
9931 # Object file suffix (normally "o").
9934 # Old archive suffix (normally "a").
9937 # Shared library suffix (normally ".so").
9938 shrext_cmds='$shrext_cmds'
9940 # Executable file suffix (normally "").
9943 # Additional compiler flags for building library objects.
9944 pic_flag=$lt_lt_prog_compiler_pic
9947 # What is the maximum length of a command?
9948 max_cmd_len=$lt_cv_sys_max_cmd_len
9950 # Does compiler simultaneously support -c and -o options?
9951 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9953 # Must we lock files when doing compilation?
9954 need_locks=$lt_need_locks
9956 # Do we need the lib prefix for modules?
9957 need_lib_prefix=$need_lib_prefix
9959 # Do we need a version for libraries?
9960 need_version=$need_version
9962 # Whether dlopen is supported.
9963 dlopen_support=$enable_dlopen
9965 # Whether dlopen of programs is supported.
9966 dlopen_self=$enable_dlopen_self
9968 # Whether dlopen of statically linked programs is supported.
9969 dlopen_self_static=$enable_dlopen_self_static
9971 # Compiler flag to prevent dynamic linking.
9972 link_static_flag=$lt_lt_prog_compiler_static
9974 # Compiler flag to turn off builtin functions.
9975 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9977 # Compiler flag to allow reflexive dlopens.
9978 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9980 # Compiler flag to generate shared objects directly from archives.
9981 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9983 # Compiler flag to generate thread-safe objects.
9984 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9986 # Library versioning type.
9987 version_type=$version_type
9989 # Format of library name prefix.
9990 libname_spec=$lt_libname_spec
9992 # List of archive names. First name is the real one, the rest are links.
9993 # The last name is the one that the linker finds with -lNAME.
9994 library_names_spec=$lt_library_names_spec
9996 # The coded name of the library, if different from the real name.
9997 soname_spec=$lt_soname_spec
9999 # Commands used to build and install an old-style archive.
10001 old_archive_cmds=$lt_old_archive_cmds
10002 old_postinstall_cmds=$lt_old_postinstall_cmds
10003 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10005 # Create an old-style archive from a shared archive.
10006 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10008 # Create a temporary old-style archive to link instead of a shared archive.
10009 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10011 # Commands used to build and install a shared archive.
10012 archive_cmds=$lt_archive_cmds
10013 archive_expsym_cmds=$lt_archive_expsym_cmds
10014 postinstall_cmds=$lt_postinstall_cmds
10015 postuninstall_cmds=$lt_postuninstall_cmds
10017 # Commands used to build a loadable module (assumed same as above if empty)
10018 module_cmds=$lt_module_cmds
10019 module_expsym_cmds=$lt_module_expsym_cmds
10021 # Commands to strip libraries.
10022 old_striplib=$lt_old_striplib
10023 striplib=$lt_striplib
10025 # Dependencies to place before the objects being linked to create a
10027 predep_objects=$lt_predep_objects
10029 # Dependencies to place after the objects being linked to create a
10031 postdep_objects=$lt_postdep_objects
10033 # Dependencies to place before the objects being linked to create a
10035 predeps=$lt_predeps
10037 # Dependencies to place after the objects being linked to create a
10039 postdeps=$lt_postdeps
10041 # The library search path used internally by the compiler when linking
10042 # a shared library.
10043 compiler_lib_search_path=$lt_compiler_lib_search_path
10045 # Method to check whether dependent libraries are shared objects.
10046 deplibs_check_method=$lt_deplibs_check_method
10048 # Command to use when deplibs_check_method == file_magic.
10049 file_magic_cmd=$lt_file_magic_cmd
10051 # Flag that allows shared libraries with undefined symbols to be built.
10052 allow_undefined_flag=$lt_allow_undefined_flag
10054 # Flag that forces no undefined symbols.
10055 no_undefined_flag=$lt_no_undefined_flag
10057 # Commands used to finish a libtool library installation in a directory.
10058 finish_cmds=$lt_finish_cmds
10060 # Same as above, but a single script fragment to be evaled but not shown.
10061 finish_eval=$lt_finish_eval
10063 # Take the output of nm and produce a listing of raw symbols and C names.
10064 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10066 # Transform the output of nm in a proper C declaration
10067 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10069 # Transform the output of nm in a C name address pair
10070 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10072 # This is the shared library runtime path variable.
10073 runpath_var=$runpath_var
10075 # This is the shared library path variable.
10076 shlibpath_var=$shlibpath_var
10078 # Is shlibpath searched before the hard-coded library search path?
10079 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10081 # How to hardcode a shared library path into an executable.
10082 hardcode_action=$hardcode_action
10084 # Whether we should hardcode library paths into libraries.
10085 hardcode_into_libs=$hardcode_into_libs
10087 # Flag to hardcode \$libdir into a binary during linking.
10088 # This must work even if \$libdir does not exist.
10089 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10091 # If ld is used when linking, flag to hardcode \$libdir into
10092 # a binary during linking. This must work even if \$libdir does
10094 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10096 # Whether we need a single -rpath flag with a separated argument.
10097 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10099 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10100 # resulting binary.
10101 hardcode_direct=$hardcode_direct
10103 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10104 # resulting binary.
10105 hardcode_minus_L=$hardcode_minus_L
10107 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10108 # the resulting binary.
10109 hardcode_shlibpath_var=$hardcode_shlibpath_var
10111 # Set to yes if building a shared library automatically hardcodes DIR into the library
10112 # and all subsequent libraries and executables linked against it.
10113 hardcode_automatic=$hardcode_automatic
10115 # Variables whose values should be saved in libtool wrapper scripts and
10116 # restored at relink time.
10117 variables_saved_for_relink="$variables_saved_for_relink"
10119 # Whether libtool must link a program against all its dependency libraries.
10120 link_all_deplibs=$link_all_deplibs
10122 # Compile-time system search path for libraries
10123 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10125 # Run-time system search path for libraries
10126 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10128 # Fix the shell variable \$srcfile for the compiler.
10129 fix_srcfile_path="$fix_srcfile_path"
10131 # Set to yes if exported symbols are required.
10132 always_export_symbols=$always_export_symbols
10134 # The commands to list exported symbols.
10135 export_symbols_cmds=$lt_export_symbols_cmds
10137 # The commands to extract the exported symbol list from a shared archive.
10138 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10140 # Symbols that should not be listed in the preloaded symbols.
10141 exclude_expsyms=$lt_exclude_expsyms
10143 # Symbols that must always be exported.
10144 include_expsyms=$lt_include_expsyms
10146 # ### END LIBTOOL CONFIG
10153 cat <<\EOF >> "$cfgfile"
10155 # AIX sometimes has problems with the GCC collect2 program. For some
10156 # reason, if we set the COLLECT_NAMES environment variable, the problems
10157 # vanish in a puff of smoke.
10158 if test "X${COLLECT_NAMES+set}" != Xset; then
10160 export COLLECT_NAMES
10166 # We use sed instead of cat because bash on DJGPP gets confused if
10167 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10168 # text mode, it properly converts lines to CR/LF. This bash problem
10169 # is reportedly fixed, but why not run on old versions too?
10170 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10172 mv -f "$cfgfile" "$ofile" || \
10173 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10177 # If there is no Makefile yet, we rely on a make rule to execute
10178 # `config.status --recheck' to rerun these tests and create the
10179 # libtool script then.
10180 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10181 if test -f "$ltmain_in"; then
10182 test -f Makefile && make "$ltmain"
10188 ac_cpp='$CPP $CPPFLAGS'
10189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10196 # Check whether --with-tags or --without-tags was given.
10197 if test "${with_tags+set}" = set; then
10198 withval="$with_tags"
10199 tagnames="$withval"
10202 if test -f "$ltmain" && test -n "$tagnames"; then
10203 if test ! -f "${ofile}"; then
10204 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10205 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10208 if test -z "$LTCC"; then
10209 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10210 if test -z "$LTCC"; then
10211 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10212 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10214 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10215 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10219 # Extract list of available tagged configurations in $ofile.
10220 # Note that this assumes the entire list is on one line.
10221 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10223 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10224 for tagname in $tagnames; do
10226 # Check whether tagname contains only valid characters
10227 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10229 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10230 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10231 { (exit 1); exit 1; }; }
10235 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10237 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10238 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10239 { (exit 1); exit 1; }; }
10242 # Update the list of available tags.
10243 if test -n "$tagname"; then
10244 echo appending configuration tag \"$tagname\" to $ofile
10248 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10249 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10250 (test "X$CXX" != "Xg++"))) ; then
10252 ac_cpp='$CXXCPP $CPPFLAGS'
10253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10260 archive_cmds_need_lc_CXX=no
10261 allow_undefined_flag_CXX=
10262 always_export_symbols_CXX=no
10263 archive_expsym_cmds_CXX=
10264 export_dynamic_flag_spec_CXX=
10265 hardcode_direct_CXX=no
10266 hardcode_libdir_flag_spec_CXX=
10267 hardcode_libdir_flag_spec_ld_CXX=
10268 hardcode_libdir_separator_CXX=
10269 hardcode_minus_L_CXX=no
10270 hardcode_automatic_CXX=no
10272 module_expsym_cmds_CXX=
10273 link_all_deplibs_CXX=unknown
10274 old_archive_cmds_CXX=$old_archive_cmds
10275 no_undefined_flag_CXX=
10276 whole_archive_flag_spec_CXX=
10277 enable_shared_with_static_runtimes_CXX=no
10279 # Dependencies to place before and after the object being linked:
10280 predep_objects_CXX=
10281 postdep_objects_CXX=
10284 compiler_lib_search_path_CXX=
10286 # Source file extension for C++ test sources.
10289 # Object file extension for compiled C++ test sources.
10293 # Code to be used in simple compile tests
10294 lt_simple_compile_test_code="int some_variable = 0;\n"
10296 # Code to be used in simple link tests
10297 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10299 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10301 # If no C compiler was specified, use CC.
10304 # Allow CC to be a program name with arguments.
10308 # save warnings/boilerplate of simple test code
10309 ac_outfile=conftest.$ac_objext
10310 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10311 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10312 _lt_compiler_boilerplate=`cat conftest.err`
10315 ac_outfile=conftest.$ac_objext
10316 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10317 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10318 _lt_linker_boilerplate=`cat conftest.err`
10322 # Allow CC to be a program name with arguments.
10327 lt_save_with_gnu_ld=$with_gnu_ld
10328 lt_save_path_LD=$lt_cv_path_LD
10329 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10330 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10332 unset lt_cv_prog_gnu_ld
10334 if test -n "${lt_cv_path_LDCXX+set}"; then
10335 lt_cv_path_LD=$lt_cv_path_LDCXX
10337 unset lt_cv_path_LD
10339 test -z "${LDCXX+set}" || LD=$LDCXX
10343 for cc_temp in $compiler""; do
10345 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10346 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10351 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10354 # We don't want -fno-exception wen compiling C++ code, so set the
10355 # no_builtin_flag separately
10356 if test "$GXX" = yes; then
10357 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10359 lt_prog_compiler_no_builtin_flag_CXX=
10362 if test "$GXX" = yes; then
10363 # Set up default GNU C++ configuration
10366 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10367 if test "${with_gnu_ld+set}" = set; then
10368 withval="$with_gnu_ld"
10369 test "$withval" = no || with_gnu_ld=yes
10374 if test "$GCC" = yes; then
10375 # Check if gcc -print-prog-name=ld gives a path.
10376 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10377 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10380 # gcc leaves a trailing carriage return which upsets mingw
10381 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10383 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10386 # Accept absolute paths.
10388 re_direlt='/[^/][^/]*/\.\./'
10389 # Canonicalize the pathname of ld
10390 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10391 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10392 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10394 test -z "$LD" && LD="$ac_prog"
10397 # If it fails, then pretend we aren't using GCC.
10401 # If it is relative, then search for the first ld in PATH.
10402 with_gnu_ld=unknown
10405 elif test "$with_gnu_ld" = yes; then
10406 echo "$as_me:$LINENO: checking for GNU ld" >&5
10407 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10409 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10410 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10412 if test "${lt_cv_path_LD+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10415 if test -z "$LD"; then
10416 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10417 for ac_dir in $PATH; do
10419 test -z "$ac_dir" && ac_dir=.
10420 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10421 lt_cv_path_LD="$ac_dir/$ac_prog"
10422 # Check to see if the program is GNU ld. I'd rather use --version,
10423 # but apparently some variants of GNU ld only accept -v.
10424 # Break only if it was the GNU/non-GNU ld that we prefer.
10425 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10426 *GNU* | *'with BFD'*)
10427 test "$with_gnu_ld" != no && break
10430 test "$with_gnu_ld" != yes && break
10437 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10441 LD="$lt_cv_path_LD"
10442 if test -n "$LD"; then
10443 echo "$as_me:$LINENO: result: $LD" >&5
10444 echo "${ECHO_T}$LD" >&6
10446 echo "$as_me:$LINENO: result: no" >&5
10447 echo "${ECHO_T}no" >&6
10449 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10450 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10451 { (exit 1); exit 1; }; }
10452 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10453 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10454 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10458 case `$LD -v 2>&1 </dev/null` in
10459 *GNU* | *'with BFD'*)
10460 lt_cv_prog_gnu_ld=yes
10463 lt_cv_prog_gnu_ld=no
10467 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10468 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10469 with_gnu_ld=$lt_cv_prog_gnu_ld
10473 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10474 # archiving commands below assume that GNU ld is being used.
10475 if test "$with_gnu_ld" = yes; then
10476 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10477 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'
10479 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10480 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10482 # If archive_cmds runs LD, not CC, wlarc should be empty
10483 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10484 # investigate it a little bit more. (MM)
10487 # ancient GNU ld didn't support --whole-archive et. al.
10488 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10489 grep 'no-whole-archive' > /dev/null; then
10490 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10492 whole_archive_flag_spec_CXX=
10498 # A generic and very simple default shared library creation
10499 # command for GNU C++ for the case where it uses the native
10500 # linker, instead of GNU ld. If possible, this setting should
10501 # overridden to take advantage of the native linker features on
10502 # the platform it is being used on.
10503 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10506 # Commands to make compiler produce verbose output that lists
10507 # what "hidden" libraries, object files and flags are used when
10508 # linking a shared library.
10509 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10517 # PORTME: fill in a description of your system's C++ link characteristics
10518 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10519 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10523 # FIXME: insert proper C++ library support
10527 if test "$host_cpu" = ia64; then
10528 # On IA64, the linker does run time linking by default, so we don't
10529 # have to do anything special.
10530 aix_use_runtimelinking=no
10531 exp_sym_flag='-Bexport'
10534 aix_use_runtimelinking=no
10536 # Test if we are trying to use run time linking or normal
10537 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10538 # need to do runtime linking.
10539 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10540 for ld_flag in $LDFLAGS; do
10543 aix_use_runtimelinking=yes
10550 exp_sym_flag='-bexport'
10551 no_entry_flag='-bnoentry'
10554 # When large executables or shared objects are built, AIX ld can
10555 # have problems creating the table of contents. If linking a library
10556 # or program results in "error TOC overflow" add -mminimal-toc to
10557 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10558 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10560 archive_cmds_CXX=''
10561 hardcode_direct_CXX=yes
10562 hardcode_libdir_separator_CXX=':'
10563 link_all_deplibs_CXX=yes
10565 if test "$GXX" = yes; then
10566 case $host_os in aix4.[012]|aix4.[012].*)
10567 # We only want to do this on AIX 4.2 and lower, the check
10568 # below for broken collect2 doesn't work under 4.3+
10569 collect2name=`${CC} -print-prog-name=collect2`
10570 if test -f "$collect2name" && \
10571 strings "$collect2name" | grep resolve_lib_name >/dev/null
10573 # We have reworked collect2
10574 hardcode_direct_CXX=yes
10576 # We have old collect2
10577 hardcode_direct_CXX=unsupported
10578 # It fails to find uninstalled libraries when the uninstalled
10579 # path is not listed in the libpath. Setting hardcode_minus_L
10580 # to unsupported forces relinking
10581 hardcode_minus_L_CXX=yes
10582 hardcode_libdir_flag_spec_CXX='-L$libdir'
10583 hardcode_libdir_separator_CXX=
10586 shared_flag='-shared'
10587 if test "$aix_use_runtimelinking" = yes; then
10588 shared_flag="$shared_flag "'${wl}-G'
10592 if test "$host_cpu" = ia64; then
10593 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10594 # chokes on -Wl,-G. The following line is correct:
10597 if test "$aix_use_runtimelinking" = yes; then
10598 shared_flag='${wl}-G'
10600 shared_flag='${wl}-bM:SRE'
10605 # It seems that -bexpall does not export symbols beginning with
10606 # underscore (_), so it is better to generate a list of symbols to export.
10607 always_export_symbols_CXX=yes
10608 if test "$aix_use_runtimelinking" = yes; then
10609 # Warning - without using the other runtime loading flags (-brtl),
10610 # -berok will link without error, but may produce a broken library.
10611 allow_undefined_flag_CXX='-berok'
10612 # Determine the default libpath from the value encoded in an empty executable.
10613 cat >conftest.$ac_ext <<_ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10628 rm -f conftest.$ac_objext conftest$ac_exeext
10629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10630 (eval $ac_link) 2>conftest.er1
10632 grep -v '^ *+' conftest.er1 >conftest.err
10634 cat conftest.err >&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } &&
10637 { ac_try='test -z "$ac_cxx_werror_flag"
10638 || test ! -s conftest.err'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; } &&
10644 { ac_try='test -s conftest$ac_exeext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10651 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10653 # Check for a 64-bit object if we didn't find anything.
10654 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; }
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10661 rm -f conftest.err conftest.$ac_objext \
10662 conftest$ac_exeext conftest.$ac_ext
10663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10665 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10667 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"
10669 if test "$host_cpu" = ia64; then
10670 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10671 allow_undefined_flag_CXX="-z nodefs"
10672 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"
10674 # Determine the default libpath from the value encoded in an empty executable.
10675 cat >conftest.$ac_ext <<_ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10690 rm -f conftest.$ac_objext conftest$ac_exeext
10691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10692 (eval $ac_link) 2>conftest.er1
10694 grep -v '^ *+' conftest.er1 >conftest.err
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } &&
10699 { ac_try='test -z "$ac_cxx_werror_flag"
10700 || test ! -s conftest.err'
10701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702 (eval $ac_try) 2>&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; } &&
10706 { ac_try='test -s conftest$ac_exeext'
10707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708 (eval $ac_try) 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; }; then
10713 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10715 # Check for a 64-bit object if we didn't find anything.
10716 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; }
10719 echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10723 rm -f conftest.err conftest.$ac_objext \
10724 conftest$ac_exeext conftest.$ac_ext
10725 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10727 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10728 # Warning - without using the other run time loading flags,
10729 # -berok will link without error, but may produce a broken library.
10730 no_undefined_flag_CXX=' ${wl}-bernotok'
10731 allow_undefined_flag_CXX=' ${wl}-berok'
10732 # -bexpall does not export symbols beginning with underscore (_)
10733 always_export_symbols_CXX=yes
10734 # Exported symbols can be pulled into shared objects from archives
10735 whole_archive_flag_spec_CXX=' '
10736 archive_cmds_need_lc_CXX=yes
10737 # This is similar to how AIX traditionally builds its shared libraries.
10738 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'
10743 case $cc_basename in
10745 # FIXME: insert proper C++ library support
10752 cygwin* | mingw* | pw32*)
10753 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10754 # as there is no search path for DLLs.
10755 hardcode_libdir_flag_spec_CXX='-L$libdir'
10756 allow_undefined_flag_CXX=unsupported
10757 always_export_symbols_CXX=no
10758 enable_shared_with_static_runtimes_CXX=yes
10760 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10761 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'
10762 # If the export-symbols file already is a .def file (1st line
10763 # is EXPORTS), use it as is; otherwise, prepend...
10764 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10765 cp $export_symbols $output_objdir/$soname.def;
10767 echo EXPORTS > $output_objdir/$soname.def;
10768 cat $export_symbols >> $output_objdir/$soname.def;
10770 $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'
10775 darwin* | rhapsody*)
10777 rhapsody* | darwin1.[012])
10778 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10781 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10782 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10784 case ${MACOSX_DEPLOYMENT_TARGET} in
10786 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10789 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10795 archive_cmds_need_lc_CXX=no
10796 hardcode_direct_CXX=no
10797 hardcode_automatic_CXX=yes
10798 hardcode_shlibpath_var_CXX=unsupported
10799 whole_archive_flag_spec_CXX=''
10800 link_all_deplibs_CXX=yes
10802 if test "$GXX" = yes ; then
10803 lt_int_apple_cc_single_mod=no
10804 output_verbose_link_cmd='echo'
10805 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10806 lt_int_apple_cc_single_mod=yes
10808 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10809 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10811 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10813 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10814 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10815 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10816 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}'
10818 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10820 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10822 case $cc_basename in
10824 output_verbose_link_cmd='echo'
10825 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10826 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10827 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10828 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10829 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10839 case $cc_basename in
10841 # FIXME: insert proper C++ library support
10845 # Green Hills C++ Compiler
10846 # FIXME: insert proper C++ library support
10850 # FIXME: insert proper C++ library support
10856 # C++ shared libraries reported to be fairly broken before switch to ELF
10860 archive_cmds_need_lc_CXX=no
10862 freebsd* | kfreebsd*-gnu | dragonfly*)
10863 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10870 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10871 hardcode_libdir_separator_CXX=:
10872 export_dynamic_flag_spec_CXX='${wl}-E'
10873 hardcode_direct_CXX=yes
10874 hardcode_minus_L_CXX=yes # Not in the search PATH,
10875 # but as the default
10876 # location of the library.
10878 case $cc_basename in
10880 # FIXME: insert proper C++ library support
10884 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'
10885 # Commands to make compiler produce verbose output that lists
10886 # what "hidden" libraries, object files and flags are used when
10887 # linking a shared library.
10889 # There doesn't appear to be a way to prevent this compiler from
10890 # explicitly linking system object files so we need to strip them
10891 # from the output so that they don't get included in the library
10893 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'
10896 if test "$GXX" = yes; then
10897 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'
10899 # FIXME: insert proper C++ library support
10906 if test $with_gnu_ld = no; then
10909 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10910 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10911 hardcode_libdir_separator_CXX=:
10914 hardcode_libdir_flag_spec_CXX='-L$libdir'
10917 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10918 hardcode_libdir_separator_CXX=:
10919 export_dynamic_flag_spec_CXX='${wl}-E'
10925 hardcode_direct_CXX=no
10926 hardcode_shlibpath_var_CXX=no
10929 hardcode_direct_CXX=no
10930 hardcode_shlibpath_var_CXX=no
10931 hardcode_minus_L_CXX=yes # Not in the search PATH,
10932 # but as the default
10933 # location of the library.
10936 hardcode_direct_CXX=yes
10937 hardcode_minus_L_CXX=yes # Not in the search PATH,
10938 # but as the default
10939 # location of the library.
10943 case $cc_basename in
10945 # FIXME: insert proper C++ library support
10951 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10954 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10957 # Commands to make compiler produce verbose output that lists
10958 # what "hidden" libraries, object files and flags are used when
10959 # linking a shared library.
10961 # There doesn't appear to be a way to prevent this compiler from
10962 # explicitly linking system object files so we need to strip them
10963 # from the output so that they don't get included in the library
10965 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'
10968 if test "$GXX" = yes; then
10969 if test $with_gnu_ld = no; then
10972 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10975 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'
10980 # FIXME: insert proper C++ library support
10987 case $cc_basename in
10990 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 ${output_objdir}/so_locations -o $lib'
10992 # Archives containing C++ object files must be created using
10993 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10994 # necessary to make sure instantiated templates are included
10996 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10999 if test "$GXX" = yes; then
11000 if test "$with_gnu_ld" = no; then
11001 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}${output_objdir}/so_locations -o $lib'
11003 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'
11006 link_all_deplibs_CXX=yes
11009 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11010 hardcode_libdir_separator_CXX=:
11013 case $cc_basename in
11015 # Kuck and Associates, Inc. (KAI) C++ Compiler
11017 # KCC will only create a shared library if the output file
11018 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11019 # to its proper name (with version) after linking.
11020 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'
11021 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'
11022 # Commands to make compiler produce verbose output that lists
11023 # what "hidden" libraries, object files and flags are used when
11024 # linking a shared library.
11026 # There doesn't appear to be a way to prevent this compiler from
11027 # explicitly linking system object files so we need to strip them
11028 # from the output so that they don't get included in the library
11030 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'
11032 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11033 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11035 # Archives containing C++ object files must be created using
11036 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11037 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11042 # version 8.0 and above of icpc choke on multiply defined symbols
11043 # if we add $predep_objects and $postdep_objects, however 7.1 and
11044 # earlier do not add the objects themselves.
11045 case `$CC -V 2>&1` in
11047 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11048 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'
11050 *) # Version 8.0 or newer
11053 ia64*) tmp_idyn=' -i_dynamic';;
11055 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11056 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11059 archive_cmds_need_lc_CXX=no
11060 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11061 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11062 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11065 # Portland Group C++ compiler
11066 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11067 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11069 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11070 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11071 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11075 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11076 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'
11078 runpath_var=LD_RUN_PATH
11079 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11080 hardcode_libdir_separator_CXX=:
11082 # Commands to make compiler produce verbose output that lists
11083 # what "hidden" libraries, object files and flags are used when
11084 # linking a shared library.
11086 # There doesn't appear to be a way to prevent this compiler from
11087 # explicitly linking system object files so we need to strip them
11088 # from the output so that they don't get included in the library
11090 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'
11095 # FIXME: insert proper C++ library support
11099 # FIXME: insert proper C++ library support
11103 case $cc_basename in
11105 # FIXME: insert proper C++ library support
11109 # FIXME: insert proper C++ library support
11115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11116 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11118 hardcode_libdir_flag_spec_CXX='-R$libdir'
11119 hardcode_direct_CXX=yes
11120 hardcode_shlibpath_var_CXX=no
11122 # Workaround some broken pre-1.5 toolchains
11123 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11126 # C++ shared libraries are fairly broken
11130 hardcode_direct_CXX=yes
11131 hardcode_shlibpath_var_CXX=no
11132 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11133 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11134 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11135 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11136 export_dynamic_flag_spec_CXX='${wl}-E'
11137 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11139 output_verbose_link_cmd='echo'
11142 case $cc_basename in
11144 # Kuck and Associates, Inc. (KAI) C++ Compiler
11146 # KCC will only create a shared library if the output file
11147 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11148 # to its proper name (with version) after linking.
11149 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'
11151 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11152 hardcode_libdir_separator_CXX=:
11154 # Archives containing C++ object files must be created using
11155 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11156 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11160 # Rational C++ 2.4.1
11161 # FIXME: insert proper C++ library support
11165 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11166 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 ${output_objdir}/so_locations -o $lib'
11168 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11169 hardcode_libdir_separator_CXX=:
11171 # Commands to make compiler produce verbose output that lists
11172 # what "hidden" libraries, object files and flags are used when
11173 # linking a shared library.
11175 # There doesn't appear to be a way to prevent this compiler from
11176 # explicitly linking system object files so we need to strip them
11177 # from the output so that they don't get included in the library
11179 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'
11182 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11183 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11184 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}${output_objdir}/so_locations -o $lib'
11186 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11187 hardcode_libdir_separator_CXX=:
11189 # Commands to make compiler produce verbose output that lists
11190 # what "hidden" libraries, object files and flags are used when
11191 # linking a shared library.
11192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11195 # FIXME: insert proper C++ library support
11202 case $cc_basename in
11204 # Kuck and Associates, Inc. (KAI) C++ Compiler
11206 # KCC will only create a shared library if the output file
11207 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11208 # to its proper name (with version) after linking.
11209 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'
11211 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11212 hardcode_libdir_separator_CXX=:
11214 # Archives containing C++ object files must be created using
11215 # the KAI C++ compiler.
11216 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11219 # Rational C++ 2.4.1
11220 # FIXME: insert proper C++ library support
11224 allow_undefined_flag_CXX=' -expect_unresolved \*'
11225 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 ${output_objdir}/so_locations -o $lib'
11226 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11227 echo "-hidden">> $lib.exp~
11228 $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 ${output_objdir}/so_locations -o $lib~
11231 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11232 hardcode_libdir_separator_CXX=:
11234 # Commands to make compiler produce verbose output that lists
11235 # what "hidden" libraries, object files and flags are used when
11236 # linking a shared library.
11238 # There doesn't appear to be a way to prevent this compiler from
11239 # explicitly linking system object files so we need to strip them
11240 # from the output so that they don't get included in the library
11242 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'
11245 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11246 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11247 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}${output_objdir}/so_locations -o $lib'
11249 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11250 hardcode_libdir_separator_CXX=:
11252 # Commands to make compiler produce verbose output that lists
11253 # what "hidden" libraries, object files and flags are used when
11254 # linking a shared library.
11255 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11258 # FIXME: insert proper C++ library support
11265 # FIXME: insert proper C++ library support
11269 archive_cmds_need_lc_CXX=no
11270 case $cc_basename in
11272 # FIXME: insert proper C++ library support
11276 # FIXME: insert proper C++ library support
11282 case $cc_basename in
11285 # FIXME: insert proper C++ library support
11290 # FIXME: insert proper C++ library support
11294 # FIXME: insert proper C++ library support
11300 case $cc_basename in
11302 # Sun C++ 4.2, 5.x and Centerline C++
11303 archive_cmds_need_lc_CXX=yes
11304 no_undefined_flag_CXX=' -zdefs'
11305 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11306 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11307 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11309 hardcode_libdir_flag_spec_CXX='-R$libdir'
11310 hardcode_shlibpath_var_CXX=no
11312 solaris2.[0-5] | solaris2.[0-5].*) ;;
11314 # The C++ compiler is used as linker so we must use $wl
11315 # flag to pass the commands to the underlying system
11316 # linker. We must also pass each convience library through
11317 # to the system linker between allextract/defaultextract.
11318 # The C++ compiler will combine linker options so we
11319 # cannot just pass the convience library names through
11321 # Supported since Solaris 2.6 (maybe 2.5.1?)
11322 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11325 link_all_deplibs_CXX=yes
11327 output_verbose_link_cmd='echo'
11329 # Archives containing C++ object files must be created using
11330 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11331 # necessary to make sure instantiated templates are included
11333 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11336 # Green Hills C++ Compiler
11337 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11339 # The C++ compiler must be used to create the archive.
11340 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11343 # GNU C++ compiler with Solaris linker
11344 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11345 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11346 if $CC --version | grep -v '^2\.7' > /dev/null; then
11347 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11348 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11349 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11351 # Commands to make compiler produce verbose output that lists
11352 # what "hidden" libraries, object files and flags are used when
11353 # linking a shared library.
11354 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11356 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11358 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11359 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11360 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11362 # Commands to make compiler produce verbose output that lists
11363 # what "hidden" libraries, object files and flags are used when
11364 # linking a shared library.
11365 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11368 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11373 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11374 archive_cmds_need_lc_CXX=no
11377 case $cc_basename in
11379 # NonStop-UX NCC 3.20
11380 # FIXME: insert proper C++ library support
11384 # FIXME: insert proper C++ library support
11390 # FIXME: insert proper C++ library support
11394 # FIXME: insert proper C++ library support
11398 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11399 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11400 test "$ld_shlibs_CXX" = no && can_build_shared=no
11406 cat > conftest.$ac_ext <<EOF
11410 Foo (void) { a = 0; }
11416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11417 (eval $ac_compile) 2>&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; then
11421 # Parse the compiler output and extract the necessary
11422 # objects, libraries and library flags.
11424 # Sentinel used to keep track of whether or not we are before
11425 # the conftest object file.
11426 pre_test_object_deps_done=no
11428 # The `*' in the case matches for architectures that use `case' in
11429 # $output_verbose_cmd can trigger glob expansion during the loop
11430 # eval without this substitution.
11431 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11433 for p in `eval $output_verbose_link_cmd`; do
11437 # Some compilers place space between "-{L,R}" and the path.
11438 # Remove the space.
11439 if test $p = "-L" \
11440 || test $p = "-R"; then
11447 if test "$pre_test_object_deps_done" = no; then
11450 # Internal compiler library paths should come after those
11451 # provided the user. The postdeps already come after the
11452 # user supplied libs so there is no need to process them.
11453 if test -z "$compiler_lib_search_path_CXX"; then
11454 compiler_lib_search_path_CXX="${prev}${p}"
11456 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11459 # The "-l" case would never come before the object being
11460 # linked, so don't bother handling this case.
11463 if test -z "$postdeps_CXX"; then
11464 postdeps_CXX="${prev}${p}"
11466 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11472 # This assumes that the test object file only shows up
11473 # once in the compiler output.
11474 if test "$p" = "conftest.$objext"; then
11475 pre_test_object_deps_done=yes
11479 if test "$pre_test_object_deps_done" = no; then
11480 if test -z "$predep_objects_CXX"; then
11481 predep_objects_CXX="$p"
11483 predep_objects_CXX="$predep_objects_CXX $p"
11486 if test -z "$postdep_objects_CXX"; then
11487 postdep_objects_CXX="$p"
11489 postdep_objects_CXX="$postdep_objects_CXX $p"
11494 *) ;; # Ignore the rest.
11502 echo "libtool.m4: error: problem compiling CXX test program"
11505 $rm -f confest.$objext
11507 # PORTME: override above test on systems where it is broken
11510 case $cc_basename in
11512 # Adding this requires a known-good setup of shared libraries for
11513 # Sun compiler versions before 5.6, else PIC objects from an old
11514 # archive will be linked into the output, leading to subtle bugs.
11515 postdeps_CXX='-lCstd -lCrun'
11521 case " $postdeps_CXX " in
11522 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11525 lt_prog_compiler_wl_CXX=
11526 lt_prog_compiler_pic_CXX=
11527 lt_prog_compiler_static_CXX=
11529 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11530 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11532 # C++ specific cases for pic, static, wl, etc.
11533 if test "$GXX" = yes; then
11534 lt_prog_compiler_wl_CXX='-Wl,'
11535 lt_prog_compiler_static_CXX='-static'
11539 # All AIX code is PIC.
11540 if test "$host_cpu" = ia64; then
11541 # AIX 5 now supports IA64 processor
11542 lt_prog_compiler_static_CXX='-Bstatic'
11546 # FIXME: we need at least 68020 code to build shared libraries, but
11547 # adding the `-m68020' flag to GCC prevents building anything better,
11549 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11551 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11552 # PIC is the default for these OSes.
11554 mingw* | os2* | pw32*)
11555 # This hack is so that the source file can tell whether it is being
11556 # built for inclusion in a dll (and should export symbols for example).
11557 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11559 darwin* | rhapsody*)
11560 # PIC is the default on this platform
11561 # Common symbols not allowed in MH_DYLIB files
11562 lt_prog_compiler_pic_CXX='-fno-common'
11565 # DJGPP does not support shared libraries at all
11566 lt_prog_compiler_pic_CXX=
11569 if test -d /usr/nec; then
11570 lt_prog_compiler_pic_CXX=-Kconform_pic
11574 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11575 # not for PA HP-UX.
11580 lt_prog_compiler_pic_CXX='-fPIC'
11585 lt_prog_compiler_pic_CXX='-fPIC'
11591 # All AIX code is PIC.
11592 if test "$host_cpu" = ia64; then
11593 # AIX 5 now supports IA64 processor
11594 lt_prog_compiler_static_CXX='-Bstatic'
11596 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11600 case $cc_basename in
11602 # Green Hills C++ Compiler
11603 # _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"
11608 # PIC is the default on this platform
11609 # Common symbols not allowed in MH_DYLIB files
11610 case $cc_basename in
11612 lt_prog_compiler_pic_CXX='-qnocommon'
11613 lt_prog_compiler_wl_CXX='-Wl,'
11618 case $cc_basename in
11620 lt_prog_compiler_pic_CXX='-KPIC'
11623 # Green Hills C++ Compiler
11624 lt_prog_compiler_pic_CXX='-pic'
11630 freebsd* | kfreebsd*-gnu | dragonfly*)
11631 # FreeBSD uses GNU C++
11633 hpux9* | hpux10* | hpux11*)
11634 case $cc_basename in
11636 lt_prog_compiler_wl_CXX='-Wl,'
11637 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11638 if test "$host_cpu" != ia64; then
11639 lt_prog_compiler_pic_CXX='+Z'
11643 lt_prog_compiler_wl_CXX='-Wl,'
11644 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11650 lt_prog_compiler_pic_CXX='+Z'
11658 irix5* | irix6* | nonstopux*)
11659 case $cc_basename in
11661 lt_prog_compiler_wl_CXX='-Wl,'
11662 lt_prog_compiler_static_CXX='-non_shared'
11663 # CC pic flag -KPIC is the default.
11670 case $cc_basename in
11673 lt_prog_compiler_wl_CXX='--backend -Wl,'
11674 lt_prog_compiler_pic_CXX='-fPIC'
11678 lt_prog_compiler_wl_CXX='-Wl,'
11679 lt_prog_compiler_pic_CXX='-KPIC'
11680 lt_prog_compiler_static_CXX='-static'
11683 # Portland Group C++ compiler.
11684 lt_prog_compiler_wl_CXX='-Wl,'
11685 lt_prog_compiler_pic_CXX='-fpic'
11686 lt_prog_compiler_static_CXX='-Bstatic'
11690 # Make sure the PIC flag is empty. It appears that all Alpha
11691 # Linux and Compaq Tru64 Unix objects are PIC.
11692 lt_prog_compiler_pic_CXX=
11693 lt_prog_compiler_static_CXX='-non_shared'
11704 case $cc_basename in
11706 lt_prog_compiler_pic_CXX='-W c,exportall'
11714 osf3* | osf4* | osf5*)
11715 case $cc_basename in
11717 lt_prog_compiler_wl_CXX='--backend -Wl,'
11720 # Rational C++ 2.4.1
11721 lt_prog_compiler_pic_CXX='-pic'
11724 # Digital/Compaq C++
11725 lt_prog_compiler_wl_CXX='-Wl,'
11726 # Make sure the PIC flag is empty. It appears that all Alpha
11727 # Linux and Compaq Tru64 Unix objects are PIC.
11728 lt_prog_compiler_pic_CXX=
11729 lt_prog_compiler_static_CXX='-non_shared'
11738 case $cc_basename in
11740 lt_prog_compiler_pic_CXX='-fPIC'
11747 case $cc_basename in
11749 # Sun C++ 4.2, 5.x and Centerline C++
11750 lt_prog_compiler_pic_CXX='-KPIC'
11751 lt_prog_compiler_static_CXX='-Bstatic'
11752 lt_prog_compiler_wl_CXX='-Qoption ld '
11755 # Green Hills C++ Compiler
11756 lt_prog_compiler_pic_CXX='-PIC'
11763 case $cc_basename in
11766 lt_prog_compiler_pic_CXX='-pic'
11767 lt_prog_compiler_static_CXX='-Bstatic'
11771 lt_prog_compiler_pic_CXX='-pic'
11778 case $cc_basename in
11780 # NonStop-UX NCC 3.20
11781 lt_prog_compiler_pic_CXX='-KPIC'
11792 lt_prog_compiler_can_build_shared_CXX=no
11797 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11798 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11801 # Check to make sure the PIC flag actually works.
11803 if test -n "$lt_prog_compiler_pic_CXX"; then
11805 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11806 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11807 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11810 lt_prog_compiler_pic_works_CXX=no
11811 ac_outfile=conftest.$ac_objext
11812 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11813 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11814 # Insert the option either (1) after the last *FLAGS variable, or
11815 # (2) before a word containing "conftest.", or (3) at the end.
11816 # Note that $ac_compile itself does not contain backslashes and begins
11817 # with a dollar sign (not a hyphen), so the echo should work correctly.
11818 # The option is referenced via a variable to avoid confusing sed.
11819 lt_compile=`echo "$ac_compile" | $SED \
11820 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11822 -e 's:$: $lt_compiler_flag:'`
11823 (eval echo "\"\$as_me:11823: $lt_compile\"" >&5)
11824 (eval "$lt_compile" 2>conftest.err)
11826 cat conftest.err >&5
11827 echo "$as_me:11827: \$? = $ac_status" >&5
11828 if (exit $ac_status) && test -s "$ac_outfile"; then
11829 # The compiler can only warn and ignore the option if not recognized
11830 # So say no if there are warnings other than the usual output.
11831 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11832 $SED '/^$/d' conftest.err >conftest.er2
11833 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11834 lt_prog_compiler_pic_works_CXX=yes
11840 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11841 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11843 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11844 case $lt_prog_compiler_pic_CXX in
11846 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11849 lt_prog_compiler_pic_CXX=
11850 lt_prog_compiler_can_build_shared_CXX=no
11855 # For platforms which do not support PIC, -DPIC is meaningless:
11857 lt_prog_compiler_pic_CXX=
11860 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11864 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11865 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11866 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11869 lt_cv_prog_compiler_c_o_CXX=no
11870 $rm -r conftest 2>/dev/null
11874 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11876 lt_compiler_flag="-o out/conftest2.$ac_objext"
11877 # Insert the option either (1) after the last *FLAGS variable, or
11878 # (2) before a word containing "conftest.", or (3) at the end.
11879 # Note that $ac_compile itself does not contain backslashes and begins
11880 # with a dollar sign (not a hyphen), so the echo should work correctly.
11881 lt_compile=`echo "$ac_compile" | $SED \
11882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11884 -e 's:$: $lt_compiler_flag:'`
11885 (eval echo "\"\$as_me:11885: $lt_compile\"" >&5)
11886 (eval "$lt_compile" 2>out/conftest.err)
11888 cat out/conftest.err >&5
11889 echo "$as_me:11889: \$? = $ac_status" >&5
11890 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11892 # The compiler can only warn and ignore the option if not recognized
11893 # So say no if there are warnings
11894 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11895 $SED '/^$/d' out/conftest.err >out/conftest.er2
11896 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11897 lt_cv_prog_compiler_c_o_CXX=yes
11902 # SGI C++ compiler will create directory out/ii_files/ for
11903 # template instantiation
11904 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11905 $rm out/* && rmdir out
11911 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11912 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11915 hard_links="nottested"
11916 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11917 # do not overwrite the value of need_locks provided by the user
11918 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11919 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11924 ln conftest.a conftest.b 2>&5 || hard_links=no
11925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11926 echo "$as_me:$LINENO: result: $hard_links" >&5
11927 echo "${ECHO_T}$hard_links" >&6
11928 if test "$hard_links" = no; then
11929 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11930 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11937 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11938 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11940 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11943 # If we're using GNU nm, then we don't want the "-C" option.
11944 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11945 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11946 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'
11948 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'
11952 export_symbols_cmds_CXX="$ltdll_cmds"
11955 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11958 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11962 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11963 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11964 test "$ld_shlibs_CXX" = no && can_build_shared=no
11966 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11967 if test "$GCC" = yes; then
11968 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11972 # Do we need to explicitly link libc?
11974 case "x$archive_cmds_need_lc_CXX" in
11976 # Assume -lc should be added
11977 archive_cmds_need_lc_CXX=yes
11979 if test "$enable_shared" = yes && test "$GCC" = yes; then
11980 case $archive_cmds_CXX in
11982 # FIXME: we may have to deal with multi-command sequences.
11985 # Test whether the compiler implicitly links with -lc since on some
11986 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11987 # to ld, don't add -lc before -lgcc.
11988 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11989 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11991 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11994 (eval $ac_compile) 2>&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } 2>conftest.err; then
12000 libobjs=conftest.$ac_objext
12002 wl=$lt_prog_compiler_wl_CXX
12008 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12009 allow_undefined_flag_CXX=
12010 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12011 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }
12016 archive_cmds_need_lc_CXX=no
12018 archive_cmds_need_lc_CXX=yes
12020 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12022 cat conftest.err 1>&5
12025 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12026 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12033 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12034 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12035 library_names_spec=
12036 libname_spec='lib$name'
12040 postuninstall_cmds=
12044 shlibpath_overrides_runpath=unknown
12046 dynamic_linker="$host_os ld.so"
12047 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12048 if test "$GCC" = yes; then
12049 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12050 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12051 # if the path contains ";" then we assume it to be the separator
12052 # otherwise default to the standard path separator (i.e. ":") - it is
12053 # assumed that no part of a normal pathname contains ";" but that should
12054 # okay in the real world where ";" in dirpaths is itself problematic.
12055 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12057 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12060 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12062 need_lib_prefix=unknown
12063 hardcode_into_libs=no
12065 # when you set need_version to no, make sure it does not cause -set_version
12066 # flags to be left without arguments
12067 need_version=unknown
12072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12073 shlibpath_var=LIBPATH
12075 # AIX 3 has no versioning support, so we append a major version to the name.
12076 soname_spec='${libname}${release}${shared_ext}$major'
12083 hardcode_into_libs=yes
12084 if test "$host_cpu" = ia64; then
12085 # AIX 5 supports IA64
12086 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12087 shlibpath_var=LD_LIBRARY_PATH
12089 # With GCC up to 2.95.x, collect2 would create an import file
12090 # for dependence libraries. The import file would start with
12091 # the line `#! .'. This would cause the generated library to
12092 # depend on `.', always an invalid library. This was fixed in
12093 # development snapshots of GCC prior to 3.0.
12095 aix4 | aix4.[01] | aix4.[01].*)
12096 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12098 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12101 can_build_shared=no
12105 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12106 # soname into executable. Probably we can add versioning support to
12107 # collect2, so additional links can be useful in future.
12108 if test "$aix_use_runtimelinking" = yes; then
12109 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12110 # instead of lib<name>.a to let people know that these are not
12111 # typical AIX shared libraries.
12112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12114 # We preserve .a as extension for shared libraries through AIX4.2
12115 # and later when we are not doing run time linking.
12116 library_names_spec='${libname}${release}.a $libname.a'
12117 soname_spec='${libname}${release}${shared_ext}$major'
12119 shlibpath_var=LIBPATH
12124 library_names_spec='$libname.ixlibrary $libname.a'
12125 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12126 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'
12130 library_names_spec='${libname}${shared_ext}'
12131 dynamic_linker="$host_os ld.so"
12132 shlibpath_var=LIBRARY_PATH
12138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12139 soname_spec='${libname}${release}${shared_ext}$major'
12140 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12141 shlibpath_var=LD_LIBRARY_PATH
12142 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12143 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12144 # the default ld.so.conf also contains /usr/contrib/lib and
12145 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12146 # libtool to hard-code these into programs
12149 cygwin* | mingw* | pw32*)
12150 version_type=windows
12155 case $GCC,$host_os in
12156 yes,cygwin* | yes,mingw* | yes,pw32*)
12157 library_names_spec='$libname.dll.a'
12158 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12159 postinstall_cmds='base_file=`basename \${file}`~
12160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12161 dldir=$destdir/`dirname \$dlpath`~
12162 test -d \$dldir || mkdir -p \$dldir~
12163 $install_prog $dir/$dlname \$dldir/$dlname~
12164 chmod a+x \$dldir/$dlname'
12165 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12166 dlpath=$dir/\$dldll~
12168 shlibpath_overrides_runpath=yes
12172 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12173 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12174 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12177 # MinGW DLLs use traditional 'lib' prefix
12178 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12179 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12180 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12181 # It is most probably a Windows format PATH printed by
12182 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12183 # path with ; separators, and with drive letters. We can handle the
12184 # drive letters (cygwin fileutils understands them), so leave them,
12185 # especially as we might pass files found there to a mingw objdump,
12186 # which wouldn't understand a cygwinified path. Ahh.
12187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12193 # pw32 DLLs use 'pw' prefix rather than 'lib'
12194 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12200 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12203 dynamic_linker='Win32 ld.exe'
12204 # FIXME: first we should search . and the directory the executable is in
12208 darwin* | rhapsody*)
12209 dynamic_linker="$host_os dyld"
12210 version_type=darwin
12213 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12214 soname_spec='${libname}${release}${major}$shared_ext'
12215 shlibpath_overrides_runpath=yes
12216 shlibpath_var=DYLD_LIBRARY_PATH
12217 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12218 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12219 if test "$GCC" = yes; then
12220 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"`
12222 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12224 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12232 soname_spec='${libname}${release}${shared_ext}$major'
12233 shlibpath_var=LD_LIBRARY_PATH
12244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12245 soname_spec='${libname}${release}${shared_ext}$major'
12246 shlibpath_var=LD_LIBRARY_PATH
12247 shlibpath_overrides_runpath=no
12248 hardcode_into_libs=yes
12249 dynamic_linker='GNU ld.so'
12252 freebsd* | dragonfly*)
12253 # DragonFly does not have aout. When/if they implement a new
12254 # versioning mechanism, adjust this.
12255 if test -x /usr/bin/objformat; then
12256 objformat=`/usr/bin/objformat`
12259 freebsd[123]*) objformat=aout ;;
12260 *) objformat=elf ;;
12263 version_type=freebsd-$objformat
12264 case $version_type in
12266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12275 shlibpath_var=LD_LIBRARY_PATH
12278 shlibpath_overrides_runpath=yes
12280 freebsd3.[01]* | freebsdelf3.[01]*)
12281 shlibpath_overrides_runpath=yes
12282 hardcode_into_libs=yes
12285 shlibpath_overrides_runpath=no
12286 hardcode_into_libs=yes
12295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12296 soname_spec='${libname}${release}${shared_ext}$major'
12297 shlibpath_var=LD_LIBRARY_PATH
12298 hardcode_into_libs=yes
12301 hpux9* | hpux10* | hpux11*)
12302 # Give a soname corresponding to the major version so that dld.sl refuses to
12303 # link against other versions.
12310 hardcode_into_libs=yes
12311 dynamic_linker="$host_os dld.so"
12312 shlibpath_var=LD_LIBRARY_PATH
12313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12315 soname_spec='${libname}${release}${shared_ext}$major'
12316 if test "X$HPUX_IA64_MODE" = X32; then
12317 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12319 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12325 hardcode_into_libs=yes
12326 dynamic_linker="$host_os dld.sl"
12327 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12330 soname_spec='${libname}${release}${shared_ext}$major'
12331 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12336 dynamic_linker="$host_os dld.sl"
12337 shlibpath_var=SHLIB_PATH
12338 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12340 soname_spec='${libname}${release}${shared_ext}$major'
12343 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12344 postinstall_cmds='chmod 555 $lib'
12347 irix5* | irix6* | nonstopux*)
12349 nonstopux*) version_type=nonstopux ;;
12351 if test "$lt_cv_prog_gnu_ld" = yes; then
12359 soname_spec='${libname}${release}${shared_ext}$major'
12360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12362 irix5* | nonstopux*)
12363 libsuff= shlibsuff=
12366 case $LD in # libtool.m4 will add one of these switches to LD
12367 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12368 libsuff= shlibsuff= libmagic=32-bit;;
12369 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12370 libsuff=32 shlibsuff=N32 libmagic=N32;;
12371 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12372 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12373 *) libsuff= shlibsuff= libmagic=never-match;;
12377 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12378 shlibpath_overrides_runpath=no
12379 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12380 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12381 hardcode_into_libs=yes
12384 # No shared lib support for Linux oldld, aout, or coff.
12385 linux*oldld* | linux*aout* | linux*coff*)
12389 # This must be Linux ELF.
12394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12395 soname_spec='${libname}${release}${shared_ext}$major'
12396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12397 shlibpath_var=LD_LIBRARY_PATH
12398 shlibpath_overrides_runpath=no
12399 # This implies no fast_install, which is unacceptable.
12400 # Some rework will be needed to allow for fast_install
12401 # before this can be enabled.
12402 hardcode_into_libs=yes
12404 # find out which ABI we are using
12406 case "$host_cpu" in
12407 x86_64*|s390x*|powerpc64*)
12408 echo '#line 12408 "configure"' > conftest.$ac_ext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12410 (eval $ac_compile) 2>&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; then
12414 case `/usr/bin/file conftest.$ac_objext` in
12417 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12425 # Append ld.so.conf contents to the search path
12426 if test -f /etc/ld.so.conf; then
12427 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12428 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12431 # We used to test for /lib/ld.so.1 and disable shared libraries on
12432 # powerpc, because MkLinux only supported shared libraries with the
12433 # GNU dynamic linker. Since this was broken with cross compilers,
12434 # most powerpc-linux boxes support dynamic linking these days and
12435 # people can always --disable-shared, the test was removed, and we
12436 # assume the GNU/Linux dynamic linker is in use.
12437 dynamic_linker='GNU/Linux ld.so'
12444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12445 soname_spec='${libname}${release}${shared_ext}$major'
12446 shlibpath_var=LD_LIBRARY_PATH
12447 shlibpath_overrides_runpath=no
12448 hardcode_into_libs=yes
12449 dynamic_linker='GNU ld.so'
12456 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12459 dynamic_linker='NetBSD (a.out) ld.so'
12461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12462 soname_spec='${libname}${release}${shared_ext}$major'
12463 dynamic_linker='NetBSD ld.elf_so'
12465 shlibpath_var=LD_LIBRARY_PATH
12466 shlibpath_overrides_runpath=yes
12467 hardcode_into_libs=yes
12472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12473 shlibpath_var=LD_LIBRARY_PATH
12474 shlibpath_overrides_runpath=yes
12481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12482 soname_spec='${libname}${release}${shared_ext}$major'
12483 shlibpath_var=LD_LIBRARY_PATH
12484 shlibpath_overrides_runpath=yes
12490 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12492 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12493 *) need_version=no ;;
12495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12497 shlibpath_var=LD_LIBRARY_PATH
12498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12500 openbsd2.[89] | openbsd2.[89].*)
12501 shlibpath_overrides_runpath=no
12504 shlibpath_overrides_runpath=yes
12508 shlibpath_overrides_runpath=yes
12513 libname_spec='$name'
12516 library_names_spec='$libname${shared_ext} $libname.a'
12517 dynamic_linker='OS/2 ld.exe'
12518 shlibpath_var=LIBPATH
12521 osf3* | osf4* | osf5*)
12525 soname_spec='${libname}${release}${shared_ext}$major'
12526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12527 shlibpath_var=LD_LIBRARY_PATH
12528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12534 soname_spec='${libname}${release}${shared_ext}$major'
12535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12536 shlibpath_var=LD_LIBRARY_PATH
12543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12544 soname_spec='${libname}${release}${shared_ext}$major'
12545 shlibpath_var=LD_LIBRARY_PATH
12546 shlibpath_overrides_runpath=yes
12547 hardcode_into_libs=yes
12548 # ldd complains unless libraries are executable
12549 postinstall_cmds='chmod +x $lib'
12554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12555 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12556 shlibpath_var=LD_LIBRARY_PATH
12557 shlibpath_overrides_runpath=yes
12558 if test "$with_gnu_ld" = yes; then
12564 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12567 soname_spec='${libname}${release}${shared_ext}$major'
12568 shlibpath_var=LD_LIBRARY_PATH
12569 case $host_vendor in
12571 shlibpath_overrides_runpath=no
12573 export_dynamic_flag_spec='${wl}-Blargedynsym'
12574 runpath_var=LD_RUN_PATH
12582 shlibpath_overrides_runpath=no
12583 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12589 if test -d /usr/nec ;then
12591 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12592 soname_spec='$libname${shared_ext}.$major'
12593 shlibpath_var=LD_LIBRARY_PATH
12599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12600 soname_spec='${libname}${release}${shared_ext}$major'
12601 shlibpath_var=LD_LIBRARY_PATH
12608 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12609 echo "${ECHO_T}$dynamic_linker" >&6
12610 test "$dynamic_linker" = no && can_build_shared=no
12612 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12613 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12614 hardcode_action_CXX=
12615 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12616 test -n "$runpath_var_CXX" || \
12617 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12619 # We can hardcode non-existant directories.
12620 if test "$hardcode_direct_CXX" != no &&
12621 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12622 # have to relink, otherwise we might link with an installed library
12623 # when we should be linking with a yet-to-be-installed one
12624 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12625 test "$hardcode_minus_L_CXX" != no; then
12626 # Linking always hardcodes the temporary library directory.
12627 hardcode_action_CXX=relink
12629 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12630 hardcode_action_CXX=immediate
12633 # We cannot hardcode anything, or else we can only hardcode existing
12635 hardcode_action_CXX=unsupported
12637 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12638 echo "${ECHO_T}$hardcode_action_CXX" >&6
12640 if test "$hardcode_action_CXX" = relink; then
12641 # Fast installation is not supported
12642 enable_fast_install=no
12643 elif test "$shlibpath_overrides_runpath" = yes ||
12644 test "$enable_shared" = no; then
12645 # Fast installation is not necessary
12646 enable_fast_install=needless
12651 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12652 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12653 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12654 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12655 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12656 echo "$as_me:$LINENO: result: yes" >&5
12657 echo "${ECHO_T}yes" >&6
12659 # FIXME - insert some real tests, host_os isn't really good enough
12662 if test -n "$STRIP" ; then
12663 striplib="$STRIP -x"
12664 echo "$as_me:$LINENO: result: yes" >&5
12665 echo "${ECHO_T}yes" >&6
12667 echo "$as_me:$LINENO: result: no" >&5
12668 echo "${ECHO_T}no" >&6
12672 echo "$as_me:$LINENO: result: no" >&5
12673 echo "${ECHO_T}no" >&6
12678 if test "x$enable_dlopen" != xyes; then
12679 enable_dlopen=unknown
12680 enable_dlopen_self=unknown
12681 enable_dlopen_self_static=unknown
12688 lt_cv_dlopen="load_add_on"
12690 lt_cv_dlopen_self=yes
12694 lt_cv_dlopen="LoadLibrary"
12699 lt_cv_dlopen="dlopen"
12704 # if libdl is installed we need to link against it
12705 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12706 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12707 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 ac_check_lib_save_LIBS=$LIBS
12712 cat >conftest.$ac_ext <<_ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12719 /* Override any gcc2 internal prototype to avoid an error. */
12723 /* We use char because int might match the return type of a gcc2
12724 builtin and then its argument prototype would still apply. */
12734 rm -f conftest.$ac_objext conftest$ac_exeext
12735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12736 (eval $ac_link) 2>conftest.er1
12738 grep -v '^ *+' conftest.er1 >conftest.err
12740 cat conftest.err >&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } &&
12743 { ac_try='test -z "$ac_cxx_werror_flag"
12744 || test ! -s conftest.err'
12745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; } &&
12750 { ac_try='test -s conftest$ac_exeext'
12751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752 (eval $ac_try) 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; }; then
12756 ac_cv_lib_dl_dlopen=yes
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12761 ac_cv_lib_dl_dlopen=no
12763 rm -f conftest.err conftest.$ac_objext \
12764 conftest$ac_exeext conftest.$ac_ext
12765 LIBS=$ac_check_lib_save_LIBS
12767 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12768 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12769 if test $ac_cv_lib_dl_dlopen = yes; then
12770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12773 lt_cv_dlopen="dyld"
12775 lt_cv_dlopen_self=yes
12782 echo "$as_me:$LINENO: checking for shl_load" >&5
12783 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12784 if test "${ac_cv_func_shl_load+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 cat >conftest.$ac_ext <<_ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12795 #define shl_load innocuous_shl_load
12797 /* System header to define __stub macros and hopefully few prototypes,
12798 which can conflict with char shl_load (); below.
12799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12800 <limits.h> exists even on freestanding compilers. */
12803 # include <limits.h>
12805 # include <assert.h>
12810 /* Override any gcc2 internal prototype to avoid an error. */
12815 /* We use char because int might match the return type of a gcc2
12816 builtin and then its argument prototype would still apply. */
12818 /* The GNU C library defines this for functions which it implements
12819 to always fail with ENOSYS. Some functions are actually named
12820 something starting with __ and the normal name is an alias. */
12821 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12824 char (*f) () = shl_load;
12833 return f != shl_load;
12838 rm -f conftest.$ac_objext conftest$ac_exeext
12839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12840 (eval $ac_link) 2>conftest.er1
12842 grep -v '^ *+' conftest.er1 >conftest.err
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } &&
12847 { ac_try='test -z "$ac_cxx_werror_flag"
12848 || test ! -s conftest.err'
12849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850 (eval $ac_try) 2>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; } &&
12854 { ac_try='test -s conftest$ac_exeext'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12860 ac_cv_func_shl_load=yes
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12865 ac_cv_func_shl_load=no
12867 rm -f conftest.err conftest.$ac_objext \
12868 conftest$ac_exeext conftest.$ac_ext
12870 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12871 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12872 if test $ac_cv_func_shl_load = yes; then
12873 lt_cv_dlopen="shl_load"
12875 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12876 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12877 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12880 ac_check_lib_save_LIBS=$LIBS
12882 cat >conftest.$ac_ext <<_ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h. */
12889 /* Override any gcc2 internal prototype to avoid an error. */
12893 /* We use char because int might match the return type of a gcc2
12894 builtin and then its argument prototype would still apply. */
12904 rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12906 (eval $ac_link) 2>conftest.er1
12908 grep -v '^ *+' conftest.er1 >conftest.err
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try='test -z "$ac_cxx_werror_flag"
12914 || test ! -s conftest.err'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; } &&
12920 { ac_try='test -s conftest$ac_exeext'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; }; then
12926 ac_cv_lib_dld_shl_load=yes
12928 echo "$as_me: failed program was:" >&5
12929 sed 's/^/| /' conftest.$ac_ext >&5
12931 ac_cv_lib_dld_shl_load=no
12933 rm -f conftest.err conftest.$ac_objext \
12934 conftest$ac_exeext conftest.$ac_ext
12935 LIBS=$ac_check_lib_save_LIBS
12937 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12938 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12939 if test $ac_cv_lib_dld_shl_load = yes; then
12940 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12942 echo "$as_me:$LINENO: checking for dlopen" >&5
12943 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12944 if test "${ac_cv_func_dlopen+set}" = set; then
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12947 cat >conftest.$ac_ext <<_ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h. */
12953 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12955 #define dlopen innocuous_dlopen
12957 /* System header to define __stub macros and hopefully few prototypes,
12958 which can conflict with char dlopen (); below.
12959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12960 <limits.h> exists even on freestanding compilers. */
12963 # include <limits.h>
12965 # include <assert.h>
12970 /* Override any gcc2 internal prototype to avoid an error. */
12975 /* We use char because int might match the return type of a gcc2
12976 builtin and then its argument prototype would still apply. */
12978 /* The GNU C library defines this for functions which it implements
12979 to always fail with ENOSYS. Some functions are actually named
12980 something starting with __ and the normal name is an alias. */
12981 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12984 char (*f) () = dlopen;
12993 return f != dlopen;
12998 rm -f conftest.$ac_objext conftest$ac_exeext
12999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13000 (eval $ac_link) 2>conftest.er1
13002 grep -v '^ *+' conftest.er1 >conftest.err
13004 cat conftest.err >&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } &&
13007 { ac_try='test -z "$ac_cxx_werror_flag"
13008 || test ! -s conftest.err'
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; } &&
13014 { ac_try='test -s conftest$ac_exeext'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; }; then
13020 ac_cv_func_dlopen=yes
13022 echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13025 ac_cv_func_dlopen=no
13027 rm -f conftest.err conftest.$ac_objext \
13028 conftest$ac_exeext conftest.$ac_ext
13030 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13031 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13032 if test $ac_cv_func_dlopen = yes; then
13033 lt_cv_dlopen="dlopen"
13035 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13036 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13037 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 ac_check_lib_save_LIBS=$LIBS
13042 cat >conftest.$ac_ext <<_ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13049 /* Override any gcc2 internal prototype to avoid an error. */
13053 /* We use char because int might match the return type of a gcc2
13054 builtin and then its argument prototype would still apply. */
13064 rm -f conftest.$ac_objext conftest$ac_exeext
13065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13066 (eval $ac_link) 2>conftest.er1
13068 grep -v '^ *+' conftest.er1 >conftest.err
13070 cat conftest.err >&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); } &&
13073 { ac_try='test -z "$ac_cxx_werror_flag"
13074 || test ! -s conftest.err'
13075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076 (eval $ac_try) 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; } &&
13080 { ac_try='test -s conftest$ac_exeext'
13081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082 (eval $ac_try) 2>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; }; then
13086 ac_cv_lib_dl_dlopen=yes
13088 echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13091 ac_cv_lib_dl_dlopen=no
13093 rm -f conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext conftest.$ac_ext
13095 LIBS=$ac_check_lib_save_LIBS
13097 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13098 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13099 if test $ac_cv_lib_dl_dlopen = yes; then
13100 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13102 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13103 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13104 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13105 echo $ECHO_N "(cached) $ECHO_C" >&6
13107 ac_check_lib_save_LIBS=$LIBS
13108 LIBS="-lsvld $LIBS"
13109 cat >conftest.$ac_ext <<_ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13116 /* Override any gcc2 internal prototype to avoid an error. */
13120 /* We use char because int might match the return type of a gcc2
13121 builtin and then its argument prototype would still apply. */
13131 rm -f conftest.$ac_objext conftest$ac_exeext
13132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13133 (eval $ac_link) 2>conftest.er1
13135 grep -v '^ *+' conftest.er1 >conftest.err
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } &&
13140 { ac_try='test -z "$ac_cxx_werror_flag"
13141 || test ! -s conftest.err'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; } &&
13147 { ac_try='test -s conftest$ac_exeext'
13148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149 (eval $ac_try) 2>&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; }; then
13153 ac_cv_lib_svld_dlopen=yes
13155 echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13158 ac_cv_lib_svld_dlopen=no
13160 rm -f conftest.err conftest.$ac_objext \
13161 conftest$ac_exeext conftest.$ac_ext
13162 LIBS=$ac_check_lib_save_LIBS
13164 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13165 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13166 if test $ac_cv_lib_svld_dlopen = yes; then
13167 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13169 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13170 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13171 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
13174 ac_check_lib_save_LIBS=$LIBS
13176 cat >conftest.$ac_ext <<_ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13183 /* Override any gcc2 internal prototype to avoid an error. */
13187 /* We use char because int might match the return type of a gcc2
13188 builtin and then its argument prototype would still apply. */
13198 rm -f conftest.$ac_objext conftest$ac_exeext
13199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13200 (eval $ac_link) 2>conftest.er1
13202 grep -v '^ *+' conftest.er1 >conftest.err
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -z "$ac_cxx_werror_flag"
13208 || test ! -s conftest.err'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; } &&
13214 { ac_try='test -s conftest$ac_exeext'
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }; then
13220 ac_cv_lib_dld_dld_link=yes
13222 echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13225 ac_cv_lib_dld_dld_link=no
13227 rm -f conftest.err conftest.$ac_objext \
13228 conftest$ac_exeext conftest.$ac_ext
13229 LIBS=$ac_check_lib_save_LIBS
13231 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13232 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13233 if test $ac_cv_lib_dld_dld_link = yes; then
13234 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13255 if test "x$lt_cv_dlopen" != xno; then
13261 case $lt_cv_dlopen in
13263 save_CPPFLAGS="$CPPFLAGS"
13264 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13266 save_LDFLAGS="$LDFLAGS"
13267 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13270 LIBS="$lt_cv_dlopen_libs $LIBS"
13272 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13273 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13274 if test "${lt_cv_dlopen_self+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13277 if test "$cross_compiling" = yes; then :
13278 lt_cv_dlopen_self=cross
13280 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13281 lt_status=$lt_dlunknown
13282 cat > conftest.$ac_ext <<EOF
13283 #line 13283 "configure"
13284 #include "confdefs.h"
13293 # define LT_DLGLOBAL RTLD_GLOBAL
13296 # define LT_DLGLOBAL DL_GLOBAL
13298 # define LT_DLGLOBAL 0
13302 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13303 find out it does not work in some platform. */
13304 #ifndef LT_DLLAZY_OR_NOW
13306 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13309 # define LT_DLLAZY_OR_NOW DL_LAZY
13312 # define LT_DLLAZY_OR_NOW RTLD_NOW
13315 # define LT_DLLAZY_OR_NOW DL_NOW
13317 # define LT_DLLAZY_OR_NOW 0
13325 extern "C" void exit (int);
13328 void fnord() { int i=42;}
13331 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13332 int status = $lt_dlunknown;
13336 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13337 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13338 /* dlclose (self); */
13344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13345 (eval $ac_link) 2>&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13349 (./conftest; exit; ) >&5 2>/dev/null
13351 case x$lt_status in
13352 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13353 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13354 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13357 # compilation failed
13358 lt_cv_dlopen_self=no
13365 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13366 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13368 if test "x$lt_cv_dlopen_self" = xyes; then
13369 LDFLAGS="$LDFLAGS $link_static_flag"
13370 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13371 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13372 if test "${lt_cv_dlopen_self_static+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 if test "$cross_compiling" = yes; then :
13376 lt_cv_dlopen_self_static=cross
13378 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13379 lt_status=$lt_dlunknown
13380 cat > conftest.$ac_ext <<EOF
13381 #line 13381 "configure"
13382 #include "confdefs.h"
13391 # define LT_DLGLOBAL RTLD_GLOBAL
13394 # define LT_DLGLOBAL DL_GLOBAL
13396 # define LT_DLGLOBAL 0
13400 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13401 find out it does not work in some platform. */
13402 #ifndef LT_DLLAZY_OR_NOW
13404 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13407 # define LT_DLLAZY_OR_NOW DL_LAZY
13410 # define LT_DLLAZY_OR_NOW RTLD_NOW
13413 # define LT_DLLAZY_OR_NOW DL_NOW
13415 # define LT_DLLAZY_OR_NOW 0
13423 extern "C" void exit (int);
13426 void fnord() { int i=42;}
13429 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13430 int status = $lt_dlunknown;
13434 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13435 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13436 /* dlclose (self); */
13442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13443 (eval $ac_link) 2>&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13447 (./conftest; exit; ) >&5 2>/dev/null
13449 case x$lt_status in
13450 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13451 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13452 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13455 # compilation failed
13456 lt_cv_dlopen_self_static=no
13463 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13464 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13467 CPPFLAGS="$save_CPPFLAGS"
13468 LDFLAGS="$save_LDFLAGS"
13473 case $lt_cv_dlopen_self in
13474 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13475 *) enable_dlopen_self=unknown ;;
13478 case $lt_cv_dlopen_self_static in
13479 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13480 *) enable_dlopen_self_static=unknown ;;
13485 # The else clause should only fire when bootstrapping the
13486 # libtool distribution, otherwise you forgot to ship ltmain.sh
13487 # with your package, and you will get complaints that there are
13488 # no rules to generate ltmain.sh.
13489 if test -f "$ltmain"; then
13490 # See if we are running on zsh, and set the options which allow our commands through
13491 # without removal of \ escapes.
13492 if test -n "${ZSH_VERSION+set}" ; then
13493 setopt NO_GLOB_SUBST
13495 # Now quote all the things that may contain metacharacters while being
13496 # careful not to overquote the AC_SUBSTed values. We take copies of the
13497 # variables and quote the copies for generation of the libtool script.
13498 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13500 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13501 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13502 deplibs_check_method reload_flag reload_cmds need_locks \
13503 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13504 lt_cv_sys_global_symbol_to_c_name_address \
13505 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13506 old_postinstall_cmds old_postuninstall_cmds \
13510 lt_prog_compiler_wl_CXX \
13511 lt_prog_compiler_pic_CXX \
13512 lt_prog_compiler_static_CXX \
13513 lt_prog_compiler_no_builtin_flag_CXX \
13514 export_dynamic_flag_spec_CXX \
13515 thread_safe_flag_spec_CXX \
13516 whole_archive_flag_spec_CXX \
13517 enable_shared_with_static_runtimes_CXX \
13518 old_archive_cmds_CXX \
13519 old_archive_from_new_cmds_CXX \
13520 predep_objects_CXX \
13521 postdep_objects_CXX \
13524 compiler_lib_search_path_CXX \
13526 archive_expsym_cmds_CXX \
13527 postinstall_cmds_CXX \
13528 postuninstall_cmds_CXX \
13529 old_archive_from_expsyms_cmds_CXX \
13530 allow_undefined_flag_CXX \
13531 no_undefined_flag_CXX \
13532 export_symbols_cmds_CXX \
13533 hardcode_libdir_flag_spec_CXX \
13534 hardcode_libdir_flag_spec_ld_CXX \
13535 hardcode_libdir_separator_CXX \
13536 hardcode_automatic_CXX \
13538 module_expsym_cmds_CXX \
13539 lt_cv_prog_compiler_c_o_CXX \
13540 exclude_expsyms_CXX \
13541 include_expsyms_CXX; do
13544 old_archive_cmds_CXX | \
13545 old_archive_from_new_cmds_CXX | \
13546 archive_cmds_CXX | \
13547 archive_expsym_cmds_CXX | \
13548 module_cmds_CXX | \
13549 module_expsym_cmds_CXX | \
13550 old_archive_from_expsyms_cmds_CXX | \
13551 export_symbols_cmds_CXX | \
13552 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13553 postinstall_cmds | postuninstall_cmds | \
13554 old_postinstall_cmds | old_postuninstall_cmds | \
13555 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13556 # Double-quote double-evaled strings.
13557 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13560 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13566 *'\$0 --fallback-echo"')
13567 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13573 cat <<__EOF__ >> "$cfgfile"
13574 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13576 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13578 # Shell to use when invoking shell scripts.
13581 # Whether or not to build shared libraries.
13582 build_libtool_libs=$enable_shared
13584 # Whether or not to build static libraries.
13585 build_old_libs=$enable_static
13587 # Whether or not to add -lc for building shared libraries.
13588 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13590 # Whether or not to disallow shared libs when runtime libs are static
13591 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13593 # Whether or not to optimize for fast installation.
13594 fast_install=$enable_fast_install
13597 host_alias=$host_alias
13601 # The build system.
13602 build_alias=$build_alias
13606 # An echo program that does not interpret backslashes.
13611 AR_FLAGS=$lt_AR_FLAGS
13616 # A language-specific compiler.
13617 CC=$lt_compiler_CXX
13619 # Is the compiler the GNU C compiler?
13625 # The linker used to build libraries.
13628 # Whether we need hard or soft links.
13631 # A BSD-compatible nm program.
13634 # A symbol stripping program
13637 # Used to examine libraries when file_magic_cmd begins "file"
13638 MAGIC_CMD=$MAGIC_CMD
13640 # Used on cygwin: DLL creation program.
13643 # Used on cygwin: object dumper.
13646 # Used on cygwin: assembler.
13649 # The name of the directory that contains temporary libtool files.
13652 # How to create reloadable object files.
13653 reload_flag=$lt_reload_flag
13654 reload_cmds=$lt_reload_cmds
13656 # How to pass a linker flag through the compiler.
13657 wl=$lt_lt_prog_compiler_wl_CXX
13659 # Object file suffix (normally "o").
13660 objext="$ac_objext"
13662 # Old archive suffix (normally "a").
13665 # Shared library suffix (normally ".so").
13666 shrext_cmds='$shrext_cmds'
13668 # Executable file suffix (normally "").
13671 # Additional compiler flags for building library objects.
13672 pic_flag=$lt_lt_prog_compiler_pic_CXX
13675 # What is the maximum length of a command?
13676 max_cmd_len=$lt_cv_sys_max_cmd_len
13678 # Does compiler simultaneously support -c and -o options?
13679 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13681 # Must we lock files when doing compilation?
13682 need_locks=$lt_need_locks
13684 # Do we need the lib prefix for modules?
13685 need_lib_prefix=$need_lib_prefix
13687 # Do we need a version for libraries?
13688 need_version=$need_version
13690 # Whether dlopen is supported.
13691 dlopen_support=$enable_dlopen
13693 # Whether dlopen of programs is supported.
13694 dlopen_self=$enable_dlopen_self
13696 # Whether dlopen of statically linked programs is supported.
13697 dlopen_self_static=$enable_dlopen_self_static
13699 # Compiler flag to prevent dynamic linking.
13700 link_static_flag=$lt_lt_prog_compiler_static_CXX
13702 # Compiler flag to turn off builtin functions.
13703 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13705 # Compiler flag to allow reflexive dlopens.
13706 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13708 # Compiler flag to generate shared objects directly from archives.
13709 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13711 # Compiler flag to generate thread-safe objects.
13712 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13714 # Library versioning type.
13715 version_type=$version_type
13717 # Format of library name prefix.
13718 libname_spec=$lt_libname_spec
13720 # List of archive names. First name is the real one, the rest are links.
13721 # The last name is the one that the linker finds with -lNAME.
13722 library_names_spec=$lt_library_names_spec
13724 # The coded name of the library, if different from the real name.
13725 soname_spec=$lt_soname_spec
13727 # Commands used to build and install an old-style archive.
13729 old_archive_cmds=$lt_old_archive_cmds_CXX
13730 old_postinstall_cmds=$lt_old_postinstall_cmds
13731 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13733 # Create an old-style archive from a shared archive.
13734 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13736 # Create a temporary old-style archive to link instead of a shared archive.
13737 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13739 # Commands used to build and install a shared archive.
13740 archive_cmds=$lt_archive_cmds_CXX
13741 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13742 postinstall_cmds=$lt_postinstall_cmds
13743 postuninstall_cmds=$lt_postuninstall_cmds
13745 # Commands used to build a loadable module (assumed same as above if empty)
13746 module_cmds=$lt_module_cmds_CXX
13747 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13749 # Commands to strip libraries.
13750 old_striplib=$lt_old_striplib
13751 striplib=$lt_striplib
13753 # Dependencies to place before the objects being linked to create a
13755 predep_objects=$lt_predep_objects_CXX
13757 # Dependencies to place after the objects being linked to create a
13759 postdep_objects=$lt_postdep_objects_CXX
13761 # Dependencies to place before the objects being linked to create a
13763 predeps=$lt_predeps_CXX
13765 # Dependencies to place after the objects being linked to create a
13767 postdeps=$lt_postdeps_CXX
13769 # The library search path used internally by the compiler when linking
13770 # a shared library.
13771 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13773 # Method to check whether dependent libraries are shared objects.
13774 deplibs_check_method=$lt_deplibs_check_method
13776 # Command to use when deplibs_check_method == file_magic.
13777 file_magic_cmd=$lt_file_magic_cmd
13779 # Flag that allows shared libraries with undefined symbols to be built.
13780 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13782 # Flag that forces no undefined symbols.
13783 no_undefined_flag=$lt_no_undefined_flag_CXX
13785 # Commands used to finish a libtool library installation in a directory.
13786 finish_cmds=$lt_finish_cmds
13788 # Same as above, but a single script fragment to be evaled but not shown.
13789 finish_eval=$lt_finish_eval
13791 # Take the output of nm and produce a listing of raw symbols and C names.
13792 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13794 # Transform the output of nm in a proper C declaration
13795 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13797 # Transform the output of nm in a C name address pair
13798 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13800 # This is the shared library runtime path variable.
13801 runpath_var=$runpath_var
13803 # This is the shared library path variable.
13804 shlibpath_var=$shlibpath_var
13806 # Is shlibpath searched before the hard-coded library search path?
13807 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13809 # How to hardcode a shared library path into an executable.
13810 hardcode_action=$hardcode_action_CXX
13812 # Whether we should hardcode library paths into libraries.
13813 hardcode_into_libs=$hardcode_into_libs
13815 # Flag to hardcode \$libdir into a binary during linking.
13816 # This must work even if \$libdir does not exist.
13817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13819 # If ld is used when linking, flag to hardcode \$libdir into
13820 # a binary during linking. This must work even if \$libdir does
13822 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13824 # Whether we need a single -rpath flag with a separated argument.
13825 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13827 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13828 # resulting binary.
13829 hardcode_direct=$hardcode_direct_CXX
13831 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13832 # resulting binary.
13833 hardcode_minus_L=$hardcode_minus_L_CXX
13835 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13836 # the resulting binary.
13837 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13839 # Set to yes if building a shared library automatically hardcodes DIR into the library
13840 # and all subsequent libraries and executables linked against it.
13841 hardcode_automatic=$hardcode_automatic_CXX
13843 # Variables whose values should be saved in libtool wrapper scripts and
13844 # restored at relink time.
13845 variables_saved_for_relink="$variables_saved_for_relink"
13847 # Whether libtool must link a program against all its dependency libraries.
13848 link_all_deplibs=$link_all_deplibs_CXX
13850 # Compile-time system search path for libraries
13851 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13853 # Run-time system search path for libraries
13854 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13856 # Fix the shell variable \$srcfile for the compiler.
13857 fix_srcfile_path="$fix_srcfile_path_CXX"
13859 # Set to yes if exported symbols are required.
13860 always_export_symbols=$always_export_symbols_CXX
13862 # The commands to list exported symbols.
13863 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13865 # The commands to extract the exported symbol list from a shared archive.
13866 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13868 # Symbols that should not be listed in the preloaded symbols.
13869 exclude_expsyms=$lt_exclude_expsyms_CXX
13871 # Symbols that must always be exported.
13872 include_expsyms=$lt_include_expsyms_CXX
13874 # ### END LIBTOOL TAG CONFIG: $tagname
13880 # If there is no Makefile yet, we rely on a make rule to execute
13881 # `config.status --recheck' to rerun these tests and create the
13882 # libtool script then.
13883 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13884 if test -f "$ltmain_in"; then
13885 test -f Makefile && make "$ltmain"
13891 ac_cpp='$CPP $CPPFLAGS'
13892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13900 with_gnu_ldcxx=$with_gnu_ld
13901 with_gnu_ld=$lt_save_with_gnu_ld
13902 lt_cv_path_LDCXX=$lt_cv_path_LD
13903 lt_cv_path_LD=$lt_save_path_LD
13904 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13905 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13913 if test -n "$F77" && test "X$F77" != "Xno"; then
13916 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13917 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13918 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13921 archive_cmds_need_lc_F77=no
13922 allow_undefined_flag_F77=
13923 always_export_symbols_F77=no
13924 archive_expsym_cmds_F77=
13925 export_dynamic_flag_spec_F77=
13926 hardcode_direct_F77=no
13927 hardcode_libdir_flag_spec_F77=
13928 hardcode_libdir_flag_spec_ld_F77=
13929 hardcode_libdir_separator_F77=
13930 hardcode_minus_L_F77=no
13931 hardcode_automatic_F77=no
13933 module_expsym_cmds_F77=
13934 link_all_deplibs_F77=unknown
13935 old_archive_cmds_F77=$old_archive_cmds
13936 no_undefined_flag_F77=
13937 whole_archive_flag_spec_F77=
13938 enable_shared_with_static_runtimes_F77=no
13940 # Source file extension for f77 test sources.
13943 # Object file extension for compiled f77 test sources.
13947 # Code to be used in simple compile tests
13948 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13950 # Code to be used in simple link tests
13951 lt_simple_link_test_code=" program t\n end\n"
13953 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13955 # If no C compiler was specified, use CC.
13958 # Allow CC to be a program name with arguments.
13962 # save warnings/boilerplate of simple test code
13963 ac_outfile=conftest.$ac_objext
13964 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13965 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13966 _lt_compiler_boilerplate=`cat conftest.err`
13969 ac_outfile=conftest.$ac_objext
13970 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13971 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13972 _lt_linker_boilerplate=`cat conftest.err`
13976 # Allow CC to be a program name with arguments.
13981 for cc_temp in $compiler""; do
13983 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13984 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13989 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13992 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13993 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13994 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13995 echo "${ECHO_T}$can_build_shared" >&6
13997 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13998 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13999 test "$can_build_shared" = "no" && enable_shared=no
14001 # On AIX, shared libraries and static libraries use the same namespace, and
14002 # are all built from PIC.
14005 test "$enable_shared" = yes && enable_static=no
14006 if test -n "$RANLIB"; then
14007 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14008 postinstall_cmds='$RANLIB $lib'
14012 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14013 test "$enable_shared" = yes && enable_static=no
14017 echo "$as_me:$LINENO: result: $enable_shared" >&5
14018 echo "${ECHO_T}$enable_shared" >&6
14020 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14021 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14022 # Make sure either enable_shared or enable_static is yes.
14023 test "$enable_shared" = yes || enable_static=yes
14024 echo "$as_me:$LINENO: result: $enable_static" >&5
14025 echo "${ECHO_T}$enable_static" >&6
14027 test "$ld_shlibs_F77" = no && can_build_shared=no
14032 lt_prog_compiler_wl_F77=
14033 lt_prog_compiler_pic_F77=
14034 lt_prog_compiler_static_F77=
14036 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14037 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14039 if test "$GCC" = yes; then
14040 lt_prog_compiler_wl_F77='-Wl,'
14041 lt_prog_compiler_static_F77='-static'
14045 # All AIX code is PIC.
14046 if test "$host_cpu" = ia64; then
14047 # AIX 5 now supports IA64 processor
14048 lt_prog_compiler_static_F77='-Bstatic'
14053 # FIXME: we need at least 68020 code to build shared libraries, but
14054 # adding the `-m68020' flag to GCC prevents building anything better,
14056 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14059 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14060 # PIC is the default for these OSes.
14063 mingw* | pw32* | os2*)
14064 # This hack is so that the source file can tell whether it is being
14065 # built for inclusion in a dll (and should export symbols for example).
14066 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14069 darwin* | rhapsody*)
14070 # PIC is the default on this platform
14071 # Common symbols not allowed in MH_DYLIB files
14072 lt_prog_compiler_pic_F77='-fno-common'
14076 # Just because we use GCC doesn't mean we suddenly get shared libraries
14077 # on systems that don't support them.
14078 lt_prog_compiler_can_build_shared_F77=no
14083 if test -d /usr/nec; then
14084 lt_prog_compiler_pic_F77=-Kconform_pic
14089 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14090 # not for PA HP-UX.
14096 lt_prog_compiler_pic_F77='-fPIC'
14102 lt_prog_compiler_pic_F77='-fPIC'
14106 # PORTME Check for flag to pass linker flags through the system compiler.
14109 lt_prog_compiler_wl_F77='-Wl,'
14110 if test "$host_cpu" = ia64; then
14111 # AIX 5 now supports IA64 processor
14112 lt_prog_compiler_static_F77='-Bstatic'
14114 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14118 # PIC is the default on this platform
14119 # Common symbols not allowed in MH_DYLIB files
14120 case $cc_basename in
14122 lt_prog_compiler_pic_F77='-qnocommon'
14123 lt_prog_compiler_wl_F77='-Wl,'
14128 mingw* | pw32* | os2*)
14129 # This hack is so that the source file can tell whether it is being
14130 # built for inclusion in a dll (and should export symbols for example).
14131 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14134 hpux9* | hpux10* | hpux11*)
14135 lt_prog_compiler_wl_F77='-Wl,'
14136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14137 # not for PA HP-UX.
14143 lt_prog_compiler_pic_F77='+Z'
14146 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14147 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14150 irix5* | irix6* | nonstopux*)
14151 lt_prog_compiler_wl_F77='-Wl,'
14152 # PIC (with -KPIC) is the default.
14153 lt_prog_compiler_static_F77='-non_shared'
14157 lt_prog_compiler_pic_F77='-KPIC'
14158 lt_prog_compiler_static_F77='-Bstatic'
14162 case $cc_basename in
14164 lt_prog_compiler_wl_F77='-Wl,'
14165 lt_prog_compiler_pic_F77='-KPIC'
14166 lt_prog_compiler_static_F77='-static'
14168 pgcc* | pgf77* | pgf90* | pgf95*)
14169 # Portland Group compilers (*not* the Pentium gcc compiler,
14170 # which looks to be a dead project)
14171 lt_prog_compiler_wl_F77='-Wl,'
14172 lt_prog_compiler_pic_F77='-fpic'
14173 lt_prog_compiler_static_F77='-Bstatic'
14176 lt_prog_compiler_wl_F77='-Wl,'
14177 # All Alpha code is PIC.
14178 lt_prog_compiler_static_F77='-non_shared'
14183 osf3* | osf4* | osf5*)
14184 lt_prog_compiler_wl_F77='-Wl,'
14185 # All OSF/1 code is PIC.
14186 lt_prog_compiler_static_F77='-non_shared'
14190 lt_prog_compiler_pic_F77='-Kpic'
14191 lt_prog_compiler_static_F77='-dn'
14195 lt_prog_compiler_pic_F77='-KPIC'
14196 lt_prog_compiler_static_F77='-Bstatic'
14197 case $cc_basename in
14198 f77* | f90* | f95*)
14199 lt_prog_compiler_wl_F77='-Qoption ld ';;
14201 lt_prog_compiler_wl_F77='-Wl,';;
14206 lt_prog_compiler_wl_F77='-Qoption ld '
14207 lt_prog_compiler_pic_F77='-PIC'
14208 lt_prog_compiler_static_F77='-Bstatic'
14211 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14212 lt_prog_compiler_wl_F77='-Wl,'
14213 lt_prog_compiler_pic_F77='-KPIC'
14214 lt_prog_compiler_static_F77='-Bstatic'
14218 if test -d /usr/nec ;then
14219 lt_prog_compiler_pic_F77='-Kconform_pic'
14220 lt_prog_compiler_static_F77='-Bstatic'
14225 lt_prog_compiler_wl_F77='-Wl,'
14226 lt_prog_compiler_can_build_shared_F77=no
14230 lt_prog_compiler_pic_F77='-pic'
14231 lt_prog_compiler_static_F77='-Bstatic'
14235 lt_prog_compiler_can_build_shared_F77=no
14240 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14241 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14244 # Check to make sure the PIC flag actually works.
14246 if test -n "$lt_prog_compiler_pic_F77"; then
14248 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14249 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14250 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 lt_prog_compiler_pic_works_F77=no
14254 ac_outfile=conftest.$ac_objext
14255 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14256 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14257 # Insert the option either (1) after the last *FLAGS variable, or
14258 # (2) before a word containing "conftest.", or (3) at the end.
14259 # Note that $ac_compile itself does not contain backslashes and begins
14260 # with a dollar sign (not a hyphen), so the echo should work correctly.
14261 # The option is referenced via a variable to avoid confusing sed.
14262 lt_compile=`echo "$ac_compile" | $SED \
14263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14265 -e 's:$: $lt_compiler_flag:'`
14266 (eval echo "\"\$as_me:14266: $lt_compile\"" >&5)
14267 (eval "$lt_compile" 2>conftest.err)
14269 cat conftest.err >&5
14270 echo "$as_me:14270: \$? = $ac_status" >&5
14271 if (exit $ac_status) && test -s "$ac_outfile"; then
14272 # The compiler can only warn and ignore the option if not recognized
14273 # So say no if there are warnings other than the usual output.
14274 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14275 $SED '/^$/d' conftest.err >conftest.er2
14276 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14277 lt_prog_compiler_pic_works_F77=yes
14283 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14284 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14286 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14287 case $lt_prog_compiler_pic_F77 in
14289 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14292 lt_prog_compiler_pic_F77=
14293 lt_prog_compiler_can_build_shared_F77=no
14298 # For platforms which do not support PIC, -DPIC is meaningless:
14300 lt_prog_compiler_pic_F77=
14303 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14307 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14308 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14309 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14312 lt_cv_prog_compiler_c_o_F77=no
14313 $rm -r conftest 2>/dev/null
14317 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14319 lt_compiler_flag="-o out/conftest2.$ac_objext"
14320 # Insert the option either (1) after the last *FLAGS variable, or
14321 # (2) before a word containing "conftest.", or (3) at the end.
14322 # Note that $ac_compile itself does not contain backslashes and begins
14323 # with a dollar sign (not a hyphen), so the echo should work correctly.
14324 lt_compile=`echo "$ac_compile" | $SED \
14325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14327 -e 's:$: $lt_compiler_flag:'`
14328 (eval echo "\"\$as_me:14328: $lt_compile\"" >&5)
14329 (eval "$lt_compile" 2>out/conftest.err)
14331 cat out/conftest.err >&5
14332 echo "$as_me:14332: \$? = $ac_status" >&5
14333 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14335 # The compiler can only warn and ignore the option if not recognized
14336 # So say no if there are warnings
14337 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14338 $SED '/^$/d' out/conftest.err >out/conftest.er2
14339 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14340 lt_cv_prog_compiler_c_o_F77=yes
14345 # SGI C++ compiler will create directory out/ii_files/ for
14346 # template instantiation
14347 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14348 $rm out/* && rmdir out
14354 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14355 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14358 hard_links="nottested"
14359 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14360 # do not overwrite the value of need_locks provided by the user
14361 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14362 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14365 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14367 ln conftest.a conftest.b 2>&5 || hard_links=no
14368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14369 echo "$as_me:$LINENO: result: $hard_links" >&5
14370 echo "${ECHO_T}$hard_links" >&6
14371 if test "$hard_links" = no; then
14372 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14373 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14380 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14381 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14384 allow_undefined_flag_F77=
14385 enable_shared_with_static_runtimes_F77=no
14387 archive_expsym_cmds_F77=
14388 old_archive_From_new_cmds_F77=
14389 old_archive_from_expsyms_cmds_F77=
14390 export_dynamic_flag_spec_F77=
14391 whole_archive_flag_spec_F77=
14392 thread_safe_flag_spec_F77=
14393 hardcode_libdir_flag_spec_F77=
14394 hardcode_libdir_flag_spec_ld_F77=
14395 hardcode_libdir_separator_F77=
14396 hardcode_direct_F77=no
14397 hardcode_minus_L_F77=no
14398 hardcode_shlibpath_var_F77=unsupported
14399 link_all_deplibs_F77=unknown
14400 hardcode_automatic_F77=no
14402 module_expsym_cmds_F77=
14403 always_export_symbols_F77=no
14404 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14405 # include_expsyms should be a list of space-separated symbols to be *always*
14406 # included in the symbol list
14407 include_expsyms_F77=
14408 # exclude_expsyms can be an extended regexp of symbols to exclude
14409 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14410 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14411 # as well as any symbol that contains `d'.
14412 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14413 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14414 # platforms (ab)use it in PIC code, but their linkers get confused if
14415 # the symbol is explicitly referenced. Since portable code cannot
14416 # rely on this symbol name, it's probably fine to never include it in
14417 # preloaded symbol tables.
14418 extract_expsyms_cmds=
14419 # Just being paranoid about ensuring that cc_basename is set.
14420 for cc_temp in $compiler""; do
14422 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14423 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14428 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14431 cygwin* | mingw* | pw32*)
14432 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14433 # When not using gcc, we currently assume that we are using
14434 # Microsoft Visual C++.
14435 if test "$GCC" != yes; then
14445 if test "$with_gnu_ld" = yes; then
14446 # If archive_cmds runs LD, not CC, wlarc should be empty
14449 # Set some defaults for GNU ld with shared library support. These
14450 # are reset later if shared libraries are not supported. Putting them
14451 # here allows them to be overridden if necessary.
14452 runpath_var=LD_RUN_PATH
14453 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14454 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14455 # ancient GNU ld didn't support --whole-archive et. al.
14456 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14457 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14459 whole_archive_flag_spec_F77=
14461 supports_anon_versioning=no
14462 case `$LD -v 2>/dev/null` in
14463 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14464 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14465 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14466 *\ 2.11.*) ;; # other 2.11 versions
14467 *) supports_anon_versioning=yes ;;
14470 # See if GNU ld supports shared libraries.
14472 aix3* | aix4* | aix5*)
14473 # On AIX/PPC, the GNU linker is very broken
14474 if test "$host_cpu" != ia64; then
14478 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14479 *** to be unable to reliably create shared libraries on AIX.
14480 *** Therefore, libtool is disabling shared libraries support. If you
14481 *** really care for shared libraries, you may want to modify your PATH
14482 *** so that a non-GNU linker is found, and then restart.
14489 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)'
14490 hardcode_libdir_flag_spec_F77='-L$libdir'
14491 hardcode_minus_L_F77=yes
14493 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14494 # that the semantics of dynamic libraries on AmigaOS, at least up
14495 # to version 4, is to share data among multiple programs linked
14496 # with the same dynamic library. Since this doesn't match the
14497 # behavior of shared libraries on other platforms, we can't use
14503 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14504 allow_undefined_flag_F77=unsupported
14505 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14506 # support --undefined. This deserves some investigation. FIXME
14507 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14513 cygwin* | mingw* | pw32*)
14514 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14515 # as there is no search path for DLLs.
14516 hardcode_libdir_flag_spec_F77='-L$libdir'
14517 allow_undefined_flag_F77=unsupported
14518 always_export_symbols_F77=no
14519 enable_shared_with_static_runtimes_F77=yes
14520 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14522 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14523 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14524 # If the export-symbols file already is a .def file (1st line
14525 # is EXPORTS), use it as is; otherwise, prepend...
14526 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14527 cp $export_symbols $output_objdir/$soname.def;
14529 echo EXPORTS > $output_objdir/$soname.def;
14530 cat $export_symbols >> $output_objdir/$soname.def;
14532 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14541 case $cc_basename,$host_cpu in
14542 pgcc*) # Portland Group C compiler
14543 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14544 tmp_addflag=' $pic_flag'
14546 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14547 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14548 tmp_addflag=' $pic_flag -Mnomain' ;;
14549 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14550 tmp_addflag=' -i_dynamic' ;;
14551 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14552 tmp_addflag=' -i_dynamic -nofor_main' ;;
14553 ifc* | ifort*) # Intel Fortran compiler
14554 tmp_addflag=' -nofor_main' ;;
14556 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14558 if test $supports_anon_versioning = yes; then
14559 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14560 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14561 $echo "local: *; };" >> $output_objdir/$libname.ver~
14562 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14570 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14571 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14574 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14575 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14580 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14584 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14585 *** create shared libraries on Solaris systems. Therefore, libtool
14586 *** is disabling shared libraries support. We urge you to upgrade GNU
14587 *** binutils to release 2.9.1 or newer. Another option is to modify
14588 *** your PATH or compiler configuration so that the native linker is
14589 *** used, and then restart.
14592 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14593 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14594 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14601 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14603 hardcode_direct_F77=yes
14604 hardcode_shlibpath_var_F77=no
14608 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14609 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14610 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14617 if test "$ld_shlibs_F77" = no; then
14619 hardcode_libdir_flag_spec_F77=
14620 export_dynamic_flag_spec_F77=
14621 whole_archive_flag_spec_F77=
14624 # PORTME fill in a description of your system's linker (not GNU ld)
14627 allow_undefined_flag_F77=unsupported
14628 always_export_symbols_F77=yes
14629 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'
14630 # Note: this linker hardcodes the directories in LIBPATH if there
14631 # are no directories specified by -L.
14632 hardcode_minus_L_F77=yes
14633 if test "$GCC" = yes && test -z "$link_static_flag"; then
14634 # Neither direct hardcoding nor static linking is supported with a
14636 hardcode_direct_F77=unsupported
14641 if test "$host_cpu" = ia64; then
14642 # On IA64, the linker does run time linking by default, so we don't
14643 # have to do anything special.
14644 aix_use_runtimelinking=no
14645 exp_sym_flag='-Bexport'
14648 # If we're using GNU nm, then we don't want the "-C" option.
14649 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14650 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14651 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'
14653 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'
14655 aix_use_runtimelinking=no
14657 # Test if we are trying to use run time linking or normal
14658 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14659 # need to do runtime linking.
14660 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14661 for ld_flag in $LDFLAGS; do
14662 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14663 aix_use_runtimelinking=yes
14669 exp_sym_flag='-bexport'
14670 no_entry_flag='-bnoentry'
14673 # When large executables or shared objects are built, AIX ld can
14674 # have problems creating the table of contents. If linking a library
14675 # or program results in "error TOC overflow" add -mminimal-toc to
14676 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14677 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14679 archive_cmds_F77=''
14680 hardcode_direct_F77=yes
14681 hardcode_libdir_separator_F77=':'
14682 link_all_deplibs_F77=yes
14684 if test "$GCC" = yes; then
14685 case $host_os in aix4.[012]|aix4.[012].*)
14686 # We only want to do this on AIX 4.2 and lower, the check
14687 # below for broken collect2 doesn't work under 4.3+
14688 collect2name=`${CC} -print-prog-name=collect2`
14689 if test -f "$collect2name" && \
14690 strings "$collect2name" | grep resolve_lib_name >/dev/null
14692 # We have reworked collect2
14693 hardcode_direct_F77=yes
14695 # We have old collect2
14696 hardcode_direct_F77=unsupported
14697 # It fails to find uninstalled libraries when the uninstalled
14698 # path is not listed in the libpath. Setting hardcode_minus_L
14699 # to unsupported forces relinking
14700 hardcode_minus_L_F77=yes
14701 hardcode_libdir_flag_spec_F77='-L$libdir'
14702 hardcode_libdir_separator_F77=
14705 shared_flag='-shared'
14706 if test "$aix_use_runtimelinking" = yes; then
14707 shared_flag="$shared_flag "'${wl}-G'
14711 if test "$host_cpu" = ia64; then
14712 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14713 # chokes on -Wl,-G. The following line is correct:
14716 if test "$aix_use_runtimelinking" = yes; then
14717 shared_flag='${wl}-G'
14719 shared_flag='${wl}-bM:SRE'
14724 # It seems that -bexpall does not export symbols beginning with
14725 # underscore (_), so it is better to generate a list of symbols to export.
14726 always_export_symbols_F77=yes
14727 if test "$aix_use_runtimelinking" = yes; then
14728 # Warning - without using the other runtime loading flags (-brtl),
14729 # -berok will link without error, but may produce a broken library.
14730 allow_undefined_flag_F77='-berok'
14731 # Determine the default libpath from the value encoded in an empty executable.
14732 cat >conftest.$ac_ext <<_ACEOF
14737 rm -f conftest.$ac_objext conftest$ac_exeext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14739 (eval $ac_link) 2>conftest.er1
14741 grep -v '^ *+' conftest.er1 >conftest.err
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -z "$ac_f77_werror_flag"
14747 || test ! -s conftest.err'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; } &&
14753 { ac_try='test -s conftest$ac_exeext'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }; then
14760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14762 # Check for a 64-bit object if we didn't find anything.
14763 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; }
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14770 rm -f conftest.err conftest.$ac_objext \
14771 conftest$ac_exeext conftest.$ac_ext
14772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14774 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14775 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"
14777 if test "$host_cpu" = ia64; then
14778 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14779 allow_undefined_flag_F77="-z nodefs"
14780 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"
14782 # Determine the default libpath from the value encoded in an empty executable.
14783 cat >conftest.$ac_ext <<_ACEOF
14788 rm -f conftest.$ac_objext conftest$ac_exeext
14789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14790 (eval $ac_link) 2>conftest.er1
14792 grep -v '^ *+' conftest.er1 >conftest.err
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
14797 { ac_try='test -z "$ac_f77_werror_flag"
14798 || test ! -s conftest.err'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; } &&
14804 { ac_try='test -s conftest$ac_exeext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14811 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14813 # Check for a 64-bit object if we didn't find anything.
14814 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; }
14817 echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.$ac_ext >&5
14821 rm -f conftest.err conftest.$ac_objext \
14822 conftest$ac_exeext conftest.$ac_ext
14823 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14825 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14826 # Warning - without using the other run time loading flags,
14827 # -berok will link without error, but may produce a broken library.
14828 no_undefined_flag_F77=' ${wl}-bernotok'
14829 allow_undefined_flag_F77=' ${wl}-berok'
14830 # -bexpall does not export symbols beginning with underscore (_)
14831 always_export_symbols_F77=yes
14832 # Exported symbols can be pulled into shared objects from archives
14833 whole_archive_flag_spec_F77=' '
14834 archive_cmds_need_lc_F77=yes
14835 # This is similar to how AIX traditionally builds its shared libraries.
14836 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'
14842 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)'
14843 hardcode_libdir_flag_spec_F77='-L$libdir'
14844 hardcode_minus_L_F77=yes
14845 # see comment about different semantics on the GNU ld section
14850 export_dynamic_flag_spec_F77=-rdynamic
14853 cygwin* | mingw* | pw32*)
14854 # When not using gcc, we currently assume that we are using
14855 # Microsoft Visual C++.
14856 # hardcode_libdir_flag_spec is actually meaningless, as there is
14857 # no search path for DLLs.
14858 hardcode_libdir_flag_spec_F77=' '
14859 allow_undefined_flag_F77=unsupported
14860 # Tell ltmain to make .lib files, not .a files.
14862 # Tell ltmain to make .dll files, not .so files.
14864 # FIXME: Setting linknames here is a bad hack.
14865 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14866 # The linker will automatically build a .lib file if we build a DLL.
14867 old_archive_From_new_cmds_F77='true'
14868 # FIXME: Should let the user specify the lib program.
14869 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14870 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14871 enable_shared_with_static_runtimes_F77=yes
14874 darwin* | rhapsody*)
14876 rhapsody* | darwin1.[012])
14877 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14880 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14881 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14883 case ${MACOSX_DEPLOYMENT_TARGET} in
14885 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14888 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14894 archive_cmds_need_lc_F77=no
14895 hardcode_direct_F77=no
14896 hardcode_automatic_F77=yes
14897 hardcode_shlibpath_var_F77=unsupported
14898 whole_archive_flag_spec_F77=''
14899 link_all_deplibs_F77=yes
14900 if test "$GCC" = yes ; then
14901 output_verbose_link_cmd='echo'
14902 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14903 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14904 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14905 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14906 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14908 case $cc_basename in
14910 output_verbose_link_cmd='echo'
14911 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14912 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14913 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14914 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14915 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14925 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14926 hardcode_libdir_flag_spec_F77='-L$libdir'
14927 hardcode_shlibpath_var_F77=no
14934 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14935 # support. Future versions do this automatically, but an explicit c++rt0.o
14936 # does not break anything, and helps significantly (at the cost of a little
14939 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14940 hardcode_libdir_flag_spec_F77='-R$libdir'
14941 hardcode_direct_F77=yes
14942 hardcode_shlibpath_var_F77=no
14945 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14947 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14948 hardcode_direct_F77=yes
14949 hardcode_minus_L_F77=yes
14950 hardcode_shlibpath_var_F77=no
14953 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14954 freebsd* | kfreebsd*-gnu | dragonfly*)
14955 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14956 hardcode_libdir_flag_spec_F77='-R$libdir'
14957 hardcode_direct_F77=yes
14958 hardcode_shlibpath_var_F77=no
14962 if test "$GCC" = yes; then
14963 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'
14965 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'
14967 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14968 hardcode_libdir_separator_F77=:
14969 hardcode_direct_F77=yes
14971 # hardcode_minus_L: Not really in the search PATH,
14972 # but as the default location of the library.
14973 hardcode_minus_L_F77=yes
14974 export_dynamic_flag_spec_F77='${wl}-E'
14978 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14981 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14984 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14990 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14993 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14997 if test "$with_gnu_ld" = no; then
15000 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15001 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15002 hardcode_libdir_separator_F77=:
15003 hardcode_direct_F77=no
15004 hardcode_shlibpath_var_F77=no
15007 hardcode_libdir_flag_spec_F77='-L$libdir'
15008 hardcode_direct_F77=no
15009 hardcode_shlibpath_var_F77=no
15011 # hardcode_minus_L: Not really in the search PATH,
15012 # but as the default location of the library.
15013 hardcode_minus_L_F77=yes
15016 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15017 hardcode_libdir_separator_F77=:
15018 hardcode_direct_F77=yes
15019 export_dynamic_flag_spec_F77='${wl}-E'
15021 # hardcode_minus_L: Not really in the search PATH,
15022 # but as the default location of the library.
15023 hardcode_minus_L_F77=yes
15029 irix5* | irix6* | nonstopux*)
15030 if test "$GCC" = yes; then
15031 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'
15033 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'
15034 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15036 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15037 hardcode_libdir_separator_F77=:
15038 link_all_deplibs_F77=yes
15042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15043 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15045 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15047 hardcode_libdir_flag_spec_F77='-R$libdir'
15048 hardcode_direct_F77=yes
15049 hardcode_shlibpath_var_F77=no
15053 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15054 hardcode_direct_F77=yes
15055 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15056 hardcode_libdir_separator_F77=:
15057 hardcode_shlibpath_var_F77=no
15061 hardcode_direct_F77=yes
15062 hardcode_shlibpath_var_F77=no
15063 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15064 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15065 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15066 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15067 export_dynamic_flag_spec_F77='${wl}-E'
15070 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15071 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15072 hardcode_libdir_flag_spec_F77='-R$libdir'
15075 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15076 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15083 hardcode_libdir_flag_spec_F77='-L$libdir'
15084 hardcode_minus_L_F77=yes
15085 allow_undefined_flag_F77=unsupported
15086 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'
15087 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15091 if test "$GCC" = yes; then
15092 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15093 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'
15095 allow_undefined_flag_F77=' -expect_unresolved \*'
15096 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'
15098 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15099 hardcode_libdir_separator_F77=:
15102 osf4* | osf5*) # as osf3* with the addition of -msym flag
15103 if test "$GCC" = yes; then
15104 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15105 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'
15106 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15108 allow_undefined_flag_F77=' -expect_unresolved \*'
15109 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'
15110 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~
15111 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15113 # Both c and cxx compiler support -rpath directly
15114 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15116 hardcode_libdir_separator_F77=:
15120 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15121 hardcode_shlibpath_var_F77=no
15122 export_dynamic_flag_spec_F77='${wl}-Bexport'
15123 runpath_var=LD_RUN_PATH
15124 hardcode_runpath_var=yes
15128 no_undefined_flag_F77=' -z text'
15129 if test "$GCC" = yes; then
15131 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15132 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15133 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15136 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15137 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15138 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15140 hardcode_libdir_flag_spec_F77='-R$libdir'
15141 hardcode_shlibpath_var_F77=no
15143 solaris2.[0-5] | solaris2.[0-5].*) ;;
15145 # The compiler driver will combine linker options so we
15146 # cannot just pass the convience library names through
15147 # without $wl, iff we do not link with $LD.
15148 # Luckily, gcc supports the same syntax we need for Sun Studio.
15149 # Supported since Solaris 2.6 (maybe 2.5.1?)
15152 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15154 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15157 link_all_deplibs_F77=yes
15161 if test "x$host_vendor" = xsequent; then
15162 # Use $CC to link under sequent, because it throws in some extra .o
15163 # files that make .init and .fini sections work.
15164 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15166 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15168 hardcode_libdir_flag_spec_F77='-L$libdir'
15169 hardcode_direct_F77=yes
15170 hardcode_minus_L_F77=yes
15171 hardcode_shlibpath_var_F77=no
15175 case $host_vendor in
15177 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15178 hardcode_direct_F77=yes # is this really true???
15181 ## LD is ld it makes a PLAMLIB
15182 ## CC just makes a GrossModule.
15183 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15184 reload_cmds_F77='$CC -r -o $output$reload_objs'
15185 hardcode_direct_F77=no
15188 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15189 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15192 runpath_var='LD_RUN_PATH'
15193 hardcode_shlibpath_var_F77=no
15197 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15198 hardcode_shlibpath_var_F77=no
15199 export_dynamic_flag_spec_F77='-Bexport'
15203 if test -d /usr/nec; then
15204 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15205 hardcode_shlibpath_var_F77=no
15206 runpath_var=LD_RUN_PATH
15207 hardcode_runpath_var=yes
15213 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15214 hardcode_direct_F77=yes
15215 hardcode_minus_L_F77=no
15216 hardcode_shlibpath_var_F77=no
15217 hardcode_runpath_var=yes
15218 runpath_var=LD_RUN_PATH
15221 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15222 no_undefined_flag_F77='${wl}-z ${wl}text'
15223 if test "$GCC" = yes; then
15224 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15226 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15228 runpath_var='LD_RUN_PATH'
15229 hardcode_shlibpath_var_F77=no
15233 no_undefined_flag_F77=' -z text'
15234 # $CC -shared without GNU ld will not create a library from C++
15235 # object files and a static libstdc++, better avoid it by now
15236 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15237 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15238 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15239 hardcode_libdir_flag_spec_F77=
15240 hardcode_shlibpath_var_F77=no
15241 runpath_var='LD_RUN_PATH'
15245 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15246 hardcode_libdir_flag_spec_F77='-L$libdir'
15247 hardcode_shlibpath_var_F77=no
15256 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15257 echo "${ECHO_T}$ld_shlibs_F77" >&6
15258 test "$ld_shlibs_F77" = no && can_build_shared=no
15260 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15261 if test "$GCC" = yes; then
15262 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15266 # Do we need to explicitly link libc?
15268 case "x$archive_cmds_need_lc_F77" in
15270 # Assume -lc should be added
15271 archive_cmds_need_lc_F77=yes
15273 if test "$enable_shared" = yes && test "$GCC" = yes; then
15274 case $archive_cmds_F77 in
15276 # FIXME: we may have to deal with multi-command sequences.
15279 # Test whether the compiler implicitly links with -lc since on some
15280 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15281 # to ld, don't add -lc before -lgcc.
15282 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15283 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15285 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15288 (eval $ac_compile) 2>&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } 2>conftest.err; then
15294 libobjs=conftest.$ac_objext
15296 wl=$lt_prog_compiler_wl_F77
15302 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15303 allow_undefined_flag_F77=
15304 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15305 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }
15310 archive_cmds_need_lc_F77=no
15312 archive_cmds_need_lc_F77=yes
15314 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15316 cat conftest.err 1>&5
15319 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15320 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15327 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15328 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15329 library_names_spec=
15330 libname_spec='lib$name'
15334 postuninstall_cmds=
15338 shlibpath_overrides_runpath=unknown
15340 dynamic_linker="$host_os ld.so"
15341 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15342 if test "$GCC" = yes; then
15343 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15344 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15345 # if the path contains ";" then we assume it to be the separator
15346 # otherwise default to the standard path separator (i.e. ":") - it is
15347 # assumed that no part of a normal pathname contains ";" but that should
15348 # okay in the real world where ";" in dirpaths is itself problematic.
15349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15354 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15356 need_lib_prefix=unknown
15357 hardcode_into_libs=no
15359 # when you set need_version to no, make sure it does not cause -set_version
15360 # flags to be left without arguments
15361 need_version=unknown
15366 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15367 shlibpath_var=LIBPATH
15369 # AIX 3 has no versioning support, so we append a major version to the name.
15370 soname_spec='${libname}${release}${shared_ext}$major'
15377 hardcode_into_libs=yes
15378 if test "$host_cpu" = ia64; then
15379 # AIX 5 supports IA64
15380 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15381 shlibpath_var=LD_LIBRARY_PATH
15383 # With GCC up to 2.95.x, collect2 would create an import file
15384 # for dependence libraries. The import file would start with
15385 # the line `#! .'. This would cause the generated library to
15386 # depend on `.', always an invalid library. This was fixed in
15387 # development snapshots of GCC prior to 3.0.
15389 aix4 | aix4.[01] | aix4.[01].*)
15390 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15392 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15395 can_build_shared=no
15399 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15400 # soname into executable. Probably we can add versioning support to
15401 # collect2, so additional links can be useful in future.
15402 if test "$aix_use_runtimelinking" = yes; then
15403 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15404 # instead of lib<name>.a to let people know that these are not
15405 # typical AIX shared libraries.
15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15408 # We preserve .a as extension for shared libraries through AIX4.2
15409 # and later when we are not doing run time linking.
15410 library_names_spec='${libname}${release}.a $libname.a'
15411 soname_spec='${libname}${release}${shared_ext}$major'
15413 shlibpath_var=LIBPATH
15418 library_names_spec='$libname.ixlibrary $libname.a'
15419 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15420 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'
15424 library_names_spec='${libname}${shared_ext}'
15425 dynamic_linker="$host_os ld.so"
15426 shlibpath_var=LIBRARY_PATH
15432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433 soname_spec='${libname}${release}${shared_ext}$major'
15434 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15435 shlibpath_var=LD_LIBRARY_PATH
15436 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15437 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15438 # the default ld.so.conf also contains /usr/contrib/lib and
15439 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15440 # libtool to hard-code these into programs
15443 cygwin* | mingw* | pw32*)
15444 version_type=windows
15449 case $GCC,$host_os in
15450 yes,cygwin* | yes,mingw* | yes,pw32*)
15451 library_names_spec='$libname.dll.a'
15452 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15453 postinstall_cmds='base_file=`basename \${file}`~
15454 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15455 dldir=$destdir/`dirname \$dlpath`~
15456 test -d \$dldir || mkdir -p \$dldir~
15457 $install_prog $dir/$dlname \$dldir/$dlname~
15458 chmod a+x \$dldir/$dlname'
15459 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15460 dlpath=$dir/\$dldll~
15462 shlibpath_overrides_runpath=yes
15466 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15467 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15468 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15471 # MinGW DLLs use traditional 'lib' prefix
15472 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15473 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15474 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15475 # It is most probably a Windows format PATH printed by
15476 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15477 # path with ; separators, and with drive letters. We can handle the
15478 # drive letters (cygwin fileutils understands them), so leave them,
15479 # especially as we might pass files found there to a mingw objdump,
15480 # which wouldn't understand a cygwinified path. Ahh.
15481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15487 # pw32 DLLs use 'pw' prefix rather than 'lib'
15488 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15494 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15497 dynamic_linker='Win32 ld.exe'
15498 # FIXME: first we should search . and the directory the executable is in
15502 darwin* | rhapsody*)
15503 dynamic_linker="$host_os dyld"
15504 version_type=darwin
15507 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15508 soname_spec='${libname}${release}${major}$shared_ext'
15509 shlibpath_overrides_runpath=yes
15510 shlibpath_var=DYLD_LIBRARY_PATH
15511 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15512 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15513 if test "$GCC" = yes; then
15514 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"`
15516 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15518 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15526 soname_spec='${libname}${release}${shared_ext}$major'
15527 shlibpath_var=LD_LIBRARY_PATH
15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15539 soname_spec='${libname}${release}${shared_ext}$major'
15540 shlibpath_var=LD_LIBRARY_PATH
15541 shlibpath_overrides_runpath=no
15542 hardcode_into_libs=yes
15543 dynamic_linker='GNU ld.so'
15546 freebsd* | dragonfly*)
15547 # DragonFly does not have aout. When/if they implement a new
15548 # versioning mechanism, adjust this.
15549 if test -x /usr/bin/objformat; then
15550 objformat=`/usr/bin/objformat`
15553 freebsd[123]*) objformat=aout ;;
15554 *) objformat=elf ;;
15557 version_type=freebsd-$objformat
15558 case $version_type in
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15565 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15569 shlibpath_var=LD_LIBRARY_PATH
15572 shlibpath_overrides_runpath=yes
15574 freebsd3.[01]* | freebsdelf3.[01]*)
15575 shlibpath_overrides_runpath=yes
15576 hardcode_into_libs=yes
15579 shlibpath_overrides_runpath=no
15580 hardcode_into_libs=yes
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15590 soname_spec='${libname}${release}${shared_ext}$major'
15591 shlibpath_var=LD_LIBRARY_PATH
15592 hardcode_into_libs=yes
15595 hpux9* | hpux10* | hpux11*)
15596 # Give a soname corresponding to the major version so that dld.sl refuses to
15597 # link against other versions.
15604 hardcode_into_libs=yes
15605 dynamic_linker="$host_os dld.so"
15606 shlibpath_var=LD_LIBRARY_PATH
15607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15609 soname_spec='${libname}${release}${shared_ext}$major'
15610 if test "X$HPUX_IA64_MODE" = X32; then
15611 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15613 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15619 hardcode_into_libs=yes
15620 dynamic_linker="$host_os dld.sl"
15621 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15622 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15624 soname_spec='${libname}${release}${shared_ext}$major'
15625 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15630 dynamic_linker="$host_os dld.sl"
15631 shlibpath_var=SHLIB_PATH
15632 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634 soname_spec='${libname}${release}${shared_ext}$major'
15637 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15638 postinstall_cmds='chmod 555 $lib'
15641 irix5* | irix6* | nonstopux*)
15643 nonstopux*) version_type=nonstopux ;;
15645 if test "$lt_cv_prog_gnu_ld" = yes; then
15653 soname_spec='${libname}${release}${shared_ext}$major'
15654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15656 irix5* | nonstopux*)
15657 libsuff= shlibsuff=
15660 case $LD in # libtool.m4 will add one of these switches to LD
15661 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15662 libsuff= shlibsuff= libmagic=32-bit;;
15663 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15664 libsuff=32 shlibsuff=N32 libmagic=N32;;
15665 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15666 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15667 *) libsuff= shlibsuff= libmagic=never-match;;
15671 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15672 shlibpath_overrides_runpath=no
15673 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15674 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15675 hardcode_into_libs=yes
15678 # No shared lib support for Linux oldld, aout, or coff.
15679 linux*oldld* | linux*aout* | linux*coff*)
15683 # This must be Linux ELF.
15688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15689 soname_spec='${libname}${release}${shared_ext}$major'
15690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15691 shlibpath_var=LD_LIBRARY_PATH
15692 shlibpath_overrides_runpath=no
15693 # This implies no fast_install, which is unacceptable.
15694 # Some rework will be needed to allow for fast_install
15695 # before this can be enabled.
15696 hardcode_into_libs=yes
15698 # find out which ABI we are using
15700 case "$host_cpu" in
15701 x86_64*|s390x*|powerpc64*)
15702 echo '#line 15702 "configure"' > conftest.$ac_ext
15703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15704 (eval $ac_compile) 2>&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; then
15708 case `/usr/bin/file conftest.$ac_objext` in
15711 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15719 # Append ld.so.conf contents to the search path
15720 if test -f /etc/ld.so.conf; then
15721 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15722 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15725 # We used to test for /lib/ld.so.1 and disable shared libraries on
15726 # powerpc, because MkLinux only supported shared libraries with the
15727 # GNU dynamic linker. Since this was broken with cross compilers,
15728 # most powerpc-linux boxes support dynamic linking these days and
15729 # people can always --disable-shared, the test was removed, and we
15730 # assume the GNU/Linux dynamic linker is in use.
15731 dynamic_linker='GNU/Linux ld.so'
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15739 soname_spec='${libname}${release}${shared_ext}$major'
15740 shlibpath_var=LD_LIBRARY_PATH
15741 shlibpath_overrides_runpath=no
15742 hardcode_into_libs=yes
15743 dynamic_linker='GNU ld.so'
15750 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15753 dynamic_linker='NetBSD (a.out) ld.so'
15755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15756 soname_spec='${libname}${release}${shared_ext}$major'
15757 dynamic_linker='NetBSD ld.elf_so'
15759 shlibpath_var=LD_LIBRARY_PATH
15760 shlibpath_overrides_runpath=yes
15761 hardcode_into_libs=yes
15766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15767 shlibpath_var=LD_LIBRARY_PATH
15768 shlibpath_overrides_runpath=yes
15775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15776 soname_spec='${libname}${release}${shared_ext}$major'
15777 shlibpath_var=LD_LIBRARY_PATH
15778 shlibpath_overrides_runpath=yes
15784 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15786 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15787 *) need_version=no ;;
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15791 shlibpath_var=LD_LIBRARY_PATH
15792 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15794 openbsd2.[89] | openbsd2.[89].*)
15795 shlibpath_overrides_runpath=no
15798 shlibpath_overrides_runpath=yes
15802 shlibpath_overrides_runpath=yes
15807 libname_spec='$name'
15810 library_names_spec='$libname${shared_ext} $libname.a'
15811 dynamic_linker='OS/2 ld.exe'
15812 shlibpath_var=LIBPATH
15815 osf3* | osf4* | osf5*)
15819 soname_spec='${libname}${release}${shared_ext}$major'
15820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15821 shlibpath_var=LD_LIBRARY_PATH
15822 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15823 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15828 soname_spec='${libname}${release}${shared_ext}$major'
15829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15830 shlibpath_var=LD_LIBRARY_PATH
15837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15838 soname_spec='${libname}${release}${shared_ext}$major'
15839 shlibpath_var=LD_LIBRARY_PATH
15840 shlibpath_overrides_runpath=yes
15841 hardcode_into_libs=yes
15842 # ldd complains unless libraries are executable
15843 postinstall_cmds='chmod +x $lib'
15848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15849 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15850 shlibpath_var=LD_LIBRARY_PATH
15851 shlibpath_overrides_runpath=yes
15852 if test "$with_gnu_ld" = yes; then
15858 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15861 soname_spec='${libname}${release}${shared_ext}$major'
15862 shlibpath_var=LD_LIBRARY_PATH
15863 case $host_vendor in
15865 shlibpath_overrides_runpath=no
15867 export_dynamic_flag_spec='${wl}-Blargedynsym'
15868 runpath_var=LD_RUN_PATH
15876 shlibpath_overrides_runpath=no
15877 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15883 if test -d /usr/nec ;then
15885 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15886 soname_spec='$libname${shared_ext}.$major'
15887 shlibpath_var=LD_LIBRARY_PATH
15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15894 soname_spec='${libname}${release}${shared_ext}$major'
15895 shlibpath_var=LD_LIBRARY_PATH
15902 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15903 echo "${ECHO_T}$dynamic_linker" >&6
15904 test "$dynamic_linker" = no && can_build_shared=no
15906 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15907 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15908 hardcode_action_F77=
15909 if test -n "$hardcode_libdir_flag_spec_F77" || \
15910 test -n "$runpath_var_F77" || \
15911 test "X$hardcode_automatic_F77" = "Xyes" ; then
15913 # We can hardcode non-existant directories.
15914 if test "$hardcode_direct_F77" != no &&
15915 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15916 # have to relink, otherwise we might link with an installed library
15917 # when we should be linking with a yet-to-be-installed one
15918 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15919 test "$hardcode_minus_L_F77" != no; then
15920 # Linking always hardcodes the temporary library directory.
15921 hardcode_action_F77=relink
15923 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15924 hardcode_action_F77=immediate
15927 # We cannot hardcode anything, or else we can only hardcode existing
15929 hardcode_action_F77=unsupported
15931 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15932 echo "${ECHO_T}$hardcode_action_F77" >&6
15934 if test "$hardcode_action_F77" = relink; then
15935 # Fast installation is not supported
15936 enable_fast_install=no
15937 elif test "$shlibpath_overrides_runpath" = yes ||
15938 test "$enable_shared" = no; then
15939 # Fast installation is not necessary
15940 enable_fast_install=needless
15945 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15946 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15947 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15948 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15949 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15950 echo "$as_me:$LINENO: result: yes" >&5
15951 echo "${ECHO_T}yes" >&6
15953 # FIXME - insert some real tests, host_os isn't really good enough
15956 if test -n "$STRIP" ; then
15957 striplib="$STRIP -x"
15958 echo "$as_me:$LINENO: result: yes" >&5
15959 echo "${ECHO_T}yes" >&6
15961 echo "$as_me:$LINENO: result: no" >&5
15962 echo "${ECHO_T}no" >&6
15966 echo "$as_me:$LINENO: result: no" >&5
15967 echo "${ECHO_T}no" >&6
15974 # The else clause should only fire when bootstrapping the
15975 # libtool distribution, otherwise you forgot to ship ltmain.sh
15976 # with your package, and you will get complaints that there are
15977 # no rules to generate ltmain.sh.
15978 if test -f "$ltmain"; then
15979 # See if we are running on zsh, and set the options which allow our commands through
15980 # without removal of \ escapes.
15981 if test -n "${ZSH_VERSION+set}" ; then
15982 setopt NO_GLOB_SUBST
15984 # Now quote all the things that may contain metacharacters while being
15985 # careful not to overquote the AC_SUBSTed values. We take copies of the
15986 # variables and quote the copies for generation of the libtool script.
15987 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15989 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15990 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15991 deplibs_check_method reload_flag reload_cmds need_locks \
15992 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15993 lt_cv_sys_global_symbol_to_c_name_address \
15994 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15995 old_postinstall_cmds old_postuninstall_cmds \
15999 lt_prog_compiler_wl_F77 \
16000 lt_prog_compiler_pic_F77 \
16001 lt_prog_compiler_static_F77 \
16002 lt_prog_compiler_no_builtin_flag_F77 \
16003 export_dynamic_flag_spec_F77 \
16004 thread_safe_flag_spec_F77 \
16005 whole_archive_flag_spec_F77 \
16006 enable_shared_with_static_runtimes_F77 \
16007 old_archive_cmds_F77 \
16008 old_archive_from_new_cmds_F77 \
16009 predep_objects_F77 \
16010 postdep_objects_F77 \
16013 compiler_lib_search_path_F77 \
16015 archive_expsym_cmds_F77 \
16016 postinstall_cmds_F77 \
16017 postuninstall_cmds_F77 \
16018 old_archive_from_expsyms_cmds_F77 \
16019 allow_undefined_flag_F77 \
16020 no_undefined_flag_F77 \
16021 export_symbols_cmds_F77 \
16022 hardcode_libdir_flag_spec_F77 \
16023 hardcode_libdir_flag_spec_ld_F77 \
16024 hardcode_libdir_separator_F77 \
16025 hardcode_automatic_F77 \
16027 module_expsym_cmds_F77 \
16028 lt_cv_prog_compiler_c_o_F77 \
16029 exclude_expsyms_F77 \
16030 include_expsyms_F77; do
16033 old_archive_cmds_F77 | \
16034 old_archive_from_new_cmds_F77 | \
16035 archive_cmds_F77 | \
16036 archive_expsym_cmds_F77 | \
16037 module_cmds_F77 | \
16038 module_expsym_cmds_F77 | \
16039 old_archive_from_expsyms_cmds_F77 | \
16040 export_symbols_cmds_F77 | \
16041 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16042 postinstall_cmds | postuninstall_cmds | \
16043 old_postinstall_cmds | old_postuninstall_cmds | \
16044 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16045 # Double-quote double-evaled strings.
16046 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16049 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16055 *'\$0 --fallback-echo"')
16056 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16062 cat <<__EOF__ >> "$cfgfile"
16063 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16065 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16067 # Shell to use when invoking shell scripts.
16070 # Whether or not to build shared libraries.
16071 build_libtool_libs=$enable_shared
16073 # Whether or not to build static libraries.
16074 build_old_libs=$enable_static
16076 # Whether or not to add -lc for building shared libraries.
16077 build_libtool_need_lc=$archive_cmds_need_lc_F77
16079 # Whether or not to disallow shared libs when runtime libs are static
16080 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16082 # Whether or not to optimize for fast installation.
16083 fast_install=$enable_fast_install
16086 host_alias=$host_alias
16090 # The build system.
16091 build_alias=$build_alias
16095 # An echo program that does not interpret backslashes.
16100 AR_FLAGS=$lt_AR_FLAGS
16105 # A language-specific compiler.
16106 CC=$lt_compiler_F77
16108 # Is the compiler the GNU C compiler?
16114 # The linker used to build libraries.
16117 # Whether we need hard or soft links.
16120 # A BSD-compatible nm program.
16123 # A symbol stripping program
16126 # Used to examine libraries when file_magic_cmd begins "file"
16127 MAGIC_CMD=$MAGIC_CMD
16129 # Used on cygwin: DLL creation program.
16132 # Used on cygwin: object dumper.
16135 # Used on cygwin: assembler.
16138 # The name of the directory that contains temporary libtool files.
16141 # How to create reloadable object files.
16142 reload_flag=$lt_reload_flag
16143 reload_cmds=$lt_reload_cmds
16145 # How to pass a linker flag through the compiler.
16146 wl=$lt_lt_prog_compiler_wl_F77
16148 # Object file suffix (normally "o").
16149 objext="$ac_objext"
16151 # Old archive suffix (normally "a").
16154 # Shared library suffix (normally ".so").
16155 shrext_cmds='$shrext_cmds'
16157 # Executable file suffix (normally "").
16160 # Additional compiler flags for building library objects.
16161 pic_flag=$lt_lt_prog_compiler_pic_F77
16164 # What is the maximum length of a command?
16165 max_cmd_len=$lt_cv_sys_max_cmd_len
16167 # Does compiler simultaneously support -c and -o options?
16168 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16170 # Must we lock files when doing compilation?
16171 need_locks=$lt_need_locks
16173 # Do we need the lib prefix for modules?
16174 need_lib_prefix=$need_lib_prefix
16176 # Do we need a version for libraries?
16177 need_version=$need_version
16179 # Whether dlopen is supported.
16180 dlopen_support=$enable_dlopen
16182 # Whether dlopen of programs is supported.
16183 dlopen_self=$enable_dlopen_self
16185 # Whether dlopen of statically linked programs is supported.
16186 dlopen_self_static=$enable_dlopen_self_static
16188 # Compiler flag to prevent dynamic linking.
16189 link_static_flag=$lt_lt_prog_compiler_static_F77
16191 # Compiler flag to turn off builtin functions.
16192 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16194 # Compiler flag to allow reflexive dlopens.
16195 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16197 # Compiler flag to generate shared objects directly from archives.
16198 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16200 # Compiler flag to generate thread-safe objects.
16201 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16203 # Library versioning type.
16204 version_type=$version_type
16206 # Format of library name prefix.
16207 libname_spec=$lt_libname_spec
16209 # List of archive names. First name is the real one, the rest are links.
16210 # The last name is the one that the linker finds with -lNAME.
16211 library_names_spec=$lt_library_names_spec
16213 # The coded name of the library, if different from the real name.
16214 soname_spec=$lt_soname_spec
16216 # Commands used to build and install an old-style archive.
16218 old_archive_cmds=$lt_old_archive_cmds_F77
16219 old_postinstall_cmds=$lt_old_postinstall_cmds
16220 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16222 # Create an old-style archive from a shared archive.
16223 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16225 # Create a temporary old-style archive to link instead of a shared archive.
16226 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16228 # Commands used to build and install a shared archive.
16229 archive_cmds=$lt_archive_cmds_F77
16230 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16231 postinstall_cmds=$lt_postinstall_cmds
16232 postuninstall_cmds=$lt_postuninstall_cmds
16234 # Commands used to build a loadable module (assumed same as above if empty)
16235 module_cmds=$lt_module_cmds_F77
16236 module_expsym_cmds=$lt_module_expsym_cmds_F77
16238 # Commands to strip libraries.
16239 old_striplib=$lt_old_striplib
16240 striplib=$lt_striplib
16242 # Dependencies to place before the objects being linked to create a
16244 predep_objects=$lt_predep_objects_F77
16246 # Dependencies to place after the objects being linked to create a
16248 postdep_objects=$lt_postdep_objects_F77
16250 # Dependencies to place before the objects being linked to create a
16252 predeps=$lt_predeps_F77
16254 # Dependencies to place after the objects being linked to create a
16256 postdeps=$lt_postdeps_F77
16258 # The library search path used internally by the compiler when linking
16259 # a shared library.
16260 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16262 # Method to check whether dependent libraries are shared objects.
16263 deplibs_check_method=$lt_deplibs_check_method
16265 # Command to use when deplibs_check_method == file_magic.
16266 file_magic_cmd=$lt_file_magic_cmd
16268 # Flag that allows shared libraries with undefined symbols to be built.
16269 allow_undefined_flag=$lt_allow_undefined_flag_F77
16271 # Flag that forces no undefined symbols.
16272 no_undefined_flag=$lt_no_undefined_flag_F77
16274 # Commands used to finish a libtool library installation in a directory.
16275 finish_cmds=$lt_finish_cmds
16277 # Same as above, but a single script fragment to be evaled but not shown.
16278 finish_eval=$lt_finish_eval
16280 # Take the output of nm and produce a listing of raw symbols and C names.
16281 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16283 # Transform the output of nm in a proper C declaration
16284 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16286 # Transform the output of nm in a C name address pair
16287 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16289 # This is the shared library runtime path variable.
16290 runpath_var=$runpath_var
16292 # This is the shared library path variable.
16293 shlibpath_var=$shlibpath_var
16295 # Is shlibpath searched before the hard-coded library search path?
16296 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16298 # How to hardcode a shared library path into an executable.
16299 hardcode_action=$hardcode_action_F77
16301 # Whether we should hardcode library paths into libraries.
16302 hardcode_into_libs=$hardcode_into_libs
16304 # Flag to hardcode \$libdir into a binary during linking.
16305 # This must work even if \$libdir does not exist.
16306 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16308 # If ld is used when linking, flag to hardcode \$libdir into
16309 # a binary during linking. This must work even if \$libdir does
16311 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16313 # Whether we need a single -rpath flag with a separated argument.
16314 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16316 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16317 # resulting binary.
16318 hardcode_direct=$hardcode_direct_F77
16320 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16321 # resulting binary.
16322 hardcode_minus_L=$hardcode_minus_L_F77
16324 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16325 # the resulting binary.
16326 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16328 # Set to yes if building a shared library automatically hardcodes DIR into the library
16329 # and all subsequent libraries and executables linked against it.
16330 hardcode_automatic=$hardcode_automatic_F77
16332 # Variables whose values should be saved in libtool wrapper scripts and
16333 # restored at relink time.
16334 variables_saved_for_relink="$variables_saved_for_relink"
16336 # Whether libtool must link a program against all its dependency libraries.
16337 link_all_deplibs=$link_all_deplibs_F77
16339 # Compile-time system search path for libraries
16340 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16342 # Run-time system search path for libraries
16343 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16345 # Fix the shell variable \$srcfile for the compiler.
16346 fix_srcfile_path="$fix_srcfile_path_F77"
16348 # Set to yes if exported symbols are required.
16349 always_export_symbols=$always_export_symbols_F77
16351 # The commands to list exported symbols.
16352 export_symbols_cmds=$lt_export_symbols_cmds_F77
16354 # The commands to extract the exported symbol list from a shared archive.
16355 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16357 # Symbols that should not be listed in the preloaded symbols.
16358 exclude_expsyms=$lt_exclude_expsyms_F77
16360 # Symbols that must always be exported.
16361 include_expsyms=$lt_include_expsyms_F77
16363 # ### END LIBTOOL TAG CONFIG: $tagname
16369 # If there is no Makefile yet, we rely on a make rule to execute
16370 # `config.status --recheck' to rerun these tests and create the
16371 # libtool script then.
16372 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16373 if test -f "$ltmain_in"; then
16374 test -f Makefile && make "$ltmain"
16380 ac_cpp='$CPP $CPPFLAGS'
16381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16393 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16397 # Source file extension for Java test sources.
16400 # Object file extension for compiled Java test sources.
16404 # Code to be used in simple compile tests
16405 lt_simple_compile_test_code="class foo {}\n"
16407 # Code to be used in simple link tests
16408 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16410 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16412 # If no C compiler was specified, use CC.
16415 # Allow CC to be a program name with arguments.
16419 # save warnings/boilerplate of simple test code
16420 ac_outfile=conftest.$ac_objext
16421 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16422 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16423 _lt_compiler_boilerplate=`cat conftest.err`
16426 ac_outfile=conftest.$ac_objext
16427 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16428 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16429 _lt_linker_boilerplate=`cat conftest.err`
16433 # Allow CC to be a program name with arguments.
16438 for cc_temp in $compiler""; do
16440 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16441 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16446 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16449 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16450 archive_cmds_need_lc_GCJ=no
16452 old_archive_cmds_GCJ=$old_archive_cmds
16455 lt_prog_compiler_no_builtin_flag_GCJ=
16457 if test "$GCC" = yes; then
16458 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16461 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16462 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16463 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16466 lt_cv_prog_compiler_rtti_exceptions=no
16467 ac_outfile=conftest.$ac_objext
16468 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16469 lt_compiler_flag="-fno-rtti -fno-exceptions"
16470 # Insert the option either (1) after the last *FLAGS variable, or
16471 # (2) before a word containing "conftest.", or (3) at the end.
16472 # Note that $ac_compile itself does not contain backslashes and begins
16473 # with a dollar sign (not a hyphen), so the echo should work correctly.
16474 # The option is referenced via a variable to avoid confusing sed.
16475 lt_compile=`echo "$ac_compile" | $SED \
16476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16478 -e 's:$: $lt_compiler_flag:'`
16479 (eval echo "\"\$as_me:16479: $lt_compile\"" >&5)
16480 (eval "$lt_compile" 2>conftest.err)
16482 cat conftest.err >&5
16483 echo "$as_me:16483: \$? = $ac_status" >&5
16484 if (exit $ac_status) && test -s "$ac_outfile"; then
16485 # The compiler can only warn and ignore the option if not recognized
16486 # So say no if there are warnings other than the usual output.
16487 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16488 $SED '/^$/d' conftest.err >conftest.er2
16489 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16490 lt_cv_prog_compiler_rtti_exceptions=yes
16496 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16497 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16499 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16500 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16507 lt_prog_compiler_wl_GCJ=
16508 lt_prog_compiler_pic_GCJ=
16509 lt_prog_compiler_static_GCJ=
16511 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16512 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16514 if test "$GCC" = yes; then
16515 lt_prog_compiler_wl_GCJ='-Wl,'
16516 lt_prog_compiler_static_GCJ='-static'
16520 # All AIX code is PIC.
16521 if test "$host_cpu" = ia64; then
16522 # AIX 5 now supports IA64 processor
16523 lt_prog_compiler_static_GCJ='-Bstatic'
16528 # FIXME: we need at least 68020 code to build shared libraries, but
16529 # adding the `-m68020' flag to GCC prevents building anything better,
16531 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16534 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16535 # PIC is the default for these OSes.
16538 mingw* | pw32* | os2*)
16539 # This hack is so that the source file can tell whether it is being
16540 # built for inclusion in a dll (and should export symbols for example).
16541 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16544 darwin* | rhapsody*)
16545 # PIC is the default on this platform
16546 # Common symbols not allowed in MH_DYLIB files
16547 lt_prog_compiler_pic_GCJ='-fno-common'
16551 # Just because we use GCC doesn't mean we suddenly get shared libraries
16552 # on systems that don't support them.
16553 lt_prog_compiler_can_build_shared_GCJ=no
16558 if test -d /usr/nec; then
16559 lt_prog_compiler_pic_GCJ=-Kconform_pic
16564 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16565 # not for PA HP-UX.
16571 lt_prog_compiler_pic_GCJ='-fPIC'
16577 lt_prog_compiler_pic_GCJ='-fPIC'
16581 # PORTME Check for flag to pass linker flags through the system compiler.
16584 lt_prog_compiler_wl_GCJ='-Wl,'
16585 if test "$host_cpu" = ia64; then
16586 # AIX 5 now supports IA64 processor
16587 lt_prog_compiler_static_GCJ='-Bstatic'
16589 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16593 # PIC is the default on this platform
16594 # Common symbols not allowed in MH_DYLIB files
16595 case $cc_basename in
16597 lt_prog_compiler_pic_GCJ='-qnocommon'
16598 lt_prog_compiler_wl_GCJ='-Wl,'
16603 mingw* | pw32* | os2*)
16604 # This hack is so that the source file can tell whether it is being
16605 # built for inclusion in a dll (and should export symbols for example).
16606 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16609 hpux9* | hpux10* | hpux11*)
16610 lt_prog_compiler_wl_GCJ='-Wl,'
16611 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16612 # not for PA HP-UX.
16618 lt_prog_compiler_pic_GCJ='+Z'
16621 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16622 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16625 irix5* | irix6* | nonstopux*)
16626 lt_prog_compiler_wl_GCJ='-Wl,'
16627 # PIC (with -KPIC) is the default.
16628 lt_prog_compiler_static_GCJ='-non_shared'
16632 lt_prog_compiler_pic_GCJ='-KPIC'
16633 lt_prog_compiler_static_GCJ='-Bstatic'
16637 case $cc_basename in
16639 lt_prog_compiler_wl_GCJ='-Wl,'
16640 lt_prog_compiler_pic_GCJ='-KPIC'
16641 lt_prog_compiler_static_GCJ='-static'
16643 pgcc* | pgf77* | pgf90* | pgf95*)
16644 # Portland Group compilers (*not* the Pentium gcc compiler,
16645 # which looks to be a dead project)
16646 lt_prog_compiler_wl_GCJ='-Wl,'
16647 lt_prog_compiler_pic_GCJ='-fpic'
16648 lt_prog_compiler_static_GCJ='-Bstatic'
16651 lt_prog_compiler_wl_GCJ='-Wl,'
16652 # All Alpha code is PIC.
16653 lt_prog_compiler_static_GCJ='-non_shared'
16658 osf3* | osf4* | osf5*)
16659 lt_prog_compiler_wl_GCJ='-Wl,'
16660 # All OSF/1 code is PIC.
16661 lt_prog_compiler_static_GCJ='-non_shared'
16665 lt_prog_compiler_pic_GCJ='-Kpic'
16666 lt_prog_compiler_static_GCJ='-dn'
16670 lt_prog_compiler_pic_GCJ='-KPIC'
16671 lt_prog_compiler_static_GCJ='-Bstatic'
16672 case $cc_basename in
16673 f77* | f90* | f95*)
16674 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16676 lt_prog_compiler_wl_GCJ='-Wl,';;
16681 lt_prog_compiler_wl_GCJ='-Qoption ld '
16682 lt_prog_compiler_pic_GCJ='-PIC'
16683 lt_prog_compiler_static_GCJ='-Bstatic'
16686 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16687 lt_prog_compiler_wl_GCJ='-Wl,'
16688 lt_prog_compiler_pic_GCJ='-KPIC'
16689 lt_prog_compiler_static_GCJ='-Bstatic'
16693 if test -d /usr/nec ;then
16694 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16695 lt_prog_compiler_static_GCJ='-Bstatic'
16700 lt_prog_compiler_wl_GCJ='-Wl,'
16701 lt_prog_compiler_can_build_shared_GCJ=no
16705 lt_prog_compiler_pic_GCJ='-pic'
16706 lt_prog_compiler_static_GCJ='-Bstatic'
16710 lt_prog_compiler_can_build_shared_GCJ=no
16715 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16716 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16719 # Check to make sure the PIC flag actually works.
16721 if test -n "$lt_prog_compiler_pic_GCJ"; then
16723 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16724 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16725 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16726 echo $ECHO_N "(cached) $ECHO_C" >&6
16728 lt_prog_compiler_pic_works_GCJ=no
16729 ac_outfile=conftest.$ac_objext
16730 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16731 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16732 # Insert the option either (1) after the last *FLAGS variable, or
16733 # (2) before a word containing "conftest.", or (3) at the end.
16734 # Note that $ac_compile itself does not contain backslashes and begins
16735 # with a dollar sign (not a hyphen), so the echo should work correctly.
16736 # The option is referenced via a variable to avoid confusing sed.
16737 lt_compile=`echo "$ac_compile" | $SED \
16738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16740 -e 's:$: $lt_compiler_flag:'`
16741 (eval echo "\"\$as_me:16741: $lt_compile\"" >&5)
16742 (eval "$lt_compile" 2>conftest.err)
16744 cat conftest.err >&5
16745 echo "$as_me:16745: \$? = $ac_status" >&5
16746 if (exit $ac_status) && test -s "$ac_outfile"; then
16747 # The compiler can only warn and ignore the option if not recognized
16748 # So say no if there are warnings other than the usual output.
16749 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16750 $SED '/^$/d' conftest.err >conftest.er2
16751 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16752 lt_prog_compiler_pic_works_GCJ=yes
16758 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16759 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16761 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16762 case $lt_prog_compiler_pic_GCJ in
16764 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16767 lt_prog_compiler_pic_GCJ=
16768 lt_prog_compiler_can_build_shared_GCJ=no
16773 # For platforms which do not support PIC, -DPIC is meaningless:
16775 lt_prog_compiler_pic_GCJ=
16778 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16782 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16783 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16784 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 lt_cv_prog_compiler_c_o_GCJ=no
16788 $rm -r conftest 2>/dev/null
16792 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16794 lt_compiler_flag="-o out/conftest2.$ac_objext"
16795 # Insert the option either (1) after the last *FLAGS variable, or
16796 # (2) before a word containing "conftest.", or (3) at the end.
16797 # Note that $ac_compile itself does not contain backslashes and begins
16798 # with a dollar sign (not a hyphen), so the echo should work correctly.
16799 lt_compile=`echo "$ac_compile" | $SED \
16800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16802 -e 's:$: $lt_compiler_flag:'`
16803 (eval echo "\"\$as_me:16803: $lt_compile\"" >&5)
16804 (eval "$lt_compile" 2>out/conftest.err)
16806 cat out/conftest.err >&5
16807 echo "$as_me:16807: \$? = $ac_status" >&5
16808 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16810 # The compiler can only warn and ignore the option if not recognized
16811 # So say no if there are warnings
16812 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16813 $SED '/^$/d' out/conftest.err >out/conftest.er2
16814 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16815 lt_cv_prog_compiler_c_o_GCJ=yes
16820 # SGI C++ compiler will create directory out/ii_files/ for
16821 # template instantiation
16822 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16823 $rm out/* && rmdir out
16829 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16830 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16833 hard_links="nottested"
16834 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16835 # do not overwrite the value of need_locks provided by the user
16836 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16837 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16840 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16842 ln conftest.a conftest.b 2>&5 || hard_links=no
16843 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16844 echo "$as_me:$LINENO: result: $hard_links" >&5
16845 echo "${ECHO_T}$hard_links" >&6
16846 if test "$hard_links" = no; then
16847 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16848 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16855 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16856 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16859 allow_undefined_flag_GCJ=
16860 enable_shared_with_static_runtimes_GCJ=no
16862 archive_expsym_cmds_GCJ=
16863 old_archive_From_new_cmds_GCJ=
16864 old_archive_from_expsyms_cmds_GCJ=
16865 export_dynamic_flag_spec_GCJ=
16866 whole_archive_flag_spec_GCJ=
16867 thread_safe_flag_spec_GCJ=
16868 hardcode_libdir_flag_spec_GCJ=
16869 hardcode_libdir_flag_spec_ld_GCJ=
16870 hardcode_libdir_separator_GCJ=
16871 hardcode_direct_GCJ=no
16872 hardcode_minus_L_GCJ=no
16873 hardcode_shlibpath_var_GCJ=unsupported
16874 link_all_deplibs_GCJ=unknown
16875 hardcode_automatic_GCJ=no
16877 module_expsym_cmds_GCJ=
16878 always_export_symbols_GCJ=no
16879 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16880 # include_expsyms should be a list of space-separated symbols to be *always*
16881 # included in the symbol list
16882 include_expsyms_GCJ=
16883 # exclude_expsyms can be an extended regexp of symbols to exclude
16884 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16885 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16886 # as well as any symbol that contains `d'.
16887 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16888 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16889 # platforms (ab)use it in PIC code, but their linkers get confused if
16890 # the symbol is explicitly referenced. Since portable code cannot
16891 # rely on this symbol name, it's probably fine to never include it in
16892 # preloaded symbol tables.
16893 extract_expsyms_cmds=
16894 # Just being paranoid about ensuring that cc_basename is set.
16895 for cc_temp in $compiler""; do
16897 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16898 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16903 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16906 cygwin* | mingw* | pw32*)
16907 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16908 # When not using gcc, we currently assume that we are using
16909 # Microsoft Visual C++.
16910 if test "$GCC" != yes; then
16920 if test "$with_gnu_ld" = yes; then
16921 # If archive_cmds runs LD, not CC, wlarc should be empty
16924 # Set some defaults for GNU ld with shared library support. These
16925 # are reset later if shared libraries are not supported. Putting them
16926 # here allows them to be overridden if necessary.
16927 runpath_var=LD_RUN_PATH
16928 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16929 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16930 # ancient GNU ld didn't support --whole-archive et. al.
16931 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16932 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16934 whole_archive_flag_spec_GCJ=
16936 supports_anon_versioning=no
16937 case `$LD -v 2>/dev/null` in
16938 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16939 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16940 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16941 *\ 2.11.*) ;; # other 2.11 versions
16942 *) supports_anon_versioning=yes ;;
16945 # See if GNU ld supports shared libraries.
16947 aix3* | aix4* | aix5*)
16948 # On AIX/PPC, the GNU linker is very broken
16949 if test "$host_cpu" != ia64; then
16953 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16954 *** to be unable to reliably create shared libraries on AIX.
16955 *** Therefore, libtool is disabling shared libraries support. If you
16956 *** really care for shared libraries, you may want to modify your PATH
16957 *** so that a non-GNU linker is found, and then restart.
16964 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)'
16965 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16966 hardcode_minus_L_GCJ=yes
16968 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16969 # that the semantics of dynamic libraries on AmigaOS, at least up
16970 # to version 4, is to share data among multiple programs linked
16971 # with the same dynamic library. Since this doesn't match the
16972 # behavior of shared libraries on other platforms, we can't use
16978 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16979 allow_undefined_flag_GCJ=unsupported
16980 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16981 # support --undefined. This deserves some investigation. FIXME
16982 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16988 cygwin* | mingw* | pw32*)
16989 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16990 # as there is no search path for DLLs.
16991 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16992 allow_undefined_flag_GCJ=unsupported
16993 always_export_symbols_GCJ=no
16994 enable_shared_with_static_runtimes_GCJ=yes
16995 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16997 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16998 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16999 # If the export-symbols file already is a .def file (1st line
17000 # is EXPORTS), use it as is; otherwise, prepend...
17001 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17002 cp $export_symbols $output_objdir/$soname.def;
17004 echo EXPORTS > $output_objdir/$soname.def;
17005 cat $export_symbols >> $output_objdir/$soname.def;
17007 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17014 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17016 case $cc_basename,$host_cpu in
17017 pgcc*) # Portland Group C compiler
17018 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17019 tmp_addflag=' $pic_flag'
17021 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17022 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17023 tmp_addflag=' $pic_flag -Mnomain' ;;
17024 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17025 tmp_addflag=' -i_dynamic' ;;
17026 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17027 tmp_addflag=' -i_dynamic -nofor_main' ;;
17028 ifc* | ifort*) # Intel Fortran compiler
17029 tmp_addflag=' -nofor_main' ;;
17031 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17033 if test $supports_anon_versioning = yes; then
17034 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17035 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17036 $echo "local: *; };" >> $output_objdir/$libname.ver~
17037 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17045 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17046 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17049 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17050 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17055 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17059 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17060 *** create shared libraries on Solaris systems. Therefore, libtool
17061 *** is disabling shared libraries support. We urge you to upgrade GNU
17062 *** binutils to release 2.9.1 or newer. Another option is to modify
17063 *** your PATH or compiler configuration so that the native linker is
17064 *** used, and then restart.
17067 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17068 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17069 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17076 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17078 hardcode_direct_GCJ=yes
17079 hardcode_shlibpath_var_GCJ=no
17083 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17084 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17085 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17092 if test "$ld_shlibs_GCJ" = no; then
17094 hardcode_libdir_flag_spec_GCJ=
17095 export_dynamic_flag_spec_GCJ=
17096 whole_archive_flag_spec_GCJ=
17099 # PORTME fill in a description of your system's linker (not GNU ld)
17102 allow_undefined_flag_GCJ=unsupported
17103 always_export_symbols_GCJ=yes
17104 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'
17105 # Note: this linker hardcodes the directories in LIBPATH if there
17106 # are no directories specified by -L.
17107 hardcode_minus_L_GCJ=yes
17108 if test "$GCC" = yes && test -z "$link_static_flag"; then
17109 # Neither direct hardcoding nor static linking is supported with a
17111 hardcode_direct_GCJ=unsupported
17116 if test "$host_cpu" = ia64; then
17117 # On IA64, the linker does run time linking by default, so we don't
17118 # have to do anything special.
17119 aix_use_runtimelinking=no
17120 exp_sym_flag='-Bexport'
17123 # If we're using GNU nm, then we don't want the "-C" option.
17124 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17125 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17126 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'
17128 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'
17130 aix_use_runtimelinking=no
17132 # Test if we are trying to use run time linking or normal
17133 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17134 # need to do runtime linking.
17135 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17136 for ld_flag in $LDFLAGS; do
17137 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17138 aix_use_runtimelinking=yes
17144 exp_sym_flag='-bexport'
17145 no_entry_flag='-bnoentry'
17148 # When large executables or shared objects are built, AIX ld can
17149 # have problems creating the table of contents. If linking a library
17150 # or program results in "error TOC overflow" add -mminimal-toc to
17151 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17152 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17154 archive_cmds_GCJ=''
17155 hardcode_direct_GCJ=yes
17156 hardcode_libdir_separator_GCJ=':'
17157 link_all_deplibs_GCJ=yes
17159 if test "$GCC" = yes; then
17160 case $host_os in aix4.[012]|aix4.[012].*)
17161 # We only want to do this on AIX 4.2 and lower, the check
17162 # below for broken collect2 doesn't work under 4.3+
17163 collect2name=`${CC} -print-prog-name=collect2`
17164 if test -f "$collect2name" && \
17165 strings "$collect2name" | grep resolve_lib_name >/dev/null
17167 # We have reworked collect2
17168 hardcode_direct_GCJ=yes
17170 # We have old collect2
17171 hardcode_direct_GCJ=unsupported
17172 # It fails to find uninstalled libraries when the uninstalled
17173 # path is not listed in the libpath. Setting hardcode_minus_L
17174 # to unsupported forces relinking
17175 hardcode_minus_L_GCJ=yes
17176 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17177 hardcode_libdir_separator_GCJ=
17180 shared_flag='-shared'
17181 if test "$aix_use_runtimelinking" = yes; then
17182 shared_flag="$shared_flag "'${wl}-G'
17186 if test "$host_cpu" = ia64; then
17187 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17188 # chokes on -Wl,-G. The following line is correct:
17191 if test "$aix_use_runtimelinking" = yes; then
17192 shared_flag='${wl}-G'
17194 shared_flag='${wl}-bM:SRE'
17199 # It seems that -bexpall does not export symbols beginning with
17200 # underscore (_), so it is better to generate a list of symbols to export.
17201 always_export_symbols_GCJ=yes
17202 if test "$aix_use_runtimelinking" = yes; then
17203 # Warning - without using the other runtime loading flags (-brtl),
17204 # -berok will link without error, but may produce a broken library.
17205 allow_undefined_flag_GCJ='-berok'
17206 # Determine the default libpath from the value encoded in an empty executable.
17207 cat >conftest.$ac_ext <<_ACEOF
17210 cat confdefs.h >>conftest.$ac_ext
17211 cat >>conftest.$ac_ext <<_ACEOF
17212 /* end confdefs.h. */
17222 rm -f conftest.$ac_objext conftest$ac_exeext
17223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17224 (eval $ac_link) 2>conftest.er1
17226 grep -v '^ *+' conftest.er1 >conftest.err
17228 cat conftest.err >&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } &&
17231 { ac_try='test -z "$ac_c_werror_flag"
17232 || test ! -s conftest.err'
17233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234 (eval $ac_try) 2>&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; } &&
17238 { ac_try='test -s conftest$ac_exeext'
17239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240 (eval $ac_try) 2>&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; }; then
17245 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17247 # Check for a 64-bit object if we didn't find anything.
17248 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; }
17251 echo "$as_me: failed program was:" >&5
17252 sed 's/^/| /' conftest.$ac_ext >&5
17255 rm -f conftest.err conftest.$ac_objext \
17256 conftest$ac_exeext conftest.$ac_ext
17257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17259 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17260 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"
17262 if test "$host_cpu" = ia64; then
17263 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17264 allow_undefined_flag_GCJ="-z nodefs"
17265 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"
17267 # Determine the default libpath from the value encoded in an empty executable.
17268 cat >conftest.$ac_ext <<_ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h. */
17283 rm -f conftest.$ac_objext conftest$ac_exeext
17284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17285 (eval $ac_link) 2>conftest.er1
17287 grep -v '^ *+' conftest.er1 >conftest.err
17289 cat conftest.err >&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); } &&
17292 { ac_try='test -z "$ac_c_werror_flag"
17293 || test ! -s conftest.err'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; } &&
17299 { ac_try='test -s conftest$ac_exeext'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17306 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17308 # Check for a 64-bit object if we didn't find anything.
17309 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; }
17312 echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17316 rm -f conftest.err conftest.$ac_objext \
17317 conftest$ac_exeext conftest.$ac_ext
17318 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17320 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17321 # Warning - without using the other run time loading flags,
17322 # -berok will link without error, but may produce a broken library.
17323 no_undefined_flag_GCJ=' ${wl}-bernotok'
17324 allow_undefined_flag_GCJ=' ${wl}-berok'
17325 # -bexpall does not export symbols beginning with underscore (_)
17326 always_export_symbols_GCJ=yes
17327 # Exported symbols can be pulled into shared objects from archives
17328 whole_archive_flag_spec_GCJ=' '
17329 archive_cmds_need_lc_GCJ=yes
17330 # This is similar to how AIX traditionally builds its shared libraries.
17331 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'
17337 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)'
17338 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17339 hardcode_minus_L_GCJ=yes
17340 # see comment about different semantics on the GNU ld section
17345 export_dynamic_flag_spec_GCJ=-rdynamic
17348 cygwin* | mingw* | pw32*)
17349 # When not using gcc, we currently assume that we are using
17350 # Microsoft Visual C++.
17351 # hardcode_libdir_flag_spec is actually meaningless, as there is
17352 # no search path for DLLs.
17353 hardcode_libdir_flag_spec_GCJ=' '
17354 allow_undefined_flag_GCJ=unsupported
17355 # Tell ltmain to make .lib files, not .a files.
17357 # Tell ltmain to make .dll files, not .so files.
17359 # FIXME: Setting linknames here is a bad hack.
17360 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17361 # The linker will automatically build a .lib file if we build a DLL.
17362 old_archive_From_new_cmds_GCJ='true'
17363 # FIXME: Should let the user specify the lib program.
17364 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17365 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17366 enable_shared_with_static_runtimes_GCJ=yes
17369 darwin* | rhapsody*)
17371 rhapsody* | darwin1.[012])
17372 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17375 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17376 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17378 case ${MACOSX_DEPLOYMENT_TARGET} in
17380 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17383 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17389 archive_cmds_need_lc_GCJ=no
17390 hardcode_direct_GCJ=no
17391 hardcode_automatic_GCJ=yes
17392 hardcode_shlibpath_var_GCJ=unsupported
17393 whole_archive_flag_spec_GCJ=''
17394 link_all_deplibs_GCJ=yes
17395 if test "$GCC" = yes ; then
17396 output_verbose_link_cmd='echo'
17397 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17398 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17399 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17400 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17401 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17403 case $cc_basename in
17405 output_verbose_link_cmd='echo'
17406 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17407 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17408 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17409 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17410 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17420 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17421 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17422 hardcode_shlibpath_var_GCJ=no
17429 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17430 # support. Future versions do this automatically, but an explicit c++rt0.o
17431 # does not break anything, and helps significantly (at the cost of a little
17434 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17435 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17436 hardcode_direct_GCJ=yes
17437 hardcode_shlibpath_var_GCJ=no
17440 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17442 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17443 hardcode_direct_GCJ=yes
17444 hardcode_minus_L_GCJ=yes
17445 hardcode_shlibpath_var_GCJ=no
17448 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17449 freebsd* | kfreebsd*-gnu | dragonfly*)
17450 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17451 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17452 hardcode_direct_GCJ=yes
17453 hardcode_shlibpath_var_GCJ=no
17457 if test "$GCC" = yes; then
17458 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'
17460 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'
17462 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17463 hardcode_libdir_separator_GCJ=:
17464 hardcode_direct_GCJ=yes
17466 # hardcode_minus_L: Not really in the search PATH,
17467 # but as the default location of the library.
17468 hardcode_minus_L_GCJ=yes
17469 export_dynamic_flag_spec_GCJ='${wl}-E'
17473 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17476 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17479 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17485 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17488 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17492 if test "$with_gnu_ld" = no; then
17495 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17496 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17497 hardcode_libdir_separator_GCJ=:
17498 hardcode_direct_GCJ=no
17499 hardcode_shlibpath_var_GCJ=no
17502 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17503 hardcode_direct_GCJ=no
17504 hardcode_shlibpath_var_GCJ=no
17506 # hardcode_minus_L: Not really in the search PATH,
17507 # but as the default location of the library.
17508 hardcode_minus_L_GCJ=yes
17511 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17512 hardcode_libdir_separator_GCJ=:
17513 hardcode_direct_GCJ=yes
17514 export_dynamic_flag_spec_GCJ='${wl}-E'
17516 # hardcode_minus_L: Not really in the search PATH,
17517 # but as the default location of the library.
17518 hardcode_minus_L_GCJ=yes
17524 irix5* | irix6* | nonstopux*)
17525 if test "$GCC" = yes; then
17526 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'
17528 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'
17529 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17531 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17532 hardcode_libdir_separator_GCJ=:
17533 link_all_deplibs_GCJ=yes
17537 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17538 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17540 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17542 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17543 hardcode_direct_GCJ=yes
17544 hardcode_shlibpath_var_GCJ=no
17548 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17549 hardcode_direct_GCJ=yes
17550 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17551 hardcode_libdir_separator_GCJ=:
17552 hardcode_shlibpath_var_GCJ=no
17556 hardcode_direct_GCJ=yes
17557 hardcode_shlibpath_var_GCJ=no
17558 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17559 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17560 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17561 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17562 export_dynamic_flag_spec_GCJ='${wl}-E'
17565 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17566 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17567 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17570 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17571 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17578 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17579 hardcode_minus_L_GCJ=yes
17580 allow_undefined_flag_GCJ=unsupported
17581 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'
17582 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17586 if test "$GCC" = yes; then
17587 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17588 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'
17590 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17591 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'
17593 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17594 hardcode_libdir_separator_GCJ=:
17597 osf4* | osf5*) # as osf3* with the addition of -msym flag
17598 if test "$GCC" = yes; then
17599 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17600 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'
17601 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17603 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17604 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'
17605 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~
17606 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17608 # Both c and cxx compiler support -rpath directly
17609 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17611 hardcode_libdir_separator_GCJ=:
17615 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17616 hardcode_shlibpath_var_GCJ=no
17617 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17618 runpath_var=LD_RUN_PATH
17619 hardcode_runpath_var=yes
17623 no_undefined_flag_GCJ=' -z text'
17624 if test "$GCC" = yes; then
17626 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17627 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17628 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17631 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17632 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17633 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17635 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17636 hardcode_shlibpath_var_GCJ=no
17638 solaris2.[0-5] | solaris2.[0-5].*) ;;
17640 # The compiler driver will combine linker options so we
17641 # cannot just pass the convience library names through
17642 # without $wl, iff we do not link with $LD.
17643 # Luckily, gcc supports the same syntax we need for Sun Studio.
17644 # Supported since Solaris 2.6 (maybe 2.5.1?)
17647 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17649 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17652 link_all_deplibs_GCJ=yes
17656 if test "x$host_vendor" = xsequent; then
17657 # Use $CC to link under sequent, because it throws in some extra .o
17658 # files that make .init and .fini sections work.
17659 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17661 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17663 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17664 hardcode_direct_GCJ=yes
17665 hardcode_minus_L_GCJ=yes
17666 hardcode_shlibpath_var_GCJ=no
17670 case $host_vendor in
17672 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17673 hardcode_direct_GCJ=yes # is this really true???
17676 ## LD is ld it makes a PLAMLIB
17677 ## CC just makes a GrossModule.
17678 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17679 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17680 hardcode_direct_GCJ=no
17683 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17684 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17687 runpath_var='LD_RUN_PATH'
17688 hardcode_shlibpath_var_GCJ=no
17692 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17693 hardcode_shlibpath_var_GCJ=no
17694 export_dynamic_flag_spec_GCJ='-Bexport'
17698 if test -d /usr/nec; then
17699 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17700 hardcode_shlibpath_var_GCJ=no
17701 runpath_var=LD_RUN_PATH
17702 hardcode_runpath_var=yes
17708 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17709 hardcode_direct_GCJ=yes
17710 hardcode_minus_L_GCJ=no
17711 hardcode_shlibpath_var_GCJ=no
17712 hardcode_runpath_var=yes
17713 runpath_var=LD_RUN_PATH
17716 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17717 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17718 if test "$GCC" = yes; then
17719 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17721 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17723 runpath_var='LD_RUN_PATH'
17724 hardcode_shlibpath_var_GCJ=no
17728 no_undefined_flag_GCJ=' -z text'
17729 # $CC -shared without GNU ld will not create a library from C++
17730 # object files and a static libstdc++, better avoid it by now
17731 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17732 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17733 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17734 hardcode_libdir_flag_spec_GCJ=
17735 hardcode_shlibpath_var_GCJ=no
17736 runpath_var='LD_RUN_PATH'
17740 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17741 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17742 hardcode_shlibpath_var_GCJ=no
17751 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17752 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17753 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17755 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17756 if test "$GCC" = yes; then
17757 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17761 # Do we need to explicitly link libc?
17763 case "x$archive_cmds_need_lc_GCJ" in
17765 # Assume -lc should be added
17766 archive_cmds_need_lc_GCJ=yes
17768 if test "$enable_shared" = yes && test "$GCC" = yes; then
17769 case $archive_cmds_GCJ in
17771 # FIXME: we may have to deal with multi-command sequences.
17774 # Test whether the compiler implicitly links with -lc since on some
17775 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17776 # to ld, don't add -lc before -lgcc.
17777 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17778 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17780 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17783 (eval $ac_compile) 2>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } 2>conftest.err; then
17789 libobjs=conftest.$ac_objext
17791 wl=$lt_prog_compiler_wl_GCJ
17797 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17798 allow_undefined_flag_GCJ=
17799 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17800 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }
17805 archive_cmds_need_lc_GCJ=no
17807 archive_cmds_need_lc_GCJ=yes
17809 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17811 cat conftest.err 1>&5
17814 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17815 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17822 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17823 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17824 library_names_spec=
17825 libname_spec='lib$name'
17829 postuninstall_cmds=
17833 shlibpath_overrides_runpath=unknown
17835 dynamic_linker="$host_os ld.so"
17836 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17837 if test "$GCC" = yes; then
17838 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17839 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17840 # if the path contains ";" then we assume it to be the separator
17841 # otherwise default to the standard path separator (i.e. ":") - it is
17842 # assumed that no part of a normal pathname contains ";" but that should
17843 # okay in the real world where ";" in dirpaths is itself problematic.
17844 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17849 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17851 need_lib_prefix=unknown
17852 hardcode_into_libs=no
17854 # when you set need_version to no, make sure it does not cause -set_version
17855 # flags to be left without arguments
17856 need_version=unknown
17861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17862 shlibpath_var=LIBPATH
17864 # AIX 3 has no versioning support, so we append a major version to the name.
17865 soname_spec='${libname}${release}${shared_ext}$major'
17872 hardcode_into_libs=yes
17873 if test "$host_cpu" = ia64; then
17874 # AIX 5 supports IA64
17875 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17876 shlibpath_var=LD_LIBRARY_PATH
17878 # With GCC up to 2.95.x, collect2 would create an import file
17879 # for dependence libraries. The import file would start with
17880 # the line `#! .'. This would cause the generated library to
17881 # depend on `.', always an invalid library. This was fixed in
17882 # development snapshots of GCC prior to 3.0.
17884 aix4 | aix4.[01] | aix4.[01].*)
17885 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17887 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17890 can_build_shared=no
17894 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17895 # soname into executable. Probably we can add versioning support to
17896 # collect2, so additional links can be useful in future.
17897 if test "$aix_use_runtimelinking" = yes; then
17898 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17899 # instead of lib<name>.a to let people know that these are not
17900 # typical AIX shared libraries.
17901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17903 # We preserve .a as extension for shared libraries through AIX4.2
17904 # and later when we are not doing run time linking.
17905 library_names_spec='${libname}${release}.a $libname.a'
17906 soname_spec='${libname}${release}${shared_ext}$major'
17908 shlibpath_var=LIBPATH
17913 library_names_spec='$libname.ixlibrary $libname.a'
17914 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17915 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'
17919 library_names_spec='${libname}${shared_ext}'
17920 dynamic_linker="$host_os ld.so"
17921 shlibpath_var=LIBRARY_PATH
17927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17928 soname_spec='${libname}${release}${shared_ext}$major'
17929 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17930 shlibpath_var=LD_LIBRARY_PATH
17931 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17932 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17933 # the default ld.so.conf also contains /usr/contrib/lib and
17934 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17935 # libtool to hard-code these into programs
17938 cygwin* | mingw* | pw32*)
17939 version_type=windows
17944 case $GCC,$host_os in
17945 yes,cygwin* | yes,mingw* | yes,pw32*)
17946 library_names_spec='$libname.dll.a'
17947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17948 postinstall_cmds='base_file=`basename \${file}`~
17949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17950 dldir=$destdir/`dirname \$dlpath`~
17951 test -d \$dldir || mkdir -p \$dldir~
17952 $install_prog $dir/$dlname \$dldir/$dlname~
17953 chmod a+x \$dldir/$dlname'
17954 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17955 dlpath=$dir/\$dldll~
17957 shlibpath_overrides_runpath=yes
17961 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17962 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17963 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17966 # MinGW DLLs use traditional 'lib' prefix
17967 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17968 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17969 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17970 # It is most probably a Windows format PATH printed by
17971 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17972 # path with ; separators, and with drive letters. We can handle the
17973 # drive letters (cygwin fileutils understands them), so leave them,
17974 # especially as we might pass files found there to a mingw objdump,
17975 # which wouldn't understand a cygwinified path. Ahh.
17976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17982 # pw32 DLLs use 'pw' prefix rather than 'lib'
17983 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17989 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17992 dynamic_linker='Win32 ld.exe'
17993 # FIXME: first we should search . and the directory the executable is in
17997 darwin* | rhapsody*)
17998 dynamic_linker="$host_os dyld"
17999 version_type=darwin
18002 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18003 soname_spec='${libname}${release}${major}$shared_ext'
18004 shlibpath_overrides_runpath=yes
18005 shlibpath_var=DYLD_LIBRARY_PATH
18006 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18007 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18008 if test "$GCC" = yes; then
18009 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"`
18011 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18013 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18021 soname_spec='${libname}${release}${shared_ext}$major'
18022 shlibpath_var=LD_LIBRARY_PATH
18033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18034 soname_spec='${libname}${release}${shared_ext}$major'
18035 shlibpath_var=LD_LIBRARY_PATH
18036 shlibpath_overrides_runpath=no
18037 hardcode_into_libs=yes
18038 dynamic_linker='GNU ld.so'
18041 freebsd* | dragonfly*)
18042 # DragonFly does not have aout. When/if they implement a new
18043 # versioning mechanism, adjust this.
18044 if test -x /usr/bin/objformat; then
18045 objformat=`/usr/bin/objformat`
18048 freebsd[123]*) objformat=aout ;;
18049 *) objformat=elf ;;
18052 version_type=freebsd-$objformat
18053 case $version_type in
18055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18060 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18064 shlibpath_var=LD_LIBRARY_PATH
18067 shlibpath_overrides_runpath=yes
18069 freebsd3.[01]* | freebsdelf3.[01]*)
18070 shlibpath_overrides_runpath=yes
18071 hardcode_into_libs=yes
18074 shlibpath_overrides_runpath=no
18075 hardcode_into_libs=yes
18084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18085 soname_spec='${libname}${release}${shared_ext}$major'
18086 shlibpath_var=LD_LIBRARY_PATH
18087 hardcode_into_libs=yes
18090 hpux9* | hpux10* | hpux11*)
18091 # Give a soname corresponding to the major version so that dld.sl refuses to
18092 # link against other versions.
18099 hardcode_into_libs=yes
18100 dynamic_linker="$host_os dld.so"
18101 shlibpath_var=LD_LIBRARY_PATH
18102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18104 soname_spec='${libname}${release}${shared_ext}$major'
18105 if test "X$HPUX_IA64_MODE" = X32; then
18106 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18108 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18114 hardcode_into_libs=yes
18115 dynamic_linker="$host_os dld.sl"
18116 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18119 soname_spec='${libname}${release}${shared_ext}$major'
18120 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18125 dynamic_linker="$host_os dld.sl"
18126 shlibpath_var=SHLIB_PATH
18127 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18129 soname_spec='${libname}${release}${shared_ext}$major'
18132 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18133 postinstall_cmds='chmod 555 $lib'
18136 irix5* | irix6* | nonstopux*)
18138 nonstopux*) version_type=nonstopux ;;
18140 if test "$lt_cv_prog_gnu_ld" = yes; then
18148 soname_spec='${libname}${release}${shared_ext}$major'
18149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18151 irix5* | nonstopux*)
18152 libsuff= shlibsuff=
18155 case $LD in # libtool.m4 will add one of these switches to LD
18156 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18157 libsuff= shlibsuff= libmagic=32-bit;;
18158 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18159 libsuff=32 shlibsuff=N32 libmagic=N32;;
18160 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18161 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18162 *) libsuff= shlibsuff= libmagic=never-match;;
18166 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18167 shlibpath_overrides_runpath=no
18168 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18169 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18170 hardcode_into_libs=yes
18173 # No shared lib support for Linux oldld, aout, or coff.
18174 linux*oldld* | linux*aout* | linux*coff*)
18178 # This must be Linux ELF.
18183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18184 soname_spec='${libname}${release}${shared_ext}$major'
18185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18186 shlibpath_var=LD_LIBRARY_PATH
18187 shlibpath_overrides_runpath=no
18188 # This implies no fast_install, which is unacceptable.
18189 # Some rework will be needed to allow for fast_install
18190 # before this can be enabled.
18191 hardcode_into_libs=yes
18193 # find out which ABI we are using
18195 case "$host_cpu" in
18196 x86_64*|s390x*|powerpc64*)
18197 echo '#line 18197 "configure"' > conftest.$ac_ext
18198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18199 (eval $ac_compile) 2>&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); }; then
18203 case `/usr/bin/file conftest.$ac_objext` in
18206 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18214 # Append ld.so.conf contents to the search path
18215 if test -f /etc/ld.so.conf; then
18216 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18217 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18220 # We used to test for /lib/ld.so.1 and disable shared libraries on
18221 # powerpc, because MkLinux only supported shared libraries with the
18222 # GNU dynamic linker. Since this was broken with cross compilers,
18223 # most powerpc-linux boxes support dynamic linking these days and
18224 # people can always --disable-shared, the test was removed, and we
18225 # assume the GNU/Linux dynamic linker is in use.
18226 dynamic_linker='GNU/Linux ld.so'
18233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18234 soname_spec='${libname}${release}${shared_ext}$major'
18235 shlibpath_var=LD_LIBRARY_PATH
18236 shlibpath_overrides_runpath=no
18237 hardcode_into_libs=yes
18238 dynamic_linker='GNU ld.so'
18245 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18248 dynamic_linker='NetBSD (a.out) ld.so'
18250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18251 soname_spec='${libname}${release}${shared_ext}$major'
18252 dynamic_linker='NetBSD ld.elf_so'
18254 shlibpath_var=LD_LIBRARY_PATH
18255 shlibpath_overrides_runpath=yes
18256 hardcode_into_libs=yes
18261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18262 shlibpath_var=LD_LIBRARY_PATH
18263 shlibpath_overrides_runpath=yes
18270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18271 soname_spec='${libname}${release}${shared_ext}$major'
18272 shlibpath_var=LD_LIBRARY_PATH
18273 shlibpath_overrides_runpath=yes
18279 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18281 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18282 *) need_version=no ;;
18284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18286 shlibpath_var=LD_LIBRARY_PATH
18287 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18289 openbsd2.[89] | openbsd2.[89].*)
18290 shlibpath_overrides_runpath=no
18293 shlibpath_overrides_runpath=yes
18297 shlibpath_overrides_runpath=yes
18302 libname_spec='$name'
18305 library_names_spec='$libname${shared_ext} $libname.a'
18306 dynamic_linker='OS/2 ld.exe'
18307 shlibpath_var=LIBPATH
18310 osf3* | osf4* | osf5*)
18314 soname_spec='${libname}${release}${shared_ext}$major'
18315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18316 shlibpath_var=LD_LIBRARY_PATH
18317 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18318 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18323 soname_spec='${libname}${release}${shared_ext}$major'
18324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18325 shlibpath_var=LD_LIBRARY_PATH
18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18333 soname_spec='${libname}${release}${shared_ext}$major'
18334 shlibpath_var=LD_LIBRARY_PATH
18335 shlibpath_overrides_runpath=yes
18336 hardcode_into_libs=yes
18337 # ldd complains unless libraries are executable
18338 postinstall_cmds='chmod +x $lib'
18343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18344 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18345 shlibpath_var=LD_LIBRARY_PATH
18346 shlibpath_overrides_runpath=yes
18347 if test "$with_gnu_ld" = yes; then
18353 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18356 soname_spec='${libname}${release}${shared_ext}$major'
18357 shlibpath_var=LD_LIBRARY_PATH
18358 case $host_vendor in
18360 shlibpath_overrides_runpath=no
18362 export_dynamic_flag_spec='${wl}-Blargedynsym'
18363 runpath_var=LD_RUN_PATH
18371 shlibpath_overrides_runpath=no
18372 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18378 if test -d /usr/nec ;then
18380 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18381 soname_spec='$libname${shared_ext}.$major'
18382 shlibpath_var=LD_LIBRARY_PATH
18388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18389 soname_spec='${libname}${release}${shared_ext}$major'
18390 shlibpath_var=LD_LIBRARY_PATH
18397 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18398 echo "${ECHO_T}$dynamic_linker" >&6
18399 test "$dynamic_linker" = no && can_build_shared=no
18401 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18402 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18403 hardcode_action_GCJ=
18404 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18405 test -n "$runpath_var_GCJ" || \
18406 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18408 # We can hardcode non-existant directories.
18409 if test "$hardcode_direct_GCJ" != no &&
18410 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18411 # have to relink, otherwise we might link with an installed library
18412 # when we should be linking with a yet-to-be-installed one
18413 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18414 test "$hardcode_minus_L_GCJ" != no; then
18415 # Linking always hardcodes the temporary library directory.
18416 hardcode_action_GCJ=relink
18418 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18419 hardcode_action_GCJ=immediate
18422 # We cannot hardcode anything, or else we can only hardcode existing
18424 hardcode_action_GCJ=unsupported
18426 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18427 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18429 if test "$hardcode_action_GCJ" = relink; then
18430 # Fast installation is not supported
18431 enable_fast_install=no
18432 elif test "$shlibpath_overrides_runpath" = yes ||
18433 test "$enable_shared" = no; then
18434 # Fast installation is not necessary
18435 enable_fast_install=needless
18440 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18441 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18442 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18443 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18444 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18445 echo "$as_me:$LINENO: result: yes" >&5
18446 echo "${ECHO_T}yes" >&6
18448 # FIXME - insert some real tests, host_os isn't really good enough
18451 if test -n "$STRIP" ; then
18452 striplib="$STRIP -x"
18453 echo "$as_me:$LINENO: result: yes" >&5
18454 echo "${ECHO_T}yes" >&6
18456 echo "$as_me:$LINENO: result: no" >&5
18457 echo "${ECHO_T}no" >&6
18461 echo "$as_me:$LINENO: result: no" >&5
18462 echo "${ECHO_T}no" >&6
18467 if test "x$enable_dlopen" != xyes; then
18468 enable_dlopen=unknown
18469 enable_dlopen_self=unknown
18470 enable_dlopen_self_static=unknown
18477 lt_cv_dlopen="load_add_on"
18479 lt_cv_dlopen_self=yes
18483 lt_cv_dlopen="LoadLibrary"
18488 lt_cv_dlopen="dlopen"
18493 # if libdl is installed we need to link against it
18494 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18495 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18496 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18497 echo $ECHO_N "(cached) $ECHO_C" >&6
18499 ac_check_lib_save_LIBS=$LIBS
18501 cat >conftest.$ac_ext <<_ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18508 /* Override any gcc2 internal prototype to avoid an error. */
18512 /* We use char because int might match the return type of a gcc2
18513 builtin and then its argument prototype would still apply. */
18523 rm -f conftest.$ac_objext conftest$ac_exeext
18524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18525 (eval $ac_link) 2>conftest.er1
18527 grep -v '^ *+' conftest.er1 >conftest.err
18529 cat conftest.err >&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } &&
18532 { ac_try='test -z "$ac_c_werror_flag"
18533 || test ! -s conftest.err'
18534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18535 (eval $ac_try) 2>&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; } &&
18539 { ac_try='test -s conftest$ac_exeext'
18540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541 (eval $ac_try) 2>&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
18545 ac_cv_lib_dl_dlopen=yes
18547 echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18550 ac_cv_lib_dl_dlopen=no
18552 rm -f conftest.err conftest.$ac_objext \
18553 conftest$ac_exeext conftest.$ac_ext
18554 LIBS=$ac_check_lib_save_LIBS
18556 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18557 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18558 if test $ac_cv_lib_dl_dlopen = yes; then
18559 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18562 lt_cv_dlopen="dyld"
18564 lt_cv_dlopen_self=yes
18571 echo "$as_me:$LINENO: checking for shl_load" >&5
18572 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18573 if test "${ac_cv_func_shl_load+set}" = set; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
18576 cat >conftest.$ac_ext <<_ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18582 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18584 #define shl_load innocuous_shl_load
18586 /* System header to define __stub macros and hopefully few prototypes,
18587 which can conflict with char shl_load (); below.
18588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18589 <limits.h> exists even on freestanding compilers. */
18592 # include <limits.h>
18594 # include <assert.h>
18599 /* Override any gcc2 internal prototype to avoid an error. */
18604 /* We use char because int might match the return type of a gcc2
18605 builtin and then its argument prototype would still apply. */
18607 /* The GNU C library defines this for functions which it implements
18608 to always fail with ENOSYS. Some functions are actually named
18609 something starting with __ and the normal name is an alias. */
18610 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18613 char (*f) () = shl_load;
18622 return f != shl_load;
18627 rm -f conftest.$ac_objext conftest$ac_exeext
18628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18629 (eval $ac_link) 2>conftest.er1
18631 grep -v '^ *+' conftest.er1 >conftest.err
18633 cat conftest.err >&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } &&
18636 { ac_try='test -z "$ac_c_werror_flag"
18637 || test ! -s conftest.err'
18638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18639 (eval $ac_try) 2>&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; } &&
18643 { ac_try='test -s conftest$ac_exeext'
18644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18645 (eval $ac_try) 2>&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); }; }; then
18649 ac_cv_func_shl_load=yes
18651 echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18654 ac_cv_func_shl_load=no
18656 rm -f conftest.err conftest.$ac_objext \
18657 conftest$ac_exeext conftest.$ac_ext
18659 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18660 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18661 if test $ac_cv_func_shl_load = yes; then
18662 lt_cv_dlopen="shl_load"
18664 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18665 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18666 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18667 echo $ECHO_N "(cached) $ECHO_C" >&6
18669 ac_check_lib_save_LIBS=$LIBS
18671 cat >conftest.$ac_ext <<_ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h. */
18678 /* Override any gcc2 internal prototype to avoid an error. */
18682 /* We use char because int might match the return type of a gcc2
18683 builtin and then its argument prototype would still apply. */
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18695 (eval $ac_link) 2>conftest.er1
18697 grep -v '^ *+' conftest.er1 >conftest.err
18699 cat conftest.err >&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } &&
18702 { ac_try='test -z "$ac_c_werror_flag"
18703 || test ! -s conftest.err'
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; } &&
18709 { ac_try='test -s conftest$ac_exeext'
18710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711 (eval $ac_try) 2>&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; }; then
18715 ac_cv_lib_dld_shl_load=yes
18717 echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18720 ac_cv_lib_dld_shl_load=no
18722 rm -f conftest.err conftest.$ac_objext \
18723 conftest$ac_exeext conftest.$ac_ext
18724 LIBS=$ac_check_lib_save_LIBS
18726 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18727 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18728 if test $ac_cv_lib_dld_shl_load = yes; then
18729 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18731 echo "$as_me:$LINENO: checking for dlopen" >&5
18732 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18733 if test "${ac_cv_func_dlopen+set}" = set; then
18734 echo $ECHO_N "(cached) $ECHO_C" >&6
18736 cat >conftest.$ac_ext <<_ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18742 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18744 #define dlopen innocuous_dlopen
18746 /* System header to define __stub macros and hopefully few prototypes,
18747 which can conflict with char dlopen (); below.
18748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18749 <limits.h> exists even on freestanding compilers. */
18752 # include <limits.h>
18754 # include <assert.h>
18759 /* Override any gcc2 internal prototype to avoid an error. */
18764 /* We use char because int might match the return type of a gcc2
18765 builtin and then its argument prototype would still apply. */
18767 /* The GNU C library defines this for functions which it implements
18768 to always fail with ENOSYS. Some functions are actually named
18769 something starting with __ and the normal name is an alias. */
18770 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18773 char (*f) () = dlopen;
18782 return f != dlopen;
18787 rm -f conftest.$ac_objext conftest$ac_exeext
18788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18789 (eval $ac_link) 2>conftest.er1
18791 grep -v '^ *+' conftest.er1 >conftest.err
18793 cat conftest.err >&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } &&
18796 { ac_try='test -z "$ac_c_werror_flag"
18797 || test ! -s conftest.err'
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; } &&
18803 { ac_try='test -s conftest$ac_exeext'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; }; then
18809 ac_cv_func_dlopen=yes
18811 echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18814 ac_cv_func_dlopen=no
18816 rm -f conftest.err conftest.$ac_objext \
18817 conftest$ac_exeext conftest.$ac_ext
18819 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18820 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18821 if test $ac_cv_func_dlopen = yes; then
18822 lt_cv_dlopen="dlopen"
18824 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18825 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18826 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18829 ac_check_lib_save_LIBS=$LIBS
18831 cat >conftest.$ac_ext <<_ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18838 /* Override any gcc2 internal prototype to avoid an error. */
18842 /* We use char because int might match the return type of a gcc2
18843 builtin and then its argument prototype would still apply. */
18853 rm -f conftest.$ac_objext conftest$ac_exeext
18854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18855 (eval $ac_link) 2>conftest.er1
18857 grep -v '^ *+' conftest.er1 >conftest.err
18859 cat conftest.err >&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); } &&
18862 { ac_try='test -z "$ac_c_werror_flag"
18863 || test ! -s conftest.err'
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; } &&
18869 { ac_try='test -s conftest$ac_exeext'
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; }; then
18875 ac_cv_lib_dl_dlopen=yes
18877 echo "$as_me: failed program was:" >&5
18878 sed 's/^/| /' conftest.$ac_ext >&5
18880 ac_cv_lib_dl_dlopen=no
18882 rm -f conftest.err conftest.$ac_objext \
18883 conftest$ac_exeext conftest.$ac_ext
18884 LIBS=$ac_check_lib_save_LIBS
18886 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18887 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18888 if test $ac_cv_lib_dl_dlopen = yes; then
18889 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18891 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18892 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18893 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18894 echo $ECHO_N "(cached) $ECHO_C" >&6
18896 ac_check_lib_save_LIBS=$LIBS
18897 LIBS="-lsvld $LIBS"
18898 cat >conftest.$ac_ext <<_ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h. */
18905 /* Override any gcc2 internal prototype to avoid an error. */
18909 /* We use char because int might match the return type of a gcc2
18910 builtin and then its argument prototype would still apply. */
18920 rm -f conftest.$ac_objext conftest$ac_exeext
18921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18922 (eval $ac_link) 2>conftest.er1
18924 grep -v '^ *+' conftest.er1 >conftest.err
18926 cat conftest.err >&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } &&
18929 { ac_try='test -z "$ac_c_werror_flag"
18930 || test ! -s conftest.err'
18931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932 (eval $ac_try) 2>&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; } &&
18936 { ac_try='test -s conftest$ac_exeext'
18937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938 (eval $ac_try) 2>&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
18942 ac_cv_lib_svld_dlopen=yes
18944 echo "$as_me: failed program was:" >&5
18945 sed 's/^/| /' conftest.$ac_ext >&5
18947 ac_cv_lib_svld_dlopen=no
18949 rm -f conftest.err conftest.$ac_objext \
18950 conftest$ac_exeext conftest.$ac_ext
18951 LIBS=$ac_check_lib_save_LIBS
18953 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18954 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18955 if test $ac_cv_lib_svld_dlopen = yes; then
18956 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18958 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18959 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18960 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18963 ac_check_lib_save_LIBS=$LIBS
18965 cat >conftest.$ac_ext <<_ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18972 /* Override any gcc2 internal prototype to avoid an error. */
18976 /* We use char because int might match the return type of a gcc2
18977 builtin and then its argument prototype would still apply. */
18987 rm -f conftest.$ac_objext conftest$ac_exeext
18988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18989 (eval $ac_link) 2>conftest.er1
18991 grep -v '^ *+' conftest.er1 >conftest.err
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } &&
18996 { ac_try='test -z "$ac_c_werror_flag"
18997 || test ! -s conftest.err'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; } &&
19003 { ac_try='test -s conftest$ac_exeext'
19004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005 (eval $ac_try) 2>&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; }; then
19009 ac_cv_lib_dld_dld_link=yes
19011 echo "$as_me: failed program was:" >&5
19012 sed 's/^/| /' conftest.$ac_ext >&5
19014 ac_cv_lib_dld_dld_link=no
19016 rm -f conftest.err conftest.$ac_objext \
19017 conftest$ac_exeext conftest.$ac_ext
19018 LIBS=$ac_check_lib_save_LIBS
19020 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19021 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19022 if test $ac_cv_lib_dld_dld_link = yes; then
19023 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19044 if test "x$lt_cv_dlopen" != xno; then
19050 case $lt_cv_dlopen in
19052 save_CPPFLAGS="$CPPFLAGS"
19053 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19055 save_LDFLAGS="$LDFLAGS"
19056 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19059 LIBS="$lt_cv_dlopen_libs $LIBS"
19061 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19062 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19063 if test "${lt_cv_dlopen_self+set}" = set; then
19064 echo $ECHO_N "(cached) $ECHO_C" >&6
19066 if test "$cross_compiling" = yes; then :
19067 lt_cv_dlopen_self=cross
19069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19070 lt_status=$lt_dlunknown
19071 cat > conftest.$ac_ext <<EOF
19072 #line 19072 "configure"
19073 #include "confdefs.h"
19082 # define LT_DLGLOBAL RTLD_GLOBAL
19085 # define LT_DLGLOBAL DL_GLOBAL
19087 # define LT_DLGLOBAL 0
19091 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19092 find out it does not work in some platform. */
19093 #ifndef LT_DLLAZY_OR_NOW
19095 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19098 # define LT_DLLAZY_OR_NOW DL_LAZY
19101 # define LT_DLLAZY_OR_NOW RTLD_NOW
19104 # define LT_DLLAZY_OR_NOW DL_NOW
19106 # define LT_DLLAZY_OR_NOW 0
19114 extern "C" void exit (int);
19117 void fnord() { int i=42;}
19120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19121 int status = $lt_dlunknown;
19125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19126 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19127 /* dlclose (self); */
19133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19134 (eval $ac_link) 2>&5
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19138 (./conftest; exit; ) >&5 2>/dev/null
19140 case x$lt_status in
19141 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19142 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19143 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19146 # compilation failed
19147 lt_cv_dlopen_self=no
19154 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19155 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19157 if test "x$lt_cv_dlopen_self" = xyes; then
19158 LDFLAGS="$LDFLAGS $link_static_flag"
19159 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19160 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19161 if test "${lt_cv_dlopen_self_static+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 if test "$cross_compiling" = yes; then :
19165 lt_cv_dlopen_self_static=cross
19167 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19168 lt_status=$lt_dlunknown
19169 cat > conftest.$ac_ext <<EOF
19170 #line 19170 "configure"
19171 #include "confdefs.h"
19180 # define LT_DLGLOBAL RTLD_GLOBAL
19183 # define LT_DLGLOBAL DL_GLOBAL
19185 # define LT_DLGLOBAL 0
19189 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19190 find out it does not work in some platform. */
19191 #ifndef LT_DLLAZY_OR_NOW
19193 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19196 # define LT_DLLAZY_OR_NOW DL_LAZY
19199 # define LT_DLLAZY_OR_NOW RTLD_NOW
19202 # define LT_DLLAZY_OR_NOW DL_NOW
19204 # define LT_DLLAZY_OR_NOW 0
19212 extern "C" void exit (int);
19215 void fnord() { int i=42;}
19218 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19219 int status = $lt_dlunknown;
19223 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19224 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19225 /* dlclose (self); */
19231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19232 (eval $ac_link) 2>&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19236 (./conftest; exit; ) >&5 2>/dev/null
19238 case x$lt_status in
19239 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19240 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19241 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19244 # compilation failed
19245 lt_cv_dlopen_self_static=no
19252 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19253 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19256 CPPFLAGS="$save_CPPFLAGS"
19257 LDFLAGS="$save_LDFLAGS"
19262 case $lt_cv_dlopen_self in
19263 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19264 *) enable_dlopen_self=unknown ;;
19267 case $lt_cv_dlopen_self_static in
19268 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19269 *) enable_dlopen_self_static=unknown ;;
19274 # The else clause should only fire when bootstrapping the
19275 # libtool distribution, otherwise you forgot to ship ltmain.sh
19276 # with your package, and you will get complaints that there are
19277 # no rules to generate ltmain.sh.
19278 if test -f "$ltmain"; then
19279 # See if we are running on zsh, and set the options which allow our commands through
19280 # without removal of \ escapes.
19281 if test -n "${ZSH_VERSION+set}" ; then
19282 setopt NO_GLOB_SUBST
19284 # Now quote all the things that may contain metacharacters while being
19285 # careful not to overquote the AC_SUBSTed values. We take copies of the
19286 # variables and quote the copies for generation of the libtool script.
19287 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19289 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19290 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19291 deplibs_check_method reload_flag reload_cmds need_locks \
19292 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19293 lt_cv_sys_global_symbol_to_c_name_address \
19294 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19295 old_postinstall_cmds old_postuninstall_cmds \
19299 lt_prog_compiler_wl_GCJ \
19300 lt_prog_compiler_pic_GCJ \
19301 lt_prog_compiler_static_GCJ \
19302 lt_prog_compiler_no_builtin_flag_GCJ \
19303 export_dynamic_flag_spec_GCJ \
19304 thread_safe_flag_spec_GCJ \
19305 whole_archive_flag_spec_GCJ \
19306 enable_shared_with_static_runtimes_GCJ \
19307 old_archive_cmds_GCJ \
19308 old_archive_from_new_cmds_GCJ \
19309 predep_objects_GCJ \
19310 postdep_objects_GCJ \
19313 compiler_lib_search_path_GCJ \
19315 archive_expsym_cmds_GCJ \
19316 postinstall_cmds_GCJ \
19317 postuninstall_cmds_GCJ \
19318 old_archive_from_expsyms_cmds_GCJ \
19319 allow_undefined_flag_GCJ \
19320 no_undefined_flag_GCJ \
19321 export_symbols_cmds_GCJ \
19322 hardcode_libdir_flag_spec_GCJ \
19323 hardcode_libdir_flag_spec_ld_GCJ \
19324 hardcode_libdir_separator_GCJ \
19325 hardcode_automatic_GCJ \
19327 module_expsym_cmds_GCJ \
19328 lt_cv_prog_compiler_c_o_GCJ \
19329 exclude_expsyms_GCJ \
19330 include_expsyms_GCJ; do
19333 old_archive_cmds_GCJ | \
19334 old_archive_from_new_cmds_GCJ | \
19335 archive_cmds_GCJ | \
19336 archive_expsym_cmds_GCJ | \
19337 module_cmds_GCJ | \
19338 module_expsym_cmds_GCJ | \
19339 old_archive_from_expsyms_cmds_GCJ | \
19340 export_symbols_cmds_GCJ | \
19341 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19342 postinstall_cmds | postuninstall_cmds | \
19343 old_postinstall_cmds | old_postuninstall_cmds | \
19344 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19345 # Double-quote double-evaled strings.
19346 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19349 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19355 *'\$0 --fallback-echo"')
19356 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19362 cat <<__EOF__ >> "$cfgfile"
19363 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19365 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19367 # Shell to use when invoking shell scripts.
19370 # Whether or not to build shared libraries.
19371 build_libtool_libs=$enable_shared
19373 # Whether or not to build static libraries.
19374 build_old_libs=$enable_static
19376 # Whether or not to add -lc for building shared libraries.
19377 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19379 # Whether or not to disallow shared libs when runtime libs are static
19380 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19382 # Whether or not to optimize for fast installation.
19383 fast_install=$enable_fast_install
19386 host_alias=$host_alias
19390 # The build system.
19391 build_alias=$build_alias
19395 # An echo program that does not interpret backslashes.
19400 AR_FLAGS=$lt_AR_FLAGS
19405 # A language-specific compiler.
19406 CC=$lt_compiler_GCJ
19408 # Is the compiler the GNU C compiler?
19414 # The linker used to build libraries.
19417 # Whether we need hard or soft links.
19420 # A BSD-compatible nm program.
19423 # A symbol stripping program
19426 # Used to examine libraries when file_magic_cmd begins "file"
19427 MAGIC_CMD=$MAGIC_CMD
19429 # Used on cygwin: DLL creation program.
19432 # Used on cygwin: object dumper.
19435 # Used on cygwin: assembler.
19438 # The name of the directory that contains temporary libtool files.
19441 # How to create reloadable object files.
19442 reload_flag=$lt_reload_flag
19443 reload_cmds=$lt_reload_cmds
19445 # How to pass a linker flag through the compiler.
19446 wl=$lt_lt_prog_compiler_wl_GCJ
19448 # Object file suffix (normally "o").
19449 objext="$ac_objext"
19451 # Old archive suffix (normally "a").
19454 # Shared library suffix (normally ".so").
19455 shrext_cmds='$shrext_cmds'
19457 # Executable file suffix (normally "").
19460 # Additional compiler flags for building library objects.
19461 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19464 # What is the maximum length of a command?
19465 max_cmd_len=$lt_cv_sys_max_cmd_len
19467 # Does compiler simultaneously support -c and -o options?
19468 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19470 # Must we lock files when doing compilation?
19471 need_locks=$lt_need_locks
19473 # Do we need the lib prefix for modules?
19474 need_lib_prefix=$need_lib_prefix
19476 # Do we need a version for libraries?
19477 need_version=$need_version
19479 # Whether dlopen is supported.
19480 dlopen_support=$enable_dlopen
19482 # Whether dlopen of programs is supported.
19483 dlopen_self=$enable_dlopen_self
19485 # Whether dlopen of statically linked programs is supported.
19486 dlopen_self_static=$enable_dlopen_self_static
19488 # Compiler flag to prevent dynamic linking.
19489 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19491 # Compiler flag to turn off builtin functions.
19492 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19494 # Compiler flag to allow reflexive dlopens.
19495 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19497 # Compiler flag to generate shared objects directly from archives.
19498 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19500 # Compiler flag to generate thread-safe objects.
19501 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19503 # Library versioning type.
19504 version_type=$version_type
19506 # Format of library name prefix.
19507 libname_spec=$lt_libname_spec
19509 # List of archive names. First name is the real one, the rest are links.
19510 # The last name is the one that the linker finds with -lNAME.
19511 library_names_spec=$lt_library_names_spec
19513 # The coded name of the library, if different from the real name.
19514 soname_spec=$lt_soname_spec
19516 # Commands used to build and install an old-style archive.
19518 old_archive_cmds=$lt_old_archive_cmds_GCJ
19519 old_postinstall_cmds=$lt_old_postinstall_cmds
19520 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19522 # Create an old-style archive from a shared archive.
19523 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19525 # Create a temporary old-style archive to link instead of a shared archive.
19526 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19528 # Commands used to build and install a shared archive.
19529 archive_cmds=$lt_archive_cmds_GCJ
19530 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19531 postinstall_cmds=$lt_postinstall_cmds
19532 postuninstall_cmds=$lt_postuninstall_cmds
19534 # Commands used to build a loadable module (assumed same as above if empty)
19535 module_cmds=$lt_module_cmds_GCJ
19536 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19538 # Commands to strip libraries.
19539 old_striplib=$lt_old_striplib
19540 striplib=$lt_striplib
19542 # Dependencies to place before the objects being linked to create a
19544 predep_objects=$lt_predep_objects_GCJ
19546 # Dependencies to place after the objects being linked to create a
19548 postdep_objects=$lt_postdep_objects_GCJ
19550 # Dependencies to place before the objects being linked to create a
19552 predeps=$lt_predeps_GCJ
19554 # Dependencies to place after the objects being linked to create a
19556 postdeps=$lt_postdeps_GCJ
19558 # The library search path used internally by the compiler when linking
19559 # a shared library.
19560 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19562 # Method to check whether dependent libraries are shared objects.
19563 deplibs_check_method=$lt_deplibs_check_method
19565 # Command to use when deplibs_check_method == file_magic.
19566 file_magic_cmd=$lt_file_magic_cmd
19568 # Flag that allows shared libraries with undefined symbols to be built.
19569 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19571 # Flag that forces no undefined symbols.
19572 no_undefined_flag=$lt_no_undefined_flag_GCJ
19574 # Commands used to finish a libtool library installation in a directory.
19575 finish_cmds=$lt_finish_cmds
19577 # Same as above, but a single script fragment to be evaled but not shown.
19578 finish_eval=$lt_finish_eval
19580 # Take the output of nm and produce a listing of raw symbols and C names.
19581 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19583 # Transform the output of nm in a proper C declaration
19584 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19586 # Transform the output of nm in a C name address pair
19587 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19589 # This is the shared library runtime path variable.
19590 runpath_var=$runpath_var
19592 # This is the shared library path variable.
19593 shlibpath_var=$shlibpath_var
19595 # Is shlibpath searched before the hard-coded library search path?
19596 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19598 # How to hardcode a shared library path into an executable.
19599 hardcode_action=$hardcode_action_GCJ
19601 # Whether we should hardcode library paths into libraries.
19602 hardcode_into_libs=$hardcode_into_libs
19604 # Flag to hardcode \$libdir into a binary during linking.
19605 # This must work even if \$libdir does not exist.
19606 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19608 # If ld is used when linking, flag to hardcode \$libdir into
19609 # a binary during linking. This must work even if \$libdir does
19611 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19613 # Whether we need a single -rpath flag with a separated argument.
19614 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19616 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19617 # resulting binary.
19618 hardcode_direct=$hardcode_direct_GCJ
19620 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19621 # resulting binary.
19622 hardcode_minus_L=$hardcode_minus_L_GCJ
19624 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19625 # the resulting binary.
19626 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19628 # Set to yes if building a shared library automatically hardcodes DIR into the library
19629 # and all subsequent libraries and executables linked against it.
19630 hardcode_automatic=$hardcode_automatic_GCJ
19632 # Variables whose values should be saved in libtool wrapper scripts and
19633 # restored at relink time.
19634 variables_saved_for_relink="$variables_saved_for_relink"
19636 # Whether libtool must link a program against all its dependency libraries.
19637 link_all_deplibs=$link_all_deplibs_GCJ
19639 # Compile-time system search path for libraries
19640 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19642 # Run-time system search path for libraries
19643 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19645 # Fix the shell variable \$srcfile for the compiler.
19646 fix_srcfile_path="$fix_srcfile_path_GCJ"
19648 # Set to yes if exported symbols are required.
19649 always_export_symbols=$always_export_symbols_GCJ
19651 # The commands to list exported symbols.
19652 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19654 # The commands to extract the exported symbol list from a shared archive.
19655 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19657 # Symbols that should not be listed in the preloaded symbols.
19658 exclude_expsyms=$lt_exclude_expsyms_GCJ
19660 # Symbols that must always be exported.
19661 include_expsyms=$lt_include_expsyms_GCJ
19663 # ### END LIBTOOL TAG CONFIG: $tagname
19669 # If there is no Makefile yet, we rely on a make rule to execute
19670 # `config.status --recheck' to rerun these tests and create the
19671 # libtool script then.
19672 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19673 if test -f "$ltmain_in"; then
19674 test -f Makefile && make "$ltmain"
19680 ac_cpp='$CPP $CPPFLAGS'
19681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19696 # Source file extension for RC test sources.
19699 # Object file extension for compiled RC test sources.
19703 # Code to be used in simple compile tests
19704 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19706 # Code to be used in simple link tests
19707 lt_simple_link_test_code="$lt_simple_compile_test_code"
19709 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19711 # If no C compiler was specified, use CC.
19714 # Allow CC to be a program name with arguments.
19718 # save warnings/boilerplate of simple test code
19719 ac_outfile=conftest.$ac_objext
19720 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19721 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19722 _lt_compiler_boilerplate=`cat conftest.err`
19725 ac_outfile=conftest.$ac_objext
19726 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19727 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19728 _lt_linker_boilerplate=`cat conftest.err`
19732 # Allow CC to be a program name with arguments.
19737 for cc_temp in $compiler""; do
19739 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19740 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19745 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19747 lt_cv_prog_compiler_c_o_RC=yes
19749 # The else clause should only fire when bootstrapping the
19750 # libtool distribution, otherwise you forgot to ship ltmain.sh
19751 # with your package, and you will get complaints that there are
19752 # no rules to generate ltmain.sh.
19753 if test -f "$ltmain"; then
19754 # See if we are running on zsh, and set the options which allow our commands through
19755 # without removal of \ escapes.
19756 if test -n "${ZSH_VERSION+set}" ; then
19757 setopt NO_GLOB_SUBST
19759 # Now quote all the things that may contain metacharacters while being
19760 # careful not to overquote the AC_SUBSTed values. We take copies of the
19761 # variables and quote the copies for generation of the libtool script.
19762 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19764 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19765 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19766 deplibs_check_method reload_flag reload_cmds need_locks \
19767 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19768 lt_cv_sys_global_symbol_to_c_name_address \
19769 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19770 old_postinstall_cmds old_postuninstall_cmds \
19774 lt_prog_compiler_wl_RC \
19775 lt_prog_compiler_pic_RC \
19776 lt_prog_compiler_static_RC \
19777 lt_prog_compiler_no_builtin_flag_RC \
19778 export_dynamic_flag_spec_RC \
19779 thread_safe_flag_spec_RC \
19780 whole_archive_flag_spec_RC \
19781 enable_shared_with_static_runtimes_RC \
19782 old_archive_cmds_RC \
19783 old_archive_from_new_cmds_RC \
19784 predep_objects_RC \
19785 postdep_objects_RC \
19788 compiler_lib_search_path_RC \
19790 archive_expsym_cmds_RC \
19791 postinstall_cmds_RC \
19792 postuninstall_cmds_RC \
19793 old_archive_from_expsyms_cmds_RC \
19794 allow_undefined_flag_RC \
19795 no_undefined_flag_RC \
19796 export_symbols_cmds_RC \
19797 hardcode_libdir_flag_spec_RC \
19798 hardcode_libdir_flag_spec_ld_RC \
19799 hardcode_libdir_separator_RC \
19800 hardcode_automatic_RC \
19802 module_expsym_cmds_RC \
19803 lt_cv_prog_compiler_c_o_RC \
19804 exclude_expsyms_RC \
19805 include_expsyms_RC; do
19808 old_archive_cmds_RC | \
19809 old_archive_from_new_cmds_RC | \
19810 archive_cmds_RC | \
19811 archive_expsym_cmds_RC | \
19813 module_expsym_cmds_RC | \
19814 old_archive_from_expsyms_cmds_RC | \
19815 export_symbols_cmds_RC | \
19816 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19817 postinstall_cmds | postuninstall_cmds | \
19818 old_postinstall_cmds | old_postuninstall_cmds | \
19819 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19820 # Double-quote double-evaled strings.
19821 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19824 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19830 *'\$0 --fallback-echo"')
19831 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19837 cat <<__EOF__ >> "$cfgfile"
19838 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19840 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19842 # Shell to use when invoking shell scripts.
19845 # Whether or not to build shared libraries.
19846 build_libtool_libs=$enable_shared
19848 # Whether or not to build static libraries.
19849 build_old_libs=$enable_static
19851 # Whether or not to add -lc for building shared libraries.
19852 build_libtool_need_lc=$archive_cmds_need_lc_RC
19854 # Whether or not to disallow shared libs when runtime libs are static
19855 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19857 # Whether or not to optimize for fast installation.
19858 fast_install=$enable_fast_install
19861 host_alias=$host_alias
19865 # The build system.
19866 build_alias=$build_alias
19870 # An echo program that does not interpret backslashes.
19875 AR_FLAGS=$lt_AR_FLAGS
19880 # A language-specific compiler.
19883 # Is the compiler the GNU C compiler?
19889 # The linker used to build libraries.
19892 # Whether we need hard or soft links.
19895 # A BSD-compatible nm program.
19898 # A symbol stripping program
19901 # Used to examine libraries when file_magic_cmd begins "file"
19902 MAGIC_CMD=$MAGIC_CMD
19904 # Used on cygwin: DLL creation program.
19907 # Used on cygwin: object dumper.
19910 # Used on cygwin: assembler.
19913 # The name of the directory that contains temporary libtool files.
19916 # How to create reloadable object files.
19917 reload_flag=$lt_reload_flag
19918 reload_cmds=$lt_reload_cmds
19920 # How to pass a linker flag through the compiler.
19921 wl=$lt_lt_prog_compiler_wl_RC
19923 # Object file suffix (normally "o").
19924 objext="$ac_objext"
19926 # Old archive suffix (normally "a").
19929 # Shared library suffix (normally ".so").
19930 shrext_cmds='$shrext_cmds'
19932 # Executable file suffix (normally "").
19935 # Additional compiler flags for building library objects.
19936 pic_flag=$lt_lt_prog_compiler_pic_RC
19939 # What is the maximum length of a command?
19940 max_cmd_len=$lt_cv_sys_max_cmd_len
19942 # Does compiler simultaneously support -c and -o options?
19943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19945 # Must we lock files when doing compilation?
19946 need_locks=$lt_need_locks
19948 # Do we need the lib prefix for modules?
19949 need_lib_prefix=$need_lib_prefix
19951 # Do we need a version for libraries?
19952 need_version=$need_version
19954 # Whether dlopen is supported.
19955 dlopen_support=$enable_dlopen
19957 # Whether dlopen of programs is supported.
19958 dlopen_self=$enable_dlopen_self
19960 # Whether dlopen of statically linked programs is supported.
19961 dlopen_self_static=$enable_dlopen_self_static
19963 # Compiler flag to prevent dynamic linking.
19964 link_static_flag=$lt_lt_prog_compiler_static_RC
19966 # Compiler flag to turn off builtin functions.
19967 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19969 # Compiler flag to allow reflexive dlopens.
19970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19972 # Compiler flag to generate shared objects directly from archives.
19973 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19975 # Compiler flag to generate thread-safe objects.
19976 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19978 # Library versioning type.
19979 version_type=$version_type
19981 # Format of library name prefix.
19982 libname_spec=$lt_libname_spec
19984 # List of archive names. First name is the real one, the rest are links.
19985 # The last name is the one that the linker finds with -lNAME.
19986 library_names_spec=$lt_library_names_spec
19988 # The coded name of the library, if different from the real name.
19989 soname_spec=$lt_soname_spec
19991 # Commands used to build and install an old-style archive.
19993 old_archive_cmds=$lt_old_archive_cmds_RC
19994 old_postinstall_cmds=$lt_old_postinstall_cmds
19995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19997 # Create an old-style archive from a shared archive.
19998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20000 # Create a temporary old-style archive to link instead of a shared archive.
20001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20003 # Commands used to build and install a shared archive.
20004 archive_cmds=$lt_archive_cmds_RC
20005 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20006 postinstall_cmds=$lt_postinstall_cmds
20007 postuninstall_cmds=$lt_postuninstall_cmds
20009 # Commands used to build a loadable module (assumed same as above if empty)
20010 module_cmds=$lt_module_cmds_RC
20011 module_expsym_cmds=$lt_module_expsym_cmds_RC
20013 # Commands to strip libraries.
20014 old_striplib=$lt_old_striplib
20015 striplib=$lt_striplib
20017 # Dependencies to place before the objects being linked to create a
20019 predep_objects=$lt_predep_objects_RC
20021 # Dependencies to place after the objects being linked to create a
20023 postdep_objects=$lt_postdep_objects_RC
20025 # Dependencies to place before the objects being linked to create a
20027 predeps=$lt_predeps_RC
20029 # Dependencies to place after the objects being linked to create a
20031 postdeps=$lt_postdeps_RC
20033 # The library search path used internally by the compiler when linking
20034 # a shared library.
20035 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20037 # Method to check whether dependent libraries are shared objects.
20038 deplibs_check_method=$lt_deplibs_check_method
20040 # Command to use when deplibs_check_method == file_magic.
20041 file_magic_cmd=$lt_file_magic_cmd
20043 # Flag that allows shared libraries with undefined symbols to be built.
20044 allow_undefined_flag=$lt_allow_undefined_flag_RC
20046 # Flag that forces no undefined symbols.
20047 no_undefined_flag=$lt_no_undefined_flag_RC
20049 # Commands used to finish a libtool library installation in a directory.
20050 finish_cmds=$lt_finish_cmds
20052 # Same as above, but a single script fragment to be evaled but not shown.
20053 finish_eval=$lt_finish_eval
20055 # Take the output of nm and produce a listing of raw symbols and C names.
20056 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20058 # Transform the output of nm in a proper C declaration
20059 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20061 # Transform the output of nm in a C name address pair
20062 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20064 # This is the shared library runtime path variable.
20065 runpath_var=$runpath_var
20067 # This is the shared library path variable.
20068 shlibpath_var=$shlibpath_var
20070 # Is shlibpath searched before the hard-coded library search path?
20071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20073 # How to hardcode a shared library path into an executable.
20074 hardcode_action=$hardcode_action_RC
20076 # Whether we should hardcode library paths into libraries.
20077 hardcode_into_libs=$hardcode_into_libs
20079 # Flag to hardcode \$libdir into a binary during linking.
20080 # This must work even if \$libdir does not exist.
20081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20083 # If ld is used when linking, flag to hardcode \$libdir into
20084 # a binary during linking. This must work even if \$libdir does
20086 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20088 # Whether we need a single -rpath flag with a separated argument.
20089 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20091 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20092 # resulting binary.
20093 hardcode_direct=$hardcode_direct_RC
20095 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20096 # resulting binary.
20097 hardcode_minus_L=$hardcode_minus_L_RC
20099 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20100 # the resulting binary.
20101 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20103 # Set to yes if building a shared library automatically hardcodes DIR into the library
20104 # and all subsequent libraries and executables linked against it.
20105 hardcode_automatic=$hardcode_automatic_RC
20107 # Variables whose values should be saved in libtool wrapper scripts and
20108 # restored at relink time.
20109 variables_saved_for_relink="$variables_saved_for_relink"
20111 # Whether libtool must link a program against all its dependency libraries.
20112 link_all_deplibs=$link_all_deplibs_RC
20114 # Compile-time system search path for libraries
20115 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20117 # Run-time system search path for libraries
20118 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20120 # Fix the shell variable \$srcfile for the compiler.
20121 fix_srcfile_path="$fix_srcfile_path_RC"
20123 # Set to yes if exported symbols are required.
20124 always_export_symbols=$always_export_symbols_RC
20126 # The commands to list exported symbols.
20127 export_symbols_cmds=$lt_export_symbols_cmds_RC
20129 # The commands to extract the exported symbol list from a shared archive.
20130 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20132 # Symbols that should not be listed in the preloaded symbols.
20133 exclude_expsyms=$lt_exclude_expsyms_RC
20135 # Symbols that must always be exported.
20136 include_expsyms=$lt_include_expsyms_RC
20138 # ### END LIBTOOL TAG CONFIG: $tagname
20144 # If there is no Makefile yet, we rely on a make rule to execute
20145 # `config.status --recheck' to rerun these tests and create the
20146 # libtool script then.
20147 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20148 if test -f "$ltmain_in"; then
20149 test -f Makefile && make "$ltmain"
20155 ac_cpp='$CPP $CPPFLAGS'
20156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20165 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20166 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20167 { (exit 1); exit 1; }; }
20171 # Append the new tag name to the list of available tags.
20172 if test -n "$tagname" ; then
20173 available_tags="$available_tags $tagname"
20179 # Now substitute the updated list of available tags.
20180 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20181 mv "${ofile}T" "$ofile"
20185 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20186 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20187 { (exit 1); exit 1; }; }
20193 # This can be used to rebuild libtool when needed
20194 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20196 # Always use our own libtool.
20197 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20199 # Prevent multiple expansion
20221 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20222 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20223 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20226 ac_check_lib_save_LIBS=$LIBS
20227 LIBS="-lpthread $LIBS"
20228 cat >conftest.$ac_ext <<_ACEOF
20231 cat confdefs.h >>conftest.$ac_ext
20232 cat >>conftest.$ac_ext <<_ACEOF
20233 /* end confdefs.h. */
20235 /* Override any gcc2 internal prototype to avoid an error. */
20239 /* We use char because int might match the return type of a gcc2
20240 builtin and then its argument prototype would still apply. */
20241 char pthread_create ();
20250 rm -f conftest.$ac_objext conftest$ac_exeext
20251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20252 (eval $ac_link) 2>conftest.er1
20254 grep -v '^ *+' conftest.er1 >conftest.err
20256 cat conftest.err >&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); } &&
20259 { ac_try='test -z "$ac_c_werror_flag"
20260 || test ! -s conftest.err'
20261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262 (eval $ac_try) 2>&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); }; } &&
20266 { ac_try='test -s conftest$ac_exeext'
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; }; then
20272 ac_cv_lib_pthread_pthread_create=yes
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 ac_cv_lib_pthread_pthread_create=no
20279 rm -f conftest.err conftest.$ac_objext \
20280 conftest$ac_exeext conftest.$ac_ext
20281 LIBS=$ac_check_lib_save_LIBS
20283 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20284 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20285 if test $ac_cv_lib_pthread_pthread_create = yes; then
20286 cat >>confdefs.h <<_ACEOF
20287 #define HAVE_LIBPTHREAD 1
20290 LIBS="-lpthread $LIBS"
20294 echo "$as_me:$LINENO: checking for cthread_fork in -lthreads" >&5
20295 echo $ECHO_N "checking for cthread_fork in -lthreads... $ECHO_C" >&6
20296 if test "${ac_cv_lib_threads_cthread_fork+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20299 ac_check_lib_save_LIBS=$LIBS
20300 LIBS="-lthreads $LIBS"
20301 cat >conftest.$ac_ext <<_ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20308 /* Override any gcc2 internal prototype to avoid an error. */
20312 /* We use char because int might match the return type of a gcc2
20313 builtin and then its argument prototype would still apply. */
20314 char cthread_fork ();
20323 rm -f conftest.$ac_objext conftest$ac_exeext
20324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20325 (eval $ac_link) 2>conftest.er1
20327 grep -v '^ *+' conftest.er1 >conftest.err
20329 cat conftest.err >&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } &&
20332 { ac_try='test -z "$ac_c_werror_flag"
20333 || test ! -s conftest.err'
20334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; } &&
20339 { ac_try='test -s conftest$ac_exeext'
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
20345 ac_cv_lib_threads_cthread_fork=yes
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20350 ac_cv_lib_threads_cthread_fork=no
20352 rm -f conftest.err conftest.$ac_objext \
20353 conftest$ac_exeext conftest.$ac_ext
20354 LIBS=$ac_check_lib_save_LIBS
20356 echo "$as_me:$LINENO: result: $ac_cv_lib_threads_cthread_fork" >&5
20357 echo "${ECHO_T}$ac_cv_lib_threads_cthread_fork" >&6
20358 if test $ac_cv_lib_threads_cthread_fork = yes; then
20359 cat >>confdefs.h <<_ACEOF
20360 #define HAVE_LIBTHREADS 1
20363 LIBS="-lthreads $LIBS"
20373 if test -n "$ac_aux_dir"; then
20374 case "$ac_aux_dir" in
20375 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
20376 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
20379 if test -z "$MKINSTALLDIRS"; then
20380 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
20385 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
20386 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
20387 # Check whether --enable-nls or --disable-nls was given.
20388 if test "${enable_nls+set}" = set; then
20389 enableval="$enable_nls"
20394 echo "$as_me:$LINENO: result: $USE_NLS" >&5
20395 echo "${ECHO_T}$USE_NLS" >&6
20402 # Prepare PATH_SEPARATOR.
20403 # The user is always right.
20404 if test "${PATH_SEPARATOR+set}" != set; then
20405 echo "#! /bin/sh" >conf$$.sh
20406 echo "exit 0" >>conf$$.sh
20408 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20416 # Find out how to test for executable files. Don't use a zero-byte file,
20417 # as systems may use methods other than mode bits to determine executability.
20418 cat >conf$$.file <<_ASEOF
20422 chmod +x conf$$.file
20423 if test -x conf$$.file >/dev/null 2>&1; then
20424 ac_executable_p="test -x"
20426 ac_executable_p="test -f"
20430 # Extract the first word of "msgfmt", so it can be a program name with args.
20431 set dummy msgfmt; ac_word=$2
20432 echo "$as_me:$LINENO: checking for $ac_word" >&5
20433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20434 if test "${ac_cv_path_MSGFMT+set}" = set; then
20435 echo $ECHO_N "(cached) $ECHO_C" >&6
20439 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20442 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20443 for ac_dir in $PATH; do
20445 test -z "$ac_dir" && ac_dir=.
20446 for ac_exec_ext in '' $ac_executable_extensions; do
20447 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20448 echo "$as_me: trying $ac_dir/$ac_word..." >&5
20449 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
20450 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20451 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
20458 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
20462 MSGFMT="$ac_cv_path_MSGFMT"
20463 if test "$MSGFMT" != ":"; then
20464 echo "$as_me:$LINENO: result: $MSGFMT" >&5
20465 echo "${ECHO_T}$MSGFMT" >&6
20467 echo "$as_me:$LINENO: result: no" >&5
20468 echo "${ECHO_T}no" >&6
20471 # Extract the first word of "gmsgfmt", so it can be a program name with args.
20472 set dummy gmsgfmt; ac_word=$2
20473 echo "$as_me:$LINENO: checking for $ac_word" >&5
20474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20475 if test "${ac_cv_path_GMSGFMT+set}" = set; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20480 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20484 for as_dir in $PATH
20487 test -z "$as_dir" && as_dir=.
20488 for ac_exec_ext in '' $ac_executable_extensions; do
20489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20490 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20497 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20501 GMSGFMT=$ac_cv_path_GMSGFMT
20503 if test -n "$GMSGFMT"; then
20504 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20505 echo "${ECHO_T}$GMSGFMT" >&6
20507 echo "$as_me:$LINENO: result: no" >&5
20508 echo "${ECHO_T}no" >&6
20513 # Prepare PATH_SEPARATOR.
20514 # The user is always right.
20515 if test "${PATH_SEPARATOR+set}" != set; then
20516 echo "#! /bin/sh" >conf$$.sh
20517 echo "exit 0" >>conf$$.sh
20519 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20527 # Find out how to test for executable files. Don't use a zero-byte file,
20528 # as systems may use methods other than mode bits to determine executability.
20529 cat >conf$$.file <<_ASEOF
20533 chmod +x conf$$.file
20534 if test -x conf$$.file >/dev/null 2>&1; then
20535 ac_executable_p="test -x"
20537 ac_executable_p="test -f"
20541 # Extract the first word of "xgettext", so it can be a program name with args.
20542 set dummy xgettext; ac_word=$2
20543 echo "$as_me:$LINENO: checking for $ac_word" >&5
20544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20545 if test "${ac_cv_path_XGETTEXT+set}" = set; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20548 case "$XGETTEXT" in
20550 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20553 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20554 for ac_dir in $PATH; do
20556 test -z "$ac_dir" && ac_dir=.
20557 for ac_exec_ext in '' $ac_executable_extensions; do
20558 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20559 echo "$as_me: trying $ac_dir/$ac_word..." >&5
20560 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
20561 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20562 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
20569 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20573 XGETTEXT="$ac_cv_path_XGETTEXT"
20574 if test "$XGETTEXT" != ":"; then
20575 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20576 echo "${ECHO_T}$XGETTEXT" >&6
20578 echo "$as_me:$LINENO: result: no" >&5
20579 echo "${ECHO_T}no" >&6
20585 # Prepare PATH_SEPARATOR.
20586 # The user is always right.
20587 if test "${PATH_SEPARATOR+set}" != set; then
20588 echo "#! /bin/sh" >conf$$.sh
20589 echo "exit 0" >>conf$$.sh
20591 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20599 # Find out how to test for executable files. Don't use a zero-byte file,
20600 # as systems may use methods other than mode bits to determine executability.
20601 cat >conf$$.file <<_ASEOF
20605 chmod +x conf$$.file
20606 if test -x conf$$.file >/dev/null 2>&1; then
20607 ac_executable_p="test -x"
20609 ac_executable_p="test -f"
20613 # Extract the first word of "msgmerge", so it can be a program name with args.
20614 set dummy msgmerge; ac_word=$2
20615 echo "$as_me:$LINENO: checking for $ac_word" >&5
20616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20617 if test "${ac_cv_path_MSGMERGE+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20620 case "$MSGMERGE" in
20622 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20625 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20626 for ac_dir in $PATH; do
20628 test -z "$ac_dir" && ac_dir=.
20629 for ac_exec_ext in '' $ac_executable_extensions; do
20630 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20631 echo "$as_me: trying $ac_dir/$ac_word..." >&5
20632 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
20633 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
20640 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
20644 MSGMERGE="$ac_cv_path_MSGMERGE"
20645 if test "$MSGMERGE" != ":"; then
20646 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
20647 echo "${ECHO_T}$MSGMERGE" >&6
20649 echo "$as_me:$LINENO: result: no" >&5
20650 echo "${ECHO_T}no" >&6
20654 if test "$GMSGFMT" != ":"; then
20655 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
20656 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20659 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
20660 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
20661 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
20666 if test "$XGETTEXT" != ":"; then
20667 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
20668 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20671 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
20672 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
20678 ac_config_commands="$ac_config_commands default-1"
20682 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
20683 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
20684 if test "${ac_cv_gnu_library_2+set}" = set; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20687 cat >conftest.$ac_ext <<_ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h. */
20694 #include <features.h>
20695 #ifdef __GNU_LIBRARY__
20696 #if (__GLIBC__ >= 2)
20702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20703 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20704 ac_cv_gnu_library_2=yes
20706 ac_cv_gnu_library_2=no
20713 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
20714 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
20716 GLIBC2="$ac_cv_gnu_library_2"
20719 if test -n "$ac_tool_prefix"; then
20720 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20721 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
20722 echo "$as_me:$LINENO: checking for $ac_word" >&5
20723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20724 if test "${ac_cv_prog_RANLIB+set}" = set; then
20725 echo $ECHO_N "(cached) $ECHO_C" >&6
20727 if test -n "$RANLIB"; then
20728 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20731 for as_dir in $PATH
20734 test -z "$as_dir" && as_dir=.
20735 for ac_exec_ext in '' $ac_executable_extensions; do
20736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20737 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20746 RANLIB=$ac_cv_prog_RANLIB
20747 if test -n "$RANLIB"; then
20748 echo "$as_me:$LINENO: result: $RANLIB" >&5
20749 echo "${ECHO_T}$RANLIB" >&6
20751 echo "$as_me:$LINENO: result: no" >&5
20752 echo "${ECHO_T}no" >&6
20756 if test -z "$ac_cv_prog_RANLIB"; then
20757 ac_ct_RANLIB=$RANLIB
20758 # Extract the first word of "ranlib", so it can be a program name with args.
20759 set dummy ranlib; ac_word=$2
20760 echo "$as_me:$LINENO: checking for $ac_word" >&5
20761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20762 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
20763 echo $ECHO_N "(cached) $ECHO_C" >&6
20765 if test -n "$ac_ct_RANLIB"; then
20766 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20769 for as_dir in $PATH
20772 test -z "$as_dir" && as_dir=.
20773 for ac_exec_ext in '' $ac_executable_extensions; do
20774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20775 ac_cv_prog_ac_ct_RANLIB="ranlib"
20776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20782 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
20785 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20786 if test -n "$ac_ct_RANLIB"; then
20787 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
20788 echo "${ECHO_T}$ac_ct_RANLIB" >&6
20790 echo "$as_me:$LINENO: result: no" >&5
20791 echo "${ECHO_T}no" >&6
20794 RANLIB=$ac_ct_RANLIB
20796 RANLIB="$ac_cv_prog_RANLIB"
20799 echo "$as_me:$LINENO: checking for library containing strerror" >&5
20800 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
20801 if test "${ac_cv_search_strerror+set}" = set; then
20802 echo $ECHO_N "(cached) $ECHO_C" >&6
20804 ac_func_search_save_LIBS=$LIBS
20805 ac_cv_search_strerror=no
20806 cat >conftest.$ac_ext <<_ACEOF
20809 cat confdefs.h >>conftest.$ac_ext
20810 cat >>conftest.$ac_ext <<_ACEOF
20811 /* end confdefs.h. */
20813 /* Override any gcc2 internal prototype to avoid an error. */
20817 /* We use char because int might match the return type of a gcc2
20818 builtin and then its argument prototype would still apply. */
20828 rm -f conftest.$ac_objext conftest$ac_exeext
20829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20830 (eval $ac_link) 2>conftest.er1
20832 grep -v '^ *+' conftest.er1 >conftest.err
20834 cat conftest.err >&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } &&
20837 { ac_try='test -z "$ac_c_werror_flag"
20838 || test ! -s conftest.err'
20839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840 (eval $ac_try) 2>&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; } &&
20844 { ac_try='test -s conftest$ac_exeext'
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; }; then
20850 ac_cv_search_strerror="none required"
20852 echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20856 rm -f conftest.err conftest.$ac_objext \
20857 conftest$ac_exeext conftest.$ac_ext
20858 if test "$ac_cv_search_strerror" = no; then
20859 for ac_lib in cposix; do
20860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20861 cat >conftest.$ac_ext <<_ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h. */
20868 /* Override any gcc2 internal prototype to avoid an error. */
20872 /* We use char because int might match the return type of a gcc2
20873 builtin and then its argument prototype would still apply. */
20883 rm -f conftest.$ac_objext conftest$ac_exeext
20884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20885 (eval $ac_link) 2>conftest.er1
20887 grep -v '^ *+' conftest.er1 >conftest.err
20889 cat conftest.err >&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); } &&
20892 { ac_try='test -z "$ac_c_werror_flag"
20893 || test ! -s conftest.err'
20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; } &&
20899 { ac_try='test -s conftest$ac_exeext'
20900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901 (eval $ac_try) 2>&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; }; then
20905 ac_cv_search_strerror="-l$ac_lib"
20908 echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20912 rm -f conftest.err conftest.$ac_objext \
20913 conftest$ac_exeext conftest.$ac_ext
20916 LIBS=$ac_func_search_save_LIBS
20918 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
20919 echo "${ECHO_T}$ac_cv_search_strerror" >&6
20920 if test "$ac_cv_search_strerror" != no; then
20921 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
20925 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20926 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20927 if test "${ac_cv_c_const+set}" = set; then
20928 echo $ECHO_N "(cached) $ECHO_C" >&6
20930 cat >conftest.$ac_ext <<_ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h. */
20940 /* FIXME: Include the comments suggested by Paul. */
20941 #ifndef __cplusplus
20942 /* Ultrix mips cc rejects this. */
20943 typedef int charset[2];
20945 /* SunOS 4.1.1 cc rejects this. */
20946 char const *const *ccp;
20948 /* NEC SVR4.0.2 mips cc rejects this. */
20949 struct point {int x, y;};
20950 static struct point const zero = {0,0};
20951 /* AIX XL C 1.02.0.0 rejects this.
20952 It does not let you subtract one const X* pointer from another in
20953 an arm of an if-expression whose if-part is not a constant
20955 const char *g = "string";
20956 ccp = &g + (g ? g-g : 0);
20957 /* HPUX 7.0 cc rejects these. */
20960 ccp = (char const *const *) p;
20961 { /* SCO 3.2v4 cc rejects this. */
20963 char const *s = 0 ? (char *) 0 : (char const *) 0;
20967 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20968 int x[] = {25, 17};
20969 const int *foo = &x[0];
20972 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20973 typedef const int *iptr;
20977 { /* AIX XL C 1.02.0.0 rejects this saying
20978 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20979 struct s { int j; const int *ap[3]; };
20980 struct s *b; b->j = 5;
20982 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20983 const int foo = 10;
20991 rm -f conftest.$ac_objext
20992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20993 (eval $ac_compile) 2>conftest.er1
20995 grep -v '^ *+' conftest.er1 >conftest.err
20997 cat conftest.err >&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } &&
21000 { ac_try='test -z "$ac_c_werror_flag"
21001 || test ! -s conftest.err'
21002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21003 (eval $ac_try) 2>&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); }; } &&
21007 { ac_try='test -s conftest.$ac_objext'
21008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; }; then
21015 echo "$as_me: failed program was:" >&5
21016 sed 's/^/| /' conftest.$ac_ext >&5
21020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21022 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21023 echo "${ECHO_T}$ac_cv_c_const" >&6
21024 if test $ac_cv_c_const = no; then
21026 cat >>confdefs.h <<\_ACEOF
21033 echo "$as_me:$LINENO: checking for signed" >&5
21034 echo $ECHO_N "checking for signed... $ECHO_C" >&6
21035 if test "${bh_cv_c_signed+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21038 cat >conftest.$ac_ext <<_ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21053 rm -f conftest.$ac_objext
21054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21055 (eval $ac_compile) 2>conftest.er1
21057 grep -v '^ *+' conftest.er1 >conftest.err
21059 cat conftest.err >&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } &&
21062 { ac_try='test -z "$ac_c_werror_flag"
21063 || test ! -s conftest.err'
21064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21065 (eval $ac_try) 2>&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); }; } &&
21069 { ac_try='test -s conftest.$ac_objext'
21070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071 (eval $ac_try) 2>&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; }; then
21077 echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21084 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
21085 echo "${ECHO_T}$bh_cv_c_signed" >&6
21086 if test $bh_cv_c_signed = no; then
21088 cat >>confdefs.h <<\_ACEOF
21094 echo "$as_me:$LINENO: checking for inline" >&5
21095 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21096 if test "${ac_cv_c_inline+set}" = set; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21100 for ac_kw in inline __inline__ __inline; do
21101 cat >conftest.$ac_ext <<_ACEOF
21104 cat confdefs.h >>conftest.$ac_ext
21105 cat >>conftest.$ac_ext <<_ACEOF
21106 /* end confdefs.h. */
21107 #ifndef __cplusplus
21109 static $ac_kw foo_t static_foo () {return 0; }
21110 $ac_kw foo_t foo () {return 0; }
21114 rm -f conftest.$ac_objext
21115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21116 (eval $ac_compile) 2>conftest.er1
21118 grep -v '^ *+' conftest.er1 >conftest.err
21120 cat conftest.err >&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } &&
21123 { ac_try='test -z "$ac_c_werror_flag"
21124 || test ! -s conftest.err'
21125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21126 (eval $ac_try) 2>&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); }; } &&
21130 { ac_try='test -s conftest.$ac_objext'
21131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21132 (eval $ac_try) 2>&5
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); }; }; then
21136 ac_cv_c_inline=$ac_kw; break
21138 echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21146 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21147 echo "${ECHO_T}$ac_cv_c_inline" >&6
21150 case $ac_cv_c_inline in
21153 case $ac_cv_c_inline in
21155 *) ac_val=$ac_cv_c_inline;;
21157 cat >>confdefs.h <<_ACEOF
21158 #ifndef __cplusplus
21159 #define inline $ac_val
21165 echo "$as_me:$LINENO: checking for off_t" >&5
21166 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21167 if test "${ac_cv_type_off_t+set}" = set; then
21168 echo $ECHO_N "(cached) $ECHO_C" >&6
21170 cat >conftest.$ac_ext <<_ACEOF
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h. */
21176 $ac_includes_default
21182 if (sizeof (off_t))
21188 rm -f conftest.$ac_objext
21189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21190 (eval $ac_compile) 2>conftest.er1
21192 grep -v '^ *+' conftest.er1 >conftest.err
21194 cat conftest.err >&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } &&
21197 { ac_try='test -z "$ac_c_werror_flag"
21198 || test ! -s conftest.err'
21199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21200 (eval $ac_try) 2>&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; } &&
21204 { ac_try='test -s conftest.$ac_objext'
21205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206 (eval $ac_try) 2>&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; }; then
21210 ac_cv_type_off_t=yes
21212 echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21215 ac_cv_type_off_t=no
21217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21219 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21220 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21221 if test $ac_cv_type_off_t = yes; then
21225 cat >>confdefs.h <<_ACEOF
21231 echo "$as_me:$LINENO: checking for size_t" >&5
21232 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21233 if test "${ac_cv_type_size_t+set}" = set; then
21234 echo $ECHO_N "(cached) $ECHO_C" >&6
21236 cat >conftest.$ac_ext <<_ACEOF
21239 cat confdefs.h >>conftest.$ac_ext
21240 cat >>conftest.$ac_ext <<_ACEOF
21241 /* end confdefs.h. */
21242 $ac_includes_default
21248 if (sizeof (size_t))
21254 rm -f conftest.$ac_objext
21255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21256 (eval $ac_compile) 2>conftest.er1
21258 grep -v '^ *+' conftest.er1 >conftest.err
21260 cat conftest.err >&5
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); } &&
21263 { ac_try='test -z "$ac_c_werror_flag"
21264 || test ! -s conftest.err'
21265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21266 (eval $ac_try) 2>&5
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); }; } &&
21270 { ac_try='test -s conftest.$ac_objext'
21271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272 (eval $ac_try) 2>&5
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); }; }; then
21276 ac_cv_type_size_t=yes
21278 echo "$as_me: failed program was:" >&5
21279 sed 's/^/| /' conftest.$ac_ext >&5
21281 ac_cv_type_size_t=no
21283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21285 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21286 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21287 if test $ac_cv_type_size_t = yes; then
21291 cat >>confdefs.h <<_ACEOF
21292 #define size_t unsigned
21298 echo "$as_me:$LINENO: checking for long long" >&5
21299 echo $ECHO_N "checking for long long... $ECHO_C" >&6
21300 if test "${ac_cv_type_long_long+set}" = set; then
21301 echo $ECHO_N "(cached) $ECHO_C" >&6
21303 cat >conftest.$ac_ext <<_ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h. */
21309 long long ll = 1LL; int i = 63;
21313 long long llmax = (long long) -1;
21314 return ll << i | ll >> i | llmax / ll | llmax % ll;
21319 rm -f conftest.$ac_objext conftest$ac_exeext
21320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21321 (eval $ac_link) 2>conftest.er1
21323 grep -v '^ *+' conftest.er1 >conftest.err
21325 cat conftest.err >&5
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); } &&
21328 { ac_try='test -z "$ac_c_werror_flag"
21329 || test ! -s conftest.err'
21330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331 (eval $ac_try) 2>&5
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); }; } &&
21335 { ac_try='test -s conftest$ac_exeext'
21336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337 (eval $ac_try) 2>&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); }; }; then
21341 ac_cv_type_long_long=yes
21343 echo "$as_me: failed program was:" >&5
21344 sed 's/^/| /' conftest.$ac_ext >&5
21346 ac_cv_type_long_long=no
21348 rm -f conftest.err conftest.$ac_objext \
21349 conftest$ac_exeext conftest.$ac_ext
21351 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21352 echo "${ECHO_T}$ac_cv_type_long_long" >&6
21353 if test $ac_cv_type_long_long = yes; then
21355 cat >>confdefs.h <<\_ACEOF
21356 #define HAVE_LONG_LONG 1
21362 echo "$as_me:$LINENO: checking for long double" >&5
21363 echo $ECHO_N "checking for long double... $ECHO_C" >&6
21364 if test "${gt_cv_c_long_double+set}" = set; then
21365 echo $ECHO_N "(cached) $ECHO_C" >&6
21367 if test "$GCC" = yes; then
21368 gt_cv_c_long_double=yes
21370 cat >conftest.$ac_ext <<_ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h. */
21377 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
21378 long double foo = 0.0;
21379 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
21380 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
21390 rm -f conftest.$ac_objext
21391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21392 (eval $ac_compile) 2>conftest.er1
21394 grep -v '^ *+' conftest.er1 >conftest.err
21396 cat conftest.err >&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } &&
21399 { ac_try='test -z "$ac_c_werror_flag"
21400 || test ! -s conftest.err'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; } &&
21406 { ac_try='test -s conftest.$ac_objext'
21407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408 (eval $ac_try) 2>&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; }; then
21412 gt_cv_c_long_double=yes
21414 echo "$as_me: failed program was:" >&5
21415 sed 's/^/| /' conftest.$ac_ext >&5
21417 gt_cv_c_long_double=no
21419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21422 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
21423 echo "${ECHO_T}$gt_cv_c_long_double" >&6
21424 if test $gt_cv_c_long_double = yes; then
21426 cat >>confdefs.h <<\_ACEOF
21427 #define HAVE_LONG_DOUBLE 1
21433 echo "$as_me:$LINENO: checking for wchar_t" >&5
21434 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21435 if test "${gt_cv_c_wchar_t+set}" = set; then
21436 echo $ECHO_N "(cached) $ECHO_C" >&6
21438 cat >conftest.$ac_ext <<_ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21444 #include <stddef.h>
21445 wchar_t foo = (wchar_t)'\0';
21454 rm -f conftest.$ac_objext
21455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21456 (eval $ac_compile) 2>conftest.er1
21458 grep -v '^ *+' conftest.er1 >conftest.err
21460 cat conftest.err >&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } &&
21463 { ac_try='test -z "$ac_c_werror_flag"
21464 || test ! -s conftest.err'
21465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; } &&
21470 { ac_try='test -s conftest.$ac_objext'
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21476 gt_cv_c_wchar_t=yes
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21485 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
21486 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
21487 if test $gt_cv_c_wchar_t = yes; then
21489 cat >>confdefs.h <<\_ACEOF
21490 #define HAVE_WCHAR_T 1
21496 echo "$as_me:$LINENO: checking for wint_t" >&5
21497 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
21498 if test "${gt_cv_c_wint_t+set}" = set; then
21499 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 cat >conftest.$ac_ext <<_ACEOF
21504 cat confdefs.h >>conftest.$ac_ext
21505 cat >>conftest.$ac_ext <<_ACEOF
21506 /* end confdefs.h. */
21508 wint_t foo = (wchar_t)'\0';
21517 rm -f conftest.$ac_objext
21518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21519 (eval $ac_compile) 2>conftest.er1
21521 grep -v '^ *+' conftest.er1 >conftest.err
21523 cat conftest.err >&5
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); } &&
21526 { ac_try='test -z "$ac_c_werror_flag"
21527 || test ! -s conftest.err'
21528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529 (eval $ac_try) 2>&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; } &&
21533 { ac_try='test -s conftest.$ac_objext'
21534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535 (eval $ac_try) 2>&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); }; }; then
21541 echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21548 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
21549 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
21550 if test $gt_cv_c_wint_t = yes; then
21552 cat >>confdefs.h <<\_ACEOF
21553 #define HAVE_WINT_T 1
21559 echo "$as_me:$LINENO: checking for inttypes.h" >&5
21560 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
21561 if test "${gl_cv_header_inttypes_h+set}" = set; then
21562 echo $ECHO_N "(cached) $ECHO_C" >&6
21564 cat >conftest.$ac_ext <<_ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h. */
21570 #include <sys/types.h>
21571 #include <inttypes.h>
21575 uintmax_t i = (uintmax_t) -1;
21580 rm -f conftest.$ac_objext
21581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21582 (eval $ac_compile) 2>conftest.er1
21584 grep -v '^ *+' conftest.er1 >conftest.err
21586 cat conftest.err >&5
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); } &&
21589 { ac_try='test -z "$ac_c_werror_flag"
21590 || test ! -s conftest.err'
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; } &&
21596 { ac_try='test -s conftest.$ac_objext'
21597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21598 (eval $ac_try) 2>&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); }; }; then
21602 gl_cv_header_inttypes_h=yes
21604 echo "$as_me: failed program was:" >&5
21605 sed 's/^/| /' conftest.$ac_ext >&5
21607 gl_cv_header_inttypes_h=no
21609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21611 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
21612 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
21613 if test $gl_cv_header_inttypes_h = yes; then
21615 cat >>confdefs.h <<_ACEOF
21616 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
21622 echo "$as_me:$LINENO: checking for stdint.h" >&5
21623 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
21624 if test "${gl_cv_header_stdint_h+set}" = set; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
21627 cat >conftest.$ac_ext <<_ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21633 #include <sys/types.h>
21634 #include <stdint.h>
21638 uintmax_t i = (uintmax_t) -1;
21643 rm -f conftest.$ac_objext
21644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21645 (eval $ac_compile) 2>conftest.er1
21647 grep -v '^ *+' conftest.er1 >conftest.err
21649 cat conftest.err >&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } &&
21652 { ac_try='test -z "$ac_c_werror_flag"
21653 || test ! -s conftest.err'
21654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655 (eval $ac_try) 2>&5
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); }; } &&
21659 { ac_try='test -s conftest.$ac_objext'
21660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661 (eval $ac_try) 2>&5
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); }; }; then
21665 gl_cv_header_stdint_h=yes
21667 echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21670 gl_cv_header_stdint_h=no
21672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21674 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
21675 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
21676 if test $gl_cv_header_stdint_h = yes; then
21678 cat >>confdefs.h <<_ACEOF
21679 #define HAVE_STDINT_H_WITH_UINTMAX 1
21687 echo "$as_me:$LINENO: checking for intmax_t" >&5
21688 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
21689 if test "${gt_cv_c_intmax_t+set}" = set; then
21690 echo $ECHO_N "(cached) $ECHO_C" >&6
21692 cat >conftest.$ac_ext <<_ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h. */
21699 #include <stddef.h>
21700 #include <stdlib.h>
21701 #if HAVE_STDINT_H_WITH_UINTMAX
21702 #include <stdint.h>
21704 #if HAVE_INTTYPES_H_WITH_UINTMAX
21705 #include <inttypes.h>
21716 rm -f conftest.$ac_objext
21717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21718 (eval $ac_compile) 2>conftest.er1
21720 grep -v '^ *+' conftest.er1 >conftest.err
21722 cat conftest.err >&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); } &&
21725 { ac_try='test -z "$ac_c_werror_flag"
21726 || test ! -s conftest.err'
21727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728 (eval $ac_try) 2>&5
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); }; } &&
21732 { ac_try='test -s conftest.$ac_objext'
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; }; then
21738 gt_cv_c_intmax_t=yes
21740 echo "$as_me: failed program was:" >&5
21741 sed 's/^/| /' conftest.$ac_ext >&5
21743 gt_cv_c_intmax_t=no
21745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21747 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
21748 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
21749 if test $gt_cv_c_intmax_t = yes; then
21751 cat >>confdefs.h <<\_ACEOF
21752 #define HAVE_INTMAX_T 1
21759 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
21760 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
21761 if test "${gt_cv_func_printf_posix+set}" = set; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21765 if test "$cross_compiling" = yes; then
21767 cat >conftest.$ac_ext <<_ACEOF
21770 cat confdefs.h >>conftest.$ac_ext
21771 cat >>conftest.$ac_ext <<_ACEOF
21772 /* end confdefs.h. */
21774 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
21779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21780 $EGREP "notposix" >/dev/null 2>&1; then
21781 gt_cv_func_printf_posix="guessing no"
21783 gt_cv_func_printf_posix="guessing yes"
21789 cat >conftest.$ac_ext <<_ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h. */
21797 #include <string.h>
21798 /* The string "%2$d %1$d", with dollar characters protected from the shell's
21799 dollar expansion (possibly an autoconf bug). */
21800 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
21801 static char buf[100];
21804 sprintf (buf, format, 33, 55);
21805 return (strcmp (buf, "55 33") != 0);
21808 rm -f conftest$ac_exeext
21809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21810 (eval $ac_link) 2>&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815 (eval $ac_try) 2>&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); }; }; then
21819 gt_cv_func_printf_posix=yes
21821 echo "$as_me: program exited with status $ac_status" >&5
21822 echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21825 ( exit $ac_status )
21826 gt_cv_func_printf_posix=no
21828 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21832 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
21833 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
21834 case $gt_cv_func_printf_posix in
21837 cat >>confdefs.h <<\_ACEOF
21838 #define HAVE_POSIX_PRINTF 1
21844 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21845 # for constant arguments. Useless!
21846 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21847 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21848 if test "${ac_cv_working_alloca_h+set}" = set; then
21849 echo $ECHO_N "(cached) $ECHO_C" >&6
21851 cat >conftest.$ac_ext <<_ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h. */
21857 #include <alloca.h>
21861 char *p = (char *) alloca (2 * sizeof (int));
21866 rm -f conftest.$ac_objext conftest$ac_exeext
21867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21868 (eval $ac_link) 2>conftest.er1
21870 grep -v '^ *+' conftest.er1 >conftest.err
21872 cat conftest.err >&5
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); } &&
21875 { ac_try='test -z "$ac_c_werror_flag"
21876 || test ! -s conftest.err'
21877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878 (eval $ac_try) 2>&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); }; } &&
21882 { ac_try='test -s conftest$ac_exeext'
21883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884 (eval $ac_try) 2>&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); }; }; then
21888 ac_cv_working_alloca_h=yes
21890 echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21893 ac_cv_working_alloca_h=no
21895 rm -f conftest.err conftest.$ac_objext \
21896 conftest$ac_exeext conftest.$ac_ext
21898 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21899 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21900 if test $ac_cv_working_alloca_h = yes; then
21902 cat >>confdefs.h <<\_ACEOF
21903 #define HAVE_ALLOCA_H 1
21908 echo "$as_me:$LINENO: checking for alloca" >&5
21909 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21910 if test "${ac_cv_func_alloca_works+set}" = set; then
21911 echo $ECHO_N "(cached) $ECHO_C" >&6
21913 cat >conftest.$ac_ext <<_ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h. */
21920 # define alloca __builtin_alloca
21923 # include <malloc.h>
21924 # define alloca _alloca
21927 # include <alloca.h>
21932 # ifndef alloca /* predefined by HP cc +Olibcalls */
21943 char *p = (char *) alloca (1);
21948 rm -f conftest.$ac_objext conftest$ac_exeext
21949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21950 (eval $ac_link) 2>conftest.er1
21952 grep -v '^ *+' conftest.er1 >conftest.err
21954 cat conftest.err >&5
21955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956 (exit $ac_status); } &&
21957 { ac_try='test -z "$ac_c_werror_flag"
21958 || test ! -s conftest.err'
21959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960 (eval $ac_try) 2>&5
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; } &&
21964 { ac_try='test -s conftest$ac_exeext'
21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966 (eval $ac_try) 2>&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; }; then
21970 ac_cv_func_alloca_works=yes
21972 echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.$ac_ext >&5
21975 ac_cv_func_alloca_works=no
21977 rm -f conftest.err conftest.$ac_objext \
21978 conftest$ac_exeext conftest.$ac_ext
21980 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21981 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21983 if test $ac_cv_func_alloca_works = yes; then
21985 cat >>confdefs.h <<\_ACEOF
21986 #define HAVE_ALLOCA 1
21990 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21991 # that cause trouble. Some versions do not even contain alloca or
21992 # contain a buggy version. If you still want to use their alloca,
21993 # use ar to extract alloca.o from them instead of compiling alloca.c.
21995 ALLOCA=alloca.$ac_objext
21997 cat >>confdefs.h <<\_ACEOF
22002 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22003 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22004 if test "${ac_cv_os_cray+set}" = set; then
22005 echo $ECHO_N "(cached) $ECHO_C" >&6
22007 cat >conftest.$ac_ext <<_ACEOF
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h. */
22013 #if defined(CRAY) && ! defined(CRAY2)
22020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22021 $EGREP "webecray" >/dev/null 2>&1; then
22029 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22030 echo "${ECHO_T}$ac_cv_os_cray" >&6
22031 if test $ac_cv_os_cray = yes; then
22032 for ac_func in _getb67 GETB67 getb67; do
22033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22034 echo "$as_me:$LINENO: checking for $ac_func" >&5
22035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22036 if eval "test \"\${$as_ac_var+set}\" = set"; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
22039 cat >conftest.$ac_ext <<_ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h. */
22045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22047 #define $ac_func innocuous_$ac_func
22049 /* System header to define __stub macros and hopefully few prototypes,
22050 which can conflict with char $ac_func (); below.
22051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22052 <limits.h> exists even on freestanding compilers. */
22055 # include <limits.h>
22057 # include <assert.h>
22062 /* Override any gcc2 internal prototype to avoid an error. */
22067 /* We use char because int might match the return type of a gcc2
22068 builtin and then its argument prototype would still apply. */
22070 /* The GNU C library defines this for functions which it implements
22071 to always fail with ENOSYS. Some functions are actually named
22072 something starting with __ and the normal name is an alias. */
22073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22076 char (*f) () = $ac_func;
22085 return f != $ac_func;
22090 rm -f conftest.$ac_objext conftest$ac_exeext
22091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22092 (eval $ac_link) 2>conftest.er1
22094 grep -v '^ *+' conftest.er1 >conftest.err
22096 cat conftest.err >&5
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); } &&
22099 { ac_try='test -z "$ac_c_werror_flag"
22100 || test ! -s conftest.err'
22101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22102 (eval $ac_try) 2>&5
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); }; } &&
22106 { ac_try='test -s conftest$ac_exeext'
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; }; then
22112 eval "$as_ac_var=yes"
22114 echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22117 eval "$as_ac_var=no"
22119 rm -f conftest.err conftest.$ac_objext \
22120 conftest$ac_exeext conftest.$ac_ext
22122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22124 if test `eval echo '${'$as_ac_var'}'` = yes; then
22126 cat >>confdefs.h <<_ACEOF
22127 #define CRAY_STACKSEG_END $ac_func
22136 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22137 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22138 if test "${ac_cv_c_stack_direction+set}" = set; then
22139 echo $ECHO_N "(cached) $ECHO_C" >&6
22141 if test "$cross_compiling" = yes; then
22142 ac_cv_c_stack_direction=0
22144 cat >conftest.$ac_ext <<_ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h. */
22151 find_stack_direction ()
22153 static char *addr = 0;
22158 return find_stack_direction ();
22161 return (&dummy > addr) ? 1 : -1;
22167 exit (find_stack_direction () < 0);
22170 rm -f conftest$ac_exeext
22171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22172 (eval $ac_link) 2>&5
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22177 (eval $ac_try) 2>&5
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); }; }; then
22181 ac_cv_c_stack_direction=1
22183 echo "$as_me: program exited with status $ac_status" >&5
22184 echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22187 ( exit $ac_status )
22188 ac_cv_c_stack_direction=-1
22190 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22193 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22194 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22196 cat >>confdefs.h <<_ACEOF
22197 #define STACK_DIRECTION $ac_cv_c_stack_direction
22205 for ac_header in stdlib.h unistd.h
22207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22209 echo "$as_me:$LINENO: checking for $ac_header" >&5
22210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22212 echo $ECHO_N "(cached) $ECHO_C" >&6
22214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22217 # Is the header compilable?
22218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22220 cat >conftest.$ac_ext <<_ACEOF
22223 cat confdefs.h >>conftest.$ac_ext
22224 cat >>conftest.$ac_ext <<_ACEOF
22225 /* end confdefs.h. */
22226 $ac_includes_default
22227 #include <$ac_header>
22229 rm -f conftest.$ac_objext
22230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22231 (eval $ac_compile) 2>conftest.er1
22233 grep -v '^ *+' conftest.er1 >conftest.err
22235 cat conftest.err >&5
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); } &&
22238 { ac_try='test -z "$ac_c_werror_flag"
22239 || test ! -s conftest.err'
22240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22241 (eval $ac_try) 2>&5
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); }; } &&
22245 { ac_try='test -s conftest.$ac_objext'
22246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22247 (eval $ac_try) 2>&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); }; }; then
22251 ac_header_compiler=yes
22253 echo "$as_me: failed program was:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22256 ac_header_compiler=no
22258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22260 echo "${ECHO_T}$ac_header_compiler" >&6
22262 # Is the header present?
22263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22265 cat >conftest.$ac_ext <<_ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h. */
22271 #include <$ac_header>
22273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22276 grep -v '^ *+' conftest.er1 >conftest.err
22278 cat conftest.err >&5
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); } >/dev/null; then
22281 if test -s conftest.err; then
22282 ac_cpp_err=$ac_c_preproc_warn_flag
22283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22290 if test -z "$ac_cpp_err"; then
22291 ac_header_preproc=yes
22293 echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22296 ac_header_preproc=no
22298 rm -f conftest.err conftest.$ac_ext
22299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22300 echo "${ECHO_T}$ac_header_preproc" >&6
22302 # So? What about this header?
22303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22309 ac_header_preproc=yes
22312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22326 ## ------------------------------------------ ##
22327 ## Report this to the AC_PACKAGE_NAME lists. ##
22328 ## ------------------------------------------ ##
22331 sed "s/^/$as_me: WARNING: /" >&2
22334 echo "$as_me:$LINENO: checking for $ac_header" >&5
22335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22337 echo $ECHO_N "(cached) $ECHO_C" >&6
22339 eval "$as_ac_Header=\$ac_header_preproc"
22341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22346 cat >>confdefs.h <<_ACEOF
22347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22355 for ac_func in getpagesize
22357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22358 echo "$as_me:$LINENO: checking for $ac_func" >&5
22359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22360 if eval "test \"\${$as_ac_var+set}\" = set"; then
22361 echo $ECHO_N "(cached) $ECHO_C" >&6
22363 cat >conftest.$ac_ext <<_ACEOF
22366 cat confdefs.h >>conftest.$ac_ext
22367 cat >>conftest.$ac_ext <<_ACEOF
22368 /* end confdefs.h. */
22369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22371 #define $ac_func innocuous_$ac_func
22373 /* System header to define __stub macros and hopefully few prototypes,
22374 which can conflict with char $ac_func (); below.
22375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22376 <limits.h> exists even on freestanding compilers. */
22379 # include <limits.h>
22381 # include <assert.h>
22386 /* Override any gcc2 internal prototype to avoid an error. */
22391 /* We use char because int might match the return type of a gcc2
22392 builtin and then its argument prototype would still apply. */
22394 /* The GNU C library defines this for functions which it implements
22395 to always fail with ENOSYS. Some functions are actually named
22396 something starting with __ and the normal name is an alias. */
22397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22400 char (*f) () = $ac_func;
22409 return f != $ac_func;
22414 rm -f conftest.$ac_objext conftest$ac_exeext
22415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22416 (eval $ac_link) 2>conftest.er1
22418 grep -v '^ *+' conftest.er1 >conftest.err
22420 cat conftest.err >&5
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); } &&
22423 { ac_try='test -z "$ac_c_werror_flag"
22424 || test ! -s conftest.err'
22425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426 (eval $ac_try) 2>&5
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); }; } &&
22430 { ac_try='test -s conftest$ac_exeext'
22431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22432 (eval $ac_try) 2>&5
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); }; }; then
22436 eval "$as_ac_var=yes"
22438 echo "$as_me: failed program was:" >&5
22439 sed 's/^/| /' conftest.$ac_ext >&5
22441 eval "$as_ac_var=no"
22443 rm -f conftest.err conftest.$ac_objext \
22444 conftest$ac_exeext conftest.$ac_ext
22446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22448 if test `eval echo '${'$as_ac_var'}'` = yes; then
22449 cat >>confdefs.h <<_ACEOF
22450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22456 echo "$as_me:$LINENO: checking for working mmap" >&5
22457 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22458 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22459 echo $ECHO_N "(cached) $ECHO_C" >&6
22461 if test "$cross_compiling" = yes; then
22462 ac_cv_func_mmap_fixed_mapped=no
22464 cat >conftest.$ac_ext <<_ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22470 $ac_includes_default
22471 /* malloc might have been renamed as rpl_malloc. */
22474 /* Thanks to Mike Haertel and Jim Avera for this test.
22475 Here is a matrix of mmap possibilities:
22476 mmap private not fixed
22477 mmap private fixed at somewhere currently unmapped
22478 mmap private fixed at somewhere already mapped
22479 mmap shared not fixed
22480 mmap shared fixed at somewhere currently unmapped
22481 mmap shared fixed at somewhere already mapped
22482 For private mappings, we should verify that changes cannot be read()
22483 back from the file, nor mmap's back from the file at a different
22484 address. (There have been systems where private was not correctly
22485 implemented like the infamous i386 svr4.0, and systems where the
22486 VM page cache was not coherent with the file system buffer cache
22487 like early versions of FreeBSD and possibly contemporary NetBSD.)
22488 For shared mappings, we should conversely verify that changes get
22489 propagated back to all the places they're supposed to be.
22491 Grep wants private fixed already mapped.
22492 The main things grep needs to know about mmap are:
22493 * does it exist and is it safe to write into the mmap'd area
22494 * how to use it (BSD variants) */
22497 #include <sys/mman.h>
22499 #if !STDC_HEADERS && !HAVE_STDLIB_H
22503 /* This mess was copied from the GNU getpagesize.h. */
22504 #if !HAVE_GETPAGESIZE
22505 /* Assume that all systems that can run configure have sys/param.h. */
22506 # if !HAVE_SYS_PARAM_H
22507 # define HAVE_SYS_PARAM_H 1
22510 # ifdef _SC_PAGESIZE
22511 # define getpagesize() sysconf(_SC_PAGESIZE)
22512 # else /* no _SC_PAGESIZE */
22513 # if HAVE_SYS_PARAM_H
22514 # include <sys/param.h>
22515 # ifdef EXEC_PAGESIZE
22516 # define getpagesize() EXEC_PAGESIZE
22517 # else /* no EXEC_PAGESIZE */
22519 # define getpagesize() NBPG * CLSIZE
22522 # endif /* no CLSIZE */
22523 # else /* no NBPG */
22525 # define getpagesize() NBPC
22526 # else /* no NBPC */
22528 # define getpagesize() PAGESIZE
22529 # endif /* PAGESIZE */
22530 # endif /* no NBPC */
22531 # endif /* no NBPG */
22532 # endif /* no EXEC_PAGESIZE */
22533 # else /* no HAVE_SYS_PARAM_H */
22534 # define getpagesize() 8192 /* punt totally */
22535 # endif /* no HAVE_SYS_PARAM_H */
22536 # endif /* no _SC_PAGESIZE */
22538 #endif /* no HAVE_GETPAGESIZE */
22543 char *data, *data2, *data3;
22547 pagesize = getpagesize ();
22549 /* First, make a file with some known garbage in it. */
22550 data = (char *) malloc (pagesize);
22553 for (i = 0; i < pagesize; ++i)
22554 *(data + i) = rand ();
22556 fd = creat ("conftest.mmap", 0600);
22559 if (write (fd, data, pagesize) != pagesize)
22563 /* Next, try to mmap the file at a fixed address which already has
22564 something else allocated at it. If we can, also make sure that
22565 we see the same garbage. */
22566 fd = open ("conftest.mmap", O_RDWR);
22569 data2 = (char *) malloc (2 * pagesize);
22572 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22573 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22574 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22576 for (i = 0; i < pagesize; ++i)
22577 if (*(data + i) != *(data2 + i))
22580 /* Finally, make sure that changes to the mapped area do not
22581 percolate back to the file as seen by read(). (This is a bug on
22582 some variants of i386 svr4.0.) */
22583 for (i = 0; i < pagesize; ++i)
22584 *(data2 + i) = *(data2 + i) + 1;
22585 data3 = (char *) malloc (pagesize);
22588 if (read (fd, data3, pagesize) != pagesize)
22590 for (i = 0; i < pagesize; ++i)
22591 if (*(data + i) != *(data3 + i))
22597 rm -f conftest$ac_exeext
22598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22599 (eval $ac_link) 2>&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604 (eval $ac_try) 2>&5
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); }; }; then
22608 ac_cv_func_mmap_fixed_mapped=yes
22610 echo "$as_me: program exited with status $ac_status" >&5
22611 echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22614 ( exit $ac_status )
22615 ac_cv_func_mmap_fixed_mapped=no
22617 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22620 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22621 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22622 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22624 cat >>confdefs.h <<\_ACEOF
22625 #define HAVE_MMAP 1
22629 rm -f conftest.mmap
22632 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
22633 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
22634 if test "${ac_cv_gnu_library_2_1+set}" = set; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22637 cat >conftest.$ac_ext <<_ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22644 #include <features.h>
22645 #ifdef __GNU_LIBRARY__
22646 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
22652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22653 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
22654 ac_cv_gnu_library_2_1=yes
22656 ac_cv_gnu_library_2_1=no
22663 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
22664 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
22666 GLIBC21="$ac_cv_gnu_library_2_1"
22671 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
22672 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
22673 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
22674 echo $ECHO_N "(cached) $ECHO_C" >&6
22677 if test "$cross_compiling" = yes; then
22679 # Guess based on the CPU.
22680 case "$host_cpu" in
22681 alpha* | i3456786 | m68k | s390*)
22682 gt_cv_int_divbyzero_sigfpe="guessing yes";;
22684 gt_cv_int_divbyzero_sigfpe="guessing no";;
22688 cat >conftest.$ac_ext <<_ACEOF
22691 cat confdefs.h >>conftest.$ac_ext
22692 cat >>conftest.$ac_ext <<_ACEOF
22693 /* end confdefs.h. */
22695 #include <stdlib.h>
22696 #include <signal.h>
22700 sigfpe_handler (int sig)
22702 sigfpe_handler (sig) int sig;
22705 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
22706 exit (sig != SIGFPE);
22716 signal (SIGFPE, sigfpe_handler);
22717 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
22718 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
22719 signal (SIGTRAP, sigfpe_handler);
22721 /* Linux/SPARC yields signal SIGILL. */
22722 #if defined (__sparc__) && defined (__linux__)
22723 signal (SIGILL, sigfpe_handler);
22732 rm -f conftest$ac_exeext
22733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22734 (eval $ac_link) 2>&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739 (eval $ac_try) 2>&5
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; }; then
22743 gt_cv_int_divbyzero_sigfpe=yes
22745 echo "$as_me: program exited with status $ac_status" >&5
22746 echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22749 ( exit $ac_status )
22750 gt_cv_int_divbyzero_sigfpe=no
22752 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22756 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
22757 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
22758 case "$gt_cv_int_divbyzero_sigfpe" in
22763 cat >>confdefs.h <<_ACEOF
22764 #define INTDIV0_RAISES_SIGFPE $value
22769 echo "$as_me:$LINENO: checking for unsigned long long" >&5
22770 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
22771 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
22772 echo $ECHO_N "(cached) $ECHO_C" >&6
22774 cat >conftest.$ac_ext <<_ACEOF
22777 cat confdefs.h >>conftest.$ac_ext
22778 cat >>conftest.$ac_ext <<_ACEOF
22779 /* end confdefs.h. */
22780 unsigned long long ull = 1ULL; int i = 63;
22784 unsigned long long ullmax = (unsigned long long) -1;
22785 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
22790 rm -f conftest.$ac_objext conftest$ac_exeext
22791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22792 (eval $ac_link) 2>conftest.er1
22794 grep -v '^ *+' conftest.er1 >conftest.err
22796 cat conftest.err >&5
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); } &&
22799 { ac_try='test -z "$ac_c_werror_flag"
22800 || test ! -s conftest.err'
22801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22802 (eval $ac_try) 2>&5
22804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805 (exit $ac_status); }; } &&
22806 { ac_try='test -s conftest$ac_exeext'
22807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22808 (eval $ac_try) 2>&5
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); }; }; then
22812 ac_cv_type_unsigned_long_long=yes
22814 echo "$as_me: failed program was:" >&5
22815 sed 's/^/| /' conftest.$ac_ext >&5
22817 ac_cv_type_unsigned_long_long=no
22819 rm -f conftest.err conftest.$ac_objext \
22820 conftest$ac_exeext conftest.$ac_ext
22822 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
22823 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
22824 if test $ac_cv_type_unsigned_long_long = yes; then
22826 cat >>confdefs.h <<\_ACEOF
22827 #define HAVE_UNSIGNED_LONG_LONG 1
22835 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
22837 test $ac_cv_type_unsigned_long_long = yes \
22838 && ac_type='unsigned long long' \
22839 || ac_type='unsigned long'
22841 cat >>confdefs.h <<_ACEOF
22842 #define uintmax_t $ac_type
22847 cat >>confdefs.h <<\_ACEOF
22848 #define HAVE_UINTMAX_T 1
22854 echo "$as_me:$LINENO: checking for inttypes.h" >&5
22855 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22856 if test "${gt_cv_header_inttypes_h+set}" = set; then
22857 echo $ECHO_N "(cached) $ECHO_C" >&6
22860 cat >conftest.$ac_ext <<_ACEOF
22863 cat confdefs.h >>conftest.$ac_ext
22864 cat >>conftest.$ac_ext <<_ACEOF
22865 /* end confdefs.h. */
22866 #include <sys/types.h>
22867 #include <inttypes.h>
22876 rm -f conftest.$ac_objext
22877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22878 (eval $ac_compile) 2>conftest.er1
22880 grep -v '^ *+' conftest.er1 >conftest.err
22882 cat conftest.err >&5
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); } &&
22885 { ac_try='test -z "$ac_c_werror_flag"
22886 || test ! -s conftest.err'
22887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22888 (eval $ac_try) 2>&5
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); }; } &&
22892 { ac_try='test -s conftest.$ac_objext'
22893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22894 (eval $ac_try) 2>&5
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); }; }; then
22898 gt_cv_header_inttypes_h=yes
22900 echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22903 gt_cv_header_inttypes_h=no
22905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22908 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
22909 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
22910 if test $gt_cv_header_inttypes_h = yes; then
22912 cat >>confdefs.h <<_ACEOF
22913 #define HAVE_INTTYPES_H 1
22920 if test $gt_cv_header_inttypes_h = yes; then
22921 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
22922 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
22923 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
22924 echo $ECHO_N "(cached) $ECHO_C" >&6
22927 cat >conftest.$ac_ext <<_ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h. */
22933 #include <inttypes.h>
22946 rm -f conftest.$ac_objext
22947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22948 (eval $ac_compile) 2>conftest.er1
22950 grep -v '^ *+' conftest.er1 >conftest.err
22952 cat conftest.err >&5
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); } &&
22955 { ac_try='test -z "$ac_c_werror_flag"
22956 || test ! -s conftest.err'
22957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958 (eval $ac_try) 2>&5
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); }; } &&
22962 { ac_try='test -s conftest.$ac_objext'
22963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22964 (eval $ac_try) 2>&5
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); }; }; then
22968 gt_cv_inttypes_pri_broken=no
22970 echo "$as_me: failed program was:" >&5
22971 sed 's/^/| /' conftest.$ac_ext >&5
22973 gt_cv_inttypes_pri_broken=yes
22975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22978 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
22979 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
22981 if test "$gt_cv_inttypes_pri_broken" = yes; then
22983 cat >>confdefs.h <<_ACEOF
22984 #define PRI_MACROS_BROKEN 1
22991 for ac_header in stdint.h
22993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22995 echo "$as_me:$LINENO: checking for $ac_header" >&5
22996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22998 echo $ECHO_N "(cached) $ECHO_C" >&6
23000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23003 # Is the header compilable?
23004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23006 cat >conftest.$ac_ext <<_ACEOF
23009 cat confdefs.h >>conftest.$ac_ext
23010 cat >>conftest.$ac_ext <<_ACEOF
23011 /* end confdefs.h. */
23012 $ac_includes_default
23013 #include <$ac_header>
23015 rm -f conftest.$ac_objext
23016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23017 (eval $ac_compile) 2>conftest.er1
23019 grep -v '^ *+' conftest.er1 >conftest.err
23021 cat conftest.err >&5
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } &&
23024 { ac_try='test -z "$ac_c_werror_flag"
23025 || test ! -s conftest.err'
23026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23027 (eval $ac_try) 2>&5
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); }; } &&
23031 { ac_try='test -s conftest.$ac_objext'
23032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23033 (eval $ac_try) 2>&5
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); }; }; then
23037 ac_header_compiler=yes
23039 echo "$as_me: failed program was:" >&5
23040 sed 's/^/| /' conftest.$ac_ext >&5
23042 ac_header_compiler=no
23044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23046 echo "${ECHO_T}$ac_header_compiler" >&6
23048 # Is the header present?
23049 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23051 cat >conftest.$ac_ext <<_ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23057 #include <$ac_header>
23059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23062 grep -v '^ *+' conftest.er1 >conftest.err
23064 cat conftest.err >&5
23065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); } >/dev/null; then
23067 if test -s conftest.err; then
23068 ac_cpp_err=$ac_c_preproc_warn_flag
23069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23076 if test -z "$ac_cpp_err"; then
23077 ac_header_preproc=yes
23079 echo "$as_me: failed program was:" >&5
23080 sed 's/^/| /' conftest.$ac_ext >&5
23082 ac_header_preproc=no
23084 rm -f conftest.err conftest.$ac_ext
23085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23086 echo "${ECHO_T}$ac_header_preproc" >&6
23088 # So? What about this header?
23089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23095 ac_header_preproc=yes
23098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23105 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23112 ## ------------------------------------------ ##
23113 ## Report this to the AC_PACKAGE_NAME lists. ##
23114 ## ------------------------------------------ ##
23117 sed "s/^/$as_me: WARNING: /" >&2
23120 echo "$as_me:$LINENO: checking for $ac_header" >&5
23121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23123 echo $ECHO_N "(cached) $ECHO_C" >&6
23125 eval "$as_ac_Header=\$ac_header_preproc"
23127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23132 cat >>confdefs.h <<_ACEOF
23133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23140 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
23141 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
23143 cat >conftest.$ac_ext <<_ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h. */
23150 #include <limits.h>
23152 #include <stdint.h>
23159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23160 $EGREP "Found it" >/dev/null 2>&1; then
23165 if test -z "$result"; then
23166 if test "$cross_compiling" = yes; then
23167 # Depending upon the size, compute the lo and hi bounds.
23168 cat >conftest.$ac_ext <<_ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h. */
23174 #include <stddef.h>
23178 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
23185 rm -f conftest.$ac_objext
23186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23187 (eval $ac_compile) 2>conftest.er1
23189 grep -v '^ *+' conftest.er1 >conftest.err
23191 cat conftest.err >&5
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); } &&
23194 { ac_try='test -z "$ac_c_werror_flag"
23195 || test ! -s conftest.err'
23196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197 (eval $ac_try) 2>&5
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); }; } &&
23201 { ac_try='test -s conftest.$ac_objext'
23202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23203 (eval $ac_try) 2>&5
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); }; }; then
23209 cat >conftest.$ac_ext <<_ACEOF
23212 cat confdefs.h >>conftest.$ac_ext
23213 cat >>conftest.$ac_ext <<_ACEOF
23214 /* end confdefs.h. */
23215 #include <stddef.h>
23219 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
23226 rm -f conftest.$ac_objext
23227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23228 (eval $ac_compile) 2>conftest.er1
23230 grep -v '^ *+' conftest.er1 >conftest.err
23232 cat conftest.err >&5
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); } &&
23235 { ac_try='test -z "$ac_c_werror_flag"
23236 || test ! -s conftest.err'
23237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238 (eval $ac_try) 2>&5
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; } &&
23242 { ac_try='test -s conftest.$ac_objext'
23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; }; then
23248 ac_hi=$ac_mid; break
23250 echo "$as_me: failed program was:" >&5
23251 sed 's/^/| /' conftest.$ac_ext >&5
23253 ac_lo=`expr $ac_mid + 1`
23254 if test $ac_lo -le $ac_mid; then
23258 ac_mid=`expr 2 '*' $ac_mid + 1`
23260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23263 echo "$as_me: failed program was:" >&5
23264 sed 's/^/| /' conftest.$ac_ext >&5
23266 cat >conftest.$ac_ext <<_ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h. */
23272 #include <stddef.h>
23276 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
23283 rm -f conftest.$ac_objext
23284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23285 (eval $ac_compile) 2>conftest.er1
23287 grep -v '^ *+' conftest.er1 >conftest.err
23289 cat conftest.err >&5
23290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291 (exit $ac_status); } &&
23292 { ac_try='test -z "$ac_c_werror_flag"
23293 || test ! -s conftest.err'
23294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295 (eval $ac_try) 2>&5
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); }; } &&
23299 { ac_try='test -s conftest.$ac_objext'
23300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301 (eval $ac_try) 2>&5
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); }; }; then
23307 cat >conftest.$ac_ext <<_ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h. */
23313 #include <stddef.h>
23317 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
23324 rm -f conftest.$ac_objext
23325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23326 (eval $ac_compile) 2>conftest.er1
23328 grep -v '^ *+' conftest.er1 >conftest.err
23330 cat conftest.err >&5
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); } &&
23333 { ac_try='test -z "$ac_c_werror_flag"
23334 || test ! -s conftest.err'
23335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336 (eval $ac_try) 2>&5
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); }; } &&
23340 { ac_try='test -s conftest.$ac_objext'
23341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23342 (eval $ac_try) 2>&5
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); }; }; then
23346 ac_lo=$ac_mid; break
23348 echo "$as_me: failed program was:" >&5
23349 sed 's/^/| /' conftest.$ac_ext >&5
23351 ac_hi=`expr '(' $ac_mid ')' - 1`
23352 if test $ac_mid -le $ac_hi; then
23356 ac_mid=`expr 2 '*' $ac_mid`
23358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23361 echo "$as_me: failed program was:" >&5
23362 sed 's/^/| /' conftest.$ac_ext >&5
23366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23369 # Binary search between lo and hi bounds.
23370 while test "x$ac_lo" != "x$ac_hi"; do
23371 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23372 cat >conftest.$ac_ext <<_ACEOF
23375 cat confdefs.h >>conftest.$ac_ext
23376 cat >>conftest.$ac_ext <<_ACEOF
23377 /* end confdefs.h. */
23378 #include <stddef.h>
23382 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
23389 rm -f conftest.$ac_objext
23390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23391 (eval $ac_compile) 2>conftest.er1
23393 grep -v '^ *+' conftest.er1 >conftest.err
23395 cat conftest.err >&5
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); } &&
23398 { ac_try='test -z "$ac_c_werror_flag"
23399 || test ! -s conftest.err'
23400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23401 (eval $ac_try) 2>&5
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); }; } &&
23405 { ac_try='test -s conftest.$ac_objext'
23406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23407 (eval $ac_try) 2>&5
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); }; }; then
23413 echo "$as_me: failed program was:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23416 ac_lo=`expr '(' $ac_mid ')' + 1`
23418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23421 ?*) res_hi=$ac_lo;;
23425 if test "$cross_compiling" = yes; then
23426 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23427 See \`config.log' for more details." >&5
23428 echo "$as_me: error: cannot run test program while cross compiling
23429 See \`config.log' for more details." >&2;}
23430 { (exit 1); exit 1; }; }
23432 cat >conftest.$ac_ext <<_ACEOF
23435 cat confdefs.h >>conftest.$ac_ext
23436 cat >>conftest.$ac_ext <<_ACEOF
23437 /* end confdefs.h. */
23438 #include <stddef.h>
23439 long longval () { return ~(size_t)0 / 10; }
23440 unsigned long ulongval () { return ~(size_t)0 / 10; }
23442 #include <stdlib.h>
23447 FILE *f = fopen ("conftest.val", "w");
23450 if ((~(size_t)0 / 10) < 0)
23452 long i = longval ();
23453 if (i != (~(size_t)0 / 10))
23455 fprintf (f, "%ld\n", i);
23459 unsigned long i = ulongval ();
23460 if (i != (~(size_t)0 / 10))
23462 fprintf (f, "%lu\n", i);
23464 exit (ferror (f) || fclose (f) != 0);
23470 rm -f conftest$ac_exeext
23471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23472 (eval $ac_link) 2>&5
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23477 (eval $ac_try) 2>&5
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); }; }; then
23481 res_hi=`cat conftest.val`
23483 echo "$as_me: program exited with status $ac_status" >&5
23484 echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23487 ( exit $ac_status )
23490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23494 if test "$cross_compiling" = yes; then
23495 # Depending upon the size, compute the lo and hi bounds.
23496 cat >conftest.$ac_ext <<_ACEOF
23499 cat confdefs.h >>conftest.$ac_ext
23500 cat >>conftest.$ac_ext <<_ACEOF
23501 /* end confdefs.h. */
23502 #include <stddef.h>
23506 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
23513 rm -f conftest.$ac_objext
23514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23515 (eval $ac_compile) 2>conftest.er1
23517 grep -v '^ *+' conftest.er1 >conftest.err
23519 cat conftest.err >&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } &&
23522 { ac_try='test -z "$ac_c_werror_flag"
23523 || test ! -s conftest.err'
23524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23525 (eval $ac_try) 2>&5
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); }; } &&
23529 { ac_try='test -s conftest.$ac_objext'
23530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23531 (eval $ac_try) 2>&5
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); }; }; then
23537 cat >conftest.$ac_ext <<_ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h. */
23543 #include <stddef.h>
23547 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
23554 rm -f conftest.$ac_objext
23555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23556 (eval $ac_compile) 2>conftest.er1
23558 grep -v '^ *+' conftest.er1 >conftest.err
23560 cat conftest.err >&5
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); } &&
23563 { ac_try='test -z "$ac_c_werror_flag"
23564 || test ! -s conftest.err'
23565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566 (eval $ac_try) 2>&5
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); }; } &&
23570 { ac_try='test -s conftest.$ac_objext'
23571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23572 (eval $ac_try) 2>&5
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); }; }; then
23576 ac_hi=$ac_mid; break
23578 echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23581 ac_lo=`expr $ac_mid + 1`
23582 if test $ac_lo -le $ac_mid; then
23586 ac_mid=`expr 2 '*' $ac_mid + 1`
23588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23591 echo "$as_me: failed program was:" >&5
23592 sed 's/^/| /' conftest.$ac_ext >&5
23594 cat >conftest.$ac_ext <<_ACEOF
23597 cat confdefs.h >>conftest.$ac_ext
23598 cat >>conftest.$ac_ext <<_ACEOF
23599 /* end confdefs.h. */
23600 #include <stddef.h>
23604 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
23611 rm -f conftest.$ac_objext
23612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23613 (eval $ac_compile) 2>conftest.er1
23615 grep -v '^ *+' conftest.er1 >conftest.err
23617 cat conftest.err >&5
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); } &&
23620 { ac_try='test -z "$ac_c_werror_flag"
23621 || test ! -s conftest.err'
23622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23623 (eval $ac_try) 2>&5
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); }; } &&
23627 { ac_try='test -s conftest.$ac_objext'
23628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23629 (eval $ac_try) 2>&5
23631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632 (exit $ac_status); }; }; then
23635 cat >conftest.$ac_ext <<_ACEOF
23638 cat confdefs.h >>conftest.$ac_ext
23639 cat >>conftest.$ac_ext <<_ACEOF
23640 /* end confdefs.h. */
23641 #include <stddef.h>
23645 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
23652 rm -f conftest.$ac_objext
23653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23654 (eval $ac_compile) 2>conftest.er1
23656 grep -v '^ *+' conftest.er1 >conftest.err
23658 cat conftest.err >&5
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); } &&
23661 { ac_try='test -z "$ac_c_werror_flag"
23662 || test ! -s conftest.err'
23663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23664 (eval $ac_try) 2>&5
23666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667 (exit $ac_status); }; } &&
23668 { ac_try='test -s conftest.$ac_objext'
23669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23670 (eval $ac_try) 2>&5
23672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673 (exit $ac_status); }; }; then
23674 ac_lo=$ac_mid; break
23676 echo "$as_me: failed program was:" >&5
23677 sed 's/^/| /' conftest.$ac_ext >&5
23679 ac_hi=`expr '(' $ac_mid ')' - 1`
23680 if test $ac_mid -le $ac_hi; then
23684 ac_mid=`expr 2 '*' $ac_mid`
23686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23689 echo "$as_me: failed program was:" >&5
23690 sed 's/^/| /' conftest.$ac_ext >&5
23694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23697 # Binary search between lo and hi bounds.
23698 while test "x$ac_lo" != "x$ac_hi"; do
23699 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23700 cat >conftest.$ac_ext <<_ACEOF
23703 cat confdefs.h >>conftest.$ac_ext
23704 cat >>conftest.$ac_ext <<_ACEOF
23705 /* end confdefs.h. */
23706 #include <stddef.h>
23710 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
23717 rm -f conftest.$ac_objext
23718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23719 (eval $ac_compile) 2>conftest.er1
23721 grep -v '^ *+' conftest.er1 >conftest.err
23723 cat conftest.err >&5
23724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725 (exit $ac_status); } &&
23726 { ac_try='test -z "$ac_c_werror_flag"
23727 || test ! -s conftest.err'
23728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23729 (eval $ac_try) 2>&5
23731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732 (exit $ac_status); }; } &&
23733 { ac_try='test -s conftest.$ac_objext'
23734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23735 (eval $ac_try) 2>&5
23737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); }; }; then
23741 echo "$as_me: failed program was:" >&5
23742 sed 's/^/| /' conftest.$ac_ext >&5
23744 ac_lo=`expr '(' $ac_mid ')' + 1`
23746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23749 ?*) res_lo=$ac_lo;;
23753 if test "$cross_compiling" = yes; then
23754 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23755 See \`config.log' for more details." >&5
23756 echo "$as_me: error: cannot run test program while cross compiling
23757 See \`config.log' for more details." >&2;}
23758 { (exit 1); exit 1; }; }
23760 cat >conftest.$ac_ext <<_ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h. */
23766 #include <stddef.h>
23767 long longval () { return ~(size_t)0 % 10; }
23768 unsigned long ulongval () { return ~(size_t)0 % 10; }
23770 #include <stdlib.h>
23775 FILE *f = fopen ("conftest.val", "w");
23778 if ((~(size_t)0 % 10) < 0)
23780 long i = longval ();
23781 if (i != (~(size_t)0 % 10))
23783 fprintf (f, "%ld\n", i);
23787 unsigned long i = ulongval ();
23788 if (i != (~(size_t)0 % 10))
23790 fprintf (f, "%lu\n", i);
23792 exit (ferror (f) || fclose (f) != 0);
23798 rm -f conftest$ac_exeext
23799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23800 (eval $ac_link) 2>&5
23802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23805 (eval $ac_try) 2>&5
23807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808 (exit $ac_status); }; }; then
23809 res_lo=`cat conftest.val`
23811 echo "$as_me: program exited with status $ac_status" >&5
23812 echo "$as_me: failed program was:" >&5
23813 sed 's/^/| /' conftest.$ac_ext >&5
23815 ( exit $ac_status )
23818 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23822 if test "$cross_compiling" = yes; then
23823 # Depending upon the size, compute the lo and hi bounds.
23824 cat >conftest.$ac_ext <<_ACEOF
23827 cat confdefs.h >>conftest.$ac_ext
23828 cat >>conftest.$ac_ext <<_ACEOF
23829 /* end confdefs.h. */
23830 #include <stddef.h>
23834 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
23841 rm -f conftest.$ac_objext
23842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23843 (eval $ac_compile) 2>conftest.er1
23845 grep -v '^ *+' conftest.er1 >conftest.err
23847 cat conftest.err >&5
23848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849 (exit $ac_status); } &&
23850 { ac_try='test -z "$ac_c_werror_flag"
23851 || test ! -s conftest.err'
23852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23853 (eval $ac_try) 2>&5
23855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23856 (exit $ac_status); }; } &&
23857 { ac_try='test -s conftest.$ac_objext'
23858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23859 (eval $ac_try) 2>&5
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); }; }; then
23865 cat >conftest.$ac_ext <<_ACEOF
23868 cat confdefs.h >>conftest.$ac_ext
23869 cat >>conftest.$ac_ext <<_ACEOF
23870 /* end confdefs.h. */
23871 #include <stddef.h>
23875 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
23882 rm -f conftest.$ac_objext
23883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23884 (eval $ac_compile) 2>conftest.er1
23886 grep -v '^ *+' conftest.er1 >conftest.err
23888 cat conftest.err >&5
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); } &&
23891 { ac_try='test -z "$ac_c_werror_flag"
23892 || test ! -s conftest.err'
23893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23894 (eval $ac_try) 2>&5
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); }; } &&
23898 { ac_try='test -s conftest.$ac_objext'
23899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900 (eval $ac_try) 2>&5
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); }; }; then
23904 ac_hi=$ac_mid; break
23906 echo "$as_me: failed program was:" >&5
23907 sed 's/^/| /' conftest.$ac_ext >&5
23909 ac_lo=`expr $ac_mid + 1`
23910 if test $ac_lo -le $ac_mid; then
23914 ac_mid=`expr 2 '*' $ac_mid + 1`
23916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23919 echo "$as_me: failed program was:" >&5
23920 sed 's/^/| /' conftest.$ac_ext >&5
23922 cat >conftest.$ac_ext <<_ACEOF
23925 cat confdefs.h >>conftest.$ac_ext
23926 cat >>conftest.$ac_ext <<_ACEOF
23927 /* end confdefs.h. */
23928 #include <stddef.h>
23932 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
23939 rm -f conftest.$ac_objext
23940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23941 (eval $ac_compile) 2>conftest.er1
23943 grep -v '^ *+' conftest.er1 >conftest.err
23945 cat conftest.err >&5
23946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23947 (exit $ac_status); } &&
23948 { ac_try='test -z "$ac_c_werror_flag"
23949 || test ! -s conftest.err'
23950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23951 (eval $ac_try) 2>&5
23953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); }; } &&
23955 { ac_try='test -s conftest.$ac_objext'
23956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23957 (eval $ac_try) 2>&5
23959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960 (exit $ac_status); }; }; then
23963 cat >conftest.$ac_ext <<_ACEOF
23966 cat confdefs.h >>conftest.$ac_ext
23967 cat >>conftest.$ac_ext <<_ACEOF
23968 /* end confdefs.h. */
23969 #include <stddef.h>
23973 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
23980 rm -f conftest.$ac_objext
23981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23982 (eval $ac_compile) 2>conftest.er1
23984 grep -v '^ *+' conftest.er1 >conftest.err
23986 cat conftest.err >&5
23987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988 (exit $ac_status); } &&
23989 { ac_try='test -z "$ac_c_werror_flag"
23990 || test ! -s conftest.err'
23991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23992 (eval $ac_try) 2>&5
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); }; } &&
23996 { ac_try='test -s conftest.$ac_objext'
23997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23998 (eval $ac_try) 2>&5
24000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001 (exit $ac_status); }; }; then
24002 ac_lo=$ac_mid; break
24004 echo "$as_me: failed program was:" >&5
24005 sed 's/^/| /' conftest.$ac_ext >&5
24007 ac_hi=`expr '(' $ac_mid ')' - 1`
24008 if test $ac_mid -le $ac_hi; then
24012 ac_mid=`expr 2 '*' $ac_mid`
24014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24017 echo "$as_me: failed program was:" >&5
24018 sed 's/^/| /' conftest.$ac_ext >&5
24022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24025 # Binary search between lo and hi bounds.
24026 while test "x$ac_lo" != "x$ac_hi"; do
24027 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24028 cat >conftest.$ac_ext <<_ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h. */
24034 #include <stddef.h>
24038 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
24045 rm -f conftest.$ac_objext
24046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24047 (eval $ac_compile) 2>conftest.er1
24049 grep -v '^ *+' conftest.er1 >conftest.err
24051 cat conftest.err >&5
24052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); } &&
24054 { ac_try='test -z "$ac_c_werror_flag"
24055 || test ! -s conftest.err'
24056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24057 (eval $ac_try) 2>&5
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); }; } &&
24061 { ac_try='test -s conftest.$ac_objext'
24062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24063 (eval $ac_try) 2>&5
24065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); }; }; then
24069 echo "$as_me: failed program was:" >&5
24070 sed 's/^/| /' conftest.$ac_ext >&5
24072 ac_lo=`expr '(' $ac_mid ')' + 1`
24074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24077 ?*) fits_in_uint=$ac_lo;;
24081 if test "$cross_compiling" = yes; then
24082 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24083 See \`config.log' for more details." >&5
24084 echo "$as_me: error: cannot run test program while cross compiling
24085 See \`config.log' for more details." >&2;}
24086 { (exit 1); exit 1; }; }
24088 cat >conftest.$ac_ext <<_ACEOF
24091 cat confdefs.h >>conftest.$ac_ext
24092 cat >>conftest.$ac_ext <<_ACEOF
24093 /* end confdefs.h. */
24094 #include <stddef.h>
24095 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
24096 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
24098 #include <stdlib.h>
24103 FILE *f = fopen ("conftest.val", "w");
24106 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
24108 long i = longval ();
24109 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
24111 fprintf (f, "%ld\n", i);
24115 unsigned long i = ulongval ();
24116 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
24118 fprintf (f, "%lu\n", i);
24120 exit (ferror (f) || fclose (f) != 0);
24126 rm -f conftest$ac_exeext
24127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24128 (eval $ac_link) 2>&5
24130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24133 (eval $ac_try) 2>&5
24135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); }; }; then
24137 fits_in_uint=`cat conftest.val`
24139 echo "$as_me: program exited with status $ac_status" >&5
24140 echo "$as_me: failed program was:" >&5
24141 sed 's/^/| /' conftest.$ac_ext >&5
24143 ( exit $ac_status )
24146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24150 if test "$fits_in_uint" = 1; then
24151 cat >conftest.$ac_ext <<_ACEOF
24154 cat confdefs.h >>conftest.$ac_ext
24155 cat >>conftest.$ac_ext <<_ACEOF
24156 /* end confdefs.h. */
24157 #include <stddef.h>
24159 extern unsigned long foo;
24169 rm -f conftest.$ac_objext
24170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24171 (eval $ac_compile) 2>conftest.er1
24173 grep -v '^ *+' conftest.er1 >conftest.err
24175 cat conftest.err >&5
24176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177 (exit $ac_status); } &&
24178 { ac_try='test -z "$ac_c_werror_flag"
24179 || test ! -s conftest.err'
24180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24181 (eval $ac_try) 2>&5
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); }; } &&
24185 { ac_try='test -s conftest.$ac_objext'
24186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24187 (eval $ac_try) 2>&5
24189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190 (exit $ac_status); }; }; then
24193 echo "$as_me: failed program was:" >&5
24194 sed 's/^/| /' conftest.$ac_ext >&5
24197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24199 if test -z "$result"; then
24200 if test "$fits_in_uint" = 1; then
24201 result="$res_hi$res_lo"U
24203 result="$res_hi$res_lo"UL
24206 result='~(size_t)0'
24209 echo "$as_me:$LINENO: result: $result" >&5
24210 echo "${ECHO_T}$result" >&6
24211 if test "$result" != yes; then
24213 cat >>confdefs.h <<_ACEOF
24214 #define SIZE_MAX $result
24223 for ac_header in stdint.h
24225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24227 echo "$as_me:$LINENO: checking for $ac_header" >&5
24228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24230 echo $ECHO_N "(cached) $ECHO_C" >&6
24232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24235 # Is the header compilable?
24236 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24238 cat >conftest.$ac_ext <<_ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h. */
24244 $ac_includes_default
24245 #include <$ac_header>
24247 rm -f conftest.$ac_objext
24248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24249 (eval $ac_compile) 2>conftest.er1
24251 grep -v '^ *+' conftest.er1 >conftest.err
24253 cat conftest.err >&5
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); } &&
24256 { ac_try='test -z "$ac_c_werror_flag"
24257 || test ! -s conftest.err'
24258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24259 (eval $ac_try) 2>&5
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); }; } &&
24263 { ac_try='test -s conftest.$ac_objext'
24264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24265 (eval $ac_try) 2>&5
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); }; }; then
24269 ac_header_compiler=yes
24271 echo "$as_me: failed program was:" >&5
24272 sed 's/^/| /' conftest.$ac_ext >&5
24274 ac_header_compiler=no
24276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24278 echo "${ECHO_T}$ac_header_compiler" >&6
24280 # Is the header present?
24281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24283 cat >conftest.$ac_ext <<_ACEOF
24286 cat confdefs.h >>conftest.$ac_ext
24287 cat >>conftest.$ac_ext <<_ACEOF
24288 /* end confdefs.h. */
24289 #include <$ac_header>
24291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24294 grep -v '^ *+' conftest.er1 >conftest.err
24296 cat conftest.err >&5
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); } >/dev/null; then
24299 if test -s conftest.err; then
24300 ac_cpp_err=$ac_c_preproc_warn_flag
24301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24308 if test -z "$ac_cpp_err"; then
24309 ac_header_preproc=yes
24311 echo "$as_me: failed program was:" >&5
24312 sed 's/^/| /' conftest.$ac_ext >&5
24314 ac_header_preproc=no
24316 rm -f conftest.err conftest.$ac_ext
24317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24318 echo "${ECHO_T}$ac_header_preproc" >&6
24320 # So? What about this header?
24321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24327 ac_header_preproc=yes
24330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24333 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24337 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24344 ## ------------------------------------------ ##
24345 ## Report this to the AC_PACKAGE_NAME lists. ##
24346 ## ------------------------------------------ ##
24349 sed "s/^/$as_me: WARNING: /" >&2
24352 echo "$as_me:$LINENO: checking for $ac_header" >&5
24353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24355 echo $ECHO_N "(cached) $ECHO_C" >&6
24357 eval "$as_ac_Header=\$ac_header_preproc"
24359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24364 cat >>confdefs.h <<_ACEOF
24365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24374 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
24375 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
24376 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
24377 echo $ECHO_N "(cached) $ECHO_C" >&6
24379 gt_save_CPPFLAGS="$CPPFLAGS"
24380 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
24381 gt_save_LIBS="$LIBS"
24382 LIBS="$LIBS -framework CoreFoundation"
24383 cat >conftest.$ac_ext <<_ACEOF
24386 cat confdefs.h >>conftest.$ac_ext
24387 cat >>conftest.$ac_ext <<_ACEOF
24388 /* end confdefs.h. */
24389 #include <CFPreferences.h>
24393 CFPreferencesCopyAppValue(NULL, NULL)
24398 rm -f conftest.$ac_objext conftest$ac_exeext
24399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24400 (eval $ac_link) 2>conftest.er1
24402 grep -v '^ *+' conftest.er1 >conftest.err
24404 cat conftest.err >&5
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); } &&
24407 { ac_try='test -z "$ac_c_werror_flag"
24408 || test ! -s conftest.err'
24409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24410 (eval $ac_try) 2>&5
24412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413 (exit $ac_status); }; } &&
24414 { ac_try='test -s conftest$ac_exeext'
24415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24416 (eval $ac_try) 2>&5
24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419 (exit $ac_status); }; }; then
24420 gt_cv_func_CFPreferencesCopyAppValue=yes
24422 echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24425 gt_cv_func_CFPreferencesCopyAppValue=no
24427 rm -f conftest.err conftest.$ac_objext \
24428 conftest$ac_exeext conftest.$ac_ext
24429 CPPFLAGS="$gt_save_CPPFLAGS"
24430 LIBS="$gt_save_LIBS"
24432 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
24433 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
24434 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
24436 cat >>confdefs.h <<\_ACEOF
24437 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
24441 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
24442 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
24443 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
24444 echo $ECHO_N "(cached) $ECHO_C" >&6
24446 gt_save_CPPFLAGS="$CPPFLAGS"
24447 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
24448 gt_save_LIBS="$LIBS"
24449 LIBS="$LIBS -framework CoreFoundation"
24450 cat >conftest.$ac_ext <<_ACEOF
24453 cat confdefs.h >>conftest.$ac_ext
24454 cat >>conftest.$ac_ext <<_ACEOF
24455 /* end confdefs.h. */
24456 #include <CFLocale.h>
24460 CFLocaleCopyCurrent();
24465 rm -f conftest.$ac_objext conftest$ac_exeext
24466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24467 (eval $ac_link) 2>conftest.er1
24469 grep -v '^ *+' conftest.er1 >conftest.err
24471 cat conftest.err >&5
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); } &&
24474 { ac_try='test -z "$ac_c_werror_flag"
24475 || test ! -s conftest.err'
24476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24477 (eval $ac_try) 2>&5
24479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); }; } &&
24481 { ac_try='test -s conftest$ac_exeext'
24482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24483 (eval $ac_try) 2>&5
24485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486 (exit $ac_status); }; }; then
24487 gt_cv_func_CFLocaleCopyCurrent=yes
24489 echo "$as_me: failed program was:" >&5
24490 sed 's/^/| /' conftest.$ac_ext >&5
24492 gt_cv_func_CFLocaleCopyCurrent=no
24494 rm -f conftest.err conftest.$ac_objext \
24495 conftest$ac_exeext conftest.$ac_ext
24496 CPPFLAGS="$gt_save_CPPFLAGS"
24497 LIBS="$gt_save_LIBS"
24499 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
24500 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
24501 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24503 cat >>confdefs.h <<\_ACEOF
24504 #define HAVE_CFLOCALECOPYCURRENT 1
24509 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24510 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
24515 if test "X$prefix" = "XNONE"; then
24516 acl_final_prefix="$ac_default_prefix"
24518 acl_final_prefix="$prefix"
24520 if test "X$exec_prefix" = "XNONE"; then
24521 acl_final_exec_prefix='${prefix}'
24523 acl_final_exec_prefix="$exec_prefix"
24525 acl_save_prefix="$prefix"
24526 prefix="$acl_final_prefix"
24527 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
24528 prefix="$acl_save_prefix"
24531 # Check whether --with-gnu-ld or --without-gnu-ld was given.
24532 if test "${with_gnu_ld+set}" = set; then
24533 withval="$with_gnu_ld"
24534 test "$withval" = no || with_gnu_ld=yes
24538 # Prepare PATH_SEPARATOR.
24539 # The user is always right.
24540 if test "${PATH_SEPARATOR+set}" != set; then
24541 echo "#! /bin/sh" >conf$$.sh
24542 echo "exit 0" >>conf$$.sh
24544 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24552 if test "$GCC" = yes; then
24553 # Check if gcc -print-prog-name=ld gives a path.
24554 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
24555 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
24558 # gcc leaves a trailing carriage return which upsets mingw
24559 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
24561 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
24564 # Accept absolute paths.
24565 [\\/]* | [A-Za-z]:[\\/]*)
24566 re_direlt='/[^/][^/]*/\.\./'
24567 # Canonicalize the path of ld
24568 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
24569 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
24570 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
24572 test -z "$LD" && LD="$ac_prog"
24575 # If it fails, then pretend we aren't using GCC.
24579 # If it is relative, then search for the first ld in PATH.
24580 with_gnu_ld=unknown
24583 elif test "$with_gnu_ld" = yes; then
24584 echo "$as_me:$LINENO: checking for GNU ld" >&5
24585 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
24587 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
24588 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
24590 if test "${acl_cv_path_LD+set}" = set; then
24591 echo $ECHO_N "(cached) $ECHO_C" >&6
24593 if test -z "$LD"; then
24594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
24595 for ac_dir in $PATH; do
24596 test -z "$ac_dir" && ac_dir=.
24597 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
24598 acl_cv_path_LD="$ac_dir/$ac_prog"
24599 # Check to see if the program is GNU ld. I'd rather use --version,
24600 # but apparently some GNU ld's only accept -v.
24601 # Break only if it was the GNU/non-GNU ld that we prefer.
24602 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
24603 *GNU* | *'with BFD'*)
24604 test "$with_gnu_ld" != no && break ;;
24606 test "$with_gnu_ld" != yes && break ;;
24612 acl_cv_path_LD="$LD" # Let the user override the test with a path.
24616 LD="$acl_cv_path_LD"
24617 if test -n "$LD"; then
24618 echo "$as_me:$LINENO: result: $LD" >&5
24619 echo "${ECHO_T}$LD" >&6
24621 echo "$as_me:$LINENO: result: no" >&5
24622 echo "${ECHO_T}no" >&6
24624 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
24625 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
24626 { (exit 1); exit 1; }; }
24627 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
24628 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
24629 if test "${acl_cv_prog_gnu_ld+set}" = set; then
24630 echo $ECHO_N "(cached) $ECHO_C" >&6
24632 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
24633 case `$LD -v 2>&1 </dev/null` in
24634 *GNU* | *'with BFD'*)
24635 acl_cv_prog_gnu_ld=yes ;;
24637 acl_cv_prog_gnu_ld=no ;;
24640 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
24641 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
24642 with_gnu_ld=$acl_cv_prog_gnu_ld
24647 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
24648 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
24649 if test "${acl_cv_rpath+set}" = set; then
24650 echo $ECHO_N "(cached) $ECHO_C" >&6
24653 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
24654 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
24656 rm -f ./conftest.sh
24660 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
24661 echo "${ECHO_T}$acl_cv_rpath" >&6
24663 libext="$acl_cv_libext"
24664 shlibext="$acl_cv_shlibext"
24665 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
24666 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
24667 hardcode_direct="$acl_cv_hardcode_direct"
24668 hardcode_minus_L="$acl_cv_hardcode_minus_L"
24669 # Check whether --enable-rpath or --disable-rpath was given.
24670 if test "${enable_rpath+set}" = set; then
24671 enableval="$enable_rpath"
24685 acl_save_prefix="$prefix"
24686 prefix="$acl_final_prefix"
24687 acl_save_exec_prefix="$exec_prefix"
24688 exec_prefix="$acl_final_exec_prefix"
24690 eval additional_includedir=\"$includedir\"
24691 eval additional_libdir=\"$libdir\"
24693 exec_prefix="$acl_save_exec_prefix"
24694 prefix="$acl_save_prefix"
24697 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
24698 if test "${with_libiconv_prefix+set}" = set; then
24699 withval="$with_libiconv_prefix"
24701 if test "X$withval" = "Xno"; then
24704 if test "X$withval" = "X"; then
24706 acl_save_prefix="$prefix"
24707 prefix="$acl_final_prefix"
24708 acl_save_exec_prefix="$exec_prefix"
24709 exec_prefix="$acl_final_exec_prefix"
24711 eval additional_includedir=\"$includedir\"
24712 eval additional_libdir=\"$libdir\"
24714 exec_prefix="$acl_save_exec_prefix"
24715 prefix="$acl_save_prefix"
24718 additional_includedir="$withval/include"
24719 additional_libdir="$withval/lib"
24729 names_already_handled=
24730 names_next_round='iconv '
24731 while test -n "$names_next_round"; do
24732 names_this_round="$names_next_round"
24734 for name in $names_this_round; do
24736 for n in $names_already_handled; do
24737 if test "$n" = "$name"; then
24738 already_handled=yes
24742 if test -z "$already_handled"; then
24743 names_already_handled="$names_already_handled $name"
24744 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24745 eval value=\"\$HAVE_LIB$uppername\"
24746 if test -n "$value"; then
24747 if test "$value" = yes; then
24748 eval value=\"\$LIB$uppername\"
24749 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
24750 eval value=\"\$LTLIB$uppername\"
24751 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
24760 if test $use_additional = yes; then
24761 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
24762 found_dir="$additional_libdir"
24763 found_so="$additional_libdir/lib$name.$shlibext"
24764 if test -f "$additional_libdir/lib$name.la"; then
24765 found_la="$additional_libdir/lib$name.la"
24768 if test -f "$additional_libdir/lib$name.$libext"; then
24769 found_dir="$additional_libdir"
24770 found_a="$additional_libdir/lib$name.$libext"
24771 if test -f "$additional_libdir/lib$name.la"; then
24772 found_la="$additional_libdir/lib$name.la"
24777 if test "X$found_dir" = "X"; then
24778 for x in $LDFLAGS $LTLIBICONV; do
24780 acl_save_prefix="$prefix"
24781 prefix="$acl_final_prefix"
24782 acl_save_exec_prefix="$exec_prefix"
24783 exec_prefix="$acl_final_exec_prefix"
24785 exec_prefix="$acl_save_exec_prefix"
24786 prefix="$acl_save_prefix"
24790 dir=`echo "X$x" | sed -e 's/^X-L//'`
24791 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24793 found_so="$dir/lib$name.$shlibext"
24794 if test -f "$dir/lib$name.la"; then
24795 found_la="$dir/lib$name.la"
24798 if test -f "$dir/lib$name.$libext"; then
24800 found_a="$dir/lib$name.$libext"
24801 if test -f "$dir/lib$name.la"; then
24802 found_la="$dir/lib$name.la"
24808 if test "X$found_dir" != "X"; then
24813 if test "X$found_dir" != "X"; then
24814 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
24815 if test "X$found_so" != "X"; then
24816 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
24817 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24820 for x in $ltrpathdirs; do
24821 if test "X$x" = "X$found_dir"; then
24826 if test -z "$haveit"; then
24827 ltrpathdirs="$ltrpathdirs $found_dir"
24829 if test "$hardcode_direct" = yes; then
24830 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24832 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24833 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24835 for x in $rpathdirs; do
24836 if test "X$x" = "X$found_dir"; then
24841 if test -z "$haveit"; then
24842 rpathdirs="$rpathdirs $found_dir"
24846 for x in $LDFLAGS $LIBICONV; do
24848 acl_save_prefix="$prefix"
24849 prefix="$acl_final_prefix"
24850 acl_save_exec_prefix="$exec_prefix"
24851 exec_prefix="$acl_final_exec_prefix"
24853 exec_prefix="$acl_save_exec_prefix"
24854 prefix="$acl_save_prefix"
24856 if test "X$x" = "X-L$found_dir"; then
24861 if test -z "$haveit"; then
24862 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
24864 if test "$hardcode_minus_L" != no; then
24865 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24867 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24873 if test "X$found_a" != "X"; then
24874 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
24876 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
24879 additional_includedir=
24880 case "$found_dir" in
24882 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
24883 additional_includedir="$basedir/include"
24886 if test "X$additional_includedir" != "X"; then
24887 if test "X$additional_includedir" != "X/usr/include"; then
24889 if test "X$additional_includedir" = "X/usr/local/include"; then
24890 if test -n "$GCC"; then
24892 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24896 if test -z "$haveit"; then
24897 for x in $CPPFLAGS $INCICONV; do
24899 acl_save_prefix="$prefix"
24900 prefix="$acl_final_prefix"
24901 acl_save_exec_prefix="$exec_prefix"
24902 exec_prefix="$acl_final_exec_prefix"
24904 exec_prefix="$acl_save_exec_prefix"
24905 prefix="$acl_save_prefix"
24907 if test "X$x" = "X-I$additional_includedir"; then
24912 if test -z "$haveit"; then
24913 if test -d "$additional_includedir"; then
24914 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
24920 if test -n "$found_la"; then
24921 save_libdir="$libdir"
24922 case "$found_la" in
24923 */* | *\\*) . "$found_la" ;;
24924 *) . "./$found_la" ;;
24926 libdir="$save_libdir"
24927 for dep in $dependency_libs; do
24930 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24931 if test "X$additional_libdir" != "X/usr/lib"; then
24933 if test "X$additional_libdir" = "X/usr/local/lib"; then
24934 if test -n "$GCC"; then
24936 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24940 if test -z "$haveit"; then
24942 for x in $LDFLAGS $LIBICONV; do
24944 acl_save_prefix="$prefix"
24945 prefix="$acl_final_prefix"
24946 acl_save_exec_prefix="$exec_prefix"
24947 exec_prefix="$acl_final_exec_prefix"
24949 exec_prefix="$acl_save_exec_prefix"
24950 prefix="$acl_save_prefix"
24952 if test "X$x" = "X-L$additional_libdir"; then
24957 if test -z "$haveit"; then
24958 if test -d "$additional_libdir"; then
24959 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
24963 for x in $LDFLAGS $LTLIBICONV; do
24965 acl_save_prefix="$prefix"
24966 prefix="$acl_final_prefix"
24967 acl_save_exec_prefix="$exec_prefix"
24968 exec_prefix="$acl_final_exec_prefix"
24970 exec_prefix="$acl_save_exec_prefix"
24971 prefix="$acl_save_prefix"
24973 if test "X$x" = "X-L$additional_libdir"; then
24978 if test -z "$haveit"; then
24979 if test -d "$additional_libdir"; then
24980 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
24987 dir=`echo "X$dep" | sed -e 's/^X-R//'`
24988 if test "$enable_rpath" != no; then
24990 for x in $rpathdirs; do
24991 if test "X$x" = "X$dir"; then
24996 if test -z "$haveit"; then
24997 rpathdirs="$rpathdirs $dir"
25000 for x in $ltrpathdirs; do
25001 if test "X$x" = "X$dir"; then
25006 if test -z "$haveit"; then
25007 ltrpathdirs="$ltrpathdirs $dir"
25012 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25015 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25018 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
25019 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
25025 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
25026 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
25032 if test "X$rpathdirs" != "X"; then
25033 if test -n "$hardcode_libdir_separator"; then
25035 for found_dir in $rpathdirs; do
25036 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
25038 acl_save_libdir="$libdir"
25040 eval flag=\"$hardcode_libdir_flag_spec\"
25041 libdir="$acl_save_libdir"
25042 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
25044 for found_dir in $rpathdirs; do
25045 acl_save_libdir="$libdir"
25046 libdir="$found_dir"
25047 eval flag=\"$hardcode_libdir_flag_spec\"
25048 libdir="$acl_save_libdir"
25049 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
25053 if test "X$ltrpathdirs" != "X"; then
25054 for found_dir in $ltrpathdirs; do
25055 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
25066 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25067 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
25068 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25069 echo $ECHO_N "(cached) $ECHO_C" >&6
25071 cat >conftest.$ac_ext <<_ACEOF
25074 cat confdefs.h >>conftest.$ac_ext
25075 cat >>conftest.$ac_ext <<_ACEOF
25076 /* end confdefs.h. */
25077 $ac_includes_default
25081 if ((ptrdiff_t *) 0)
25083 if (sizeof (ptrdiff_t))
25089 rm -f conftest.$ac_objext
25090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25091 (eval $ac_compile) 2>conftest.er1
25093 grep -v '^ *+' conftest.er1 >conftest.err
25095 cat conftest.err >&5
25096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097 (exit $ac_status); } &&
25098 { ac_try='test -z "$ac_c_werror_flag"
25099 || test ! -s conftest.err'
25100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25101 (eval $ac_try) 2>&5
25103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); }; } &&
25105 { ac_try='test -s conftest.$ac_objext'
25106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25107 (eval $ac_try) 2>&5
25109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); }; }; then
25111 ac_cv_type_ptrdiff_t=yes
25113 echo "$as_me: failed program was:" >&5
25114 sed 's/^/| /' conftest.$ac_ext >&5
25116 ac_cv_type_ptrdiff_t=no
25118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25120 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25121 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
25122 if test $ac_cv_type_ptrdiff_t = yes; then
25126 cat >>confdefs.h <<\_ACEOF
25127 #define ptrdiff_t long
25143 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
25144 stdlib.h string.h unistd.h sys/param.h
25146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25148 echo "$as_me:$LINENO: checking for $ac_header" >&5
25149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25151 echo $ECHO_N "(cached) $ECHO_C" >&6
25153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25156 # Is the header compilable?
25157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25159 cat >conftest.$ac_ext <<_ACEOF
25162 cat confdefs.h >>conftest.$ac_ext
25163 cat >>conftest.$ac_ext <<_ACEOF
25164 /* end confdefs.h. */
25165 $ac_includes_default
25166 #include <$ac_header>
25168 rm -f conftest.$ac_objext
25169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25170 (eval $ac_compile) 2>conftest.er1
25172 grep -v '^ *+' conftest.er1 >conftest.err
25174 cat conftest.err >&5
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); } &&
25177 { ac_try='test -z "$ac_c_werror_flag"
25178 || test ! -s conftest.err'
25179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25180 (eval $ac_try) 2>&5
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); }; } &&
25184 { ac_try='test -s conftest.$ac_objext'
25185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25186 (eval $ac_try) 2>&5
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); }; }; then
25190 ac_header_compiler=yes
25192 echo "$as_me: failed program was:" >&5
25193 sed 's/^/| /' conftest.$ac_ext >&5
25195 ac_header_compiler=no
25197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25199 echo "${ECHO_T}$ac_header_compiler" >&6
25201 # Is the header present?
25202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25204 cat >conftest.$ac_ext <<_ACEOF
25207 cat confdefs.h >>conftest.$ac_ext
25208 cat >>conftest.$ac_ext <<_ACEOF
25209 /* end confdefs.h. */
25210 #include <$ac_header>
25212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25215 grep -v '^ *+' conftest.er1 >conftest.err
25217 cat conftest.err >&5
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); } >/dev/null; then
25220 if test -s conftest.err; then
25221 ac_cpp_err=$ac_c_preproc_warn_flag
25222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25229 if test -z "$ac_cpp_err"; then
25230 ac_header_preproc=yes
25232 echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25235 ac_header_preproc=no
25237 rm -f conftest.err conftest.$ac_ext
25238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25239 echo "${ECHO_T}$ac_header_preproc" >&6
25241 # So? What about this header?
25242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25248 ac_header_preproc=yes
25251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25265 ## ------------------------------------------ ##
25266 ## Report this to the AC_PACKAGE_NAME lists. ##
25267 ## ------------------------------------------ ##
25270 sed "s/^/$as_me: WARNING: /" >&2
25273 echo "$as_me:$LINENO: checking for $ac_header" >&5
25274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25276 echo $ECHO_N "(cached) $ECHO_C" >&6
25278 eval "$as_ac_Header=\$ac_header_preproc"
25280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25285 cat >>confdefs.h <<_ACEOF
25286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25316 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
25317 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
25318 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
25321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25322 echo "$as_me:$LINENO: checking for $ac_func" >&5
25323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25324 if eval "test \"\${$as_ac_var+set}\" = set"; then
25325 echo $ECHO_N "(cached) $ECHO_C" >&6
25327 cat >conftest.$ac_ext <<_ACEOF
25330 cat confdefs.h >>conftest.$ac_ext
25331 cat >>conftest.$ac_ext <<_ACEOF
25332 /* end confdefs.h. */
25333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25335 #define $ac_func innocuous_$ac_func
25337 /* System header to define __stub macros and hopefully few prototypes,
25338 which can conflict with char $ac_func (); below.
25339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25340 <limits.h> exists even on freestanding compilers. */
25343 # include <limits.h>
25345 # include <assert.h>
25350 /* Override any gcc2 internal prototype to avoid an error. */
25355 /* We use char because int might match the return type of a gcc2
25356 builtin and then its argument prototype would still apply. */
25358 /* The GNU C library defines this for functions which it implements
25359 to always fail with ENOSYS. Some functions are actually named
25360 something starting with __ and the normal name is an alias. */
25361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25364 char (*f) () = $ac_func;
25373 return f != $ac_func;
25378 rm -f conftest.$ac_objext conftest$ac_exeext
25379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25380 (eval $ac_link) 2>conftest.er1
25382 grep -v '^ *+' conftest.er1 >conftest.err
25384 cat conftest.err >&5
25385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386 (exit $ac_status); } &&
25387 { ac_try='test -z "$ac_c_werror_flag"
25388 || test ! -s conftest.err'
25389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25390 (eval $ac_try) 2>&5
25392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393 (exit $ac_status); }; } &&
25394 { ac_try='test -s conftest$ac_exeext'
25395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25396 (eval $ac_try) 2>&5
25398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25399 (exit $ac_status); }; }; then
25400 eval "$as_ac_var=yes"
25402 echo "$as_me: failed program was:" >&5
25403 sed 's/^/| /' conftest.$ac_ext >&5
25405 eval "$as_ac_var=no"
25407 rm -f conftest.err conftest.$ac_objext \
25408 conftest$ac_exeext conftest.$ac_ext
25410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25412 if test `eval echo '${'$as_ac_var'}'` = yes; then
25413 cat >>confdefs.h <<_ACEOF
25414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25422 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
25423 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
25424 if test "${ac_cv_have_decl__snprintf+set}" = set; then
25425 echo $ECHO_N "(cached) $ECHO_C" >&6
25427 cat >conftest.$ac_ext <<_ACEOF
25430 cat confdefs.h >>conftest.$ac_ext
25431 cat >>conftest.$ac_ext <<_ACEOF
25432 /* end confdefs.h. */
25439 char *p = (char *) _snprintf;
25446 rm -f conftest.$ac_objext
25447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25448 (eval $ac_compile) 2>conftest.er1
25450 grep -v '^ *+' conftest.er1 >conftest.err
25452 cat conftest.err >&5
25453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454 (exit $ac_status); } &&
25455 { ac_try='test -z "$ac_c_werror_flag"
25456 || test ! -s conftest.err'
25457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25458 (eval $ac_try) 2>&5
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); }; } &&
25462 { ac_try='test -s conftest.$ac_objext'
25463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25464 (eval $ac_try) 2>&5
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); }; }; then
25468 ac_cv_have_decl__snprintf=yes
25470 echo "$as_me: failed program was:" >&5
25471 sed 's/^/| /' conftest.$ac_ext >&5
25473 ac_cv_have_decl__snprintf=no
25475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25477 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
25478 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
25479 if test $ac_cv_have_decl__snprintf = yes; then
25485 cat >>confdefs.h <<_ACEOF
25486 #define HAVE_DECL__SNPRINTF $gt_value
25491 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
25492 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
25493 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
25494 echo $ECHO_N "(cached) $ECHO_C" >&6
25496 cat >conftest.$ac_ext <<_ACEOF
25499 cat confdefs.h >>conftest.$ac_ext
25500 cat >>conftest.$ac_ext <<_ACEOF
25501 /* end confdefs.h. */
25508 char *p = (char *) _snwprintf;
25515 rm -f conftest.$ac_objext
25516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25517 (eval $ac_compile) 2>conftest.er1
25519 grep -v '^ *+' conftest.er1 >conftest.err
25521 cat conftest.err >&5
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); } &&
25524 { ac_try='test -z "$ac_c_werror_flag"
25525 || test ! -s conftest.err'
25526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25527 (eval $ac_try) 2>&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); }; } &&
25531 { ac_try='test -s conftest.$ac_objext'
25532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25533 (eval $ac_try) 2>&5
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); }; }; then
25537 ac_cv_have_decl__snwprintf=yes
25539 echo "$as_me: failed program was:" >&5
25540 sed 's/^/| /' conftest.$ac_ext >&5
25542 ac_cv_have_decl__snwprintf=no
25544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25546 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
25547 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
25548 if test $ac_cv_have_decl__snwprintf = yes; then
25554 cat >>confdefs.h <<_ACEOF
25555 #define HAVE_DECL__SNWPRINTF $gt_value
25561 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
25562 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
25563 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
25564 echo $ECHO_N "(cached) $ECHO_C" >&6
25566 cat >conftest.$ac_ext <<_ACEOF
25569 cat confdefs.h >>conftest.$ac_ext
25570 cat >>conftest.$ac_ext <<_ACEOF
25571 /* end confdefs.h. */
25577 #ifndef feof_unlocked
25578 char *p = (char *) feof_unlocked;
25585 rm -f conftest.$ac_objext
25586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25587 (eval $ac_compile) 2>conftest.er1
25589 grep -v '^ *+' conftest.er1 >conftest.err
25591 cat conftest.err >&5
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); } &&
25594 { ac_try='test -z "$ac_c_werror_flag"
25595 || test ! -s conftest.err'
25596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25597 (eval $ac_try) 2>&5
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); }; } &&
25601 { ac_try='test -s conftest.$ac_objext'
25602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25603 (eval $ac_try) 2>&5
25605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606 (exit $ac_status); }; }; then
25607 ac_cv_have_decl_feof_unlocked=yes
25609 echo "$as_me: failed program was:" >&5
25610 sed 's/^/| /' conftest.$ac_ext >&5
25612 ac_cv_have_decl_feof_unlocked=no
25614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25616 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
25617 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
25618 if test $ac_cv_have_decl_feof_unlocked = yes; then
25624 cat >>confdefs.h <<_ACEOF
25625 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
25630 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
25631 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
25632 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
25633 echo $ECHO_N "(cached) $ECHO_C" >&6
25635 cat >conftest.$ac_ext <<_ACEOF
25638 cat confdefs.h >>conftest.$ac_ext
25639 cat >>conftest.$ac_ext <<_ACEOF
25640 /* end confdefs.h. */
25646 #ifndef fgets_unlocked
25647 char *p = (char *) fgets_unlocked;
25654 rm -f conftest.$ac_objext
25655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25656 (eval $ac_compile) 2>conftest.er1
25658 grep -v '^ *+' conftest.er1 >conftest.err
25660 cat conftest.err >&5
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); } &&
25663 { ac_try='test -z "$ac_c_werror_flag"
25664 || test ! -s conftest.err'
25665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666 (eval $ac_try) 2>&5
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); }; } &&
25670 { ac_try='test -s conftest.$ac_objext'
25671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25672 (eval $ac_try) 2>&5
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); }; }; then
25676 ac_cv_have_decl_fgets_unlocked=yes
25678 echo "$as_me: failed program was:" >&5
25679 sed 's/^/| /' conftest.$ac_ext >&5
25681 ac_cv_have_decl_fgets_unlocked=no
25683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25685 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
25686 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
25687 if test $ac_cv_have_decl_fgets_unlocked = yes; then
25693 cat >>confdefs.h <<_ACEOF
25694 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
25699 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
25700 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
25701 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
25702 echo $ECHO_N "(cached) $ECHO_C" >&6
25704 cat >conftest.$ac_ext <<_ACEOF
25707 cat confdefs.h >>conftest.$ac_ext
25708 cat >>conftest.$ac_ext <<_ACEOF
25709 /* end confdefs.h. */
25715 #ifndef getc_unlocked
25716 char *p = (char *) getc_unlocked;
25723 rm -f conftest.$ac_objext
25724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25725 (eval $ac_compile) 2>conftest.er1
25727 grep -v '^ *+' conftest.er1 >conftest.err
25729 cat conftest.err >&5
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); } &&
25732 { ac_try='test -z "$ac_c_werror_flag"
25733 || test ! -s conftest.err'
25734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25735 (eval $ac_try) 2>&5
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); }; } &&
25739 { ac_try='test -s conftest.$ac_objext'
25740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25741 (eval $ac_try) 2>&5
25743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744 (exit $ac_status); }; }; then
25745 ac_cv_have_decl_getc_unlocked=yes
25747 echo "$as_me: failed program was:" >&5
25748 sed 's/^/| /' conftest.$ac_ext >&5
25750 ac_cv_have_decl_getc_unlocked=no
25752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25754 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
25755 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
25756 if test $ac_cv_have_decl_getc_unlocked = yes; then
25762 cat >>confdefs.h <<_ACEOF
25763 #define HAVE_DECL_GETC_UNLOCKED $gt_value
25768 case $gt_cv_func_printf_posix in
25769 *yes) HAVE_POSIX_PRINTF=1 ;;
25770 *) HAVE_POSIX_PRINTF=0 ;;
25773 if test "$ac_cv_func_asprintf" = yes; then
25779 if test "$ac_cv_func_snprintf" = yes; then
25785 if test "$ac_cv_func_wprintf" = yes; then
25797 am_save_CPPFLAGS="$CPPFLAGS"
25799 for element in $INCICONV; do
25801 for x in $CPPFLAGS; do
25803 acl_save_prefix="$prefix"
25804 prefix="$acl_final_prefix"
25805 acl_save_exec_prefix="$exec_prefix"
25806 exec_prefix="$acl_final_exec_prefix"
25808 exec_prefix="$acl_save_exec_prefix"
25809 prefix="$acl_save_prefix"
25811 if test "X$x" = "X$element"; then
25816 if test -z "$haveit"; then
25817 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25822 echo "$as_me:$LINENO: checking for iconv" >&5
25823 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
25824 if test "${am_cv_func_iconv+set}" = set; then
25825 echo $ECHO_N "(cached) $ECHO_C" >&6
25828 am_cv_func_iconv="no, consider installing GNU libiconv"
25830 cat >conftest.$ac_ext <<_ACEOF
25833 cat confdefs.h >>conftest.$ac_ext
25834 cat >>conftest.$ac_ext <<_ACEOF
25835 /* end confdefs.h. */
25836 #include <stdlib.h>
25841 iconv_t cd = iconv_open("","");
25842 iconv(cd,NULL,NULL,NULL,NULL);
25848 rm -f conftest.$ac_objext conftest$ac_exeext
25849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25850 (eval $ac_link) 2>conftest.er1
25852 grep -v '^ *+' conftest.er1 >conftest.err
25854 cat conftest.err >&5
25855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); } &&
25857 { ac_try='test -z "$ac_c_werror_flag"
25858 || test ! -s conftest.err'
25859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25860 (eval $ac_try) 2>&5
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); }; } &&
25864 { ac_try='test -s conftest$ac_exeext'
25865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25866 (eval $ac_try) 2>&5
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); }; }; then
25870 am_cv_func_iconv=yes
25872 echo "$as_me: failed program was:" >&5
25873 sed 's/^/| /' conftest.$ac_ext >&5
25876 rm -f conftest.err conftest.$ac_objext \
25877 conftest$ac_exeext conftest.$ac_ext
25878 if test "$am_cv_func_iconv" != yes; then
25879 am_save_LIBS="$LIBS"
25880 LIBS="$LIBS $LIBICONV"
25881 cat >conftest.$ac_ext <<_ACEOF
25884 cat confdefs.h >>conftest.$ac_ext
25885 cat >>conftest.$ac_ext <<_ACEOF
25886 /* end confdefs.h. */
25887 #include <stdlib.h>
25892 iconv_t cd = iconv_open("","");
25893 iconv(cd,NULL,NULL,NULL,NULL);
25899 rm -f conftest.$ac_objext conftest$ac_exeext
25900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25901 (eval $ac_link) 2>conftest.er1
25903 grep -v '^ *+' conftest.er1 >conftest.err
25905 cat conftest.err >&5
25906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); } &&
25908 { ac_try='test -z "$ac_c_werror_flag"
25909 || test ! -s conftest.err'
25910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25911 (eval $ac_try) 2>&5
25913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914 (exit $ac_status); }; } &&
25915 { ac_try='test -s conftest$ac_exeext'
25916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25917 (eval $ac_try) 2>&5
25919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920 (exit $ac_status); }; }; then
25921 am_cv_lib_iconv=yes
25922 am_cv_func_iconv=yes
25924 echo "$as_me: failed program was:" >&5
25925 sed 's/^/| /' conftest.$ac_ext >&5
25928 rm -f conftest.err conftest.$ac_objext \
25929 conftest$ac_exeext conftest.$ac_ext
25930 LIBS="$am_save_LIBS"
25934 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25935 echo "${ECHO_T}$am_cv_func_iconv" >&6
25936 if test "$am_cv_func_iconv" = yes; then
25938 cat >>confdefs.h <<\_ACEOF
25939 #define HAVE_ICONV 1
25943 if test "$am_cv_lib_iconv" = yes; then
25944 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
25945 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
25946 echo "$as_me:$LINENO: result: $LIBICONV" >&5
25947 echo "${ECHO_T}$LIBICONV" >&6
25949 CPPFLAGS="$am_save_CPPFLAGS"
25956 if test "$am_cv_func_iconv" = yes; then
25957 echo "$as_me:$LINENO: checking for iconv declaration" >&5
25958 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
25959 if test "${am_cv_proto_iconv+set}" = set; then
25960 echo $ECHO_N "(cached) $ECHO_C" >&6
25963 cat >conftest.$ac_ext <<_ACEOF
25966 cat confdefs.h >>conftest.$ac_ext
25967 cat >>conftest.$ac_ext <<_ACEOF
25968 /* end confdefs.h. */
25970 #include <stdlib.h>
25976 #if defined(__STDC__) || defined(__cplusplus)
25977 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25990 rm -f conftest.$ac_objext
25991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25992 (eval $ac_compile) 2>conftest.er1
25994 grep -v '^ *+' conftest.er1 >conftest.err
25996 cat conftest.err >&5
25997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998 (exit $ac_status); } &&
25999 { ac_try='test -z "$ac_c_werror_flag"
26000 || test ! -s conftest.err'
26001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26002 (eval $ac_try) 2>&5
26004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005 (exit $ac_status); }; } &&
26006 { ac_try='test -s conftest.$ac_objext'
26007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26008 (eval $ac_try) 2>&5
26010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); }; }; then
26012 am_cv_proto_iconv_arg1=""
26014 echo "$as_me: failed program was:" >&5
26015 sed 's/^/| /' conftest.$ac_ext >&5
26017 am_cv_proto_iconv_arg1="const"
26019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26020 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
26023 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
26024 echo "$as_me:$LINENO: result: ${ac_t:-
26025 }$am_cv_proto_iconv" >&5
26026 echo "${ECHO_T}${ac_t:-
26027 }$am_cv_proto_iconv" >&6
26029 cat >>confdefs.h <<_ACEOF
26030 #define ICONV_CONST $am_cv_proto_iconv_arg1
26036 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
26037 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
26038 if test "${am_cv_langinfo_codeset+set}" = set; then
26039 echo $ECHO_N "(cached) $ECHO_C" >&6
26041 cat >conftest.$ac_ext <<_ACEOF
26044 cat confdefs.h >>conftest.$ac_ext
26045 cat >>conftest.$ac_ext <<_ACEOF
26046 /* end confdefs.h. */
26047 #include <langinfo.h>
26051 char* cs = nl_langinfo(CODESET);
26056 rm -f conftest.$ac_objext conftest$ac_exeext
26057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26058 (eval $ac_link) 2>conftest.er1
26060 grep -v '^ *+' conftest.er1 >conftest.err
26062 cat conftest.err >&5
26063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064 (exit $ac_status); } &&
26065 { ac_try='test -z "$ac_c_werror_flag"
26066 || test ! -s conftest.err'
26067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26068 (eval $ac_try) 2>&5
26070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071 (exit $ac_status); }; } &&
26072 { ac_try='test -s conftest$ac_exeext'
26073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26074 (eval $ac_try) 2>&5
26076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077 (exit $ac_status); }; }; then
26078 am_cv_langinfo_codeset=yes
26080 echo "$as_me: failed program was:" >&5
26081 sed 's/^/| /' conftest.$ac_ext >&5
26083 am_cv_langinfo_codeset=no
26085 rm -f conftest.err conftest.$ac_objext \
26086 conftest$ac_exeext conftest.$ac_ext
26089 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
26090 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
26091 if test $am_cv_langinfo_codeset = yes; then
26093 cat >>confdefs.h <<\_ACEOF
26094 #define HAVE_LANGINFO_CODESET 1
26099 if test $ac_cv_header_locale_h = yes; then
26101 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
26102 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
26103 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
26104 echo $ECHO_N "(cached) $ECHO_C" >&6
26106 cat >conftest.$ac_ext <<_ACEOF
26109 cat confdefs.h >>conftest.$ac_ext
26110 cat >>conftest.$ac_ext <<_ACEOF
26111 /* end confdefs.h. */
26112 #include <locale.h>
26121 rm -f conftest.$ac_objext conftest$ac_exeext
26122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26123 (eval $ac_link) 2>conftest.er1
26125 grep -v '^ *+' conftest.er1 >conftest.err
26127 cat conftest.err >&5
26128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129 (exit $ac_status); } &&
26130 { ac_try='test -z "$ac_c_werror_flag"
26131 || test ! -s conftest.err'
26132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133 (eval $ac_try) 2>&5
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); }; } &&
26137 { ac_try='test -s conftest$ac_exeext'
26138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26139 (eval $ac_try) 2>&5
26141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142 (exit $ac_status); }; }; then
26143 gt_cv_val_LC_MESSAGES=yes
26145 echo "$as_me: failed program was:" >&5
26146 sed 's/^/| /' conftest.$ac_ext >&5
26148 gt_cv_val_LC_MESSAGES=no
26150 rm -f conftest.err conftest.$ac_objext \
26151 conftest$ac_exeext conftest.$ac_ext
26153 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
26154 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
26155 if test $gt_cv_val_LC_MESSAGES = yes; then
26157 cat >>confdefs.h <<\_ACEOF
26158 #define HAVE_LC_MESSAGES 1
26165 if test -n "$INTL_MACOSX_LIBS"; then
26166 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26169 for ac_prog in bison
26171 # Extract the first word of "$ac_prog", so it can be a program name with args.
26172 set dummy $ac_prog; ac_word=$2
26173 echo "$as_me:$LINENO: checking for $ac_word" >&5
26174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26175 if test "${ac_cv_prog_INTLBISON+set}" = set; then
26176 echo $ECHO_N "(cached) $ECHO_C" >&6
26178 if test -n "$INTLBISON"; then
26179 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
26181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26182 for as_dir in $PATH
26185 test -z "$as_dir" && as_dir=.
26186 for ac_exec_ext in '' $ac_executable_extensions; do
26187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26188 ac_cv_prog_INTLBISON="$ac_prog"
26189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26197 INTLBISON=$ac_cv_prog_INTLBISON
26198 if test -n "$INTLBISON"; then
26199 echo "$as_me:$LINENO: result: $INTLBISON" >&5
26200 echo "${ECHO_T}$INTLBISON" >&6
26202 echo "$as_me:$LINENO: result: no" >&5
26203 echo "${ECHO_T}no" >&6
26206 test -n "$INTLBISON" && break
26209 if test -z "$INTLBISON"; then
26212 echo "$as_me:$LINENO: checking version of bison" >&5
26213 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
26214 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
26215 case $ac_prog_version in
26216 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
26217 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
26218 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
26219 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
26221 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
26222 echo "${ECHO_T}$ac_prog_version" >&6
26224 if test $ac_verc_fail = yes; then
26243 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
26244 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
26245 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
26246 echo $ECHO_N "(cached) $ECHO_C" >&6
26248 gt_save_CPPFLAGS="$CPPFLAGS"
26249 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26250 gt_save_LIBS="$LIBS"
26251 LIBS="$LIBS -framework CoreFoundation"
26252 cat >conftest.$ac_ext <<_ACEOF
26255 cat confdefs.h >>conftest.$ac_ext
26256 cat >>conftest.$ac_ext <<_ACEOF
26257 /* end confdefs.h. */
26258 #include <CFPreferences.h>
26262 CFPreferencesCopyAppValue(NULL, NULL)
26267 rm -f conftest.$ac_objext conftest$ac_exeext
26268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26269 (eval $ac_link) 2>conftest.er1
26271 grep -v '^ *+' conftest.er1 >conftest.err
26273 cat conftest.err >&5
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); } &&
26276 { ac_try='test -z "$ac_c_werror_flag"
26277 || test ! -s conftest.err'
26278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26279 (eval $ac_try) 2>&5
26281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282 (exit $ac_status); }; } &&
26283 { ac_try='test -s conftest$ac_exeext'
26284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26285 (eval $ac_try) 2>&5
26287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288 (exit $ac_status); }; }; then
26289 gt_cv_func_CFPreferencesCopyAppValue=yes
26291 echo "$as_me: failed program was:" >&5
26292 sed 's/^/| /' conftest.$ac_ext >&5
26294 gt_cv_func_CFPreferencesCopyAppValue=no
26296 rm -f conftest.err conftest.$ac_objext \
26297 conftest$ac_exeext conftest.$ac_ext
26298 CPPFLAGS="$gt_save_CPPFLAGS"
26299 LIBS="$gt_save_LIBS"
26301 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
26302 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
26303 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
26305 cat >>confdefs.h <<\_ACEOF
26306 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
26310 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
26311 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
26312 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
26313 echo $ECHO_N "(cached) $ECHO_C" >&6
26315 gt_save_CPPFLAGS="$CPPFLAGS"
26316 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26317 gt_save_LIBS="$LIBS"
26318 LIBS="$LIBS -framework CoreFoundation"
26319 cat >conftest.$ac_ext <<_ACEOF
26322 cat confdefs.h >>conftest.$ac_ext
26323 cat >>conftest.$ac_ext <<_ACEOF
26324 /* end confdefs.h. */
26325 #include <CFLocale.h>
26329 CFLocaleCopyCurrent();
26334 rm -f conftest.$ac_objext conftest$ac_exeext
26335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26336 (eval $ac_link) 2>conftest.er1
26338 grep -v '^ *+' conftest.er1 >conftest.err
26340 cat conftest.err >&5
26341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342 (exit $ac_status); } &&
26343 { ac_try='test -z "$ac_c_werror_flag"
26344 || test ! -s conftest.err'
26345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26346 (eval $ac_try) 2>&5
26348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349 (exit $ac_status); }; } &&
26350 { ac_try='test -s conftest$ac_exeext'
26351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26352 (eval $ac_try) 2>&5
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); }; }; then
26356 gt_cv_func_CFLocaleCopyCurrent=yes
26358 echo "$as_me: failed program was:" >&5
26359 sed 's/^/| /' conftest.$ac_ext >&5
26361 gt_cv_func_CFLocaleCopyCurrent=no
26363 rm -f conftest.err conftest.$ac_objext \
26364 conftest$ac_exeext conftest.$ac_ext
26365 CPPFLAGS="$gt_save_CPPFLAGS"
26366 LIBS="$gt_save_LIBS"
26368 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
26369 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
26370 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26372 cat >>confdefs.h <<\_ACEOF
26373 #define HAVE_CFLOCALECOPYCURRENT 1
26378 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26379 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
26385 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
26386 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
26387 # Check whether --enable-nls or --disable-nls was given.
26388 if test "${enable_nls+set}" = set; then
26389 enableval="$enable_nls"
26394 echo "$as_me:$LINENO: result: $USE_NLS" >&5
26395 echo "${ECHO_T}$USE_NLS" >&6
26400 BUILD_INCLUDED_LIBINTL=no
26401 USE_INCLUDED_LIBINTL=no
26407 if test "$USE_NLS" = "yes"; then
26408 gt_use_preinstalled_gnugettext=no
26410 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
26411 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
26413 # Check whether --with-included-gettext or --without-included-gettext was given.
26414 if test "${with_included_gettext+set}" = set; then
26415 withval="$with_included_gettext"
26416 nls_cv_force_use_gnu_gettext=$withval
26418 nls_cv_force_use_gnu_gettext=no
26420 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
26421 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
26423 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
26424 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
26431 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
26432 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
26433 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
26434 echo $ECHO_N "(cached) $ECHO_C" >&6
26436 cat >conftest.$ac_ext <<_ACEOF
26439 cat confdefs.h >>conftest.$ac_ext
26440 cat >>conftest.$ac_ext <<_ACEOF
26441 /* end confdefs.h. */
26442 #include <libintl.h>
26443 extern int _nl_msg_cat_cntr;
26444 extern int *_nl_domain_bindings;
26448 bindtextdomain ("", "");
26449 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
26454 rm -f conftest.$ac_objext conftest$ac_exeext
26455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26456 (eval $ac_link) 2>conftest.er1
26458 grep -v '^ *+' conftest.er1 >conftest.err
26460 cat conftest.err >&5
26461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462 (exit $ac_status); } &&
26463 { ac_try='test -z "$ac_c_werror_flag"
26464 || test ! -s conftest.err'
26465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466 (eval $ac_try) 2>&5
26468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); }; } &&
26470 { ac_try='test -s conftest$ac_exeext'
26471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26472 (eval $ac_try) 2>&5
26474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); }; }; then
26476 gt_cv_func_gnugettext1_libc=yes
26478 echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26481 gt_cv_func_gnugettext1_libc=no
26483 rm -f conftest.err conftest.$ac_objext \
26484 conftest$ac_exeext conftest.$ac_ext
26486 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
26487 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
26489 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
26495 acl_save_prefix="$prefix"
26496 prefix="$acl_final_prefix"
26497 acl_save_exec_prefix="$exec_prefix"
26498 exec_prefix="$acl_final_exec_prefix"
26500 eval additional_includedir=\"$includedir\"
26501 eval additional_libdir=\"$libdir\"
26503 exec_prefix="$acl_save_exec_prefix"
26504 prefix="$acl_save_prefix"
26507 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
26508 if test "${with_libintl_prefix+set}" = set; then
26509 withval="$with_libintl_prefix"
26511 if test "X$withval" = "Xno"; then
26514 if test "X$withval" = "X"; then
26516 acl_save_prefix="$prefix"
26517 prefix="$acl_final_prefix"
26518 acl_save_exec_prefix="$exec_prefix"
26519 exec_prefix="$acl_final_exec_prefix"
26521 eval additional_includedir=\"$includedir\"
26522 eval additional_libdir=\"$libdir\"
26524 exec_prefix="$acl_save_exec_prefix"
26525 prefix="$acl_save_prefix"
26528 additional_includedir="$withval/include"
26529 additional_libdir="$withval/lib"
26539 names_already_handled=
26540 names_next_round='intl '
26541 while test -n "$names_next_round"; do
26542 names_this_round="$names_next_round"
26544 for name in $names_this_round; do
26546 for n in $names_already_handled; do
26547 if test "$n" = "$name"; then
26548 already_handled=yes
26552 if test -z "$already_handled"; then
26553 names_already_handled="$names_already_handled $name"
26554 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26555 eval value=\"\$HAVE_LIB$uppername\"
26556 if test -n "$value"; then
26557 if test "$value" = yes; then
26558 eval value=\"\$LIB$uppername\"
26559 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
26560 eval value=\"\$LTLIB$uppername\"
26561 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
26570 if test $use_additional = yes; then
26571 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
26572 found_dir="$additional_libdir"
26573 found_so="$additional_libdir/lib$name.$shlibext"
26574 if test -f "$additional_libdir/lib$name.la"; then
26575 found_la="$additional_libdir/lib$name.la"
26578 if test -f "$additional_libdir/lib$name.$libext"; then
26579 found_dir="$additional_libdir"
26580 found_a="$additional_libdir/lib$name.$libext"
26581 if test -f "$additional_libdir/lib$name.la"; then
26582 found_la="$additional_libdir/lib$name.la"
26587 if test "X$found_dir" = "X"; then
26588 for x in $LDFLAGS $LTLIBINTL; do
26590 acl_save_prefix="$prefix"
26591 prefix="$acl_final_prefix"
26592 acl_save_exec_prefix="$exec_prefix"
26593 exec_prefix="$acl_final_exec_prefix"
26595 exec_prefix="$acl_save_exec_prefix"
26596 prefix="$acl_save_prefix"
26600 dir=`echo "X$x" | sed -e 's/^X-L//'`
26601 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
26603 found_so="$dir/lib$name.$shlibext"
26604 if test -f "$dir/lib$name.la"; then
26605 found_la="$dir/lib$name.la"
26608 if test -f "$dir/lib$name.$libext"; then
26610 found_a="$dir/lib$name.$libext"
26611 if test -f "$dir/lib$name.la"; then
26612 found_la="$dir/lib$name.la"
26618 if test "X$found_dir" != "X"; then
26623 if test "X$found_dir" != "X"; then
26624 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
26625 if test "X$found_so" != "X"; then
26626 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
26627 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26630 for x in $ltrpathdirs; do
26631 if test "X$x" = "X$found_dir"; then
26636 if test -z "$haveit"; then
26637 ltrpathdirs="$ltrpathdirs $found_dir"
26639 if test "$hardcode_direct" = yes; then
26640 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26642 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26643 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26645 for x in $rpathdirs; do
26646 if test "X$x" = "X$found_dir"; then
26651 if test -z "$haveit"; then
26652 rpathdirs="$rpathdirs $found_dir"
26656 for x in $LDFLAGS $LIBINTL; do
26658 acl_save_prefix="$prefix"
26659 prefix="$acl_final_prefix"
26660 acl_save_exec_prefix="$exec_prefix"
26661 exec_prefix="$acl_final_exec_prefix"
26663 exec_prefix="$acl_save_exec_prefix"
26664 prefix="$acl_save_prefix"
26666 if test "X$x" = "X-L$found_dir"; then
26671 if test -z "$haveit"; then
26672 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
26674 if test "$hardcode_minus_L" != no; then
26675 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26677 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
26683 if test "X$found_a" != "X"; then
26684 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
26686 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
26689 additional_includedir=
26690 case "$found_dir" in
26692 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26693 additional_includedir="$basedir/include"
26696 if test "X$additional_includedir" != "X"; then
26697 if test "X$additional_includedir" != "X/usr/include"; then
26699 if test "X$additional_includedir" = "X/usr/local/include"; then
26700 if test -n "$GCC"; then
26702 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26706 if test -z "$haveit"; then
26707 for x in $CPPFLAGS $INCINTL; do
26709 acl_save_prefix="$prefix"
26710 prefix="$acl_final_prefix"
26711 acl_save_exec_prefix="$exec_prefix"
26712 exec_prefix="$acl_final_exec_prefix"
26714 exec_prefix="$acl_save_exec_prefix"
26715 prefix="$acl_save_prefix"
26717 if test "X$x" = "X-I$additional_includedir"; then
26722 if test -z "$haveit"; then
26723 if test -d "$additional_includedir"; then
26724 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
26730 if test -n "$found_la"; then
26731 save_libdir="$libdir"
26732 case "$found_la" in
26733 */* | *\\*) . "$found_la" ;;
26734 *) . "./$found_la" ;;
26736 libdir="$save_libdir"
26737 for dep in $dependency_libs; do
26740 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26741 if test "X$additional_libdir" != "X/usr/lib"; then
26743 if test "X$additional_libdir" = "X/usr/local/lib"; then
26744 if test -n "$GCC"; then
26746 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26750 if test -z "$haveit"; then
26752 for x in $LDFLAGS $LIBINTL; do
26754 acl_save_prefix="$prefix"
26755 prefix="$acl_final_prefix"
26756 acl_save_exec_prefix="$exec_prefix"
26757 exec_prefix="$acl_final_exec_prefix"
26759 exec_prefix="$acl_save_exec_prefix"
26760 prefix="$acl_save_prefix"
26762 if test "X$x" = "X-L$additional_libdir"; then
26767 if test -z "$haveit"; then
26768 if test -d "$additional_libdir"; then
26769 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
26773 for x in $LDFLAGS $LTLIBINTL; do
26775 acl_save_prefix="$prefix"
26776 prefix="$acl_final_prefix"
26777 acl_save_exec_prefix="$exec_prefix"
26778 exec_prefix="$acl_final_exec_prefix"
26780 exec_prefix="$acl_save_exec_prefix"
26781 prefix="$acl_save_prefix"
26783 if test "X$x" = "X-L$additional_libdir"; then
26788 if test -z "$haveit"; then
26789 if test -d "$additional_libdir"; then
26790 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
26797 dir=`echo "X$dep" | sed -e 's/^X-R//'`
26798 if test "$enable_rpath" != no; then
26800 for x in $rpathdirs; do
26801 if test "X$x" = "X$dir"; then
26806 if test -z "$haveit"; then
26807 rpathdirs="$rpathdirs $dir"
26810 for x in $ltrpathdirs; do
26811 if test "X$x" = "X$dir"; then
26816 if test -z "$haveit"; then
26817 ltrpathdirs="$ltrpathdirs $dir"
26822 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26825 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26828 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
26829 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
26835 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
26836 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
26842 if test "X$rpathdirs" != "X"; then
26843 if test -n "$hardcode_libdir_separator"; then
26845 for found_dir in $rpathdirs; do
26846 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26848 acl_save_libdir="$libdir"
26850 eval flag=\"$hardcode_libdir_flag_spec\"
26851 libdir="$acl_save_libdir"
26852 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
26854 for found_dir in $rpathdirs; do
26855 acl_save_libdir="$libdir"
26856 libdir="$found_dir"
26857 eval flag=\"$hardcode_libdir_flag_spec\"
26858 libdir="$acl_save_libdir"
26859 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
26863 if test "X$ltrpathdirs" != "X"; then
26864 for found_dir in $ltrpathdirs; do
26865 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
26869 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
26870 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
26871 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
26872 echo $ECHO_N "(cached) $ECHO_C" >&6
26874 gt_save_CPPFLAGS="$CPPFLAGS"
26875 CPPFLAGS="$CPPFLAGS $INCINTL"
26876 gt_save_LIBS="$LIBS"
26877 LIBS="$LIBS $LIBINTL"
26878 cat >conftest.$ac_ext <<_ACEOF
26881 cat confdefs.h >>conftest.$ac_ext
26882 cat >>conftest.$ac_ext <<_ACEOF
26883 /* end confdefs.h. */
26884 #include <libintl.h>
26885 extern int _nl_msg_cat_cntr;
26890 const char *_nl_expand_alias (const char *);
26894 bindtextdomain ("", "");
26895 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
26900 rm -f conftest.$ac_objext conftest$ac_exeext
26901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26902 (eval $ac_link) 2>conftest.er1
26904 grep -v '^ *+' conftest.er1 >conftest.err
26906 cat conftest.err >&5
26907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908 (exit $ac_status); } &&
26909 { ac_try='test -z "$ac_c_werror_flag"
26910 || test ! -s conftest.err'
26911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26912 (eval $ac_try) 2>&5
26914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915 (exit $ac_status); }; } &&
26916 { ac_try='test -s conftest$ac_exeext'
26917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26918 (eval $ac_try) 2>&5
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); }; }; then
26922 gt_cv_func_gnugettext1_libintl=yes
26924 echo "$as_me: failed program was:" >&5
26925 sed 's/^/| /' conftest.$ac_ext >&5
26927 gt_cv_func_gnugettext1_libintl=no
26929 rm -f conftest.err conftest.$ac_objext \
26930 conftest$ac_exeext conftest.$ac_ext
26931 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
26932 LIBS="$LIBS $LIBICONV"
26933 cat >conftest.$ac_ext <<_ACEOF
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h. */
26939 #include <libintl.h>
26940 extern int _nl_msg_cat_cntr;
26945 const char *_nl_expand_alias (const char *);
26949 bindtextdomain ("", "");
26950 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
26955 rm -f conftest.$ac_objext conftest$ac_exeext
26956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26957 (eval $ac_link) 2>conftest.er1
26959 grep -v '^ *+' conftest.er1 >conftest.err
26961 cat conftest.err >&5
26962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963 (exit $ac_status); } &&
26964 { ac_try='test -z "$ac_c_werror_flag"
26965 || test ! -s conftest.err'
26966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26967 (eval $ac_try) 2>&5
26969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); }; } &&
26971 { ac_try='test -s conftest$ac_exeext'
26972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26973 (eval $ac_try) 2>&5
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); }; }; then
26977 LIBINTL="$LIBINTL $LIBICONV"
26978 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
26979 gt_cv_func_gnugettext1_libintl=yes
26982 echo "$as_me: failed program was:" >&5
26983 sed 's/^/| /' conftest.$ac_ext >&5
26986 rm -f conftest.err conftest.$ac_objext \
26987 conftest$ac_exeext conftest.$ac_ext
26989 CPPFLAGS="$gt_save_CPPFLAGS"
26990 LIBS="$gt_save_LIBS"
26992 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
26993 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
26996 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
26997 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
26998 && test "$PACKAGE" != gettext-runtime \
26999 && test "$PACKAGE" != gettext-tools; }; then
27000 gt_use_preinstalled_gnugettext=yes
27008 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
27009 nls_cv_use_gnu_gettext=yes
27013 if test "$nls_cv_use_gnu_gettext" = "yes"; then
27014 BUILD_INCLUDED_LIBINTL=yes
27015 USE_INCLUDED_LIBINTL=yes
27016 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
27017 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
27018 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
27022 if test "$gt_use_preinstalled_gnugettext" = "yes" \
27023 || test "$nls_cv_use_gnu_gettext" = "yes"; then
27028 if test -n "$INTL_MACOSX_LIBS"; then
27029 if test "$gt_use_preinstalled_gnugettext" = "yes" \
27030 || test "$nls_cv_use_gnu_gettext" = "yes"; then
27031 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
27032 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
27036 if test "$gt_use_preinstalled_gnugettext" = "yes" \
27037 || test "$nls_cv_use_gnu_gettext" = "yes"; then
27039 cat >>confdefs.h <<\_ACEOF
27040 #define ENABLE_NLS 1
27048 echo "$as_me:$LINENO: checking whether to use NLS" >&5
27049 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
27050 echo "$as_me:$LINENO: result: $USE_NLS" >&5
27051 echo "${ECHO_T}$USE_NLS" >&6
27052 if test "$USE_NLS" = "yes"; then
27053 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
27054 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
27055 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
27056 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
27057 gt_source="external libintl"
27062 gt_source="included intl directory"
27064 echo "$as_me:$LINENO: result: $gt_source" >&5
27065 echo "${ECHO_T}$gt_source" >&6
27068 if test "$USE_NLS" = "yes"; then
27070 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
27071 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
27072 echo "$as_me:$LINENO: checking how to link with libintl" >&5
27073 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
27074 echo "$as_me:$LINENO: result: $LIBINTL" >&5
27075 echo "${ECHO_T}$LIBINTL" >&6
27077 for element in $INCINTL; do
27079 for x in $CPPFLAGS; do
27081 acl_save_prefix="$prefix"
27082 prefix="$acl_final_prefix"
27083 acl_save_exec_prefix="$exec_prefix"
27084 exec_prefix="$acl_final_exec_prefix"
27086 exec_prefix="$acl_save_exec_prefix"
27087 prefix="$acl_save_prefix"
27089 if test "X$x" = "X$element"; then
27094 if test -z "$haveit"; then
27095 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27102 cat >>confdefs.h <<\_ACEOF
27103 #define HAVE_GETTEXT 1
27107 cat >>confdefs.h <<\_ACEOF
27108 #define HAVE_DCGETTEXT 1
27117 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
27118 BUILD_INCLUDED_LIBINTL=yes
27125 nls_cv_header_intl=
27126 nls_cv_header_libgt=
27138 if test "$USE_INCLUDED_LIBINTL" = yes; then
27139 INTLOBJS="\$(GETTOBJS)"
27143 INTL_LIBTOOL_SUFFIX_PREFIX=
27147 INTLLIBS="$LIBINTL"
27156 for ac_header in locale.h
27158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27160 echo "$as_me:$LINENO: checking for $ac_header" >&5
27161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27163 echo $ECHO_N "(cached) $ECHO_C" >&6
27165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27168 # Is the header compilable?
27169 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27171 cat >conftest.$ac_ext <<_ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h. */
27177 $ac_includes_default
27178 #include <$ac_header>
27180 rm -f conftest.$ac_objext
27181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27182 (eval $ac_compile) 2>conftest.er1
27184 grep -v '^ *+' conftest.er1 >conftest.err
27186 cat conftest.err >&5
27187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188 (exit $ac_status); } &&
27189 { ac_try='test -z "$ac_c_werror_flag"
27190 || test ! -s conftest.err'
27191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192 (eval $ac_try) 2>&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); }; } &&
27196 { ac_try='test -s conftest.$ac_objext'
27197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198 (eval $ac_try) 2>&5
27200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201 (exit $ac_status); }; }; then
27202 ac_header_compiler=yes
27204 echo "$as_me: failed program was:" >&5
27205 sed 's/^/| /' conftest.$ac_ext >&5
27207 ac_header_compiler=no
27209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27211 echo "${ECHO_T}$ac_header_compiler" >&6
27213 # Is the header present?
27214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27216 cat >conftest.$ac_ext <<_ACEOF
27219 cat confdefs.h >>conftest.$ac_ext
27220 cat >>conftest.$ac_ext <<_ACEOF
27221 /* end confdefs.h. */
27222 #include <$ac_header>
27224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27227 grep -v '^ *+' conftest.er1 >conftest.err
27229 cat conftest.err >&5
27230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231 (exit $ac_status); } >/dev/null; then
27232 if test -s conftest.err; then
27233 ac_cpp_err=$ac_c_preproc_warn_flag
27234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27241 if test -z "$ac_cpp_err"; then
27242 ac_header_preproc=yes
27244 echo "$as_me: failed program was:" >&5
27245 sed 's/^/| /' conftest.$ac_ext >&5
27247 ac_header_preproc=no
27249 rm -f conftest.err conftest.$ac_ext
27250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27251 echo "${ECHO_T}$ac_header_preproc" >&6
27253 # So? What about this header?
27254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27260 ac_header_preproc=yes
27263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27277 ## ------------------------------------------ ##
27278 ## Report this to the AC_PACKAGE_NAME lists. ##
27279 ## ------------------------------------------ ##
27282 sed "s/^/$as_me: WARNING: /" >&2
27285 echo "$as_me:$LINENO: checking for $ac_header" >&5
27286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27288 echo $ECHO_N "(cached) $ECHO_C" >&6
27290 eval "$as_ac_Header=\$ac_header_preproc"
27292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27297 cat >>confdefs.h <<_ACEOF
27298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27307 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
27308 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
27309 eval echo \""$datadir/locale"\"
27312 cat >>confdefs.h <<_ACEOF
27313 #define SP_LOCALE_DIR "$ac_expanded"
27317 SP_MESSAGE_DOMAIN="sp$SP_LIBOSP_CUR"
27319 cat >>confdefs.h <<_ACEOF
27320 #define SP_MESSAGE_DOMAIN "$SP_MESSAGE_DOMAIN"
27325 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27326 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
27327 if test "${ac_cv_header_stdc+set}" = set; then
27328 echo $ECHO_N "(cached) $ECHO_C" >&6
27330 cat >conftest.$ac_ext <<_ACEOF
27333 cat confdefs.h >>conftest.$ac_ext
27334 cat >>conftest.$ac_ext <<_ACEOF
27335 /* end confdefs.h. */
27336 #include <stdlib.h>
27337 #include <stdarg.h>
27338 #include <string.h>
27349 rm -f conftest.$ac_objext
27350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27351 (eval $ac_compile) 2>conftest.er1
27353 grep -v '^ *+' conftest.er1 >conftest.err
27355 cat conftest.err >&5
27356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357 (exit $ac_status); } &&
27358 { ac_try='test -z "$ac_c_werror_flag"
27359 || test ! -s conftest.err'
27360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27361 (eval $ac_try) 2>&5
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); }; } &&
27365 { ac_try='test -s conftest.$ac_objext'
27366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27367 (eval $ac_try) 2>&5
27369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); }; }; then
27371 ac_cv_header_stdc=yes
27373 echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.$ac_ext >&5
27376 ac_cv_header_stdc=no
27378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27380 if test $ac_cv_header_stdc = yes; then
27381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27382 cat >conftest.$ac_ext <<_ACEOF
27385 cat confdefs.h >>conftest.$ac_ext
27386 cat >>conftest.$ac_ext <<_ACEOF
27387 /* end confdefs.h. */
27388 #include <string.h>
27391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27392 $EGREP "memchr" >/dev/null 2>&1; then
27395 ac_cv_header_stdc=no
27401 if test $ac_cv_header_stdc = yes; then
27402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27403 cat >conftest.$ac_ext <<_ACEOF
27406 cat confdefs.h >>conftest.$ac_ext
27407 cat >>conftest.$ac_ext <<_ACEOF
27408 /* end confdefs.h. */
27409 #include <stdlib.h>
27412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27413 $EGREP "free" >/dev/null 2>&1; then
27416 ac_cv_header_stdc=no
27422 if test $ac_cv_header_stdc = yes; then
27423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27424 if test "$cross_compiling" = yes; then
27427 cat >conftest.$ac_ext <<_ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h. */
27434 #if ((' ' & 0x0FF) == 0x020)
27435 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27436 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27438 # define ISLOWER(c) \
27439 (('a' <= (c) && (c) <= 'i') \
27440 || ('j' <= (c) && (c) <= 'r') \
27441 || ('s' <= (c) && (c) <= 'z'))
27442 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27445 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27450 for (i = 0; i < 256; i++)
27451 if (XOR (islower (i), ISLOWER (i))
27452 || toupper (i) != TOUPPER (i))
27457 rm -f conftest$ac_exeext
27458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27459 (eval $ac_link) 2>&5
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27464 (eval $ac_try) 2>&5
27466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467 (exit $ac_status); }; }; then
27470 echo "$as_me: program exited with status $ac_status" >&5
27471 echo "$as_me: failed program was:" >&5
27472 sed 's/^/| /' conftest.$ac_ext >&5
27474 ( exit $ac_status )
27475 ac_cv_header_stdc=no
27477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27481 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27482 echo "${ECHO_T}$ac_cv_header_stdc" >&6
27483 if test $ac_cv_header_stdc = yes; then
27485 cat >>confdefs.h <<\_ACEOF
27486 #define STDC_HEADERS 1
27495 for ac_header in limits.h unistd.h io.h osfcn.h
27497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27499 echo "$as_me:$LINENO: checking for $ac_header" >&5
27500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27502 echo $ECHO_N "(cached) $ECHO_C" >&6
27504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27507 # Is the header compilable?
27508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27510 cat >conftest.$ac_ext <<_ACEOF
27513 cat confdefs.h >>conftest.$ac_ext
27514 cat >>conftest.$ac_ext <<_ACEOF
27515 /* end confdefs.h. */
27516 $ac_includes_default
27517 #include <$ac_header>
27519 rm -f conftest.$ac_objext
27520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27521 (eval $ac_compile) 2>conftest.er1
27523 grep -v '^ *+' conftest.er1 >conftest.err
27525 cat conftest.err >&5
27526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527 (exit $ac_status); } &&
27528 { ac_try='test -z "$ac_c_werror_flag"
27529 || test ! -s conftest.err'
27530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27531 (eval $ac_try) 2>&5
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); }; } &&
27535 { ac_try='test -s conftest.$ac_objext'
27536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27537 (eval $ac_try) 2>&5
27539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); }; }; then
27541 ac_header_compiler=yes
27543 echo "$as_me: failed program was:" >&5
27544 sed 's/^/| /' conftest.$ac_ext >&5
27546 ac_header_compiler=no
27548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27550 echo "${ECHO_T}$ac_header_compiler" >&6
27552 # Is the header present?
27553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27555 cat >conftest.$ac_ext <<_ACEOF
27558 cat confdefs.h >>conftest.$ac_ext
27559 cat >>conftest.$ac_ext <<_ACEOF
27560 /* end confdefs.h. */
27561 #include <$ac_header>
27563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27566 grep -v '^ *+' conftest.er1 >conftest.err
27568 cat conftest.err >&5
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); } >/dev/null; then
27571 if test -s conftest.err; then
27572 ac_cpp_err=$ac_c_preproc_warn_flag
27573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27580 if test -z "$ac_cpp_err"; then
27581 ac_header_preproc=yes
27583 echo "$as_me: failed program was:" >&5
27584 sed 's/^/| /' conftest.$ac_ext >&5
27586 ac_header_preproc=no
27588 rm -f conftest.err conftest.$ac_ext
27589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27590 echo "${ECHO_T}$ac_header_preproc" >&6
27592 # So? What about this header?
27593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27599 ac_header_preproc=yes
27602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27616 ## ------------------------------------------ ##
27617 ## Report this to the AC_PACKAGE_NAME lists. ##
27618 ## ------------------------------------------ ##
27621 sed "s/^/$as_me: WARNING: /" >&2
27624 echo "$as_me:$LINENO: checking for $ac_header" >&5
27625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27627 echo $ECHO_N "(cached) $ECHO_C" >&6
27629 eval "$as_ac_Header=\$ac_header_preproc"
27631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27636 cat >>confdefs.h <<_ACEOF
27637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27645 ac_cpp='$CXXCPP $CPPFLAGS'
27646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27653 for ac_header in new cassert
27655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27657 echo "$as_me:$LINENO: checking for $ac_header" >&5
27658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27660 echo $ECHO_N "(cached) $ECHO_C" >&6
27662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27665 # Is the header compilable?
27666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27668 cat >conftest.$ac_ext <<_ACEOF
27671 cat confdefs.h >>conftest.$ac_ext
27672 cat >>conftest.$ac_ext <<_ACEOF
27673 /* end confdefs.h. */
27674 $ac_includes_default
27675 #include <$ac_header>
27677 rm -f conftest.$ac_objext
27678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27679 (eval $ac_compile) 2>conftest.er1
27681 grep -v '^ *+' conftest.er1 >conftest.err
27683 cat conftest.err >&5
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); } &&
27686 { ac_try='test -z "$ac_cxx_werror_flag"
27687 || test ! -s conftest.err'
27688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27689 (eval $ac_try) 2>&5
27691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); }; } &&
27693 { ac_try='test -s conftest.$ac_objext'
27694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27695 (eval $ac_try) 2>&5
27697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698 (exit $ac_status); }; }; then
27699 ac_header_compiler=yes
27701 echo "$as_me: failed program was:" >&5
27702 sed 's/^/| /' conftest.$ac_ext >&5
27704 ac_header_compiler=no
27706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27708 echo "${ECHO_T}$ac_header_compiler" >&6
27710 # Is the header present?
27711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27713 cat >conftest.$ac_ext <<_ACEOF
27716 cat confdefs.h >>conftest.$ac_ext
27717 cat >>conftest.$ac_ext <<_ACEOF
27718 /* end confdefs.h. */
27719 #include <$ac_header>
27721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27724 grep -v '^ *+' conftest.er1 >conftest.err
27726 cat conftest.err >&5
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); } >/dev/null; then
27729 if test -s conftest.err; then
27730 ac_cpp_err=$ac_cxx_preproc_warn_flag
27731 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27738 if test -z "$ac_cpp_err"; then
27739 ac_header_preproc=yes
27741 echo "$as_me: failed program was:" >&5
27742 sed 's/^/| /' conftest.$ac_ext >&5
27744 ac_header_preproc=no
27746 rm -f conftest.err conftest.$ac_ext
27747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27748 echo "${ECHO_T}$ac_header_preproc" >&6
27750 # So? What about this header?
27751 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27757 ac_header_preproc=yes
27760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27774 ## ------------------------------------------ ##
27775 ## Report this to the AC_PACKAGE_NAME lists. ##
27776 ## ------------------------------------------ ##
27779 sed "s/^/$as_me: WARNING: /" >&2
27782 echo "$as_me:$LINENO: checking for $ac_header" >&5
27783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27785 echo $ECHO_N "(cached) $ECHO_C" >&6
27787 eval "$as_ac_Header=\$ac_header_preproc"
27789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27794 cat >>confdefs.h <<_ACEOF
27795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27803 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
27804 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
27805 if test "${ac_cv_c_bigendian+set}" = set; then
27806 echo $ECHO_N "(cached) $ECHO_C" >&6
27808 # See if sys/param.h defines the BYTE_ORDER macro.
27809 cat >conftest.$ac_ext <<_ACEOF
27812 cat confdefs.h >>conftest.$ac_ext
27813 cat >>conftest.$ac_ext <<_ACEOF
27814 /* end confdefs.h. */
27815 #include <sys/types.h>
27816 #include <sys/param.h>
27821 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
27822 bogus endian macros
27829 rm -f conftest.$ac_objext
27830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27831 (eval $ac_compile) 2>conftest.er1
27833 grep -v '^ *+' conftest.er1 >conftest.err
27835 cat conftest.err >&5
27836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837 (exit $ac_status); } &&
27838 { ac_try='test -z "$ac_cxx_werror_flag"
27839 || test ! -s conftest.err'
27840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27841 (eval $ac_try) 2>&5
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); }; } &&
27845 { ac_try='test -s conftest.$ac_objext'
27846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27847 (eval $ac_try) 2>&5
27849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850 (exit $ac_status); }; }; then
27851 # It does; now see whether it defined to BIG_ENDIAN or not.
27852 cat >conftest.$ac_ext <<_ACEOF
27855 cat confdefs.h >>conftest.$ac_ext
27856 cat >>conftest.$ac_ext <<_ACEOF
27857 /* end confdefs.h. */
27858 #include <sys/types.h>
27859 #include <sys/param.h>
27864 #if BYTE_ORDER != BIG_ENDIAN
27872 rm -f conftest.$ac_objext
27873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27874 (eval $ac_compile) 2>conftest.er1
27876 grep -v '^ *+' conftest.er1 >conftest.err
27878 cat conftest.err >&5
27879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880 (exit $ac_status); } &&
27881 { ac_try='test -z "$ac_cxx_werror_flag"
27882 || test ! -s conftest.err'
27883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27884 (eval $ac_try) 2>&5
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); }; } &&
27888 { ac_try='test -s conftest.$ac_objext'
27889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27890 (eval $ac_try) 2>&5
27892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893 (exit $ac_status); }; }; then
27894 ac_cv_c_bigendian=yes
27896 echo "$as_me: failed program was:" >&5
27897 sed 's/^/| /' conftest.$ac_ext >&5
27899 ac_cv_c_bigendian=no
27901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27903 echo "$as_me: failed program was:" >&5
27904 sed 's/^/| /' conftest.$ac_ext >&5
27906 # It does not; compile a test program.
27907 if test "$cross_compiling" = yes; then
27908 # try to guess the endianness by grepping values into an object file
27909 ac_cv_c_bigendian=unknown
27910 cat >conftest.$ac_ext <<_ACEOF
27913 cat confdefs.h >>conftest.$ac_ext
27914 cat >>conftest.$ac_ext <<_ACEOF
27915 /* end confdefs.h. */
27916 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27917 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27918 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
27919 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27920 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27921 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
27925 _ascii (); _ebcdic ();
27930 rm -f conftest.$ac_objext
27931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27932 (eval $ac_compile) 2>conftest.er1
27934 grep -v '^ *+' conftest.er1 >conftest.err
27936 cat conftest.err >&5
27937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27938 (exit $ac_status); } &&
27939 { ac_try='test -z "$ac_cxx_werror_flag"
27940 || test ! -s conftest.err'
27941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27942 (eval $ac_try) 2>&5
27944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945 (exit $ac_status); }; } &&
27946 { ac_try='test -s conftest.$ac_objext'
27947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27948 (eval $ac_try) 2>&5
27950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951 (exit $ac_status); }; }; then
27952 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
27953 ac_cv_c_bigendian=yes
27955 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
27956 if test "$ac_cv_c_bigendian" = unknown; then
27957 ac_cv_c_bigendian=no
27959 # finding both strings is unlikely to happen, but who knows?
27960 ac_cv_c_bigendian=unknown
27964 echo "$as_me: failed program was:" >&5
27965 sed 's/^/| /' conftest.$ac_ext >&5
27968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27970 cat >conftest.$ac_ext <<_ACEOF
27973 cat confdefs.h >>conftest.$ac_ext
27974 cat >>conftest.$ac_ext <<_ACEOF
27975 /* end confdefs.h. */
27979 /* Are we little or big endian? From Harbison&Steele. */
27983 char c[sizeof (long)];
27986 exit (u.c[sizeof (long) - 1] == 1);
27989 rm -f conftest$ac_exeext
27990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27991 (eval $ac_link) 2>&5
27993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27996 (eval $ac_try) 2>&5
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); }; }; then
28000 ac_cv_c_bigendian=no
28002 echo "$as_me: program exited with status $ac_status" >&5
28003 echo "$as_me: failed program was:" >&5
28004 sed 's/^/| /' conftest.$ac_ext >&5
28006 ( exit $ac_status )
28007 ac_cv_c_bigendian=yes
28009 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28014 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
28015 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
28016 case $ac_cv_c_bigendian in
28019 cat >>confdefs.h <<\_ACEOF
28020 #define WORDS_BIGENDIAN 1
28026 { { echo "$as_me:$LINENO: error: unknown endianness
28027 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
28028 echo "$as_me: error: unknown endianness
28029 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
28030 { (exit 1); exit 1; }; } ;;
28033 echo "$as_me:$LINENO: checking for size_t" >&5
28034 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28035 if test "${ac_cv_type_size_t+set}" = set; then
28036 echo $ECHO_N "(cached) $ECHO_C" >&6
28038 cat >conftest.$ac_ext <<_ACEOF
28041 cat confdefs.h >>conftest.$ac_ext
28042 cat >>conftest.$ac_ext <<_ACEOF
28043 /* end confdefs.h. */
28044 $ac_includes_default
28050 if (sizeof (size_t))
28056 rm -f conftest.$ac_objext
28057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28058 (eval $ac_compile) 2>conftest.er1
28060 grep -v '^ *+' conftest.er1 >conftest.err
28062 cat conftest.err >&5
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); } &&
28065 { ac_try='test -z "$ac_cxx_werror_flag"
28066 || test ! -s conftest.err'
28067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28068 (eval $ac_try) 2>&5
28070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071 (exit $ac_status); }; } &&
28072 { ac_try='test -s conftest.$ac_objext'
28073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28074 (eval $ac_try) 2>&5
28076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077 (exit $ac_status); }; }; then
28078 ac_cv_type_size_t=yes
28080 echo "$as_me: failed program was:" >&5
28081 sed 's/^/| /' conftest.$ac_ext >&5
28083 ac_cv_type_size_t=no
28085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28087 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28088 echo "${ECHO_T}$ac_cv_type_size_t" >&6
28089 if test $ac_cv_type_size_t = yes; then
28093 cat >>confdefs.h <<_ACEOF
28094 #define size_t unsigned
28100 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
28101 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
28102 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
28103 echo $ECHO_N "(cached) $ECHO_C" >&6
28105 cat >conftest.$ac_ext <<_ACEOF
28108 cat confdefs.h >>conftest.$ac_ext
28109 cat >>conftest.$ac_ext <<_ACEOF
28110 /* end confdefs.h. */
28111 $ac_includes_default
28115 static struct stat ac_aggr;
28116 if (ac_aggr.st_blksize)
28122 rm -f conftest.$ac_objext
28123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28124 (eval $ac_compile) 2>conftest.er1
28126 grep -v '^ *+' conftest.er1 >conftest.err
28128 cat conftest.err >&5
28129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130 (exit $ac_status); } &&
28131 { ac_try='test -z "$ac_cxx_werror_flag"
28132 || test ! -s conftest.err'
28133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28134 (eval $ac_try) 2>&5
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); }; } &&
28138 { ac_try='test -s conftest.$ac_objext'
28139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28140 (eval $ac_try) 2>&5
28142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143 (exit $ac_status); }; }; then
28144 ac_cv_member_struct_stat_st_blksize=yes
28146 echo "$as_me: failed program was:" >&5
28147 sed 's/^/| /' conftest.$ac_ext >&5
28149 cat >conftest.$ac_ext <<_ACEOF
28152 cat confdefs.h >>conftest.$ac_ext
28153 cat >>conftest.$ac_ext <<_ACEOF
28154 /* end confdefs.h. */
28155 $ac_includes_default
28159 static struct stat ac_aggr;
28160 if (sizeof ac_aggr.st_blksize)
28166 rm -f conftest.$ac_objext
28167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28168 (eval $ac_compile) 2>conftest.er1
28170 grep -v '^ *+' conftest.er1 >conftest.err
28172 cat conftest.err >&5
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); } &&
28175 { ac_try='test -z "$ac_cxx_werror_flag"
28176 || test ! -s conftest.err'
28177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28178 (eval $ac_try) 2>&5
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); }; } &&
28182 { ac_try='test -s conftest.$ac_objext'
28183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28184 (eval $ac_try) 2>&5
28186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); }; }; then
28188 ac_cv_member_struct_stat_st_blksize=yes
28190 echo "$as_me: failed program was:" >&5
28191 sed 's/^/| /' conftest.$ac_ext >&5
28193 ac_cv_member_struct_stat_st_blksize=no
28195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28199 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
28200 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
28201 if test $ac_cv_member_struct_stat_st_blksize = yes; then
28203 cat >>confdefs.h <<_ACEOF
28204 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
28208 cat >>confdefs.h <<\_ACEOF
28209 #define HAVE_ST_BLKSIZE 1
28215 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
28216 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
28217 if test "${ac_cv_have_sig_atomic_t+set}" = set; then
28218 echo $ECHO_N "(cached) $ECHO_C" >&6
28220 cat >conftest.$ac_ext <<_ACEOF
28223 cat confdefs.h >>conftest.$ac_ext
28224 cat >>conftest.$ac_ext <<_ACEOF
28225 /* end confdefs.h. */
28226 #include <signal.h>
28235 rm -f conftest.$ac_objext conftest$ac_exeext
28236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28237 (eval $ac_link) 2>conftest.er1
28239 grep -v '^ *+' conftest.er1 >conftest.err
28241 cat conftest.err >&5
28242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243 (exit $ac_status); } &&
28244 { ac_try='test -z "$ac_cxx_werror_flag"
28245 || test ! -s conftest.err'
28246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28247 (eval $ac_try) 2>&5
28249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250 (exit $ac_status); }; } &&
28251 { ac_try='test -s conftest$ac_exeext'
28252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28253 (eval $ac_try) 2>&5
28255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256 (exit $ac_status); }; }; then
28257 ac_cv_have_sig_atomic_t=yes
28259 echo "$as_me: failed program was:" >&5
28260 sed 's/^/| /' conftest.$ac_ext >&5
28262 ac_cv_have_sig_atomic_t=no
28264 rm -f conftest.err conftest.$ac_objext \
28265 conftest$ac_exeext conftest.$ac_ext
28267 echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5
28268 echo "${ECHO_T}$ac_cv_have_sig_atomic_t" >&6
28269 if test "$ac_cv_have_sig_atomic_t" = "no"
28271 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28272 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
28273 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28274 echo $ECHO_N "(cached) $ECHO_C" >&6
28276 cat >conftest.$ac_ext <<_ACEOF
28279 cat confdefs.h >>conftest.$ac_ext
28280 cat >>conftest.$ac_ext <<_ACEOF
28281 /* end confdefs.h. */
28282 $ac_includes_default
28286 if ((sig_atomic_t *) 0)
28288 if (sizeof (sig_atomic_t))
28294 rm -f conftest.$ac_objext
28295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28296 (eval $ac_compile) 2>conftest.er1
28298 grep -v '^ *+' conftest.er1 >conftest.err
28300 cat conftest.err >&5
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); } &&
28303 { ac_try='test -z "$ac_cxx_werror_flag"
28304 || test ! -s conftest.err'
28305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28306 (eval $ac_try) 2>&5
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); }; } &&
28310 { ac_try='test -s conftest.$ac_objext'
28311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28312 (eval $ac_try) 2>&5
28314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315 (exit $ac_status); }; }; then
28316 ac_cv_type_sig_atomic_t=yes
28318 echo "$as_me: failed program was:" >&5
28319 sed 's/^/| /' conftest.$ac_ext >&5
28321 ac_cv_type_sig_atomic_t=no
28323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28325 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28326 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
28327 if test $ac_cv_type_sig_atomic_t = yes; then
28331 cat >>confdefs.h <<_ACEOF
28332 #define sig_atomic_t int
28338 echo "$as_me:$LINENO: checking for size_t" >&5
28339 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28340 if test "${ac_cv_type_size_t+set}" = set; then
28341 echo $ECHO_N "(cached) $ECHO_C" >&6
28343 cat >conftest.$ac_ext <<_ACEOF
28346 cat confdefs.h >>conftest.$ac_ext
28347 cat >>conftest.$ac_ext <<_ACEOF
28348 /* end confdefs.h. */
28349 $ac_includes_default
28355 if (sizeof (size_t))
28361 rm -f conftest.$ac_objext
28362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28363 (eval $ac_compile) 2>conftest.er1
28365 grep -v '^ *+' conftest.er1 >conftest.err
28367 cat conftest.err >&5
28368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); } &&
28370 { ac_try='test -z "$ac_cxx_werror_flag"
28371 || test ! -s conftest.err'
28372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28373 (eval $ac_try) 2>&5
28375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376 (exit $ac_status); }; } &&
28377 { ac_try='test -s conftest.$ac_objext'
28378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28379 (eval $ac_try) 2>&5
28381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382 (exit $ac_status); }; }; then
28383 ac_cv_type_size_t=yes
28385 echo "$as_me: failed program was:" >&5
28386 sed 's/^/| /' conftest.$ac_ext >&5
28388 ac_cv_type_size_t=no
28390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28392 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28393 echo "${ECHO_T}$ac_cv_type_size_t" >&6
28395 echo "$as_me:$LINENO: checking size of size_t" >&5
28396 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
28397 if test "${ac_cv_sizeof_size_t+set}" = set; then
28398 echo $ECHO_N "(cached) $ECHO_C" >&6
28400 if test "$ac_cv_type_size_t" = yes; then
28401 # The cast to unsigned long works around a bug in the HP C Compiler
28402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28404 # This bug is HP SR number 8606223364.
28405 if test "$cross_compiling" = yes; then
28406 # Depending upon the size, compute the lo and hi bounds.
28407 cat >conftest.$ac_ext <<_ACEOF
28410 cat confdefs.h >>conftest.$ac_ext
28411 cat >>conftest.$ac_ext <<_ACEOF
28412 /* end confdefs.h. */
28413 $ac_includes_default
28417 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
28424 rm -f conftest.$ac_objext
28425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28426 (eval $ac_compile) 2>conftest.er1
28428 grep -v '^ *+' conftest.er1 >conftest.err
28430 cat conftest.err >&5
28431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432 (exit $ac_status); } &&
28433 { ac_try='test -z "$ac_cxx_werror_flag"
28434 || test ! -s conftest.err'
28435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28436 (eval $ac_try) 2>&5
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); }; } &&
28440 { ac_try='test -s conftest.$ac_objext'
28441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28442 (eval $ac_try) 2>&5
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); }; }; then
28448 cat >conftest.$ac_ext <<_ACEOF
28451 cat confdefs.h >>conftest.$ac_ext
28452 cat >>conftest.$ac_ext <<_ACEOF
28453 /* end confdefs.h. */
28454 $ac_includes_default
28458 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
28465 rm -f conftest.$ac_objext
28466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28467 (eval $ac_compile) 2>conftest.er1
28469 grep -v '^ *+' conftest.er1 >conftest.err
28471 cat conftest.err >&5
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473 (exit $ac_status); } &&
28474 { ac_try='test -z "$ac_cxx_werror_flag"
28475 || test ! -s conftest.err'
28476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28477 (eval $ac_try) 2>&5
28479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480 (exit $ac_status); }; } &&
28481 { ac_try='test -s conftest.$ac_objext'
28482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28483 (eval $ac_try) 2>&5
28485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486 (exit $ac_status); }; }; then
28487 ac_hi=$ac_mid; break
28489 echo "$as_me: failed program was:" >&5
28490 sed 's/^/| /' conftest.$ac_ext >&5
28492 ac_lo=`expr $ac_mid + 1`
28493 if test $ac_lo -le $ac_mid; then
28497 ac_mid=`expr 2 '*' $ac_mid + 1`
28499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28502 echo "$as_me: failed program was:" >&5
28503 sed 's/^/| /' conftest.$ac_ext >&5
28505 cat >conftest.$ac_ext <<_ACEOF
28508 cat confdefs.h >>conftest.$ac_ext
28509 cat >>conftest.$ac_ext <<_ACEOF
28510 /* end confdefs.h. */
28511 $ac_includes_default
28515 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
28522 rm -f conftest.$ac_objext
28523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28524 (eval $ac_compile) 2>conftest.er1
28526 grep -v '^ *+' conftest.er1 >conftest.err
28528 cat conftest.err >&5
28529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 (exit $ac_status); } &&
28531 { ac_try='test -z "$ac_cxx_werror_flag"
28532 || test ! -s conftest.err'
28533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28534 (eval $ac_try) 2>&5
28536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537 (exit $ac_status); }; } &&
28538 { ac_try='test -s conftest.$ac_objext'
28539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28540 (eval $ac_try) 2>&5
28542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); }; }; then
28546 cat >conftest.$ac_ext <<_ACEOF
28549 cat confdefs.h >>conftest.$ac_ext
28550 cat >>conftest.$ac_ext <<_ACEOF
28551 /* end confdefs.h. */
28552 $ac_includes_default
28556 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
28563 rm -f conftest.$ac_objext
28564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28565 (eval $ac_compile) 2>conftest.er1
28567 grep -v '^ *+' conftest.er1 >conftest.err
28569 cat conftest.err >&5
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); } &&
28572 { ac_try='test -z "$ac_cxx_werror_flag"
28573 || test ! -s conftest.err'
28574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575 (eval $ac_try) 2>&5
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); }; } &&
28579 { ac_try='test -s conftest.$ac_objext'
28580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28581 (eval $ac_try) 2>&5
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); }; }; then
28585 ac_lo=$ac_mid; break
28587 echo "$as_me: failed program was:" >&5
28588 sed 's/^/| /' conftest.$ac_ext >&5
28590 ac_hi=`expr '(' $ac_mid ')' - 1`
28591 if test $ac_mid -le $ac_hi; then
28595 ac_mid=`expr 2 '*' $ac_mid`
28597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28600 echo "$as_me: failed program was:" >&5
28601 sed 's/^/| /' conftest.$ac_ext >&5
28605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28608 # Binary search between lo and hi bounds.
28609 while test "x$ac_lo" != "x$ac_hi"; do
28610 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28611 cat >conftest.$ac_ext <<_ACEOF
28614 cat confdefs.h >>conftest.$ac_ext
28615 cat >>conftest.$ac_ext <<_ACEOF
28616 /* end confdefs.h. */
28617 $ac_includes_default
28621 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
28628 rm -f conftest.$ac_objext
28629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28630 (eval $ac_compile) 2>conftest.er1
28632 grep -v '^ *+' conftest.er1 >conftest.err
28634 cat conftest.err >&5
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); } &&
28637 { ac_try='test -z "$ac_cxx_werror_flag"
28638 || test ! -s conftest.err'
28639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640 (eval $ac_try) 2>&5
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); }; } &&
28644 { ac_try='test -s conftest.$ac_objext'
28645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28646 (eval $ac_try) 2>&5
28648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); }; }; then
28652 echo "$as_me: failed program was:" >&5
28653 sed 's/^/| /' conftest.$ac_ext >&5
28655 ac_lo=`expr '(' $ac_mid ')' + 1`
28657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28660 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28661 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
28662 See \`config.log' for more details." >&5
28663 echo "$as_me: error: cannot compute sizeof (size_t), 77
28664 See \`config.log' for more details." >&2;}
28665 { (exit 1); exit 1; }; } ;;
28668 if test "$cross_compiling" = yes; then
28669 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28670 See \`config.log' for more details." >&5
28671 echo "$as_me: error: cannot run test program while cross compiling
28672 See \`config.log' for more details." >&2;}
28673 { (exit 1); exit 1; }; }
28675 cat >conftest.$ac_ext <<_ACEOF
28678 cat confdefs.h >>conftest.$ac_ext
28679 cat >>conftest.$ac_ext <<_ACEOF
28680 /* end confdefs.h. */
28681 $ac_includes_default
28682 long longval () { return (long) (sizeof (size_t)); }
28683 unsigned long ulongval () { return (long) (sizeof (size_t)); }
28685 #include <stdlib.h>
28690 FILE *f = fopen ("conftest.val", "w");
28693 if (((long) (sizeof (size_t))) < 0)
28695 long i = longval ();
28696 if (i != ((long) (sizeof (size_t))))
28698 fprintf (f, "%ld\n", i);
28702 unsigned long i = ulongval ();
28703 if (i != ((long) (sizeof (size_t))))
28705 fprintf (f, "%lu\n", i);
28707 exit (ferror (f) || fclose (f) != 0);
28713 rm -f conftest$ac_exeext
28714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28715 (eval $ac_link) 2>&5
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28720 (eval $ac_try) 2>&5
28722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723 (exit $ac_status); }; }; then
28724 ac_cv_sizeof_size_t=`cat conftest.val`
28726 echo "$as_me: program exited with status $ac_status" >&5
28727 echo "$as_me: failed program was:" >&5
28728 sed 's/^/| /' conftest.$ac_ext >&5
28730 ( exit $ac_status )
28731 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
28732 See \`config.log' for more details." >&5
28733 echo "$as_me: error: cannot compute sizeof (size_t), 77
28734 See \`config.log' for more details." >&2;}
28735 { (exit 1); exit 1; }; }
28737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28742 ac_cv_sizeof_size_t=0
28745 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28746 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
28747 cat >>confdefs.h <<_ACEOF
28748 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28752 echo "$as_me:$LINENO: checking for unsigned int" >&5
28753 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
28754 if test "${ac_cv_type_unsigned_int+set}" = set; then
28755 echo $ECHO_N "(cached) $ECHO_C" >&6
28757 cat >conftest.$ac_ext <<_ACEOF
28760 cat confdefs.h >>conftest.$ac_ext
28761 cat >>conftest.$ac_ext <<_ACEOF
28762 /* end confdefs.h. */
28763 $ac_includes_default
28767 if ((unsigned int *) 0)
28769 if (sizeof (unsigned int))
28775 rm -f conftest.$ac_objext
28776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28777 (eval $ac_compile) 2>conftest.er1
28779 grep -v '^ *+' conftest.er1 >conftest.err
28781 cat conftest.err >&5
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); } &&
28784 { ac_try='test -z "$ac_cxx_werror_flag"
28785 || test ! -s conftest.err'
28786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28787 (eval $ac_try) 2>&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); }; } &&
28791 { ac_try='test -s conftest.$ac_objext'
28792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28793 (eval $ac_try) 2>&5
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); }; }; then
28797 ac_cv_type_unsigned_int=yes
28799 echo "$as_me: failed program was:" >&5
28800 sed 's/^/| /' conftest.$ac_ext >&5
28802 ac_cv_type_unsigned_int=no
28804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28806 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
28807 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
28809 echo "$as_me:$LINENO: checking size of unsigned int" >&5
28810 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
28811 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
28812 echo $ECHO_N "(cached) $ECHO_C" >&6
28814 if test "$ac_cv_type_unsigned_int" = yes; then
28815 # The cast to unsigned long works around a bug in the HP C Compiler
28816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28818 # This bug is HP SR number 8606223364.
28819 if test "$cross_compiling" = yes; then
28820 # Depending upon the size, compute the lo and hi bounds.
28821 cat >conftest.$ac_ext <<_ACEOF
28824 cat confdefs.h >>conftest.$ac_ext
28825 cat >>conftest.$ac_ext <<_ACEOF
28826 /* end confdefs.h. */
28827 $ac_includes_default
28831 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
28838 rm -f conftest.$ac_objext
28839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28840 (eval $ac_compile) 2>conftest.er1
28842 grep -v '^ *+' conftest.er1 >conftest.err
28844 cat conftest.err >&5
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); } &&
28847 { ac_try='test -z "$ac_cxx_werror_flag"
28848 || test ! -s conftest.err'
28849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28850 (eval $ac_try) 2>&5
28852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853 (exit $ac_status); }; } &&
28854 { ac_try='test -s conftest.$ac_objext'
28855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28856 (eval $ac_try) 2>&5
28858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); }; }; then
28862 cat >conftest.$ac_ext <<_ACEOF
28865 cat confdefs.h >>conftest.$ac_ext
28866 cat >>conftest.$ac_ext <<_ACEOF
28867 /* end confdefs.h. */
28868 $ac_includes_default
28872 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
28879 rm -f conftest.$ac_objext
28880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28881 (eval $ac_compile) 2>conftest.er1
28883 grep -v '^ *+' conftest.er1 >conftest.err
28885 cat conftest.err >&5
28886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887 (exit $ac_status); } &&
28888 { ac_try='test -z "$ac_cxx_werror_flag"
28889 || test ! -s conftest.err'
28890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28891 (eval $ac_try) 2>&5
28893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894 (exit $ac_status); }; } &&
28895 { ac_try='test -s conftest.$ac_objext'
28896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28897 (eval $ac_try) 2>&5
28899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); }; }; then
28901 ac_hi=$ac_mid; break
28903 echo "$as_me: failed program was:" >&5
28904 sed 's/^/| /' conftest.$ac_ext >&5
28906 ac_lo=`expr $ac_mid + 1`
28907 if test $ac_lo -le $ac_mid; then
28911 ac_mid=`expr 2 '*' $ac_mid + 1`
28913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28916 echo "$as_me: failed program was:" >&5
28917 sed 's/^/| /' conftest.$ac_ext >&5
28919 cat >conftest.$ac_ext <<_ACEOF
28922 cat confdefs.h >>conftest.$ac_ext
28923 cat >>conftest.$ac_ext <<_ACEOF
28924 /* end confdefs.h. */
28925 $ac_includes_default
28929 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
28936 rm -f conftest.$ac_objext
28937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28938 (eval $ac_compile) 2>conftest.er1
28940 grep -v '^ *+' conftest.er1 >conftest.err
28942 cat conftest.err >&5
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); } &&
28945 { ac_try='test -z "$ac_cxx_werror_flag"
28946 || test ! -s conftest.err'
28947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28948 (eval $ac_try) 2>&5
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); }; } &&
28952 { ac_try='test -s conftest.$ac_objext'
28953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28954 (eval $ac_try) 2>&5
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); }; }; then
28960 cat >conftest.$ac_ext <<_ACEOF
28963 cat confdefs.h >>conftest.$ac_ext
28964 cat >>conftest.$ac_ext <<_ACEOF
28965 /* end confdefs.h. */
28966 $ac_includes_default
28970 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
28977 rm -f conftest.$ac_objext
28978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28979 (eval $ac_compile) 2>conftest.er1
28981 grep -v '^ *+' conftest.er1 >conftest.err
28983 cat conftest.err >&5
28984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985 (exit $ac_status); } &&
28986 { ac_try='test -z "$ac_cxx_werror_flag"
28987 || test ! -s conftest.err'
28988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28989 (eval $ac_try) 2>&5
28991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 (exit $ac_status); }; } &&
28993 { ac_try='test -s conftest.$ac_objext'
28994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28995 (eval $ac_try) 2>&5
28997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 (exit $ac_status); }; }; then
28999 ac_lo=$ac_mid; break
29001 echo "$as_me: failed program was:" >&5
29002 sed 's/^/| /' conftest.$ac_ext >&5
29004 ac_hi=`expr '(' $ac_mid ')' - 1`
29005 if test $ac_mid -le $ac_hi; then
29009 ac_mid=`expr 2 '*' $ac_mid`
29011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29014 echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29022 # Binary search between lo and hi bounds.
29023 while test "x$ac_lo" != "x$ac_hi"; do
29024 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29025 cat >conftest.$ac_ext <<_ACEOF
29028 cat confdefs.h >>conftest.$ac_ext
29029 cat >>conftest.$ac_ext <<_ACEOF
29030 /* end confdefs.h. */
29031 $ac_includes_default
29035 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
29042 rm -f conftest.$ac_objext
29043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29044 (eval $ac_compile) 2>conftest.er1
29046 grep -v '^ *+' conftest.er1 >conftest.err
29048 cat conftest.err >&5
29049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050 (exit $ac_status); } &&
29051 { ac_try='test -z "$ac_cxx_werror_flag"
29052 || test ! -s conftest.err'
29053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29054 (eval $ac_try) 2>&5
29056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); }; } &&
29058 { ac_try='test -s conftest.$ac_objext'
29059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29060 (eval $ac_try) 2>&5
29062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063 (exit $ac_status); }; }; then
29066 echo "$as_me: failed program was:" >&5
29067 sed 's/^/| /' conftest.$ac_ext >&5
29069 ac_lo=`expr '(' $ac_mid ')' + 1`
29071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29074 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
29075 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
29076 See \`config.log' for more details." >&5
29077 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
29078 See \`config.log' for more details." >&2;}
29079 { (exit 1); exit 1; }; } ;;
29082 if test "$cross_compiling" = yes; then
29083 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29084 See \`config.log' for more details." >&5
29085 echo "$as_me: error: cannot run test program while cross compiling
29086 See \`config.log' for more details." >&2;}
29087 { (exit 1); exit 1; }; }
29089 cat >conftest.$ac_ext <<_ACEOF
29092 cat confdefs.h >>conftest.$ac_ext
29093 cat >>conftest.$ac_ext <<_ACEOF
29094 /* end confdefs.h. */
29095 $ac_includes_default
29096 long longval () { return (long) (sizeof (unsigned int)); }
29097 unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
29099 #include <stdlib.h>
29104 FILE *f = fopen ("conftest.val", "w");
29107 if (((long) (sizeof (unsigned int))) < 0)
29109 long i = longval ();
29110 if (i != ((long) (sizeof (unsigned int))))
29112 fprintf (f, "%ld\n", i);
29116 unsigned long i = ulongval ();
29117 if (i != ((long) (sizeof (unsigned int))))
29119 fprintf (f, "%lu\n", i);
29121 exit (ferror (f) || fclose (f) != 0);
29127 rm -f conftest$ac_exeext
29128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29129 (eval $ac_link) 2>&5
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29134 (eval $ac_try) 2>&5
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); }; }; then
29138 ac_cv_sizeof_unsigned_int=`cat conftest.val`
29140 echo "$as_me: program exited with status $ac_status" >&5
29141 echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29144 ( exit $ac_status )
29145 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
29146 See \`config.log' for more details." >&5
29147 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
29148 See \`config.log' for more details." >&2;}
29149 { (exit 1); exit 1; }; }
29151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29156 ac_cv_sizeof_unsigned_int=0
29159 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
29160 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
29161 cat >>confdefs.h <<_ACEOF
29162 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
29166 echo "$as_me:$LINENO: checking for unsigned short" >&5
29167 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
29168 if test "${ac_cv_type_unsigned_short+set}" = set; then
29169 echo $ECHO_N "(cached) $ECHO_C" >&6
29171 cat >conftest.$ac_ext <<_ACEOF
29174 cat confdefs.h >>conftest.$ac_ext
29175 cat >>conftest.$ac_ext <<_ACEOF
29176 /* end confdefs.h. */
29177 $ac_includes_default
29181 if ((unsigned short *) 0)
29183 if (sizeof (unsigned short))
29189 rm -f conftest.$ac_objext
29190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29191 (eval $ac_compile) 2>conftest.er1
29193 grep -v '^ *+' conftest.er1 >conftest.err
29195 cat conftest.err >&5
29196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29197 (exit $ac_status); } &&
29198 { ac_try='test -z "$ac_cxx_werror_flag"
29199 || test ! -s conftest.err'
29200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29201 (eval $ac_try) 2>&5
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; } &&
29205 { ac_try='test -s conftest.$ac_objext'
29206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29207 (eval $ac_try) 2>&5
29209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210 (exit $ac_status); }; }; then
29211 ac_cv_type_unsigned_short=yes
29213 echo "$as_me: failed program was:" >&5
29214 sed 's/^/| /' conftest.$ac_ext >&5
29216 ac_cv_type_unsigned_short=no
29218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29220 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
29221 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
29223 echo "$as_me:$LINENO: checking size of unsigned short" >&5
29224 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
29225 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
29226 echo $ECHO_N "(cached) $ECHO_C" >&6
29228 if test "$ac_cv_type_unsigned_short" = yes; then
29229 # The cast to unsigned long works around a bug in the HP C Compiler
29230 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29231 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29232 # This bug is HP SR number 8606223364.
29233 if test "$cross_compiling" = yes; then
29234 # Depending upon the size, compute the lo and hi bounds.
29235 cat >conftest.$ac_ext <<_ACEOF
29238 cat confdefs.h >>conftest.$ac_ext
29239 cat >>conftest.$ac_ext <<_ACEOF
29240 /* end confdefs.h. */
29241 $ac_includes_default
29245 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
29252 rm -f conftest.$ac_objext
29253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29254 (eval $ac_compile) 2>conftest.er1
29256 grep -v '^ *+' conftest.er1 >conftest.err
29258 cat conftest.err >&5
29259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260 (exit $ac_status); } &&
29261 { ac_try='test -z "$ac_cxx_werror_flag"
29262 || test ! -s conftest.err'
29263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29264 (eval $ac_try) 2>&5
29266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267 (exit $ac_status); }; } &&
29268 { ac_try='test -s conftest.$ac_objext'
29269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29270 (eval $ac_try) 2>&5
29272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273 (exit $ac_status); }; }; then
29276 cat >conftest.$ac_ext <<_ACEOF
29279 cat confdefs.h >>conftest.$ac_ext
29280 cat >>conftest.$ac_ext <<_ACEOF
29281 /* end confdefs.h. */
29282 $ac_includes_default
29286 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
29293 rm -f conftest.$ac_objext
29294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29295 (eval $ac_compile) 2>conftest.er1
29297 grep -v '^ *+' conftest.er1 >conftest.err
29299 cat conftest.err >&5
29300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301 (exit $ac_status); } &&
29302 { ac_try='test -z "$ac_cxx_werror_flag"
29303 || test ! -s conftest.err'
29304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29305 (eval $ac_try) 2>&5
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); }; } &&
29309 { ac_try='test -s conftest.$ac_objext'
29310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29311 (eval $ac_try) 2>&5
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; }; then
29315 ac_hi=$ac_mid; break
29317 echo "$as_me: failed program was:" >&5
29318 sed 's/^/| /' conftest.$ac_ext >&5
29320 ac_lo=`expr $ac_mid + 1`
29321 if test $ac_lo -le $ac_mid; then
29325 ac_mid=`expr 2 '*' $ac_mid + 1`
29327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29330 echo "$as_me: failed program was:" >&5
29331 sed 's/^/| /' conftest.$ac_ext >&5
29333 cat >conftest.$ac_ext <<_ACEOF
29336 cat confdefs.h >>conftest.$ac_ext
29337 cat >>conftest.$ac_ext <<_ACEOF
29338 /* end confdefs.h. */
29339 $ac_includes_default
29343 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
29350 rm -f conftest.$ac_objext
29351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29352 (eval $ac_compile) 2>conftest.er1
29354 grep -v '^ *+' conftest.er1 >conftest.err
29356 cat conftest.err >&5
29357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358 (exit $ac_status); } &&
29359 { ac_try='test -z "$ac_cxx_werror_flag"
29360 || test ! -s conftest.err'
29361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29362 (eval $ac_try) 2>&5
29364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365 (exit $ac_status); }; } &&
29366 { ac_try='test -s conftest.$ac_objext'
29367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29368 (eval $ac_try) 2>&5
29370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371 (exit $ac_status); }; }; then
29374 cat >conftest.$ac_ext <<_ACEOF
29377 cat confdefs.h >>conftest.$ac_ext
29378 cat >>conftest.$ac_ext <<_ACEOF
29379 /* end confdefs.h. */
29380 $ac_includes_default
29384 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
29391 rm -f conftest.$ac_objext
29392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29393 (eval $ac_compile) 2>conftest.er1
29395 grep -v '^ *+' conftest.er1 >conftest.err
29397 cat conftest.err >&5
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); } &&
29400 { ac_try='test -z "$ac_cxx_werror_flag"
29401 || test ! -s conftest.err'
29402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403 (eval $ac_try) 2>&5
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); }; } &&
29407 { ac_try='test -s conftest.$ac_objext'
29408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29409 (eval $ac_try) 2>&5
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); }; }; then
29413 ac_lo=$ac_mid; break
29415 echo "$as_me: failed program was:" >&5
29416 sed 's/^/| /' conftest.$ac_ext >&5
29418 ac_hi=`expr '(' $ac_mid ')' - 1`
29419 if test $ac_mid -le $ac_hi; then
29423 ac_mid=`expr 2 '*' $ac_mid`
29425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29428 echo "$as_me: failed program was:" >&5
29429 sed 's/^/| /' conftest.$ac_ext >&5
29433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29436 # Binary search between lo and hi bounds.
29437 while test "x$ac_lo" != "x$ac_hi"; do
29438 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29439 cat >conftest.$ac_ext <<_ACEOF
29442 cat confdefs.h >>conftest.$ac_ext
29443 cat >>conftest.$ac_ext <<_ACEOF
29444 /* end confdefs.h. */
29445 $ac_includes_default
29449 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
29456 rm -f conftest.$ac_objext
29457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29458 (eval $ac_compile) 2>conftest.er1
29460 grep -v '^ *+' conftest.er1 >conftest.err
29462 cat conftest.err >&5
29463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464 (exit $ac_status); } &&
29465 { ac_try='test -z "$ac_cxx_werror_flag"
29466 || test ! -s conftest.err'
29467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29468 (eval $ac_try) 2>&5
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); }; } &&
29472 { ac_try='test -s conftest.$ac_objext'
29473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29474 (eval $ac_try) 2>&5
29476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477 (exit $ac_status); }; }; then
29480 echo "$as_me: failed program was:" >&5
29481 sed 's/^/| /' conftest.$ac_ext >&5
29483 ac_lo=`expr '(' $ac_mid ')' + 1`
29485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29488 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
29489 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
29490 See \`config.log' for more details." >&5
29491 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
29492 See \`config.log' for more details." >&2;}
29493 { (exit 1); exit 1; }; } ;;
29496 if test "$cross_compiling" = yes; then
29497 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29498 See \`config.log' for more details." >&5
29499 echo "$as_me: error: cannot run test program while cross compiling
29500 See \`config.log' for more details." >&2;}
29501 { (exit 1); exit 1; }; }
29503 cat >conftest.$ac_ext <<_ACEOF
29506 cat confdefs.h >>conftest.$ac_ext
29507 cat >>conftest.$ac_ext <<_ACEOF
29508 /* end confdefs.h. */
29509 $ac_includes_default
29510 long longval () { return (long) (sizeof (unsigned short)); }
29511 unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
29513 #include <stdlib.h>
29518 FILE *f = fopen ("conftest.val", "w");
29521 if (((long) (sizeof (unsigned short))) < 0)
29523 long i = longval ();
29524 if (i != ((long) (sizeof (unsigned short))))
29526 fprintf (f, "%ld\n", i);
29530 unsigned long i = ulongval ();
29531 if (i != ((long) (sizeof (unsigned short))))
29533 fprintf (f, "%lu\n", i);
29535 exit (ferror (f) || fclose (f) != 0);
29541 rm -f conftest$ac_exeext
29542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29543 (eval $ac_link) 2>&5
29545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29548 (eval $ac_try) 2>&5
29550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 (exit $ac_status); }; }; then
29552 ac_cv_sizeof_unsigned_short=`cat conftest.val`
29554 echo "$as_me: program exited with status $ac_status" >&5
29555 echo "$as_me: failed program was:" >&5
29556 sed 's/^/| /' conftest.$ac_ext >&5
29558 ( exit $ac_status )
29559 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
29560 See \`config.log' for more details." >&5
29561 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
29562 See \`config.log' for more details." >&2;}
29563 { (exit 1); exit 1; }; }
29565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29570 ac_cv_sizeof_unsigned_short=0
29573 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
29574 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
29575 cat >>confdefs.h <<_ACEOF
29576 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
29580 echo "$as_me:$LINENO: checking for wchar_t" >&5
29581 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
29582 if test "${ac_cv_type_wchar_t+set}" = set; then
29583 echo $ECHO_N "(cached) $ECHO_C" >&6
29585 cat >conftest.$ac_ext <<_ACEOF
29588 cat confdefs.h >>conftest.$ac_ext
29589 cat >>conftest.$ac_ext <<_ACEOF
29590 /* end confdefs.h. */
29600 if (sizeof (wchar_t))
29606 rm -f conftest.$ac_objext
29607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29608 (eval $ac_compile) 2>conftest.er1
29610 grep -v '^ *+' conftest.er1 >conftest.err
29612 cat conftest.err >&5
29613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614 (exit $ac_status); } &&
29615 { ac_try='test -z "$ac_cxx_werror_flag"
29616 || test ! -s conftest.err'
29617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29618 (eval $ac_try) 2>&5
29620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621 (exit $ac_status); }; } &&
29622 { ac_try='test -s conftest.$ac_objext'
29623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29624 (eval $ac_try) 2>&5
29626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627 (exit $ac_status); }; }; then
29628 ac_cv_type_wchar_t=yes
29630 echo "$as_me: failed program was:" >&5
29631 sed 's/^/| /' conftest.$ac_ext >&5
29633 ac_cv_type_wchar_t=no
29635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29637 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
29638 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
29640 echo "$as_me:$LINENO: checking size of wchar_t" >&5
29641 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
29642 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
29643 echo $ECHO_N "(cached) $ECHO_C" >&6
29645 if test "$ac_cv_type_wchar_t" = yes; then
29646 # The cast to unsigned long works around a bug in the HP C Compiler
29647 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29648 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29649 # This bug is HP SR number 8606223364.
29650 if test "$cross_compiling" = yes; then
29651 # Depending upon the size, compute the lo and hi bounds.
29652 cat >conftest.$ac_ext <<_ACEOF
29655 cat confdefs.h >>conftest.$ac_ext
29656 cat >>conftest.$ac_ext <<_ACEOF
29657 /* end confdefs.h. */
29665 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
29672 rm -f conftest.$ac_objext
29673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29674 (eval $ac_compile) 2>conftest.er1
29676 grep -v '^ *+' conftest.er1 >conftest.err
29678 cat conftest.err >&5
29679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680 (exit $ac_status); } &&
29681 { ac_try='test -z "$ac_cxx_werror_flag"
29682 || test ! -s conftest.err'
29683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29684 (eval $ac_try) 2>&5
29686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687 (exit $ac_status); }; } &&
29688 { ac_try='test -s conftest.$ac_objext'
29689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29690 (eval $ac_try) 2>&5
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); }; }; then
29696 cat >conftest.$ac_ext <<_ACEOF
29699 cat confdefs.h >>conftest.$ac_ext
29700 cat >>conftest.$ac_ext <<_ACEOF
29701 /* end confdefs.h. */
29709 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
29716 rm -f conftest.$ac_objext
29717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29718 (eval $ac_compile) 2>conftest.er1
29720 grep -v '^ *+' conftest.er1 >conftest.err
29722 cat conftest.err >&5
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); } &&
29725 { ac_try='test -z "$ac_cxx_werror_flag"
29726 || test ! -s conftest.err'
29727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29728 (eval $ac_try) 2>&5
29730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731 (exit $ac_status); }; } &&
29732 { ac_try='test -s conftest.$ac_objext'
29733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29734 (eval $ac_try) 2>&5
29736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737 (exit $ac_status); }; }; then
29738 ac_hi=$ac_mid; break
29740 echo "$as_me: failed program was:" >&5
29741 sed 's/^/| /' conftest.$ac_ext >&5
29743 ac_lo=`expr $ac_mid + 1`
29744 if test $ac_lo -le $ac_mid; then
29748 ac_mid=`expr 2 '*' $ac_mid + 1`
29750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29753 echo "$as_me: failed program was:" >&5
29754 sed 's/^/| /' conftest.$ac_ext >&5
29756 cat >conftest.$ac_ext <<_ACEOF
29759 cat confdefs.h >>conftest.$ac_ext
29760 cat >>conftest.$ac_ext <<_ACEOF
29761 /* end confdefs.h. */
29769 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
29776 rm -f conftest.$ac_objext
29777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29778 (eval $ac_compile) 2>conftest.er1
29780 grep -v '^ *+' conftest.er1 >conftest.err
29782 cat conftest.err >&5
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); } &&
29785 { ac_try='test -z "$ac_cxx_werror_flag"
29786 || test ! -s conftest.err'
29787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29788 (eval $ac_try) 2>&5
29790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791 (exit $ac_status); }; } &&
29792 { ac_try='test -s conftest.$ac_objext'
29793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29794 (eval $ac_try) 2>&5
29796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797 (exit $ac_status); }; }; then
29800 cat >conftest.$ac_ext <<_ACEOF
29803 cat confdefs.h >>conftest.$ac_ext
29804 cat >>conftest.$ac_ext <<_ACEOF
29805 /* end confdefs.h. */
29813 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
29820 rm -f conftest.$ac_objext
29821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29822 (eval $ac_compile) 2>conftest.er1
29824 grep -v '^ *+' conftest.er1 >conftest.err
29826 cat conftest.err >&5
29827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828 (exit $ac_status); } &&
29829 { ac_try='test -z "$ac_cxx_werror_flag"
29830 || test ! -s conftest.err'
29831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832 (eval $ac_try) 2>&5
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; } &&
29836 { ac_try='test -s conftest.$ac_objext'
29837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29838 (eval $ac_try) 2>&5
29840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841 (exit $ac_status); }; }; then
29842 ac_lo=$ac_mid; break
29844 echo "$as_me: failed program was:" >&5
29845 sed 's/^/| /' conftest.$ac_ext >&5
29847 ac_hi=`expr '(' $ac_mid ')' - 1`
29848 if test $ac_mid -le $ac_hi; then
29852 ac_mid=`expr 2 '*' $ac_mid`
29854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29857 echo "$as_me: failed program was:" >&5
29858 sed 's/^/| /' conftest.$ac_ext >&5
29862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29865 # Binary search between lo and hi bounds.
29866 while test "x$ac_lo" != "x$ac_hi"; do
29867 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29868 cat >conftest.$ac_ext <<_ACEOF
29871 cat confdefs.h >>conftest.$ac_ext
29872 cat >>conftest.$ac_ext <<_ACEOF
29873 /* end confdefs.h. */
29881 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
29888 rm -f conftest.$ac_objext
29889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29890 (eval $ac_compile) 2>conftest.er1
29892 grep -v '^ *+' conftest.er1 >conftest.err
29894 cat conftest.err >&5
29895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 (exit $ac_status); } &&
29897 { ac_try='test -z "$ac_cxx_werror_flag"
29898 || test ! -s conftest.err'
29899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29900 (eval $ac_try) 2>&5
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); }; } &&
29904 { ac_try='test -s conftest.$ac_objext'
29905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29906 (eval $ac_try) 2>&5
29908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29909 (exit $ac_status); }; }; then
29912 echo "$as_me: failed program was:" >&5
29913 sed 's/^/| /' conftest.$ac_ext >&5
29915 ac_lo=`expr '(' $ac_mid ')' + 1`
29917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29920 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
29921 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
29922 See \`config.log' for more details." >&5
29923 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
29924 See \`config.log' for more details." >&2;}
29925 { (exit 1); exit 1; }; } ;;
29928 if test "$cross_compiling" = yes; then
29929 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29930 See \`config.log' for more details." >&5
29931 echo "$as_me: error: cannot run test program while cross compiling
29932 See \`config.log' for more details." >&2;}
29933 { (exit 1); exit 1; }; }
29935 cat >conftest.$ac_ext <<_ACEOF
29938 cat confdefs.h >>conftest.$ac_ext
29939 cat >>conftest.$ac_ext <<_ACEOF
29940 /* end confdefs.h. */
29945 long longval () { return (long) (sizeof (wchar_t)); }
29946 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
29948 #include <stdlib.h>
29953 FILE *f = fopen ("conftest.val", "w");
29956 if (((long) (sizeof (wchar_t))) < 0)
29958 long i = longval ();
29959 if (i != ((long) (sizeof (wchar_t))))
29961 fprintf (f, "%ld\n", i);
29965 unsigned long i = ulongval ();
29966 if (i != ((long) (sizeof (wchar_t))))
29968 fprintf (f, "%lu\n", i);
29970 exit (ferror (f) || fclose (f) != 0);
29976 rm -f conftest$ac_exeext
29977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29978 (eval $ac_link) 2>&5
29980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983 (eval $ac_try) 2>&5
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); }; }; then
29987 ac_cv_sizeof_wchar_t=`cat conftest.val`
29989 echo "$as_me: program exited with status $ac_status" >&5
29990 echo "$as_me: failed program was:" >&5
29991 sed 's/^/| /' conftest.$ac_ext >&5
29993 ( exit $ac_status )
29994 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
29995 See \`config.log' for more details." >&5
29996 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
29997 See \`config.log' for more details." >&2;}
29998 { (exit 1); exit 1; }; }
30000 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30005 ac_cv_sizeof_wchar_t=0
30008 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
30009 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
30010 cat >>confdefs.h <<_ACEOF
30011 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
30015 echo "$as_me:$LINENO: checking whether the compiler recognizes bool as a built-in type" >&5
30016 echo $ECHO_N "checking whether the compiler recognizes bool as a built-in type... $ECHO_C" >&6
30017 if test "${ac_cv_cxx_bool+set}" = set; then
30018 echo $ECHO_N "(cached) $ECHO_C" >&6
30023 ac_cpp='$CXXCPP $CPPFLAGS'
30024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30028 cat >conftest.$ac_ext <<_ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h. */
30035 int f(int x){return 1;}
30036 int f(char x){return 1;}
30037 int f(bool x){return 1;}
30042 bool b = true; return f(b);
30047 rm -f conftest.$ac_objext
30048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30049 (eval $ac_compile) 2>conftest.er1
30051 grep -v '^ *+' conftest.er1 >conftest.err
30053 cat conftest.err >&5
30054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30055 (exit $ac_status); } &&
30056 { ac_try='test -z "$ac_cxx_werror_flag"
30057 || test ! -s conftest.err'
30058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30059 (eval $ac_try) 2>&5
30061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062 (exit $ac_status); }; } &&
30063 { ac_try='test -s conftest.$ac_objext'
30064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30065 (eval $ac_try) 2>&5
30067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068 (exit $ac_status); }; }; then
30071 echo "$as_me: failed program was:" >&5
30072 sed 's/^/| /' conftest.$ac_ext >&5
30076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30078 ac_cpp='$CXXCPP $CPPFLAGS'
30079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30085 echo "$as_me:$LINENO: result: $ac_cv_cxx_bool" >&5
30086 echo "${ECHO_T}$ac_cv_cxx_bool" >&6
30087 if test "$ac_cv_cxx_bool" = yes; then
30089 cat >>confdefs.h <<\_ACEOF
30095 if test "$ac_cv_cxx_bool" = yes; then
30096 echo "$as_me:$LINENO: checking for bool" >&5
30097 echo $ECHO_N "checking for bool... $ECHO_C" >&6
30098 if test "${ac_cv_type_bool+set}" = set; then
30099 echo $ECHO_N "(cached) $ECHO_C" >&6
30101 cat >conftest.$ac_ext <<_ACEOF
30104 cat confdefs.h >>conftest.$ac_ext
30105 cat >>conftest.$ac_ext <<_ACEOF
30106 /* end confdefs.h. */
30107 $ac_includes_default
30119 rm -f conftest.$ac_objext
30120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30121 (eval $ac_compile) 2>conftest.er1
30123 grep -v '^ *+' conftest.er1 >conftest.err
30125 cat conftest.err >&5
30126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127 (exit $ac_status); } &&
30128 { ac_try='test -z "$ac_cxx_werror_flag"
30129 || test ! -s conftest.err'
30130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30131 (eval $ac_try) 2>&5
30133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134 (exit $ac_status); }; } &&
30135 { ac_try='test -s conftest.$ac_objext'
30136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30137 (eval $ac_try) 2>&5
30139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140 (exit $ac_status); }; }; then
30141 ac_cv_type_bool=yes
30143 echo "$as_me: failed program was:" >&5
30144 sed 's/^/| /' conftest.$ac_ext >&5
30148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30150 echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
30151 echo "${ECHO_T}$ac_cv_type_bool" >&6
30153 echo "$as_me:$LINENO: checking size of bool" >&5
30154 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
30155 if test "${ac_cv_sizeof_bool+set}" = set; then
30156 echo $ECHO_N "(cached) $ECHO_C" >&6
30158 if test "$ac_cv_type_bool" = yes; then
30159 # The cast to unsigned long works around a bug in the HP C Compiler
30160 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30161 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30162 # This bug is HP SR number 8606223364.
30163 if test "$cross_compiling" = yes; then
30164 # Depending upon the size, compute the lo and hi bounds.
30165 cat >conftest.$ac_ext <<_ACEOF
30168 cat confdefs.h >>conftest.$ac_ext
30169 cat >>conftest.$ac_ext <<_ACEOF
30170 /* end confdefs.h. */
30171 $ac_includes_default
30175 static int test_array [1 - 2 * !(((long) (sizeof (bool))) >= 0)];
30182 rm -f conftest.$ac_objext
30183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30184 (eval $ac_compile) 2>conftest.er1
30186 grep -v '^ *+' conftest.er1 >conftest.err
30188 cat conftest.err >&5
30189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30190 (exit $ac_status); } &&
30191 { ac_try='test -z "$ac_cxx_werror_flag"
30192 || test ! -s conftest.err'
30193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30194 (eval $ac_try) 2>&5
30196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197 (exit $ac_status); }; } &&
30198 { ac_try='test -s conftest.$ac_objext'
30199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30200 (eval $ac_try) 2>&5
30202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203 (exit $ac_status); }; }; then
30206 cat >conftest.$ac_ext <<_ACEOF
30209 cat confdefs.h >>conftest.$ac_ext
30210 cat >>conftest.$ac_ext <<_ACEOF
30211 /* end confdefs.h. */
30212 $ac_includes_default
30216 static int test_array [1 - 2 * !(((long) (sizeof (bool))) <= $ac_mid)];
30223 rm -f conftest.$ac_objext
30224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30225 (eval $ac_compile) 2>conftest.er1
30227 grep -v '^ *+' conftest.er1 >conftest.err
30229 cat conftest.err >&5
30230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231 (exit $ac_status); } &&
30232 { ac_try='test -z "$ac_cxx_werror_flag"
30233 || test ! -s conftest.err'
30234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30235 (eval $ac_try) 2>&5
30237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30238 (exit $ac_status); }; } &&
30239 { ac_try='test -s conftest.$ac_objext'
30240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30241 (eval $ac_try) 2>&5
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); }; }; then
30245 ac_hi=$ac_mid; break
30247 echo "$as_me: failed program was:" >&5
30248 sed 's/^/| /' conftest.$ac_ext >&5
30250 ac_lo=`expr $ac_mid + 1`
30251 if test $ac_lo -le $ac_mid; then
30255 ac_mid=`expr 2 '*' $ac_mid + 1`
30257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30260 echo "$as_me: failed program was:" >&5
30261 sed 's/^/| /' conftest.$ac_ext >&5
30263 cat >conftest.$ac_ext <<_ACEOF
30266 cat confdefs.h >>conftest.$ac_ext
30267 cat >>conftest.$ac_ext <<_ACEOF
30268 /* end confdefs.h. */
30269 $ac_includes_default
30273 static int test_array [1 - 2 * !(((long) (sizeof (bool))) < 0)];
30280 rm -f conftest.$ac_objext
30281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30282 (eval $ac_compile) 2>conftest.er1
30284 grep -v '^ *+' conftest.er1 >conftest.err
30286 cat conftest.err >&5
30287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288 (exit $ac_status); } &&
30289 { ac_try='test -z "$ac_cxx_werror_flag"
30290 || test ! -s conftest.err'
30291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30292 (eval $ac_try) 2>&5
30294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295 (exit $ac_status); }; } &&
30296 { ac_try='test -s conftest.$ac_objext'
30297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30298 (eval $ac_try) 2>&5
30300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301 (exit $ac_status); }; }; then
30304 cat >conftest.$ac_ext <<_ACEOF
30307 cat confdefs.h >>conftest.$ac_ext
30308 cat >>conftest.$ac_ext <<_ACEOF
30309 /* end confdefs.h. */
30310 $ac_includes_default
30314 static int test_array [1 - 2 * !(((long) (sizeof (bool))) >= $ac_mid)];
30321 rm -f conftest.$ac_objext
30322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30323 (eval $ac_compile) 2>conftest.er1
30325 grep -v '^ *+' conftest.er1 >conftest.err
30327 cat conftest.err >&5
30328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329 (exit $ac_status); } &&
30330 { ac_try='test -z "$ac_cxx_werror_flag"
30331 || test ! -s conftest.err'
30332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30333 (eval $ac_try) 2>&5
30335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30336 (exit $ac_status); }; } &&
30337 { ac_try='test -s conftest.$ac_objext'
30338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30339 (eval $ac_try) 2>&5
30341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342 (exit $ac_status); }; }; then
30343 ac_lo=$ac_mid; break
30345 echo "$as_me: failed program was:" >&5
30346 sed 's/^/| /' conftest.$ac_ext >&5
30348 ac_hi=`expr '(' $ac_mid ')' - 1`
30349 if test $ac_mid -le $ac_hi; then
30353 ac_mid=`expr 2 '*' $ac_mid`
30355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30358 echo "$as_me: failed program was:" >&5
30359 sed 's/^/| /' conftest.$ac_ext >&5
30363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30366 # Binary search between lo and hi bounds.
30367 while test "x$ac_lo" != "x$ac_hi"; do
30368 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30369 cat >conftest.$ac_ext <<_ACEOF
30372 cat confdefs.h >>conftest.$ac_ext
30373 cat >>conftest.$ac_ext <<_ACEOF
30374 /* end confdefs.h. */
30375 $ac_includes_default
30379 static int test_array [1 - 2 * !(((long) (sizeof (bool))) <= $ac_mid)];
30386 rm -f conftest.$ac_objext
30387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30388 (eval $ac_compile) 2>conftest.er1
30390 grep -v '^ *+' conftest.er1 >conftest.err
30392 cat conftest.err >&5
30393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394 (exit $ac_status); } &&
30395 { ac_try='test -z "$ac_cxx_werror_flag"
30396 || test ! -s conftest.err'
30397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30398 (eval $ac_try) 2>&5
30400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401 (exit $ac_status); }; } &&
30402 { ac_try='test -s conftest.$ac_objext'
30403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30404 (eval $ac_try) 2>&5
30406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30407 (exit $ac_status); }; }; then
30410 echo "$as_me: failed program was:" >&5
30411 sed 's/^/| /' conftest.$ac_ext >&5
30413 ac_lo=`expr '(' $ac_mid ')' + 1`
30415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30418 ?*) ac_cv_sizeof_bool=$ac_lo;;
30419 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool), 77
30420 See \`config.log' for more details." >&5
30421 echo "$as_me: error: cannot compute sizeof (bool), 77
30422 See \`config.log' for more details." >&2;}
30423 { (exit 1); exit 1; }; } ;;
30426 if test "$cross_compiling" = yes; then
30427 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
30428 See \`config.log' for more details." >&5
30429 echo "$as_me: error: cannot run test program while cross compiling
30430 See \`config.log' for more details." >&2;}
30431 { (exit 1); exit 1; }; }
30433 cat >conftest.$ac_ext <<_ACEOF
30436 cat confdefs.h >>conftest.$ac_ext
30437 cat >>conftest.$ac_ext <<_ACEOF
30438 /* end confdefs.h. */
30439 $ac_includes_default
30440 long longval () { return (long) (sizeof (bool)); }
30441 unsigned long ulongval () { return (long) (sizeof (bool)); }
30443 #include <stdlib.h>
30448 FILE *f = fopen ("conftest.val", "w");
30451 if (((long) (sizeof (bool))) < 0)
30453 long i = longval ();
30454 if (i != ((long) (sizeof (bool))))
30456 fprintf (f, "%ld\n", i);
30460 unsigned long i = ulongval ();
30461 if (i != ((long) (sizeof (bool))))
30463 fprintf (f, "%lu\n", i);
30465 exit (ferror (f) || fclose (f) != 0);
30471 rm -f conftest$ac_exeext
30472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30473 (eval $ac_link) 2>&5
30475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30478 (eval $ac_try) 2>&5
30480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30481 (exit $ac_status); }; }; then
30482 ac_cv_sizeof_bool=`cat conftest.val`
30484 echo "$as_me: program exited with status $ac_status" >&5
30485 echo "$as_me: failed program was:" >&5
30486 sed 's/^/| /' conftest.$ac_ext >&5
30488 ( exit $ac_status )
30489 { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool), 77
30490 See \`config.log' for more details." >&5
30491 echo "$as_me: error: cannot compute sizeof (bool), 77
30492 See \`config.log' for more details." >&2;}
30493 { (exit 1); exit 1; }; }
30495 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30500 ac_cv_sizeof_bool=0
30503 echo "$as_me:$LINENO: result: $ac_cv_sizeof_bool" >&5
30504 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
30505 cat >>confdefs.h <<_ACEOF
30506 #define SIZEOF_BOOL $ac_cv_sizeof_bool
30511 echo "$as_me:$LINENO: checking whether the compiler supports the mutable keyword" >&5
30512 echo $ECHO_N "checking whether the compiler supports the mutable keyword... $ECHO_C" >&6
30513 if test "${ac_cv_cxx_mutable+set}" = set; then
30514 echo $ECHO_N "(cached) $ECHO_C" >&6
30519 ac_cpp='$CXXCPP $CPPFLAGS'
30520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30524 cat >conftest.$ac_ext <<_ACEOF
30527 cat confdefs.h >>conftest.$ac_ext
30528 cat >>conftest.$ac_ext <<_ACEOF
30529 /* end confdefs.h. */
30531 class A { mutable int i;
30533 int f (int n) const { i = n; return i; }
30539 A a; return a.f (1);
30544 rm -f conftest.$ac_objext
30545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30546 (eval $ac_compile) 2>conftest.er1
30548 grep -v '^ *+' conftest.er1 >conftest.err
30550 cat conftest.err >&5
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); } &&
30553 { ac_try='test -z "$ac_cxx_werror_flag"
30554 || test ! -s conftest.err'
30555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30556 (eval $ac_try) 2>&5
30558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559 (exit $ac_status); }; } &&
30560 { ac_try='test -s conftest.$ac_objext'
30561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30562 (eval $ac_try) 2>&5
30564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565 (exit $ac_status); }; }; then
30566 ac_cv_cxx_mutable=yes
30568 echo "$as_me: failed program was:" >&5
30569 sed 's/^/| /' conftest.$ac_ext >&5
30571 ac_cv_cxx_mutable=no
30573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30575 ac_cpp='$CXXCPP $CPPFLAGS'
30576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30582 echo "$as_me:$LINENO: result: $ac_cv_cxx_mutable" >&5
30583 echo "${ECHO_T}$ac_cv_cxx_mutable" >&6
30584 if test "$ac_cv_cxx_mutable" = yes; then
30586 cat >>confdefs.h <<\_ACEOF
30587 #define HAVE_MUTABLE
30592 echo "$as_me:$LINENO: checking whether the compiler recognizes typename" >&5
30593 echo $ECHO_N "checking whether the compiler recognizes typename... $ECHO_C" >&6
30594 if test "${ac_cv_cxx_typename+set}" = set; then
30595 echo $ECHO_N "(cached) $ECHO_C" >&6
30600 ac_cpp='$CXXCPP $CPPFLAGS'
30601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30605 cat >conftest.$ac_ext <<_ACEOF
30608 cat confdefs.h >>conftest.$ac_ext
30609 cat >>conftest.$ac_ext <<_ACEOF
30610 /* end confdefs.h. */
30611 template<typename T>class X {public:X(){}};
30615 X<float> z; return 0;
30620 rm -f conftest.$ac_objext
30621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30622 (eval $ac_compile) 2>conftest.er1
30624 grep -v '^ *+' conftest.er1 >conftest.err
30626 cat conftest.err >&5
30627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); } &&
30629 { ac_try='test -z "$ac_cxx_werror_flag"
30630 || test ! -s conftest.err'
30631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30632 (eval $ac_try) 2>&5
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); }; } &&
30636 { ac_try='test -s conftest.$ac_objext'
30637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30638 (eval $ac_try) 2>&5
30640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641 (exit $ac_status); }; }; then
30642 ac_cv_cxx_typename=yes
30644 echo "$as_me: failed program was:" >&5
30645 sed 's/^/| /' conftest.$ac_ext >&5
30647 ac_cv_cxx_typename=no
30649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30651 ac_cpp='$CXXCPP $CPPFLAGS'
30652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30658 echo "$as_me:$LINENO: result: $ac_cv_cxx_typename" >&5
30659 echo "${ECHO_T}$ac_cv_cxx_typename" >&6
30660 if test "$ac_cv_cxx_typename" = yes; then
30662 cat >>confdefs.h <<\_ACEOF
30663 #define HAVE_TYPENAME
30668 echo "$as_me:$LINENO: checking whether the compiler accepts the new for scoping rules" >&5
30669 echo $ECHO_N "checking whether the compiler accepts the new for scoping rules... $ECHO_C" >&6
30670 if test "${ac_cv_cxx_new_for_scoping+set}" = set; then
30671 echo $ECHO_N "(cached) $ECHO_C" >&6
30676 ac_cpp='$CXXCPP $CPPFLAGS'
30677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30681 cat >conftest.$ac_ext <<_ACEOF
30684 cat confdefs.h >>conftest.$ac_ext
30685 cat >>conftest.$ac_ext <<_ACEOF
30686 /* end confdefs.h. */
30693 for (int i = 0; i < 10; ++i)
30695 for (int i = 0; i < 10; ++i)
30702 rm -f conftest.$ac_objext
30703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30704 (eval $ac_compile) 2>conftest.er1
30706 grep -v '^ *+' conftest.er1 >conftest.err
30708 cat conftest.err >&5
30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710 (exit $ac_status); } &&
30711 { ac_try='test -z "$ac_cxx_werror_flag"
30712 || test ! -s conftest.err'
30713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30714 (eval $ac_try) 2>&5
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); }; } &&
30718 { ac_try='test -s conftest.$ac_objext'
30719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30720 (eval $ac_try) 2>&5
30722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30723 (exit $ac_status); }; }; then
30724 ac_cv_cxx_new_for_scoping=yes
30726 echo "$as_me: failed program was:" >&5
30727 sed 's/^/| /' conftest.$ac_ext >&5
30729 ac_cv_cxx_new_for_scoping=no
30731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30733 ac_cpp='$CXXCPP $CPPFLAGS'
30734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30740 echo "$as_me:$LINENO: result: $ac_cv_cxx_new_for_scoping" >&5
30741 echo "${ECHO_T}$ac_cv_cxx_new_for_scoping" >&6
30742 if test "$ac_cv_cxx_new_for_scoping" = yes; then
30744 cat >>confdefs.h <<\_ACEOF
30745 #define HAVE_NEW_FOR_SCOPING
30750 echo "$as_me:$LINENO: checking whether the compiler supports placement operator delete" >&5
30751 echo $ECHO_N "checking whether the compiler supports placement operator delete... $ECHO_C" >&6
30752 if test "${ac_cv_cxx_placement_operator_delete+set}" = set; then
30753 echo $ECHO_N "(cached) $ECHO_C" >&6
30758 ac_cpp='$CXXCPP $CPPFLAGS'
30759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30763 cat >conftest.$ac_ext <<_ACEOF
30766 cat confdefs.h >>conftest.$ac_ext
30767 cat >>conftest.$ac_ext <<_ACEOF
30768 /* end confdefs.h. */
30769 #include <stddef.h>
30776 void *operator new(size_t,bool) { };
30777 void operator delete(size_t,void*) { };
30783 rm -f conftest.$ac_objext
30784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30785 (eval $ac_compile) 2>conftest.er1
30787 grep -v '^ *+' conftest.er1 >conftest.err
30789 cat conftest.err >&5
30790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791 (exit $ac_status); } &&
30792 { ac_try='test -z "$ac_cxx_werror_flag"
30793 || test ! -s conftest.err'
30794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30795 (eval $ac_try) 2>&5
30797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30798 (exit $ac_status); }; } &&
30799 { ac_try='test -s conftest.$ac_objext'
30800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30801 (eval $ac_try) 2>&5
30803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30804 (exit $ac_status); }; }; then
30805 ac_cv_cxx_placement_operator_delete=yes
30807 echo "$as_me: failed program was:" >&5
30808 sed 's/^/| /' conftest.$ac_ext >&5
30810 ac_cv_cxx_placement_operator_delete=no
30812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30814 ac_cpp='$CXXCPP $CPPFLAGS'
30815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30821 echo "$as_me:$LINENO: result: $ac_cv_cxx_placement_operator_delete" >&5
30822 echo "${ECHO_T}$ac_cv_cxx_placement_operator_delete" >&6
30823 if test "$ac_cv_cxx_placement_operator_delete" = yes; then
30825 cat >>confdefs.h <<\_ACEOF
30826 #define HAVE_PLACEMENT_OPERATOR_DELETE
30831 echo "$as_me:$LINENO: checking whether the compiler supports dynamic_cast<>" >&5
30832 echo $ECHO_N "checking whether the compiler supports dynamic_cast<>... $ECHO_C" >&6
30833 if test "${ac_cv_cxx_dynamic_cast+set}" = set; then
30834 echo $ECHO_N "(cached) $ECHO_C" >&6
30839 ac_cpp='$CXXCPP $CPPFLAGS'
30840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30844 cat >conftest.$ac_ext <<_ACEOF
30847 cat confdefs.h >>conftest.$ac_ext
30848 cat >>conftest.$ac_ext <<_ACEOF
30849 /* end confdefs.h. */
30850 #include <typeinfo>
30851 class Base { public : Base () {} virtual void f () = 0;};
30852 class Derived : public Base { public : Derived () {} virtual void f () {} };
30857 Derived d; Base& b=d; return dynamic_cast<Derived*>(&b) ? 0 : 1;
30862 rm -f conftest.$ac_objext
30863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30864 (eval $ac_compile) 2>conftest.er1
30866 grep -v '^ *+' conftest.er1 >conftest.err
30868 cat conftest.err >&5
30869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870 (exit $ac_status); } &&
30871 { ac_try='test -z "$ac_cxx_werror_flag"
30872 || test ! -s conftest.err'
30873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30874 (eval $ac_try) 2>&5
30876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877 (exit $ac_status); }; } &&
30878 { ac_try='test -s conftest.$ac_objext'
30879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30880 (eval $ac_try) 2>&5
30882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883 (exit $ac_status); }; }; then
30884 ac_cv_cxx_dynamic_cast=yes
30886 echo "$as_me: failed program was:" >&5
30887 sed 's/^/| /' conftest.$ac_ext >&5
30889 ac_cv_cxx_dynamic_cast=no
30891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30893 ac_cpp='$CXXCPP $CPPFLAGS'
30894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30900 echo "$as_me:$LINENO: result: $ac_cv_cxx_dynamic_cast" >&5
30901 echo "${ECHO_T}$ac_cv_cxx_dynamic_cast" >&6
30902 if test "$ac_cv_cxx_dynamic_cast" = yes; then
30904 cat >>confdefs.h <<\_ACEOF
30905 #define HAVE_DYNAMIC_CAST
30910 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30911 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
30912 if test "${ac_cv_cxx_namespaces+set}" = set; then
30913 echo $ECHO_N "(cached) $ECHO_C" >&6
30918 ac_cpp='$CXXCPP $CPPFLAGS'
30919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30923 cat >conftest.$ac_ext <<_ACEOF
30926 cat confdefs.h >>conftest.$ac_ext
30927 cat >>conftest.$ac_ext <<_ACEOF
30928 /* end confdefs.h. */
30929 namespace Outer { namespace Inner { int i = 0; }}
30933 using namespace Outer::Inner; return i;
30938 rm -f conftest.$ac_objext
30939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30940 (eval $ac_compile) 2>conftest.er1
30942 grep -v '^ *+' conftest.er1 >conftest.err
30944 cat conftest.err >&5
30945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946 (exit $ac_status); } &&
30947 { ac_try='test -z "$ac_cxx_werror_flag"
30948 || test ! -s conftest.err'
30949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30950 (eval $ac_try) 2>&5
30952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953 (exit $ac_status); }; } &&
30954 { ac_try='test -s conftest.$ac_objext'
30955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30956 (eval $ac_try) 2>&5
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); }; }; then
30960 ac_cv_cxx_namespaces=yes
30962 echo "$as_me: failed program was:" >&5
30963 sed 's/^/| /' conftest.$ac_ext >&5
30965 ac_cv_cxx_namespaces=no
30967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30969 ac_cpp='$CXXCPP $CPPFLAGS'
30970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30976 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
30977 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
30978 if test "$ac_cv_cxx_namespaces" = yes; then
30980 cat >>confdefs.h <<\_ACEOF
30981 #define HAVE_NAMESPACES
30986 echo "$as_me:$LINENO: checking whether the compiler supports explicit instantiations" >&5
30987 echo $ECHO_N "checking whether the compiler supports explicit instantiations... $ECHO_C" >&6
30988 if test "${ac_cv_cxx_explinst+set}" = set; then
30989 echo $ECHO_N "(cached) $ECHO_C" >&6
30994 ac_cpp='$CXXCPP $CPPFLAGS'
30995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30999 cat >conftest.$ac_ext <<_ACEOF
31002 cat confdefs.h >>conftest.$ac_ext
31003 cat >>conftest.$ac_ext <<_ACEOF
31004 /* end confdefs.h. */
31005 template <class T> class A { T t; }; template class A<int>;
31014 rm -f conftest.$ac_objext
31015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31016 (eval $ac_compile) 2>conftest.er1
31018 grep -v '^ *+' conftest.er1 >conftest.err
31020 cat conftest.err >&5
31021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022 (exit $ac_status); } &&
31023 { ac_try='test -z "$ac_cxx_werror_flag"
31024 || test ! -s conftest.err'
31025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31026 (eval $ac_try) 2>&5
31028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029 (exit $ac_status); }; } &&
31030 { ac_try='test -s conftest.$ac_objext'
31031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31032 (eval $ac_try) 2>&5
31034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); }; }; then
31036 ac_cv_cxx_explinst=yes
31038 echo "$as_me: failed program was:" >&5
31039 sed 's/^/| /' conftest.$ac_ext >&5
31041 ac_cv_cxx_explinst=no
31043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31045 ac_cpp='$CXXCPP $CPPFLAGS'
31046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31052 echo "$as_me:$LINENO: result: $ac_cv_cxx_explinst" >&5
31053 echo "${ECHO_T}$ac_cv_cxx_explinst" >&6
31054 if test "$ac_cv_cxx_explinst" = yes; then
31056 cat >>confdefs.h <<\_ACEOF
31057 #define HAVE_INSTANTIATIONS
31062 echo "$as_me:$LINENO: checking for placement operator new" >&5
31063 echo $ECHO_N "checking for placement operator new... $ECHO_C" >&6
31064 if test "${ac_cv_cxx_placement_operator_new+set}" = set; then
31065 echo $ECHO_N "(cached) $ECHO_C" >&6
31067 cat >conftest.$ac_ext <<_ACEOF
31070 cat confdefs.h >>conftest.$ac_ext
31071 cat >>conftest.$ac_ext <<_ACEOF
31072 /* end confdefs.h. */
31073 #include <stddef.h>
31086 A *bar = new (x) A;
31097 rm -f conftest.$ac_objext
31098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31099 (eval $ac_compile) 2>conftest.er1
31101 grep -v '^ *+' conftest.er1 >conftest.err
31103 cat conftest.err >&5
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); } &&
31106 { ac_try='test -z "$ac_cxx_werror_flag"
31107 || test ! -s conftest.err'
31108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31109 (eval $ac_try) 2>&5
31111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112 (exit $ac_status); }; } &&
31113 { ac_try='test -s conftest.$ac_objext'
31114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31115 (eval $ac_try) 2>&5
31117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31118 (exit $ac_status); }; }; then
31119 ac_cv_cxx_placement_operator_new=yes
31121 echo "$as_me: failed program was:" >&5
31122 sed 's/^/| /' conftest.$ac_ext >&5
31124 ac_cv_cxx_placement_operator_new=no
31126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31129 echo "$as_me:$LINENO: result: $ac_cv_cxx_placement_operator_new" >&5
31130 echo "${ECHO_T}$ac_cv_cxx_placement_operator_new" >&6
31131 if test "$ac_cv_cxx_placement_operator_new" = yes; then
31133 cat >>confdefs.h <<\_ACEOF
31134 #define HAVE_PLACEMENT_OPERATOR_NEW 1
31138 echo "$as_me:$LINENO: checking whether the C++ compiler supports the std namespace" >&5
31139 echo $ECHO_N "checking whether the C++ compiler supports the std namespace... $ECHO_C" >&6
31140 if test "${ac_cv_cxx_namespace_std+set}" = set; then
31141 echo $ECHO_N "(cached) $ECHO_C" >&6
31143 cat >conftest.$ac_ext <<_ACEOF
31146 cat confdefs.h >>conftest.$ac_ext
31147 cat >>conftest.$ac_ext <<_ACEOF
31148 /* end confdefs.h. */
31159 std::set_new_handler(0);
31164 rm -f conftest.$ac_objext
31165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31166 (eval $ac_compile) 2>conftest.er1
31168 grep -v '^ *+' conftest.er1 >conftest.err
31170 cat conftest.err >&5
31171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31172 (exit $ac_status); } &&
31173 { ac_try='test -z "$ac_cxx_werror_flag"
31174 || test ! -s conftest.err'
31175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31176 (eval $ac_try) 2>&5
31178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31179 (exit $ac_status); }; } &&
31180 { ac_try='test -s conftest.$ac_objext'
31181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31182 (eval $ac_try) 2>&5
31184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185 (exit $ac_status); }; }; then
31186 ac_cv_cxx_namespace_std=yes
31188 echo "$as_me: failed program was:" >&5
31189 sed 's/^/| /' conftest.$ac_ext >&5
31191 ac_cv_cxx_namespace_std=no
31193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31196 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespace_std" >&5
31197 echo "${ECHO_T}$ac_cv_cxx_namespace_std" >&6
31198 if test "$ac_cv_cxx_namespace_std" = yes; then
31200 cat >>confdefs.h <<\_ACEOF
31201 #define HAVE_NAMESPACE_STD 1
31205 if test "$GXX"; then
31206 echo "$as_me:$LINENO: checking whether GNU C++ supports automatic template instantiation" >&5
31207 echo $ECHO_N "checking whether GNU C++ supports automatic template instantiation... $ECHO_C" >&6
31208 if test "${ac_cv_c_gnu_automatic_templates+set}" = set; then
31209 echo $ECHO_N "(cached) $ECHO_C" >&6
31211 cat >conftest.$ac_ext <<_ACEOF
31214 cat confdefs.h >>conftest.$ac_ext
31215 cat >>conftest.$ac_ext <<_ACEOF
31216 /* end confdefs.h. */
31218 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 8)
31223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31224 $EGREP "yes" >/dev/null 2>&1; then
31225 ac_cv_c_gnu_automatic_templates=yes
31227 ac_cv_c_gnu_automatic_templates=no
31233 echo "$as_me:$LINENO: result: $ac_cv_c_gnu_automatic_templates" >&5
31234 echo "${ECHO_T}$ac_cv_c_gnu_automatic_templates" >&6
31235 if test "$ac_cv_c_gnu_automatic_templates" = yes; then
31237 cat >>confdefs.h <<\_ACEOF
31238 #define SP_DEFINE_TEMPLATES 1
31243 cat >>confdefs.h <<\_ACEOF
31244 #define SP_MANUAL_INST 1
31247 CXXFLAGS="$CXXFLAGS -fno-implicit-templates"
31249 echo "$as_me:$LINENO: checking whether GNU C++ links with libg++ if we include new.h" >&5
31250 echo $ECHO_N "checking whether GNU C++ links with libg++ if we include new.h... $ECHO_C" >&6
31251 if test "${ac_cv_cxx_gnu_avoid_new_h+set}" = set; then
31252 echo $ECHO_N "(cached) $ECHO_C" >&6
31254 cat >conftest.$ac_ext <<_ACEOF
31257 cat confdefs.h >>conftest.$ac_ext
31258 cat >>conftest.$ac_ext <<_ACEOF
31259 /* end confdefs.h. */
31261 #if (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
31266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31267 $EGREP "yes" >/dev/null 2>&1; then
31268 ac_cv_cxx_gnu_avoid_new_h=yes
31270 ac_cv_cxx_gnu_avoid_new_h=no
31276 echo "$as_me:$LINENO: result: $ac_cv_cxx_gnu_avoid_new_h" >&5
31277 echo "${ECHO_T}$ac_cv_cxx_gnu_avoid_new_h" >&6
31278 if test "$ac_cv_cxx_gnu_avoid_new_h" = yes; then
31280 cat >>confdefs.h <<\_ACEOF
31281 #define SP_NEW_H_MISSING 1
31284 echo "$as_me:$LINENO: checking whether to declare set_new_handler extern \"C\"" >&5
31285 echo $ECHO_N "checking whether to declare set_new_handler extern \"C\"... $ECHO_C" >&6
31286 if test "${ac_cv_cxx_new_handler_extern_c+set}" = set; then
31287 echo $ECHO_N "(cached) $ECHO_C" >&6
31289 cat >conftest.$ac_ext <<_ACEOF
31292 cat confdefs.h >>conftest.$ac_ext
31293 cat >>conftest.$ac_ext <<_ACEOF
31294 /* end confdefs.h. */
31296 typedef void (*new_handler)();
31297 new_handler set_new_handler(new_handler);
31302 set_new_handler(0);
31307 rm -f conftest.$ac_objext conftest$ac_exeext
31308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31309 (eval $ac_link) 2>conftest.er1
31311 grep -v '^ *+' conftest.er1 >conftest.err
31313 cat conftest.err >&5
31314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315 (exit $ac_status); } &&
31316 { ac_try='test -z "$ac_cxx_werror_flag"
31317 || test ! -s conftest.err'
31318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31319 (eval $ac_try) 2>&5
31321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322 (exit $ac_status); }; } &&
31323 { ac_try='test -s conftest$ac_exeext'
31324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31325 (eval $ac_try) 2>&5
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); }; }; then
31329 ac_cv_cxx_new_handler_extern_c=no
31331 echo "$as_me: failed program was:" >&5
31332 sed 's/^/| /' conftest.$ac_ext >&5
31334 ac_cv_cxx_new_handler_extern_c=yes
31336 rm -f conftest.err conftest.$ac_objext \
31337 conftest$ac_exeext conftest.$ac_ext
31340 echo "$as_me:$LINENO: result: $ac_cv_cxx_new_handler_extern_c" >&5
31341 echo "${ECHO_T}$ac_cv_cxx_new_handler_extern_c" >&6
31342 if test "$ac_cv_cxx_new_handler_extern_c" = yes; then
31344 cat >>confdefs.h <<\_ACEOF
31345 #define SP_SET_NEW_HANDLER_EXTERN_C 1
31351 echo "$as_me:$LINENO: checking whether new_handler accepts size_t and returns int" >&5
31352 echo $ECHO_N "checking whether new_handler accepts size_t and returns int... $ECHO_C" >&6
31353 if test "${ac_cv_cxx_fancy_new_handler+set}" = set; then
31354 echo $ECHO_N "(cached) $ECHO_C" >&6
31356 cat >conftest.$ac_ext <<_ACEOF
31359 cat confdefs.h >>conftest.$ac_ext
31360 cat >>conftest.$ac_ext <<_ACEOF
31361 /* end confdefs.h. */
31363 #include <stddef.h>
31365 int oom(size_t) { }
31369 set_new_handler(oom);
31374 rm -f conftest.$ac_objext
31375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31376 (eval $ac_compile) 2>conftest.er1
31378 grep -v '^ *+' conftest.er1 >conftest.err
31380 cat conftest.err >&5
31381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382 (exit $ac_status); } &&
31383 { ac_try='test -z "$ac_cxx_werror_flag"
31384 || test ! -s conftest.err'
31385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31386 (eval $ac_try) 2>&5
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); }; } &&
31390 { ac_try='test -s conftest.$ac_objext'
31391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31392 (eval $ac_try) 2>&5
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); }; }; then
31396 ac_cv_cxx_fancy_new_handler=yes
31398 echo "$as_me: failed program was:" >&5
31399 sed 's/^/| /' conftest.$ac_ext >&5
31401 ac_cv_cxx_fancy_new_handler=no
31403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31406 echo "$as_me:$LINENO: result: $ac_cv_cxx_fancy_new_handler" >&5
31407 echo "${ECHO_T}$ac_cv_cxx_fancy_new_handler" >&6
31408 if test "$ac_cv_cxx_fancy_new_handler" = yes; then
31410 cat >>confdefs.h <<\_ACEOF
31411 #define SP_FANCY_NEW_HANDLER 1
31420 for ac_func in memmove memcmp strerror strtoul
31422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31423 echo "$as_me:$LINENO: checking for $ac_func" >&5
31424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31425 if eval "test \"\${$as_ac_var+set}\" = set"; then
31426 echo $ECHO_N "(cached) $ECHO_C" >&6
31428 cat >conftest.$ac_ext <<_ACEOF
31431 cat confdefs.h >>conftest.$ac_ext
31432 cat >>conftest.$ac_ext <<_ACEOF
31433 /* end confdefs.h. */
31434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31436 #define $ac_func innocuous_$ac_func
31438 /* System header to define __stub macros and hopefully few prototypes,
31439 which can conflict with char $ac_func (); below.
31440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31441 <limits.h> exists even on freestanding compilers. */
31444 # include <limits.h>
31446 # include <assert.h>
31451 /* Override any gcc2 internal prototype to avoid an error. */
31456 /* We use char because int might match the return type of a gcc2
31457 builtin and then its argument prototype would still apply. */
31459 /* The GNU C library defines this for functions which it implements
31460 to always fail with ENOSYS. Some functions are actually named
31461 something starting with __ and the normal name is an alias. */
31462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31465 char (*f) () = $ac_func;
31474 return f != $ac_func;
31479 rm -f conftest.$ac_objext conftest$ac_exeext
31480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31481 (eval $ac_link) 2>conftest.er1
31483 grep -v '^ *+' conftest.er1 >conftest.err
31485 cat conftest.err >&5
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); } &&
31488 { ac_try='test -z "$ac_cxx_werror_flag"
31489 || test ! -s conftest.err'
31490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31491 (eval $ac_try) 2>&5
31493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494 (exit $ac_status); }; } &&
31495 { ac_try='test -s conftest$ac_exeext'
31496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31497 (eval $ac_try) 2>&5
31499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 (exit $ac_status); }; }; then
31501 eval "$as_ac_var=yes"
31503 echo "$as_me: failed program was:" >&5
31504 sed 's/^/| /' conftest.$ac_ext >&5
31506 eval "$as_ac_var=no"
31508 rm -f conftest.err conftest.$ac_objext \
31509 conftest$ac_exeext conftest.$ac_ext
31511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31513 if test `eval echo '${'$as_ac_var'}'` = yes; then
31514 cat >>confdefs.h <<_ACEOF
31515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31520 "$ac_func.$ac_objext" | \
31521 *" $ac_func.$ac_objext" | \
31522 "$ac_func.$ac_objext "* | \
31523 *" $ac_func.$ac_objext "* ) ;;
31524 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
31532 for ac_func in setlocale
31534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31535 echo "$as_me:$LINENO: checking for $ac_func" >&5
31536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31537 if eval "test \"\${$as_ac_var+set}\" = set"; then
31538 echo $ECHO_N "(cached) $ECHO_C" >&6
31540 cat >conftest.$ac_ext <<_ACEOF
31543 cat confdefs.h >>conftest.$ac_ext
31544 cat >>conftest.$ac_ext <<_ACEOF
31545 /* end confdefs.h. */
31546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31548 #define $ac_func innocuous_$ac_func
31550 /* System header to define __stub macros and hopefully few prototypes,
31551 which can conflict with char $ac_func (); below.
31552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31553 <limits.h> exists even on freestanding compilers. */
31556 # include <limits.h>
31558 # include <assert.h>
31563 /* Override any gcc2 internal prototype to avoid an error. */
31568 /* We use char because int might match the return type of a gcc2
31569 builtin and then its argument prototype would still apply. */
31571 /* The GNU C library defines this for functions which it implements
31572 to always fail with ENOSYS. Some functions are actually named
31573 something starting with __ and the normal name is an alias. */
31574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31577 char (*f) () = $ac_func;
31586 return f != $ac_func;
31591 rm -f conftest.$ac_objext conftest$ac_exeext
31592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31593 (eval $ac_link) 2>conftest.er1
31595 grep -v '^ *+' conftest.er1 >conftest.err
31597 cat conftest.err >&5
31598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599 (exit $ac_status); } &&
31600 { ac_try='test -z "$ac_cxx_werror_flag"
31601 || test ! -s conftest.err'
31602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31603 (eval $ac_try) 2>&5
31605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606 (exit $ac_status); }; } &&
31607 { ac_try='test -s conftest$ac_exeext'
31608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31609 (eval $ac_try) 2>&5
31611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612 (exit $ac_status); }; }; then
31613 eval "$as_ac_var=yes"
31615 echo "$as_me: failed program was:" >&5
31616 sed 's/^/| /' conftest.$ac_ext >&5
31618 eval "$as_ac_var=no"
31620 rm -f conftest.err conftest.$ac_objext \
31621 conftest$ac_exeext conftest.$ac_ext
31623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31625 if test `eval echo '${'$as_ac_var'}'` = yes; then
31626 cat >>confdefs.h <<_ACEOF
31627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31634 echo "$as_me:$LINENO: checking for Windows and DOS and OS/2 style pathnames" >&5
31635 echo $ECHO_N "checking for Windows and DOS and OS/2 style pathnames... $ECHO_C" >&6
31636 if test "${acx_cv_pathname_style_dos+set}" = set; then
31637 echo $ECHO_N "(cached) $ECHO_C" >&6
31641 acx_cv_pathname_style_dos="no"
31643 *djgpp | *mingw32 | *emx*) acx_cv_pathname_style_dos="yes" ;;
31648 echo "$as_me:$LINENO: result: $acx_cv_pathname_style_dos" >&5
31649 echo "${ECHO_T}$acx_cv_pathname_style_dos" >&6
31650 if test $acx_cv_pathname_style_dos = "yes"; then
31651 cat >>confdefs.h <<\_ACEOF
31652 #define HAVE_PATHNAME_STYLE_DOS 1
31655 cat >>confdefs.h <<\_ACEOF
31656 #define PATH_SEPARATOR ';'
31660 cat >>confdefs.h <<\_ACEOF
31661 #define PATH_SEPARATOR ':'
31667 echo "$as_me:$LINENO: checking whether to include support for http" >&5
31668 echo $ECHO_N "checking whether to include support for http... $ECHO_C" >&6
31669 # Check whether --enable-http or --disable-http was given.
31670 if test "${enable_http+set}" = set; then
31671 enableval="$enable_http"
31674 echo "$as_me:$LINENO: result: yes" >&5
31675 echo "${ECHO_T}yes" >&6
31677 cat >>confdefs.h <<\_ACEOF
31678 #define SP_HAVE_SOCKET 1
31681 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
31682 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
31683 if test "${ac_cv_lib_nsl_main+set}" = set; then
31684 echo $ECHO_N "(cached) $ECHO_C" >&6
31686 ac_check_lib_save_LIBS=$LIBS
31688 cat >conftest.$ac_ext <<_ACEOF
31691 cat confdefs.h >>conftest.$ac_ext
31692 cat >>conftest.$ac_ext <<_ACEOF
31693 /* end confdefs.h. */
31704 rm -f conftest.$ac_objext conftest$ac_exeext
31705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31706 (eval $ac_link) 2>conftest.er1
31708 grep -v '^ *+' conftest.er1 >conftest.err
31710 cat conftest.err >&5
31711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712 (exit $ac_status); } &&
31713 { ac_try='test -z "$ac_cxx_werror_flag"
31714 || test ! -s conftest.err'
31715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31716 (eval $ac_try) 2>&5
31718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719 (exit $ac_status); }; } &&
31720 { ac_try='test -s conftest$ac_exeext'
31721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31722 (eval $ac_try) 2>&5
31724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31725 (exit $ac_status); }; }; then
31726 ac_cv_lib_nsl_main=yes
31728 echo "$as_me: failed program was:" >&5
31729 sed 's/^/| /' conftest.$ac_ext >&5
31731 ac_cv_lib_nsl_main=no
31733 rm -f conftest.err conftest.$ac_objext \
31734 conftest$ac_exeext conftest.$ac_ext
31735 LIBS=$ac_check_lib_save_LIBS
31737 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
31738 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
31739 if test $ac_cv_lib_nsl_main = yes; then
31743 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
31744 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
31745 if test "${ac_cv_lib_socket_main+set}" = set; then
31746 echo $ECHO_N "(cached) $ECHO_C" >&6
31748 ac_check_lib_save_LIBS=$LIBS
31749 LIBS="-lsocket $LIBS"
31750 cat >conftest.$ac_ext <<_ACEOF
31753 cat confdefs.h >>conftest.$ac_ext
31754 cat >>conftest.$ac_ext <<_ACEOF
31755 /* end confdefs.h. */
31766 rm -f conftest.$ac_objext conftest$ac_exeext
31767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31768 (eval $ac_link) 2>conftest.er1
31770 grep -v '^ *+' conftest.er1 >conftest.err
31772 cat conftest.err >&5
31773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774 (exit $ac_status); } &&
31775 { ac_try='test -z "$ac_cxx_werror_flag"
31776 || test ! -s conftest.err'
31777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31778 (eval $ac_try) 2>&5
31780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31781 (exit $ac_status); }; } &&
31782 { ac_try='test -s conftest$ac_exeext'
31783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31784 (eval $ac_try) 2>&5
31786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31787 (exit $ac_status); }; }; then
31788 ac_cv_lib_socket_main=yes
31790 echo "$as_me: failed program was:" >&5
31791 sed 's/^/| /' conftest.$ac_ext >&5
31793 ac_cv_lib_socket_main=no
31795 rm -f conftest.err conftest.$ac_objext \
31796 conftest$ac_exeext conftest.$ac_ext
31797 LIBS=$ac_check_lib_save_LIBS
31799 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
31800 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
31801 if test $ac_cv_lib_socket_main = yes; then
31802 LIBS="$LIBS -lsocket"
31805 echo "$as_me:$LINENO: checking h_errno in netdb.h" >&5
31806 echo $ECHO_N "checking h_errno in netdb.h... $ECHO_C" >&6
31807 cat >conftest.$ac_ext <<_ACEOF
31810 cat confdefs.h >>conftest.$ac_ext
31811 cat >>conftest.$ac_ext <<_ACEOF
31812 /* end confdefs.h. */
31816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31817 $EGREP "h_errno" >/dev/null 2>&1; then
31818 echo "$as_me:$LINENO: result: yes" >&5
31819 echo "${ECHO_T}yes" >&6
31822 cat >>confdefs.h <<\_ACEOF
31823 #define SP_DECLARE_H_ERRNO 1
31826 echo "$as_me:$LINENO: result: no" >&5
31827 echo "${ECHO_T}no" >&6
31832 echo "$as_me:$LINENO: result: no" >&5
31833 echo "${ECHO_T}no" >&6
31836 echo "$as_me:$LINENO: result: no" >&5
31837 echo "${ECHO_T}no" >&6
31839 echo "$as_me:$LINENO: checking for default catalog" >&5
31840 echo $ECHO_N "checking for default catalog... $ECHO_C" >&6
31841 # Check whether --enable-default-catalog or --disable-default-catalog was given.
31842 if test "${enable_default_catalog+set}" = set; then
31843 enableval="$enable_default_catalog"
31846 echo "$as_me:$LINENO: result: $enableval" >&5
31847 echo "${ECHO_T}$enableval" >&6
31849 cat >>confdefs.h <<_ACEOF
31850 #define SGML_CATALOG_FILES_DEFAULT "$enableval"
31854 echo "$as_me:$LINENO: result: none" >&5
31855 echo "${ECHO_T}none" >&6
31858 echo "$as_me:$LINENO: result: none" >&5
31859 echo "${ECHO_T}none" >&6
31861 echo "$as_me:$LINENO: checking for default search path" >&5
31862 echo $ECHO_N "checking for default search path... $ECHO_C" >&6
31863 # Check whether --enable-default-search-path or --disable-default-search-path was given.
31864 if test "${enable_default_search_path+set}" = set; then
31865 enableval="$enable_default_search_path"
31868 echo "$as_me:$LINENO: result: $enableval" >&5
31869 echo "${ECHO_T}$enableval" >&6
31871 cat >>confdefs.h <<_ACEOF
31872 #define SGML_SEARCH_PATH_DEFAULT "$enableval"
31876 echo "$as_me:$LINENO: result: none" >&5
31877 echo "${ECHO_T}none" >&6
31880 echo "$as_me:$LINENO: result: none" >&5
31881 echo "${ECHO_T}none" >&6
31883 echo "$as_me:$LINENO: checking whether to include support for XML Formatted Messages" >&5
31884 echo $ECHO_N "checking whether to include support for XML Formatted Messages... $ECHO_C" >&6
31885 # Check whether --enable-xml-messages or --disable-xml-messages was given.
31886 if test "${enable_xml_messages+set}" = set; then
31887 enableval="$enable_xml_messages"
31890 echo "$as_me:$LINENO: result: yes" >&5
31891 echo "${ECHO_T}yes" >&6
31893 cat >>confdefs.h <<\_ACEOF
31898 echo "$as_me:$LINENO: result: no" >&5
31899 echo "${ECHO_T}no" >&6
31902 echo "$as_me:$LINENO: result: no" >&5
31903 echo "${ECHO_T}no" >&6
31906 echo "$as_me:$LINENO: checking whether to include DTDDECL support" >&5
31907 echo $ECHO_N "checking whether to include DTDDECL support... $ECHO_C" >&6
31908 # Check whether --enable-dtddecl or --disable-dtddecl was given.
31909 if test "${enable_dtddecl+set}" = set; then
31910 enableval="$enable_dtddecl"
31911 if test "$enableval" = "no"
31913 echo "$as_me:$LINENO: result: no" >&5
31914 echo "${ECHO_T}no" >&6
31917 echo "$as_me:$LINENO: result: yes" >&5
31918 echo "${ECHO_T}yes" >&6
31921 echo "$as_me:$LINENO: result: yes" >&5
31922 echo "${ECHO_T}yes" >&6
31924 if test "$DTDDECL" = "yes"
31927 cat >>confdefs.h <<\_ACEOF
31928 #define SP_DTDDECL 1
31954 ac_config_files="$ac_config_files ${PACKAGE}-${VERSION}.spec:spec.in Makefile msggen.pl lib/Makefile nsgmls/Makefile spent/Makefile spam/Makefile sgmlnorm/Makefile sx/Makefile spcat/Makefile include/Makefile include/config.h.old generic/Makefile doc/Makefile pubtext/Makefile tests/Makefile unicode/Makefile intl/Makefile po/Makefile.in"
31958 echo "$as_me:$LINENO: checking whether to build docs (man and html)" >&5
31959 echo $ECHO_N "checking whether to build docs (man and html)... $ECHO_C" >&6
31960 # Check whether --enable-doc-build or --disable-doc-build was given.
31961 if test "${enable_doc_build+set}" = set; then
31962 enableval="$enable_doc_build"
31963 if test "$enableval" = "no"
31965 echo "$as_me:$LINENO: result: no" >&5
31966 echo "${ECHO_T}no" >&6
31969 echo "$as_me:$LINENO: result: yes" >&5
31970 echo "${ECHO_T}yes" >&6
31973 echo "$as_me:$LINENO: result: yes" >&5
31974 echo "${ECHO_T}yes" >&6
31977 if test "$BUILDDOCS" = "yes"
31979 # Extract the first word of "xmlto", so it can be a program name with args.
31980 set dummy xmlto; ac_word=$2
31981 echo "$as_me:$LINENO: checking for $ac_word" >&5
31982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31983 if test "${ac_cv_path_XMLTO+set}" = set; then
31984 echo $ECHO_N "(cached) $ECHO_C" >&6
31988 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
31991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31992 for as_dir in $PATH
31995 test -z "$as_dir" && as_dir=.
31996 for ac_exec_ext in '' $ac_executable_extensions; do
31997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31998 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
31999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32008 XMLTO=$ac_cv_path_XMLTO
32010 if test -n "$XMLTO"; then
32011 echo "$as_me:$LINENO: result: $XMLTO" >&5
32012 echo "${ECHO_T}$XMLTO" >&6
32014 echo "$as_me:$LINENO: result: no" >&5
32015 echo "${ECHO_T}no" >&6
32018 if test -z "$XMLTO"
32019 then { { echo "$as_me:$LINENO: error: could not find xmlto; set XMLTO or consider --disable-doc-build" >&5
32020 echo "$as_me: error: could not find xmlto; set XMLTO or consider --disable-doc-build" >&2;}
32021 { (exit 1); exit 1; }; }
32025 ac_config_files="$ac_config_files docsrc/Makefile"
32030 echo "$as_me:$LINENO: checking whether to build all docs (man, html, pdf, ps)" >&5
32031 echo $ECHO_N "checking whether to build all docs (man, html, pdf, ps)... $ECHO_C" >&6
32032 # Check whether --enable-full-doc-build or --disable-full-doc-build was given.
32033 if test "${enable_full_doc_build+set}" = set; then
32034 enableval="$enable_full_doc_build"
32035 if test "$enableval" = "yes"
32037 echo "$as_me:$LINENO: result: yes" >&5
32038 echo "${ECHO_T}yes" >&6
32041 echo "$as_me:$LINENO: result: no" >&5
32042 echo "${ECHO_T}no" >&6
32045 echo "$as_me:$LINENO: result: no" >&5
32046 echo "${ECHO_T}no" >&6
32049 if test "$BUILDFULLDOCS" = "yes"
32051 # Extract the first word of "pdf2ps", so it can be a program name with args.
32052 set dummy pdf2ps; ac_word=$2
32053 echo "$as_me:$LINENO: checking for $ac_word" >&5
32054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32055 if test "${ac_cv_path_PDF2PS+set}" = set; then
32056 echo $ECHO_N "(cached) $ECHO_C" >&6
32060 ac_cv_path_PDF2PS="$PDF2PS" # Let the user override the test with a path.
32063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32064 for as_dir in $PATH
32067 test -z "$as_dir" && as_dir=.
32068 for ac_exec_ext in '' $ac_executable_extensions; do
32069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32070 ac_cv_path_PDF2PS="$as_dir/$ac_word$ac_exec_ext"
32071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32080 PDF2PS=$ac_cv_path_PDF2PS
32082 if test -n "$PDF2PS"; then
32083 echo "$as_me:$LINENO: result: $PDF2PS" >&5
32084 echo "${ECHO_T}$PDF2PS" >&6
32086 echo "$as_me:$LINENO: result: no" >&5
32087 echo "${ECHO_T}no" >&6
32090 if test -z "$PDF2PS"
32091 then { { echo "$as_me:$LINENO: error: could not find pdf2ps; set PDF2PS or consider --disable-doc-build" >&5
32092 echo "$as_me: error: could not find pdf2ps; set PDF2PS or consider --disable-doc-build" >&2;}
32093 { (exit 1); exit 1; }; }
32095 # Extract the first word of "openjade jade", so it can be a program name with args.
32096 set dummy openjade jade; ac_word=$2
32097 echo "$as_me:$LINENO: checking for $ac_word" >&5
32098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32099 if test "${ac_cv_path_JADE+set}" = set; then
32100 echo $ECHO_N "(cached) $ECHO_C" >&6
32104 ac_cv_path_JADE="$JADE" # Let the user override the test with a path.
32107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32108 for as_dir in $PATH
32111 test -z "$as_dir" && as_dir=.
32112 for ac_exec_ext in '' $ac_executable_extensions; do
32113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32114 ac_cv_path_JADE="$as_dir/$ac_word$ac_exec_ext"
32115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32124 JADE=$ac_cv_path_JADE
32126 if test -n "$JADE"; then
32127 echo "$as_me:$LINENO: result: $JADE" >&5
32128 echo "${ECHO_T}$JADE" >&6
32130 echo "$as_me:$LINENO: result: no" >&5
32131 echo "${ECHO_T}no" >&6
32136 { { echo "$as_me:$LINENO: error: could not find openjade or jade; set JADE or consider --disable-doc-build" >&5
32137 echo "$as_me: error: could not find openjade or jade; set JADE or consider --disable-doc-build" >&2;}
32138 { (exit 1); exit 1; }; }
32140 # Extract the first word of "jadetex", so it can be a program name with args.
32141 set dummy jadetex; ac_word=$2
32142 echo "$as_me:$LINENO: checking for $ac_word" >&5
32143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32144 if test "${ac_cv_path_JADETEX+set}" = set; then
32145 echo $ECHO_N "(cached) $ECHO_C" >&6
32149 ac_cv_path_JADETEX="$JADETEX" # Let the user override the test with a path.
32152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32153 for as_dir in $PATH
32156 test -z "$as_dir" && as_dir=.
32157 for ac_exec_ext in '' $ac_executable_extensions; do
32158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32159 ac_cv_path_JADETEX="$as_dir/$ac_word$ac_exec_ext"
32160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32169 JADETEX=$ac_cv_path_JADETEX
32171 if test -n "$JADETEX"; then
32172 echo "$as_me:$LINENO: result: $JADETEX" >&5
32173 echo "${ECHO_T}$JADETEX" >&6
32175 echo "$as_me:$LINENO: result: no" >&5
32176 echo "${ECHO_T}no" >&6
32179 if test -z "$JADETEX"
32181 { { echo "$as_me:$LINENO: error: could not find jadetex; set JADETEX or consider --disable-doc-build" >&5
32182 echo "$as_me: error: could not find jadetex; set JADETEX or consider --disable-doc-build" >&2;}
32183 { (exit 1); exit 1; }; }
32185 # Extract the first word of "pdfjadetex", so it can be a program name with args.
32186 set dummy pdfjadetex; ac_word=$2
32187 echo "$as_me:$LINENO: checking for $ac_word" >&5
32188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32189 if test "${ac_cv_path_PDFJADETEX+set}" = set; then
32190 echo $ECHO_N "(cached) $ECHO_C" >&6
32192 case $PDFJADETEX in
32194 ac_cv_path_PDFJADETEX="$PDFJADETEX" # Let the user override the test with a path.
32197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32198 for as_dir in $PATH
32201 test -z "$as_dir" && as_dir=.
32202 for ac_exec_ext in '' $ac_executable_extensions; do
32203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32204 ac_cv_path_PDFJADETEX="$as_dir/$ac_word$ac_exec_ext"
32205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32214 PDFJADETEX=$ac_cv_path_PDFJADETEX
32216 if test -n "$PDFJADETEX"; then
32217 echo "$as_me:$LINENO: result: $PDFJADETEX" >&5
32218 echo "${ECHO_T}$PDFJADETEX" >&6
32220 echo "$as_me:$LINENO: result: no" >&5
32221 echo "${ECHO_T}no" >&6
32224 if test -z "$PDFJADETEX"
32226 { { echo "$as_me:$LINENO: error: could not find pdfjadetex; set PDFJADETEX or consider --disable-doc-build" >&5
32227 echo "$as_me: error: could not find pdfjadetex; set PDFJADETEX or consider --disable-doc-build" >&2;}
32228 { (exit 1); exit 1; }; }
32230 EXTRADOCS="releasenotes.pdf releasenotes.ps"
32234 cat >confcache <<\_ACEOF
32235 # This file is a shell script that caches the results of configure
32236 # tests run on this system so they can be shared between configure
32237 # scripts and configure runs, see configure's option --config-cache.
32238 # It is not useful on other systems. If it contains results you don't
32239 # want to keep, you may remove or edit it.
32241 # config.status only pays attention to the cache file if you give it
32242 # the --recheck option to rerun configure.
32244 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32245 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32246 # following values.
32250 # The following way of writing the cache mishandles newlines in values,
32251 # but we know of no workaround that is simple, portable, and efficient.
32252 # So, don't put newlines in cache variables' values.
32253 # Ultrix sh set writes to stderr and can't be redirected directly,
32254 # and sets the high bit in the cache file unless we assign to the vars.
32257 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32259 # `set' does not quote correctly, so add quotes (double-quote
32260 # substitution turns \\\\ into \\, and sed turns \\ into \).
32263 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32266 # `set' quotes correctly as required by POSIX, so do not add quotes.
32268 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
32275 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32277 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32279 if diff $cache_file confcache >/dev/null 2>&1; then :; else
32280 if test -w $cache_file; then
32281 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32282 cat confcache >$cache_file
32284 echo "not updating unwritable cache $cache_file"
32289 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32290 # Let make expand exec_prefix.
32291 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32293 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32294 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32295 # trailing colons and then remove the whole line if VPATH becomes empty
32296 # (actually we leave an empty line to preserve line numbers).
32297 if test "x$srcdir" = x.; then
32298 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32299 s/:*\$(srcdir):*/:/;
32300 s/:*\${srcdir}:*/:/;
32302 s/^\([^=]*=[ ]*\):*/\1/;
32308 DEFS=-DHAVE_CONFIG_H
32312 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32313 # 1. Remove the extension, and $U if already installed.
32314 ac_i=`echo "$ac_i" |
32315 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
32317 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
32318 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
32320 LIBOBJS=$ac_libobjs
32322 LTLIBOBJS=$ac_ltlibobjs
32325 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32326 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
32327 Usually this means the macro was only invoked conditionally." >&5
32328 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
32329 Usually this means the macro was only invoked conditionally." >&2;}
32330 { (exit 1); exit 1; }; }
32332 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32333 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32334 Usually this means the macro was only invoked conditionally." >&5
32335 echo "$as_me: error: conditional \"AMDEP\" was never defined.
32336 Usually this means the macro was only invoked conditionally." >&2;}
32337 { (exit 1); exit 1; }; }
32339 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32340 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32341 Usually this means the macro was only invoked conditionally." >&5
32342 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32343 Usually this means the macro was only invoked conditionally." >&2;}
32344 { (exit 1); exit 1; }; }
32346 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32347 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
32348 Usually this means the macro was only invoked conditionally." >&5
32349 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
32350 Usually this means the macro was only invoked conditionally." >&2;}
32351 { (exit 1); exit 1; }; }
32353 if test -z "${DTDDECL_TRUE}" && test -z "${DTDDECL_FALSE}"; then
32354 { { echo "$as_me:$LINENO: error: conditional \"DTDDECL\" was never defined.
32355 Usually this means the macro was only invoked conditionally." >&5
32356 echo "$as_me: error: conditional \"DTDDECL\" was never defined.
32357 Usually this means the macro was only invoked conditionally." >&2;}
32358 { (exit 1); exit 1; }; }
32360 if test -z "${DTDDECL_TRUE}" && test -z "${DTDDECL_FALSE}"; then
32361 { { echo "$as_me:$LINENO: error: conditional \"DTDDECL\" was never defined.
32362 Usually this means the macro was only invoked conditionally." >&5
32363 echo "$as_me: error: conditional \"DTDDECL\" was never defined.
32364 Usually this means the macro was only invoked conditionally." >&2;}
32365 { (exit 1); exit 1; }; }
32368 : ${CONFIG_STATUS=./config.status}
32369 ac_clean_files_save=$ac_clean_files
32370 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32371 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32372 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32373 cat >$CONFIG_STATUS <<_ACEOF
32375 # Generated by $as_me.
32376 # Run this file to recreate the current configuration.
32377 # Compiler output produced by configure, useful for debugging
32378 # configure, is in config.log if it exists.
32381 ac_cs_recheck=false
32383 SHELL=\${CONFIG_SHELL-$SHELL}
32386 cat >>$CONFIG_STATUS <<\_ACEOF
32387 ## --------------------- ##
32388 ## M4sh Initialization. ##
32389 ## --------------------- ##
32391 # Be Bourne compatible
32392 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32395 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32396 # is contrary to our usage. Disable this feature.
32397 alias -g '${1+"$@"}'='"$@"'
32398 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32401 DUALCASE=1; export DUALCASE # for MKS sh
32403 # Support unset when possible.
32404 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32411 # Work around bugs in pre-3.0 UWIN ksh.
32412 $as_unset ENV MAIL MAILPATH
32419 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32420 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32421 LC_TELEPHONE LC_TIME
32423 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32424 eval $as_var=C; export $as_var
32430 # Required to use basename.
32431 if expr a : '\(a\)' >/dev/null 2>&1; then
32437 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
32438 as_basename=basename
32444 # Name of the executable.
32445 as_me=`$as_basename "$0" ||
32446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32447 X"$0" : 'X\(//\)$' \| \
32448 X"$0" : 'X\(/\)$' \| \
32449 . : '\(.\)' 2>/dev/null ||
32451 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
32452 /^X\/\(\/\/\)$/{ s//\1/; q; }
32453 /^X\/\(\/\).*/{ s//\1/; q; }
32457 # PATH needs CR, and LINENO needs CR and PATH.
32458 # Avoid depending upon Character Ranges.
32459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32462 as_cr_digits='0123456789'
32463 as_cr_alnum=$as_cr_Letters$as_cr_digits
32465 # The user is always right.
32466 if test "${PATH_SEPARATOR+set}" != set; then
32467 echo "#! /bin/sh" >conf$$.sh
32468 echo "exit 0" >>conf$$.sh
32470 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32479 as_lineno_1=$LINENO
32480 as_lineno_2=$LINENO
32481 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
32482 test "x$as_lineno_1" != "x$as_lineno_2" &&
32483 test "x$as_lineno_3" = "x$as_lineno_2" || {
32484 # Find who we are. Look in the path if we contain no path at all
32487 *[\\/]* ) as_myself=$0 ;;
32488 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32489 for as_dir in $PATH
32492 test -z "$as_dir" && as_dir=.
32493 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32498 # We did not find ourselves, most probably we were run as `sh COMMAND'
32499 # in which case we are not to be found in the path.
32500 if test "x$as_myself" = x; then
32503 if test ! -f "$as_myself"; then
32504 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
32505 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
32506 { (exit 1); exit 1; }; }
32508 case $CONFIG_SHELL in
32510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32511 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
32514 test -z "$as_dir" && as_dir=.
32515 for as_base in sh bash ksh sh5; do
32518 if ("$as_dir/$as_base" -c '
32519 as_lineno_1=$LINENO
32520 as_lineno_2=$LINENO
32521 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
32522 test "x$as_lineno_1" != "x$as_lineno_2" &&
32523 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
32524 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
32525 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
32526 CONFIG_SHELL=$as_dir/$as_base
32527 export CONFIG_SHELL
32528 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
32536 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32537 # uniformly replaced by the line number. The first 'sed' inserts a
32538 # line-number line before each line; the second 'sed' does the real
32539 # work. The second script uses 'N' to pair each line-number line
32540 # with the numbered line, and appends trailing '-' during
32541 # substitution so that $LINENO is not a special case at line end.
32542 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32543 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
32544 sed '=' <$as_myself |
32549 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
32552 s,^['$as_cr_digits']*\n,,
32553 ' >$as_me.lineno &&
32554 chmod +x $as_me.lineno ||
32555 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
32556 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
32557 { (exit 1); exit 1; }; }
32559 # Don't try to exec as it changes $[0], causing all sort of problems
32560 # (the dirname of $[0] is not the place where we might find the
32561 # original and so on. Autoconf is especially sensible to this).
32563 # Exit status is that of the last command.
32568 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
32569 *c*,-n*) ECHO_N= ECHO_C='
32571 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
32572 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
32575 if expr a : '\(a\)' >/dev/null 2>&1; then
32581 rm -f conf$$ conf$$.exe conf$$.file
32583 if ln -s conf$$.file conf$$ 2>/dev/null; then
32584 # We could just check for DJGPP; but this test a) works b) is more generic
32585 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
32586 if test -f conf$$.exe; then
32587 # Don't use ln at all; we don't have any links
32592 elif ln conf$$.file conf$$ 2>/dev/null; then
32597 rm -f conf$$ conf$$.exe conf$$.file
32599 if mkdir -p . 2>/dev/null; then
32602 test -d ./-p && rmdir ./-p
32606 as_executable_p="test -f"
32608 # Sed expression to map a string onto a valid CPP name.
32609 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32611 # Sed expression to map a string onto a valid variable name.
32612 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32616 # We need space, tab and new line, in precisely that order.
32626 # Open the log real soon, to keep \$[0] and so on meaningful, and to
32627 # report actual input values of CONFIG_FILES etc. instead of their
32628 # values after options handling. Logging --version etc. is OK.
32632 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32633 ## Running $as_me. ##
32638 This file was extended by $as_me, which was
32639 generated by GNU Autoconf 2.59. Invocation command line was
32641 CONFIG_FILES = $CONFIG_FILES
32642 CONFIG_HEADERS = $CONFIG_HEADERS
32643 CONFIG_LINKS = $CONFIG_LINKS
32644 CONFIG_COMMANDS = $CONFIG_COMMANDS
32648 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
32652 # Files that config.status was made for.
32653 if test -n "$ac_config_files"; then
32654 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
32657 if test -n "$ac_config_headers"; then
32658 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
32661 if test -n "$ac_config_links"; then
32662 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
32665 if test -n "$ac_config_commands"; then
32666 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
32669 cat >>$CONFIG_STATUS <<\_ACEOF
32672 \`$as_me' instantiates files from templates according to the
32673 current configuration.
32675 Usage: $0 [OPTIONS] [FILE]...
32677 -h, --help print this help, then exit
32678 -V, --version print version number, then exit
32679 -q, --quiet do not print progress messages
32680 -d, --debug don't remove temporary files
32681 --recheck update $as_me by reconfiguring in the same conditions
32682 --file=FILE[:TEMPLATE]
32683 instantiate the configuration file FILE
32684 --header=FILE[:TEMPLATE]
32685 instantiate the configuration header FILE
32687 Configuration files:
32690 Configuration headers:
32693 Configuration commands:
32696 Report bugs to <bug-autoconf@gnu.org>."
32699 cat >>$CONFIG_STATUS <<_ACEOF
32702 configured by $0, generated by GNU Autoconf 2.59,
32703 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
32705 Copyright (C) 2003 Free Software Foundation, Inc.
32706 This config.status script is free software; the Free Software Foundation
32707 gives unlimited permission to copy, distribute and modify it."
32712 cat >>$CONFIG_STATUS <<\_ACEOF
32713 # If no file are specified by the user, then we need to provide default
32714 # value. By we need to know if files were specified by the user.
32720 ac_option=`expr "x$1" : 'x\([^=]*\)='`
32721 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
32729 *) # This is not an option, so the user has probably given explicit
32732 ac_need_defaults=false;;
32736 # Handling of the options.
32738 cat >>$CONFIG_STATUS <<\_ACEOF
32739 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32741 --version | --vers* | -V )
32742 echo "$ac_cs_version"; exit 0 ;;
32744 # Conflict between --help and --header
32745 { { echo "$as_me:$LINENO: error: ambiguous option: $1
32746 Try \`$0 --help' for more information." >&5
32747 echo "$as_me: error: ambiguous option: $1
32748 Try \`$0 --help' for more information." >&2;}
32749 { (exit 1); exit 1; }; };;
32750 --help | --hel | -h )
32751 echo "$ac_cs_usage"; exit 0 ;;
32752 --debug | --d* | -d )
32754 --file | --fil | --fi | --f )
32756 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32757 ac_need_defaults=false;;
32758 --header | --heade | --head | --hea )
32760 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32761 ac_need_defaults=false;;
32762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32763 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32766 # This is an error.
32767 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
32768 Try \`$0 --help' for more information." >&5
32769 echo "$as_me: error: unrecognized option: $1
32770 Try \`$0 --help' for more information." >&2;}
32771 { (exit 1); exit 1; }; } ;;
32773 *) ac_config_targets="$ac_config_targets $1" ;;
32779 ac_configure_extra_args=
32781 if $ac_cs_silent; then
32783 ac_configure_extra_args="$ac_configure_extra_args --silent"
32787 cat >>$CONFIG_STATUS <<_ACEOF
32788 if \$ac_cs_recheck; then
32789 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32790 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32795 cat >>$CONFIG_STATUS <<_ACEOF
32797 # INIT-COMMANDS section.
32800 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32801 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32802 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32804 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32805 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32806 LINGUAS="${LINGUAS-%UNSET%}"
32813 cat >>$CONFIG_STATUS <<\_ACEOF
32814 for ac_config_target in $ac_config_targets
32816 case "$ac_config_target" in
32817 # Handling of arguments.
32818 "${PACKAGE}-${VERSION}.spec" ) CONFIG_FILES="$CONFIG_FILES ${PACKAGE}-${VERSION}.spec:spec.in" ;;
32819 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32820 "msggen.pl" ) CONFIG_FILES="$CONFIG_FILES msggen.pl" ;;
32821 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
32822 "nsgmls/Makefile" ) CONFIG_FILES="$CONFIG_FILES nsgmls/Makefile" ;;
32823 "spent/Makefile" ) CONFIG_FILES="$CONFIG_FILES spent/Makefile" ;;
32824 "spam/Makefile" ) CONFIG_FILES="$CONFIG_FILES spam/Makefile" ;;
32825 "sgmlnorm/Makefile" ) CONFIG_FILES="$CONFIG_FILES sgmlnorm/Makefile" ;;
32826 "sx/Makefile" ) CONFIG_FILES="$CONFIG_FILES sx/Makefile" ;;
32827 "spcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES spcat/Makefile" ;;
32828 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
32829 "include/config.h.old" ) CONFIG_FILES="$CONFIG_FILES include/config.h.old" ;;
32830 "generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES generic/Makefile" ;;
32831 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32832 "pubtext/Makefile" ) CONFIG_FILES="$CONFIG_FILES pubtext/Makefile" ;;
32833 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
32834 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
32835 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
32836 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32837 "docsrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES docsrc/Makefile" ;;
32838 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32839 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32840 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32841 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32842 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32843 { (exit 1); exit 1; }; };;
32847 # If the user did not use the arguments to specify the items to instantiate,
32848 # then the envvar interface is used. Set only those that are not.
32849 # We use the long form for the default assignment because of an extremely
32850 # bizarre bug on SunOS 4.1.3.
32851 if $ac_need_defaults; then
32852 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32853 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32854 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32857 # Have a temporary directory for convenience. Make it in the build tree
32858 # simply because there is no reason to put it here, and in addition,
32859 # creating and moving files from /tmp can sometimes cause problems.
32860 # Create a temporary directory, and hook for its removal unless debugging.
32863 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
32864 trap '{ (exit 1); exit 1; }' 1 2 13 15
32867 # Create a (secure) tmp directory for tmp files.
32870 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
32871 test -n "$tmp" && test -d "$tmp"
32874 tmp=./confstat$$-$RANDOM
32875 (umask 077 && mkdir $tmp)
32878 echo "$me: cannot create a temporary directory in ." >&2
32879 { (exit 1); exit 1; }
32884 cat >>$CONFIG_STATUS <<_ACEOF
32887 # CONFIG_FILES section.
32890 # No need to generate the scripts if there are no CONFIG_FILES.
32891 # This happens for instance when ./config.status config.h
32892 if test -n "\$CONFIG_FILES"; then
32893 # Protect against being on the right side of a sed subst in config.status.
32894 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
32895 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
32896 s,@SHELL@,$SHELL,;t t
32897 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
32898 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
32899 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
32900 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
32901 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
32902 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
32903 s,@exec_prefix@,$exec_prefix,;t t
32904 s,@prefix@,$prefix,;t t
32905 s,@program_transform_name@,$program_transform_name,;t t
32906 s,@bindir@,$bindir,;t t
32907 s,@sbindir@,$sbindir,;t t
32908 s,@libexecdir@,$libexecdir,;t t
32909 s,@datadir@,$datadir,;t t
32910 s,@sysconfdir@,$sysconfdir,;t t
32911 s,@sharedstatedir@,$sharedstatedir,;t t
32912 s,@localstatedir@,$localstatedir,;t t
32913 s,@libdir@,$libdir,;t t
32914 s,@includedir@,$includedir,;t t
32915 s,@oldincludedir@,$oldincludedir,;t t
32916 s,@infodir@,$infodir,;t t
32917 s,@mandir@,$mandir,;t t
32918 s,@build_alias@,$build_alias,;t t
32919 s,@host_alias@,$host_alias,;t t
32920 s,@target_alias@,$target_alias,;t t
32921 s,@DEFS@,$DEFS,;t t
32922 s,@ECHO_C@,$ECHO_C,;t t
32923 s,@ECHO_N@,$ECHO_N,;t t
32924 s,@ECHO_T@,$ECHO_T,;t t
32925 s,@LIBS@,$LIBS,;t t
32926 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
32927 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
32928 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
32929 s,@CYGPATH_W@,$CYGPATH_W,;t t
32930 s,@PACKAGE@,$PACKAGE,;t t
32931 s,@VERSION@,$VERSION,;t t
32932 s,@ACLOCAL@,$ACLOCAL,;t t
32933 s,@AUTOCONF@,$AUTOCONF,;t t
32934 s,@AUTOMAKE@,$AUTOMAKE,;t t
32935 s,@AUTOHEADER@,$AUTOHEADER,;t t
32936 s,@MAKEINFO@,$MAKEINFO,;t t
32937 s,@install_sh@,$install_sh,;t t
32938 s,@STRIP@,$STRIP,;t t
32939 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
32940 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
32941 s,@mkdir_p@,$mkdir_p,;t t
32943 s,@SET_MAKE@,$SET_MAKE,;t t
32944 s,@am__leading_dot@,$am__leading_dot,;t t
32945 s,@AMTAR@,$AMTAR,;t t
32946 s,@am__tar@,$am__tar,;t t
32947 s,@am__untar@,$am__untar,;t t
32948 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
32949 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
32950 s,@MAINT@,$MAINT,;t t
32951 s,@SP_LIBOSP_CUR@,$SP_LIBOSP_CUR,;t t
32952 s,@SP_LIBOSP_REV@,$SP_LIBOSP_REV,;t t
32953 s,@SP_LIBOSP_AGE@,$SP_LIBOSP_AGE,;t t
32955 s,@CFLAGS@,$CFLAGS,;t t
32956 s,@LDFLAGS@,$LDFLAGS,;t t
32957 s,@CPPFLAGS@,$CPPFLAGS,;t t
32958 s,@ac_ct_CC@,$ac_ct_CC,;t t
32959 s,@EXEEXT@,$EXEEXT,;t t
32960 s,@OBJEXT@,$OBJEXT,;t t
32961 s,@DEPDIR@,$DEPDIR,;t t
32962 s,@am__include@,$am__include,;t t
32963 s,@am__quote@,$am__quote,;t t
32964 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
32965 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
32966 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
32967 s,@CCDEPMODE@,$CCDEPMODE,;t t
32968 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
32969 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
32972 s,@CXXFLAGS@,$CXXFLAGS,;t t
32973 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
32974 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
32975 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
32976 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
32977 s,@CXXCPP@,$CXXCPP,;t t
32978 s,@LN_S@,$LN_S,;t t
32979 s,@PERL@,$PERL,;t t
32980 s,@build@,$build,;t t
32981 s,@build_cpu@,$build_cpu,;t t
32982 s,@build_vendor@,$build_vendor,;t t
32983 s,@build_os@,$build_os,;t t
32984 s,@host@,$host,;t t
32985 s,@host_cpu@,$host_cpu,;t t
32986 s,@host_vendor@,$host_vendor,;t t
32987 s,@host_os@,$host_os,;t t
32988 s,@EGREP@,$EGREP,;t t
32989 s,@ECHO@,$ECHO,;t t
32991 s,@ac_ct_AR@,$ac_ct_AR,;t t
32992 s,@RANLIB@,$RANLIB,;t t
32993 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
32995 s,@FFLAGS@,$FFLAGS,;t t
32996 s,@ac_ct_F77@,$ac_ct_F77,;t t
32997 s,@LIBTOOL@,$LIBTOOL,;t t
32998 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
32999 s,@USE_NLS@,$USE_NLS,;t t
33000 s,@MSGFMT@,$MSGFMT,;t t
33001 s,@GMSGFMT@,$GMSGFMT,;t t
33002 s,@XGETTEXT@,$XGETTEXT,;t t
33003 s,@MSGMERGE@,$MSGMERGE,;t t
33004 s,@GLIBC2@,$GLIBC2,;t t
33005 s,@ALLOCA@,$ALLOCA,;t t
33006 s,@GLIBC21@,$GLIBC21,;t t
33007 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
33008 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
33009 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
33010 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
33011 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
33012 s,@LIBICONV@,$LIBICONV,;t t
33013 s,@LTLIBICONV@,$LTLIBICONV,;t t
33014 s,@INTLBISON@,$INTLBISON,;t t
33015 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
33016 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
33017 s,@CATOBJEXT@,$CATOBJEXT,;t t
33018 s,@DATADIRNAME@,$DATADIRNAME,;t t
33019 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
33020 s,@GENCAT@,$GENCAT,;t t
33021 s,@INTLOBJS@,$INTLOBJS,;t t
33022 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
33023 s,@INTLLIBS@,$INTLLIBS,;t t
33024 s,@LIBINTL@,$LIBINTL,;t t
33025 s,@LTLIBINTL@,$LTLIBINTL,;t t
33026 s,@POSUB@,$POSUB,;t t
33027 s,@SP_MESSAGE_DOMAIN@,$SP_MESSAGE_DOMAIN,;t t
33028 s,@LIBOBJS@,$LIBOBJS,;t t
33029 s,@DTDDECL_TRUE@,$DTDDECL_TRUE,;t t
33030 s,@DTDDECL_FALSE@,$DTDDECL_FALSE,;t t
33031 s,@XMLTO@,$XMLTO,;t t
33032 s,@DOCSRC@,$DOCSRC,;t t
33033 s,@PDF2PS@,$PDF2PS,;t t
33034 s,@JADE@,$JADE,;t t
33035 s,@JADETEX@,$JADETEX,;t t
33036 s,@PDFJADETEX@,$PDFJADETEX,;t t
33037 s,@EXTRADOCS@,$EXTRADOCS,;t t
33038 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
33043 cat >>$CONFIG_STATUS <<\_ACEOF
33044 # Split the substitutions into bite-sized pieces for seds with
33045 # small command number limits, like on Digital OSF/1 and HP-UX.
33046 ac_max_sed_lines=48
33047 ac_sed_frag=1 # Number of current file.
33048 ac_beg=1 # First line for current file.
33049 ac_end=$ac_max_sed_lines # Line after last line for current file.
33052 while $ac_more_lines; do
33053 if test $ac_beg -gt 1; then
33054 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
33056 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
33058 if test ! -s $tmp/subs.frag; then
33059 ac_more_lines=false
33061 # The purpose of the label and of the branching condition is to
33062 # speed up the sed processing (if there are no `@' at all, there
33063 # is no need to browse any of the substitutions).
33064 # These are the two extra sed commands mentioned above.
33066 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
33067 if test -z "$ac_sed_cmds"; then
33068 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
33070 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
33072 ac_sed_frag=`expr $ac_sed_frag + 1`
33074 ac_end=`expr $ac_end + $ac_max_sed_lines`
33077 if test -z "$ac_sed_cmds"; then
33080 fi # test -n "$CONFIG_FILES"
33083 cat >>$CONFIG_STATUS <<\_ACEOF
33084 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
33085 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
33087 - | *:- | *:-:* ) # input from stdin
33089 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33090 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33091 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33092 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33093 * ) ac_file_in=$ac_file.in ;;
33096 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
33097 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
33098 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33099 X"$ac_file" : 'X\(//\)[^/]' \| \
33100 X"$ac_file" : 'X\(//\)$' \| \
33101 X"$ac_file" : 'X\(/\)' \| \
33102 . : '\(.\)' 2>/dev/null ||
33104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33106 /^X\(\/\/\)$/{ s//\1/; q; }
33107 /^X\(\/\).*/{ s//\1/; q; }
33109 { if $as_mkdir_p; then
33114 while test ! -d "$as_dir"; do
33115 as_dirs="$as_dir $as_dirs"
33116 as_dir=`(dirname "$as_dir") 2>/dev/null ||
33117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33118 X"$as_dir" : 'X\(//\)[^/]' \| \
33119 X"$as_dir" : 'X\(//\)$' \| \
33120 X"$as_dir" : 'X\(/\)' \| \
33121 . : '\(.\)' 2>/dev/null ||
33123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33125 /^X\(\/\/\)$/{ s//\1/; q; }
33126 /^X\(\/\).*/{ s//\1/; q; }
33129 test ! -n "$as_dirs" || mkdir $as_dirs
33130 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33131 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33132 { (exit 1); exit 1; }; }; }
33136 if test "$ac_dir" != .; then
33137 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33138 # A "../" for each directory in $ac_dir_suffix.
33139 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
33141 ac_dir_suffix= ac_top_builddir=
33145 .) # No --srcdir option. We are building in place.
33147 if test -z "$ac_top_builddir"; then
33150 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
33152 [\\/]* | ?:[\\/]* ) # Absolute path.
33153 ac_srcdir=$srcdir$ac_dir_suffix;
33154 ac_top_srcdir=$srcdir ;;
33155 *) # Relative path.
33156 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
33157 ac_top_srcdir=$ac_top_builddir$srcdir ;;
33160 # Do not use `cd foo && pwd` to compute absolute paths, because
33161 # the directories may not exist.
33163 .) ac_abs_builddir="$ac_dir";;
33166 .) ac_abs_builddir=`pwd`;;
33167 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
33168 *) ac_abs_builddir=`pwd`/"$ac_dir";;
33171 case $ac_abs_builddir in
33172 .) ac_abs_top_builddir=${ac_top_builddir}.;;
33174 case ${ac_top_builddir}. in
33175 .) ac_abs_top_builddir=$ac_abs_builddir;;
33176 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
33177 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
33180 case $ac_abs_builddir in
33181 .) ac_abs_srcdir=$ac_srcdir;;
33184 .) ac_abs_srcdir=$ac_abs_builddir;;
33185 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
33186 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
33189 case $ac_abs_builddir in
33190 .) ac_abs_top_srcdir=$ac_top_srcdir;;
33192 case $ac_top_srcdir in
33193 .) ac_abs_top_srcdir=$ac_abs_builddir;;
33194 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
33195 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
33201 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33202 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
33205 if test x"$ac_file" != x-; then
33206 { echo "$as_me:$LINENO: creating $ac_file" >&5
33207 echo "$as_me: creating $ac_file" >&6;}
33210 # Let's still pretend it is `configure' which instantiates (i.e., don't
33211 # use $as_me), people would be surprised to read:
33212 # /* config.h. Generated by config.status. */
33213 if test x"$ac_file" = x-; then
33216 configure_input="$ac_file. "
33218 configure_input=$configure_input"Generated from `echo $ac_file_in |
33219 sed 's,.*/,,'` by configure."
33221 # First look for the input files in the build tree, otherwise in the
33223 ac_file_inputs=`IFS=:
33224 for f in $ac_file_in; do
33226 -) echo $tmp/stdin ;;
33228 # Absolute (can't be DOS-style, as IFS=:)
33229 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33230 echo "$as_me: error: cannot find input file: $f" >&2;}
33231 { (exit 1); exit 1; }; }
33234 if test -f "$f"; then
33237 elif test -f "$srcdir/$f"; then
33242 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33243 echo "$as_me: error: cannot find input file: $f" >&2;}
33244 { (exit 1); exit 1; }; }
33247 done` || { (exit 1); exit 1; }
33249 cat >>$CONFIG_STATUS <<_ACEOF
33253 cat >>$CONFIG_STATUS <<\_ACEOF
33255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33256 s,@configure_input@,$configure_input,;t t
33257 s,@srcdir@,$ac_srcdir,;t t
33258 s,@abs_srcdir@,$ac_abs_srcdir,;t t
33259 s,@top_srcdir@,$ac_top_srcdir,;t t
33260 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
33261 s,@builddir@,$ac_builddir,;t t
33262 s,@abs_builddir@,$ac_abs_builddir,;t t
33263 s,@top_builddir@,$ac_top_builddir,;t t
33264 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
33265 s,@INSTALL@,$ac_INSTALL,;t t
33266 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
33268 if test x"$ac_file" != x-; then
33269 mv $tmp/out $ac_file
33277 cat >>$CONFIG_STATUS <<\_ACEOF
33280 # CONFIG_HEADER section.
33283 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
33284 # NAME is the cpp macro being defined and VALUE is the value it is being given.
33286 # ac_d sets the value in "#define NAME VALUE" lines.
33287 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
33288 ac_dB='[ ].*$,\1#\2'
33291 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
33292 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
33293 ac_uB='$,\1#\2define\3'
33297 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
33298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
33300 - | *:- | *:-:* ) # input from stdin
33302 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33304 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33305 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33306 * ) ac_file_in=$ac_file.in ;;
33309 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
33310 echo "$as_me: creating $ac_file" >&6;}
33312 # First look for the input files in the build tree, otherwise in the
33314 ac_file_inputs=`IFS=:
33315 for f in $ac_file_in; do
33317 -) echo $tmp/stdin ;;
33319 # Absolute (can't be DOS-style, as IFS=:)
33320 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33321 echo "$as_me: error: cannot find input file: $f" >&2;}
33322 { (exit 1); exit 1; }; }
33323 # Do quote $f, to prevent DOS paths from being IFS'd.
33326 if test -f "$f"; then
33329 elif test -f "$srcdir/$f"; then
33334 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33335 echo "$as_me: error: cannot find input file: $f" >&2;}
33336 { (exit 1); exit 1; }; }
33339 done` || { (exit 1); exit 1; }
33340 # Remove the trailing spaces.
33341 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
33345 # Transform confdefs.h into two sed scripts, `conftest.defines' and
33346 # `conftest.undefs', that substitutes the proper values into
33347 # config.h.in to produce config.h. The first handles `#define'
33348 # templates, and the second `#undef' templates.
33349 # And first: Protect against being on the right side of a sed subst in
33350 # config.status. Protect against being in an unquoted here document
33351 # in config.status.
33352 rm -f conftest.defines conftest.undefs
33353 # Using a here document instead of a string reduces the quoting nightmare.
33354 # Putting comments in sed scripts is not portable.
33356 # `end' is used to avoid that the second main sed command (meant for
33357 # 0-ary CPP macros) applies to n-ary macro definitions.
33358 # See the Autoconf documentation for `clear'.
33359 cat >confdef2sed.sed <<\_ACEOF
33364 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
33366 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
33369 # If some macros were called several times there might be several times
33370 # the same #defines, which is useless. Nevertheless, we may not want to
33371 # sort them, since we want the *last* AC-DEFINE to be honored.
33372 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
33373 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
33374 rm -f confdef2sed.sed
33376 # This sed command replaces #undef with comments. This is necessary, for
33377 # example, in the case of _POSIX_SOURCE, which is predefined and required
33378 # on some systems where configure will not decide to define it.
33379 cat >>conftest.undefs <<\_ACEOF
33380 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
33383 # Break up conftest.defines because some shells have a limit on the size
33384 # of here documents, and old seds have small limits too (100 cmds).
33385 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
33386 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
33387 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
33388 echo ' :' >>$CONFIG_STATUS
33389 rm -f conftest.tail
33390 while grep . conftest.defines >/dev/null
33392 # Write a limited-size here document to $tmp/defines.sed.
33393 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
33394 # Speed up: don't consider the non `#define' lines.
33395 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
33396 # Work around the forget-to-reset-the-flag bug.
33397 echo 't clr' >>$CONFIG_STATUS
33398 echo ': clr' >>$CONFIG_STATUS
33399 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
33401 sed -f $tmp/defines.sed $tmp/in >$tmp/out
33403 mv $tmp/out $tmp/in
33405 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
33406 rm -f conftest.defines
33407 mv conftest.tail conftest.defines
33409 rm -f conftest.defines
33410 echo ' fi # grep' >>$CONFIG_STATUS
33411 echo >>$CONFIG_STATUS
33413 # Break up conftest.undefs because some shells have a limit on the size
33414 # of here documents, and old seds have small limits too (100 cmds).
33415 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
33416 rm -f conftest.tail
33417 while grep . conftest.undefs >/dev/null
33419 # Write a limited-size here document to $tmp/undefs.sed.
33420 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
33421 # Speed up: don't consider the non `#undef'
33422 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
33423 # Work around the forget-to-reset-the-flag bug.
33424 echo 't clr' >>$CONFIG_STATUS
33425 echo ': clr' >>$CONFIG_STATUS
33426 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
33428 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
33430 mv $tmp/out $tmp/in
33432 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
33433 rm -f conftest.undefs
33434 mv conftest.tail conftest.undefs
33436 rm -f conftest.undefs
33438 cat >>$CONFIG_STATUS <<\_ACEOF
33439 # Let's still pretend it is `configure' which instantiates (i.e., don't
33440 # use $as_me), people would be surprised to read:
33441 # /* config.h. Generated by config.status. */
33442 if test x"$ac_file" = x-; then
33443 echo "/* Generated by configure. */" >$tmp/config.h
33445 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
33447 cat $tmp/in >>$tmp/config.h
33449 if test x"$ac_file" != x-; then
33450 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
33451 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33452 echo "$as_me: $ac_file is unchanged" >&6;}
33454 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
33455 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33456 X"$ac_file" : 'X\(//\)[^/]' \| \
33457 X"$ac_file" : 'X\(//\)$' \| \
33458 X"$ac_file" : 'X\(/\)' \| \
33459 . : '\(.\)' 2>/dev/null ||
33461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33463 /^X\(\/\/\)$/{ s//\1/; q; }
33464 /^X\(\/\).*/{ s//\1/; q; }
33466 { if $as_mkdir_p; then
33471 while test ! -d "$as_dir"; do
33472 as_dirs="$as_dir $as_dirs"
33473 as_dir=`(dirname "$as_dir") 2>/dev/null ||
33474 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33475 X"$as_dir" : 'X\(//\)[^/]' \| \
33476 X"$as_dir" : 'X\(//\)$' \| \
33477 X"$as_dir" : 'X\(/\)' \| \
33478 . : '\(.\)' 2>/dev/null ||
33480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33482 /^X\(\/\/\)$/{ s//\1/; q; }
33483 /^X\(\/\).*/{ s//\1/; q; }
33486 test ! -n "$as_dirs" || mkdir $as_dirs
33487 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33488 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33489 { (exit 1); exit 1; }; }; }
33492 mv $tmp/config.h $ac_file
33496 rm -f $tmp/config.h
33498 # Compute $ac_file's index in $config_headers.
33500 for _am_header in $config_headers :; do
33501 case $_am_header in
33502 $ac_file | $ac_file:* )
33505 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33508 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
33509 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33510 X$ac_file : 'X\(//\)[^/]' \| \
33511 X$ac_file : 'X\(//\)$' \| \
33512 X$ac_file : 'X\(/\)' \| \
33513 . : '\(.\)' 2>/dev/null ||
33515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33517 /^X\(\/\/\)$/{ s//\1/; q; }
33518 /^X\(\/\).*/{ s//\1/; q; }
33519 s/.*/./; q'`/stamp-h$_am_stamp_count
33522 cat >>$CONFIG_STATUS <<\_ACEOF
33525 # CONFIG_COMMANDS section.
33527 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
33528 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
33529 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
33530 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
33531 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33532 X"$ac_dest" : 'X\(//\)[^/]' \| \
33533 X"$ac_dest" : 'X\(//\)$' \| \
33534 X"$ac_dest" : 'X\(/\)' \| \
33535 . : '\(.\)' 2>/dev/null ||
33537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33539 /^X\(\/\/\)$/{ s//\1/; q; }
33540 /^X\(\/\).*/{ s//\1/; q; }
33542 { if $as_mkdir_p; then
33547 while test ! -d "$as_dir"; do
33548 as_dirs="$as_dir $as_dirs"
33549 as_dir=`(dirname "$as_dir") 2>/dev/null ||
33550 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33551 X"$as_dir" : 'X\(//\)[^/]' \| \
33552 X"$as_dir" : 'X\(//\)$' \| \
33553 X"$as_dir" : 'X\(/\)' \| \
33554 . : '\(.\)' 2>/dev/null ||
33556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33557 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33558 /^X\(\/\/\)$/{ s//\1/; q; }
33559 /^X\(\/\).*/{ s//\1/; q; }
33562 test ! -n "$as_dirs" || mkdir $as_dirs
33563 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33564 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33565 { (exit 1); exit 1; }; }; }
33569 if test "$ac_dir" != .; then
33570 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33571 # A "../" for each directory in $ac_dir_suffix.
33572 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
33574 ac_dir_suffix= ac_top_builddir=
33578 .) # No --srcdir option. We are building in place.
33580 if test -z "$ac_top_builddir"; then
33583 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
33585 [\\/]* | ?:[\\/]* ) # Absolute path.
33586 ac_srcdir=$srcdir$ac_dir_suffix;
33587 ac_top_srcdir=$srcdir ;;
33588 *) # Relative path.
33589 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
33590 ac_top_srcdir=$ac_top_builddir$srcdir ;;
33593 # Do not use `cd foo && pwd` to compute absolute paths, because
33594 # the directories may not exist.
33596 .) ac_abs_builddir="$ac_dir";;
33599 .) ac_abs_builddir=`pwd`;;
33600 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
33601 *) ac_abs_builddir=`pwd`/"$ac_dir";;
33604 case $ac_abs_builddir in
33605 .) ac_abs_top_builddir=${ac_top_builddir}.;;
33607 case ${ac_top_builddir}. in
33608 .) ac_abs_top_builddir=$ac_abs_builddir;;
33609 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
33610 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
33613 case $ac_abs_builddir in
33614 .) ac_abs_srcdir=$ac_srcdir;;
33617 .) ac_abs_srcdir=$ac_abs_builddir;;
33618 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
33619 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
33622 case $ac_abs_builddir in
33623 .) ac_abs_top_srcdir=$ac_top_srcdir;;
33625 case $ac_top_srcdir in
33626 .) ac_abs_top_srcdir=$ac_abs_builddir;;
33627 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
33628 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
33633 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
33634 echo "$as_me: executing $ac_dest commands" >&6;}
33636 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
33637 # Strip MF so we end up with the name of the file.
33638 mf=`echo "$mf" | sed -e 's/:.*$//'`
33639 # Check whether this is an Automake generated Makefile or not.
33640 # We used to match only the files named `Makefile.in', but
33641 # some people rename them; so instead we look at the file content.
33642 # Grep'ing the first line is not enough: some people post-process
33643 # each Makefile.in and add a new line on top of each file to say so.
33644 # So let's grep whole file.
33645 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
33646 dirpart=`(dirname "$mf") 2>/dev/null ||
33647 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33648 X"$mf" : 'X\(//\)[^/]' \| \
33649 X"$mf" : 'X\(//\)$' \| \
33650 X"$mf" : 'X\(/\)' \| \
33651 . : '\(.\)' 2>/dev/null ||
33653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33655 /^X\(\/\/\)$/{ s//\1/; q; }
33656 /^X\(\/\).*/{ s//\1/; q; }
33661 # Extract the definition of DEPDIR, am__include, and am__quote
33662 # from the Makefile without running `make'.
33663 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33664 test -z "$DEPDIR" && continue
33665 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33666 test -z "am__include" && continue
33667 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33668 # When using ansi2knr, U may be empty or an underscore; expand it
33669 U=`sed -n 's/^U = //p' < "$mf"`
33670 # Find all dependency output files, they are included files with
33671 # $(DEPDIR) in their names. We invoke sed twice because it is the
33672 # simplest approach to changing $(DEPDIR) to its actual value in the
33674 for file in `sed -n "
33675 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33676 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33677 # Make sure the directory exists.
33678 test -f "$dirpart/$file" && continue
33679 fdir=`(dirname "$file") 2>/dev/null ||
33680 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33681 X"$file" : 'X\(//\)[^/]' \| \
33682 X"$file" : 'X\(//\)$' \| \
33683 X"$file" : 'X\(/\)' \| \
33684 . : '\(.\)' 2>/dev/null ||
33686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33687 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33688 /^X\(\/\/\)$/{ s//\1/; q; }
33689 /^X\(\/\).*/{ s//\1/; q; }
33691 { if $as_mkdir_p; then
33692 mkdir -p $dirpart/$fdir
33694 as_dir=$dirpart/$fdir
33696 while test ! -d "$as_dir"; do
33697 as_dirs="$as_dir $as_dirs"
33698 as_dir=`(dirname "$as_dir") 2>/dev/null ||
33699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33700 X"$as_dir" : 'X\(//\)[^/]' \| \
33701 X"$as_dir" : 'X\(//\)$' \| \
33702 X"$as_dir" : 'X\(/\)' \| \
33703 . : '\(.\)' 2>/dev/null ||
33705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33706 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33707 /^X\(\/\/\)$/{ s//\1/; q; }
33708 /^X\(\/\).*/{ s//\1/; q; }
33711 test ! -n "$as_dirs" || mkdir $as_dirs
33712 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
33713 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
33714 { (exit 1); exit 1; }; }; }
33716 # echo "creating $dirpart/$file"
33717 echo '# dummy' > "$dirpart/$file"
33722 for ac_file in $CONFIG_FILES; do
33723 # Support "outfile[:infile[:infile...]]"
33725 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33727 # PO directories have a Makefile.in generated from Makefile.in.in.
33728 case "$ac_file" in */Makefile.in)
33729 # Adjust a relative srcdir.
33730 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33731 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33732 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33733 # In autoconf-2.13 it is called $ac_given_srcdir.
33734 # In autoconf-2.50 it is called $srcdir.
33735 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33736 case "$ac_given_srcdir" in
33737 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33738 /*) top_srcdir="$ac_given_srcdir" ;;
33739 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33741 # Treat a directory as a PO directory if and only if it has a
33742 # POTFILES.in file. This allows packages to have multiple PO
33743 # directories under different names or in different locations.
33744 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33745 rm -f "$ac_dir/POTFILES"
33746 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33747 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33748 POMAKEFILEDEPS="POTFILES.in"
33749 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33750 # on $ac_dir but don't depend on user-specified configuration
33752 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33753 # The LINGUAS file contains the set of available languages.
33754 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33755 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33757 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33758 # Hide the ALL_LINGUAS assigment from automake.
33759 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33760 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33762 # The set of available languages was given in configure.in.
33763 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33766 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33767 # Compute UPDATEPOFILES
33768 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33769 # Compute DUMMYPOFILES
33770 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33772 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33773 case "$ac_given_srcdir" in
33775 *) srcdirpre='$(srcdir)/' ;;
33781 for lang in $ALL_LINGUAS; do
33782 POFILES="$POFILES $srcdirpre$lang.po"
33783 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33784 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33785 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33787 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33788 # environment variable.
33790 if test -n "$ALL_LINGUAS"; then
33791 for presentlang in $ALL_LINGUAS; do
33793 if test "%UNSET%" != "$LINGUAS"; then
33794 desiredlanguages="$LINGUAS"
33796 desiredlanguages="$ALL_LINGUAS"
33798 for desiredlang in $desiredlanguages; do
33799 # Use the presentlang catalog if desiredlang is
33800 # a. equal to presentlang, or
33801 # b. a variant of presentlang (because in this case,
33802 # presentlang can be used as a fallback for messages
33803 # which are not translated in the desiredlang catalog).
33804 case "$desiredlang" in
33805 "$presentlang"*) useit=yes;;
33808 if test $useit = yes; then
33809 INST_LINGUAS="$INST_LINGUAS $presentlang"
33814 if test -n "$INST_LINGUAS"; then
33815 for lang in $INST_LINGUAS; do
33816 CATALOGS="$CATALOGS $lang.gmo"
33819 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33820 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
33821 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33822 if test -f "$f"; then
33824 *.orig | *.bak | *~) ;;
33825 *) cat "$f" >> "$ac_dir/Makefile" ;;
33837 cat >>$CONFIG_STATUS <<\_ACEOF
33839 { (exit 0); exit 0; }
33841 chmod +x $CONFIG_STATUS
33842 ac_clean_files=$ac_clean_files_save
33845 # configure is writing to config.log, and then calls config.status.
33846 # config.status does its own redirection, appending to config.log.
33847 # Unfortunately, on DOS this fails, as config.log is still kept open
33848 # by configure, so config.status won't be able to write to it; its
33849 # output is simply discarded. So we exec the FD to /dev/null,
33850 # effectively closing config.log, so it can be properly (re)opened and
33851 # appended to by config.status. When coming back to configure, we
33852 # need to make the FD available again.
33853 if test "$no_create" != yes; then
33855 ac_config_status_args=
33856 test "$silent" = yes &&
33857 ac_config_status_args="$ac_config_status_args --quiet"
33859 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33861 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33862 # would make configure fail if this is the last instruction.
33863 $ac_cs_success || { (exit 1); exit 1; }