2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for linux nfs-utils 1.0.8.
5 # Report bugs to <nfs@lists.sf.net>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='linux nfs-utils'
425 PACKAGE_TARNAME='nfs-utils'
426 PACKAGE_VERSION='1.0.8'
427 PACKAGE_STRING='linux nfs-utils 1.0.8'
428 PACKAGE_BUGREPORT='nfs@lists.sf.net'
430 ac_unique_file="tools/getiversion/getiversion.c"
431 ac_default_prefix=/usr
432 ac_unique_file="support/include/config.h.in"
433 # Factoring default headers for most tests.
434 ac_includes_default="\
437 # include <sys/types.h>
440 # include <sys/stat.h>
451 # if !STDC_HEADERS && HAVE_MEMORY_H
457 # include <strings.h>
460 # include <inttypes.h>
470 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 RELEASE statedir statduser enable_nfsv3 IDMAPD enable_nfsv4 CONFIG_NFSV4_TRUE CONFIG_NFSV4_FALSE GSSD SVCGSSD enable_gss CONFIG_GSS_TRUE CONFIG_GSS_FALSE kprefix secure_statd CONFIG_RQUOTAD_TRUE CONFIG_RQUOTAD_FALSE 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 LIBWRAP HAVE_LIBWRAP HAVE_TCP_WRAPPER CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CC_FOR_BUILD LD ac_ct_LD PKG_CONFIG ac_pt_PKG_CONFIG RPCSECGSS_CFLAGS RPCSECGSS_LIBS GSSAPI_CFLAGS GSSAPI_LIBS LIBSOCKET LIBNSL LIBCRYPT LIBBSD KRBDIR KRBLIBS KRBCFLAGS K5VERS ALLOCA LIBOBJS CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD AM_CPPFLAGS AM_CFLAGS ACLOCAL_AMFLAGS LTLIBOBJS'
473 # Initialize some variables set by options.
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
485 program_transform_name=s,x,x,
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
514 # If the previous option needs an argument, assign it.
515 if test -n "$ac_prev"; then
516 eval "$ac_prev=\$ac_option"
521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523 # Accept the important Cygnus configure options, so we can diagnose typos.
527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
532 -build | --build | --buil | --bui | --bu)
533 ac_prev=build_alias ;;
534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535 build_alias=$ac_optarg ;;
537 -cache-file | --cache-file | --cache-fil | --cache-fi \
538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539 ac_prev=cache_file ;;
540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542 cache_file=$ac_optarg ;;
545 cache_file=config.cache ;;
547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551 datadir=$ac_optarg ;;
553 -disable-* | --disable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 eval "enable_$ac_feature=no" ;;
562 -enable-* | --enable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
573 eval "enable_$ac_feature='$ac_optarg'" ;;
575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577 | --exec | --exe | --ex)
578 ac_prev=exec_prefix ;;
579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581 | --exec=* | --exe=* | --ex=*)
582 exec_prefix=$ac_optarg ;;
584 -gas | --gas | --ga | --g)
585 # Obsolete; use --with-gas.
588 -help | --help | --hel | --he | -h)
590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591 ac_init_help=recursive ;;
592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593 ac_init_help=short ;;
595 -host | --host | --hos | --ho)
596 ac_prev=host_alias ;;
597 -host=* | --host=* | --hos=* | --ho=*)
598 host_alias=$ac_optarg ;;
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
605 includedir=$ac_optarg ;;
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610 infodir=$ac_optarg ;;
612 -libdir | --libdir | --libdi | --libd)
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
622 libexecdir=$ac_optarg ;;
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631 localstatedir=$ac_optarg ;;
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
639 # Obsolete; use --without-fp.
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643 | --no-cr | --no-c | -n)
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657 oldincludedir=$ac_optarg ;;
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669 program_prefix=$ac_optarg ;;
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676 program_suffix=$ac_optarg ;;
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
693 program_transform_name=$ac_optarg ;;
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 sbindir=$ac_optarg ;;
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 sharedstatedir=$ac_optarg ;;
716 -site | --site | --sit)
718 -site=* | --site=* | --sit=*)
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731 sysconfdir=$ac_optarg ;;
733 -target | --target | --targe | --targ | --tar | --ta | --t)
734 ac_prev=target_alias ;;
735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736 target_alias=$ac_optarg ;;
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
741 -version | --version | --versio | --versi | --vers | -V)
745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package| sed 's/-/_/g'`
752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
755 eval "with_$ac_package='$ac_optarg'" ;;
757 -without-* | --without-*)
758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759 # Reject names that are not valid shell variable names.
760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package | sed 's/-/_/g'`
764 eval "with_$ac_package=no" ;;
767 # Obsolete; use --with-x.
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775 x_includes=$ac_optarg ;;
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782 x_libraries=$ac_optarg ;;
784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
800 # FIXME: should be removed in autoconf 3.0.
801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810 if test -n "$ac_prev"; then
811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
819 eval ac_val=$`echo $ac_var`
821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
831 eval ac_val=$`echo $ac_var`
833 [\\/$]* | ?:[\\/]* ) ;;
834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835 { (exit 1); exit 1; }; };;
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860 test "$silent" = yes && exec 6>/dev/null
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
867 ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
880 if test ! -r $srcdir/$ac_unique_file; then
884 ac_srcdir_defaulted=no
886 if test ! -r $srcdir/$ac_unique_file; then
887 if test "$ac_srcdir_defaulted" = yes; then
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CC_set=${CC+set}
913 ac_cv_env_CC_set=${CC+set}
914 ac_cv_env_CC_value=$CC
915 ac_env_CFLAGS_set=${CFLAGS+set}
916 ac_env_CFLAGS_value=$CFLAGS
917 ac_cv_env_CFLAGS_set=${CFLAGS+set}
918 ac_cv_env_CFLAGS_value=$CFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
943 ac_env_F77_set=${F77+set}
944 ac_env_F77_value=$F77
945 ac_cv_env_F77_set=${F77+set}
946 ac_cv_env_F77_value=$F77
947 ac_env_FFLAGS_set=${FFLAGS+set}
948 ac_env_FFLAGS_value=$FFLAGS
949 ac_cv_env_FFLAGS_set=${FFLAGS+set}
950 ac_cv_env_FFLAGS_value=$FFLAGS
951 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
952 ac_env_PKG_CONFIG_value=$PKG_CONFIG
953 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
954 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
955 ac_env_RPCSECGSS_CFLAGS_set=${RPCSECGSS_CFLAGS+set}
956 ac_env_RPCSECGSS_CFLAGS_value=$RPCSECGSS_CFLAGS
957 ac_cv_env_RPCSECGSS_CFLAGS_set=${RPCSECGSS_CFLAGS+set}
958 ac_cv_env_RPCSECGSS_CFLAGS_value=$RPCSECGSS_CFLAGS
959 ac_env_RPCSECGSS_LIBS_set=${RPCSECGSS_LIBS+set}
960 ac_env_RPCSECGSS_LIBS_value=$RPCSECGSS_LIBS
961 ac_cv_env_RPCSECGSS_LIBS_set=${RPCSECGSS_LIBS+set}
962 ac_cv_env_RPCSECGSS_LIBS_value=$RPCSECGSS_LIBS
963 ac_env_GSSAPI_CFLAGS_set=${GSSAPI_CFLAGS+set}
964 ac_env_GSSAPI_CFLAGS_value=$GSSAPI_CFLAGS
965 ac_cv_env_GSSAPI_CFLAGS_set=${GSSAPI_CFLAGS+set}
966 ac_cv_env_GSSAPI_CFLAGS_value=$GSSAPI_CFLAGS
967 ac_env_GSSAPI_LIBS_set=${GSSAPI_LIBS+set}
968 ac_env_GSSAPI_LIBS_value=$GSSAPI_LIBS
969 ac_cv_env_GSSAPI_LIBS_set=${GSSAPI_LIBS+set}
970 ac_cv_env_GSSAPI_LIBS_value=$GSSAPI_LIBS
973 # Report the --help message.
975 if test "$ac_init_help" = "long"; then
976 # Omit some internal or obsolete options to make the list less imposing.
977 # This message is too long to be a string in the A/UX 3.1 sh.
979 \`configure' configures linux nfs-utils 1.0.8 to adapt to many kinds of systems.
981 Usage: $0 [OPTION]... [VAR=VALUE]...
983 To assign environment variables (e.g., CC, CFLAGS...), specify them as
984 VAR=VALUE. See below for descriptions of some of the useful variables.
986 Defaults for the options are specified in brackets.
989 -h, --help display this help and exit
990 --help=short display options specific to this package
991 --help=recursive display the short help of all the included packages
992 -V, --version display version information and exit
993 -q, --quiet, --silent do not print \`checking...' messages
994 --cache-file=FILE cache test results in FILE [disabled]
995 -C, --config-cache alias for \`--cache-file=config.cache'
996 -n, --no-create do not create output files
997 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1002 Installation directories:
1003 --prefix=PREFIX install architecture-independent files in PREFIX
1004 [$ac_default_prefix]
1005 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1008 By default, \`make install' will install all the files in
1009 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1010 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1011 for instance \`--prefix=\$HOME'.
1013 For better control, use the options below.
1015 Fine tuning of the installation directories:
1016 --bindir=DIR user executables [EPREFIX/bin]
1017 --sbindir=DIR system admin executables [EPREFIX/sbin]
1018 --libexecdir=DIR program executables [EPREFIX/libexec]
1019 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1020 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1021 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1022 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1023 --libdir=DIR object code libraries [EPREFIX/lib]
1024 --includedir=DIR C header files [PREFIX/include]
1025 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1026 --infodir=DIR info documentation [PREFIX/info]
1027 --mandir=DIR man documentation [PREFIX/man]
1033 --program-prefix=PREFIX prepend PREFIX to installed program names
1034 --program-suffix=SUFFIX append SUFFIX to installed program names
1035 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1038 --build=BUILD configure for building on BUILD [guessed]
1039 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1043 if test -n "$ac_init_help"; then
1044 case $ac_init_help in
1045 short | recursive ) echo "Configuration of linux nfs-utils 1.0.8:";;
1050 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1051 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1052 --enable-nfsv3 enable support for NFSv3 [default=yes]
1053 --enable-nfsv4 enable support for NFSv4 [default=yes]
1054 --enable-gss enable support for rpcsec_gss [default=yes]
1055 --enable-kprefix install progs as rpc.knfsd etc
1056 --enable-secure-statd Only lockd can use statd (security)
1057 --enable-rquotad enable rquotad [default=yes]
1058 --disable-dependency-tracking speeds up one-time build
1059 --enable-dependency-tracking do not reject slow dependency extractors
1060 --enable-shared[=PKGS]
1061 build shared libraries [default=yes]
1062 --enable-static[=PKGS]
1063 build static libraries [default=yes]
1064 --enable-fast-install[=PKGS]
1065 optimize for fast installation [default=yes]
1066 --disable-libtool-lock avoid locking (might break parallel builds)
1069 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1070 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1071 --with-release=XXX set release to XXX [1]
1072 --with-statedir=/foo use state dir /foo /var/lib/nfs
1073 --with-statduser=rpcuser
1074 statd to run under [rpcuser or nobody]
1075 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1076 (optionally in PATH)
1077 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1078 --with-pic try to use only PIC/non-PIC objects [default=use
1081 include additional configurations [automatic]
1082 --with-krb5=DIR use Kerberos v5 installation in DIR
1084 Some influential environment variables:
1085 CC C compiler command
1086 CFLAGS C compiler flags
1087 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1088 nonstandard directory <lib dir>
1089 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1090 headers in a nonstandard directory <include dir>
1091 CXX C++ compiler command
1092 CXXFLAGS C++ compiler flags
1094 CXXCPP C++ preprocessor
1095 F77 Fortran 77 compiler command
1096 FFLAGS Fortran 77 compiler flags
1097 PKG_CONFIG path to pkg-config utility
1099 C compiler flags for RPCSECGSS, overriding pkg-config
1101 linker flags for RPCSECGSS, overriding pkg-config
1103 C compiler flags for GSSAPI, overriding pkg-config
1104 GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1106 Use these variables to override the choices made by `configure' or to help
1107 it to find libraries and programs with nonstandard names/locations.
1109 Report bugs to <nfs@lists.sf.net>.
1113 if test "$ac_init_help" = "recursive"; then
1114 # If there are subdirs, report their specific --help.
1116 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1117 test -d $ac_dir || continue
1120 if test "$ac_dir" != .; then
1121 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1122 # A "../" for each directory in $ac_dir_suffix.
1123 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1125 ac_dir_suffix= ac_top_builddir=
1129 .) # No --srcdir option. We are building in place.
1131 if test -z "$ac_top_builddir"; then
1134 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1136 [\\/]* | ?:[\\/]* ) # Absolute path.
1137 ac_srcdir=$srcdir$ac_dir_suffix;
1138 ac_top_srcdir=$srcdir ;;
1140 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1141 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144 # Do not use `cd foo && pwd` to compute absolute paths, because
1145 # the directories may not exist.
1147 .) ac_abs_builddir="$ac_dir";;
1150 .) ac_abs_builddir=`pwd`;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1152 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1155 case $ac_abs_builddir in
1156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1158 case ${ac_top_builddir}. in
1159 .) ac_abs_top_builddir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1161 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1164 case $ac_abs_builddir in
1165 .) ac_abs_srcdir=$ac_srcdir;;
1168 .) ac_abs_srcdir=$ac_abs_builddir;;
1169 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1170 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1173 case $ac_abs_builddir in
1174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1176 case $ac_top_srcdir in
1177 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1178 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1179 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1184 # Check for guested configure; otherwise get Cygnus style configure.
1185 if test -f $ac_srcdir/configure.gnu; then
1187 $SHELL $ac_srcdir/configure.gnu --help=recursive
1188 elif test -f $ac_srcdir/configure; then
1190 $SHELL $ac_srcdir/configure --help=recursive
1191 elif test -f $ac_srcdir/configure.ac ||
1192 test -f $ac_srcdir/configure.in; then
1194 $ac_configure --help
1196 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1202 test -n "$ac_init_help" && exit 0
1203 if $ac_init_version; then
1205 linux nfs-utils configure 1.0.8
1206 generated by GNU Autoconf 2.59
1208 Copyright (C) 2003 Free Software Foundation, Inc.
1209 This configure script is free software; the Free Software Foundation
1210 gives unlimited permission to copy, distribute and modify it.
1216 This file contains any messages produced by compilers while
1217 running configure, to aid debugging if configure makes a mistake.
1219 It was created by linux nfs-utils $as_me 1.0.8, which was
1220 generated by GNU Autoconf 2.59. Invocation command line was
1231 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1232 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1233 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1234 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1235 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1237 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1238 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1240 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1241 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1242 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1243 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1244 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1245 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1246 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1254 test -z "$as_dir" && as_dir=.
1255 echo "PATH: $as_dir"
1270 # Keep a trace of the command line.
1271 # Strip out --no-create and --no-recursion so they do not pile up.
1272 # Strip out --silent because we don't want to record it for future runs.
1273 # Also quote any args containing shell meta-characters.
1274 # Make two passes to allow for proper duplicate-argument suppression.
1279 ac_must_keep_next=false
1285 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1286 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1287 | -silent | --silent | --silen | --sile | --sil)
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1293 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1295 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1296 if test $ac_must_keep_next = true; then
1297 ac_must_keep_next=false # Got value, back to normal.
1300 *=* | --config-cache | -C | -disable-* | --disable-* \
1301 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1302 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1303 | -with-* | --with-* | -without-* | --without-* | --x)
1304 case "$ac_configure_args0 " in
1305 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1308 -* ) ac_must_keep_next=true ;;
1311 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1312 # Get rid of the leading space.
1318 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1319 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1321 # When interrupted or exit'd, cleanup temporary files, and complete
1322 # config.log. We remove comments because anyway the quotes in there
1323 # would cause problems or look ugly.
1324 # WARNING: Be sure not to use single quotes in there, as some shells,
1325 # such as our DU 5.0 friend, will then `close' the trap.
1326 trap 'exit_status=$?
1327 # Save into config.log some information that might help in debugging.
1332 ## ---------------- ##
1333 ## Cache variables. ##
1334 ## ---------------- ##
1337 # The following way of writing the cache mishandles newlines in values,
1340 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1343 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1344 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1348 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1355 ## ----------------- ##
1356 ## Output variables. ##
1357 ## ----------------- ##
1360 for ac_var in $ac_subst_vars
1362 eval ac_val=$`echo $ac_var`
1363 echo "$ac_var='"'"'$ac_val'"'"'"
1367 if test -n "$ac_subst_files"; then
1374 for ac_var in $ac_subst_files
1376 eval ac_val=$`echo $ac_var`
1377 echo "$ac_var='"'"'$ac_val'"'"'"
1382 if test -s confdefs.h; then
1389 sed "/^$/d" confdefs.h | sort
1392 test "$ac_signal" != 0 &&
1393 echo "$as_me: caught signal $ac_signal"
1394 echo "$as_me: exit $exit_status"
1396 rm -f core *.core &&
1397 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1400 for ac_signal in 1 2 13 15; do
1401 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1405 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1406 rm -rf conftest* confdefs.h
1407 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1410 # Predefined preprocessor variables.
1412 cat >>confdefs.h <<_ACEOF
1413 #define PACKAGE_NAME "$PACKAGE_NAME"
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_STRING "$PACKAGE_STRING"
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1437 # Let the site file select an alternate cache file if it wants to.
1438 # Prefer explicitly selected file to automatically selected ones.
1439 if test -z "$CONFIG_SITE"; then
1440 if test "x$prefix" != xNONE; then
1441 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1443 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1446 for ac_site_file in $CONFIG_SITE; do
1447 if test -r "$ac_site_file"; then
1448 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1449 echo "$as_me: loading site script $ac_site_file" >&6;}
1450 sed 's/^/| /' "$ac_site_file" >&5
1455 if test -r "$cache_file"; then
1456 # Some versions of bash will fail to source /dev/null (special
1457 # files actually), so we avoid doing that.
1458 if test -f "$cache_file"; then
1459 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1460 echo "$as_me: loading cache $cache_file" >&6;}
1462 [\\/]* | ?:[\\/]* ) . $cache_file;;
1463 *) . ./$cache_file;;
1467 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1468 echo "$as_me: creating cache $cache_file" >&6;}
1472 # Check that the precious variables saved in the cache have kept the same
1474 ac_cache_corrupted=false
1475 for ac_var in `(set) 2>&1 |
1476 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1477 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1478 eval ac_new_set=\$ac_env_${ac_var}_set
1479 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1480 eval ac_new_val="\$ac_env_${ac_var}_value"
1481 case $ac_old_set,$ac_new_set in
1483 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1484 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1485 ac_cache_corrupted=: ;;
1487 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1488 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1489 ac_cache_corrupted=: ;;
1492 if test "x$ac_old_val" != "x$ac_new_val"; then
1493 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1494 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1495 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1496 echo "$as_me: former value: $ac_old_val" >&2;}
1497 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1498 echo "$as_me: current value: $ac_new_val" >&2;}
1499 ac_cache_corrupted=:
1502 # Pass precious variables to config.status.
1503 if test "$ac_new_set" = set; then
1505 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1506 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1507 *) ac_arg=$ac_var=$ac_new_val ;;
1509 case " $ac_configure_args " in
1510 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1511 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1515 if $ac_cache_corrupted; then
1516 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1517 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1518 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1519 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1520 { (exit 1); exit 1; }; }
1524 ac_cpp='$CPP $CPPFLAGS'
1525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1556 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1557 if test -f $ac_dir/install-sh; then
1559 ac_install_sh="$ac_aux_dir/install-sh -c"
1561 elif test -f $ac_dir/install.sh; then
1563 ac_install_sh="$ac_aux_dir/install.sh -c"
1565 elif test -f $ac_dir/shtool; then
1567 ac_install_sh="$ac_aux_dir/shtool install -c"
1571 if test -z "$ac_aux_dir"; then
1572 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1573 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1574 { (exit 1); exit 1; }; }
1576 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1577 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1578 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580 # Make sure we can run config.sub.
1581 $ac_config_sub sun4 >/dev/null 2>&1 ||
1582 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1583 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1584 { (exit 1); exit 1; }; }
1586 echo "$as_me:$LINENO: checking build system type" >&5
1587 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1588 if test "${ac_cv_build+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 ac_cv_build_alias=$build_alias
1592 test -z "$ac_cv_build_alias" &&
1593 ac_cv_build_alias=`$ac_config_guess`
1594 test -z "$ac_cv_build_alias" &&
1595 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1596 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1597 { (exit 1); exit 1; }; }
1598 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1599 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1600 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1601 { (exit 1); exit 1; }; }
1604 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1605 echo "${ECHO_T}$ac_cv_build" >&6
1607 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1608 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1609 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1612 echo "$as_me:$LINENO: checking host system type" >&5
1613 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1614 if test "${ac_cv_host+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 ac_cv_host_alias=$host_alias
1618 test -z "$ac_cv_host_alias" &&
1619 ac_cv_host_alias=$ac_cv_build_alias
1620 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1621 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1622 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1623 { (exit 1); exit 1; }; }
1626 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1627 echo "${ECHO_T}$ac_cv_host" >&6
1629 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1630 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1631 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636 [\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal ;;
1637 *) ac_macro_dir=$srcdir/aclocal ;;
1639 if test -d "$ac_macro_dir"; then :
1641 { { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
1642 echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
1643 { (exit 1); exit 1; }; }
1646 am__api_version="1.9"
1647 # Find a good install program. We prefer a C program (faster),
1648 # so one script is as good as another. But avoid the broken or
1649 # incompatible versions:
1650 # SysV /etc/install, /usr/sbin/install
1651 # SunOS /usr/etc/install
1652 # IRIX /sbin/install
1654 # AmigaOS /C/install, which installs bootblocks on floppy discs
1655 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1658 # OS/2's system install, which has a completely different semantic
1659 # ./install, which can be erroneously created by make from ./install.sh.
1660 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1661 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1662 if test -z "$INSTALL"; then
1663 if test "${ac_cv_path_install+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir=.
1671 # Account for people who put trailing slashes in PATH elements.
1673 ./ | .// | /cC/* | \
1674 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1675 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1678 # OSF1 and SCO ODT 3.0 have their own names for install.
1679 # Don't use installbsd from OSF since it installs stuff as root
1681 for ac_prog in ginstall scoinst install; do
1682 for ac_exec_ext in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1684 if test $ac_prog = install &&
1685 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1686 # AIX install. It has an incompatible calling convention.
1688 elif test $ac_prog = install &&
1689 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1690 # program-specific install script used by HP pwplus--don't use.
1693 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1705 if test "${ac_cv_path_install+set}" = set; then
1706 INSTALL=$ac_cv_path_install
1708 # As a last resort, use the slow shell script. We don't cache a
1709 # path for INSTALL within a source directory, because that will
1710 # break other packages using the cache if that directory is
1711 # removed, or if the path is relative.
1712 INSTALL=$ac_install_sh
1715 echo "$as_me:$LINENO: result: $INSTALL" >&5
1716 echo "${ECHO_T}$INSTALL" >&6
1718 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1719 # It thinks the first close brace ends the variable substitution.
1720 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1722 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1724 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1726 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1727 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1730 echo timestamp > conftest.file
1731 # Do `set' in a subshell so we don't clobber the current shell's
1732 # arguments. Must try -L first in case configure is actually a
1733 # symlink; some systems play weird games with the mod time of symlinks
1734 # (eg FreeBSD returns the mod time of the symlink's containing
1737 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1738 if test "$*" = "X"; then
1740 set X `ls -t $srcdir/configure conftest.file`
1743 if test "$*" != "X $srcdir/configure conftest.file" \
1744 && test "$*" != "X conftest.file $srcdir/configure"; then
1746 # If neither matched, then we have a broken ls. This can happen
1747 # if, for instance, CONFIG_SHELL is bash and it inherits a
1748 # broken ls alias from the environment. This has actually
1749 # happened. Such a system could not be considered "sane".
1750 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1751 alias in your environment" >&5
1752 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1753 alias in your environment" >&2;}
1754 { (exit 1); exit 1; }; }
1757 test "$2" = conftest.file
1763 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1764 Check your system clock" >&5
1765 echo "$as_me: error: newly created file is older than distributed files!
1766 Check your system clock" >&2;}
1767 { (exit 1); exit 1; }; }
1769 echo "$as_me:$LINENO: result: yes" >&5
1770 echo "${ECHO_T}yes" >&6
1771 test "$program_prefix" != NONE &&
1772 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1773 # Use a double $ so make ignores it.
1774 test "$program_suffix" != NONE &&
1775 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1776 # Double any \ or $. echo might interpret backslashes.
1777 # By default was `s,x,x', remove it if useless.
1778 cat <<\_ACEOF >conftest.sed
1779 s/[\\$]/&&/g;s/;s,x,x,$//
1781 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1784 # expand $ac_aux_dir to an absolute path
1785 am_aux_dir=`cd $ac_aux_dir && pwd`
1787 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1788 # Use eval to expand $SHELL
1789 if eval "$MISSING --run true"; then
1790 am_missing_run="$MISSING --run "
1793 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1794 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1797 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1798 # We used to keeping the `.' as first argument, in order to
1799 # allow $(mkdir_p) to be used without argument. As in
1800 # $(mkdir_p) $(somedir)
1801 # where $(somedir) is conditionally defined. However this is wrong
1803 # 1. if the package is installed by a user who cannot write `.'
1804 # make install will fail,
1805 # 2. the above comment should most certainly read
1806 # $(mkdir_p) $(DESTDIR)$(somedir)
1807 # so it does not work when $(somedir) is undefined and
1808 # $(DESTDIR) is not.
1809 # To support the latter case, we have to write
1810 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1811 # so the `.' trick is pointless.
1812 mkdir_p='mkdir -p --'
1814 # On NextStep and OpenStep, the `mkdir' command does not
1815 # recognize any option. It will interpret all options as
1816 # directories to create, and then abort because `.' already
1818 for d in ./-p ./--version;
1820 test -d $d && rmdir $d
1822 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1823 if test -f "$ac_aux_dir/mkinstalldirs"; then
1824 mkdir_p='$(mkinstalldirs)'
1826 mkdir_p='$(install_sh) -d'
1830 for ac_prog in gawk mawk nawk awk
1832 # Extract the first word of "$ac_prog", so it can be a program name with args.
1833 set dummy $ac_prog; ac_word=$2
1834 echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836 if test "${ac_cv_prog_AWK+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1839 if test -n "$AWK"; then
1840 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 ac_cv_prog_AWK="$ac_prog"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859 if test -n "$AWK"; then
1860 echo "$as_me:$LINENO: result: $AWK" >&5
1861 echo "${ECHO_T}$AWK" >&6
1863 echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1867 test -n "$AWK" && break
1870 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1871 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1872 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1873 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 cat >conftest.make <<\_ACEOF
1878 @echo 'ac_maketemp="$(MAKE)"'
1880 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1881 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1882 if test -n "$ac_maketemp"; then
1883 eval ac_cv_prog_make_${ac_make}_set=yes
1885 eval ac_cv_prog_make_${ac_make}_set=no
1889 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1890 echo "$as_me:$LINENO: result: yes" >&5
1891 echo "${ECHO_T}yes" >&6
1894 echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1896 SET_MAKE="MAKE=${MAKE-make}"
1899 rm -rf .tst 2>/dev/null
1900 mkdir .tst 2>/dev/null
1901 if test -d .tst; then
1906 rmdir .tst 2>/dev/null
1908 # test to see if srcdir already configured
1909 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1910 test -f $srcdir/config.status; then
1911 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1912 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1913 { (exit 1); exit 1; }; }
1916 # test whether we have cygpath
1917 if test -z "$CYGPATH_W"; then
1918 if (cygpath --version) >/dev/null 2>/dev/null; then
1919 CYGPATH_W='cygpath -w'
1926 # Define the identity of the package.
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE "$PACKAGE"
1936 cat >>confdefs.h <<_ACEOF
1937 #define VERSION "$VERSION"
1940 # Some tools Automake needs.
1942 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1945 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1948 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1951 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1954 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1956 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1958 # Installed binaries are usually stripped using `strip' when the user
1959 # run `make install-strip'. However `strip' might not be the right
1960 # tool to use in cross-compilation environments, therefore Automake
1961 # will honor the `STRIP' environment variable to overrule this program.
1962 if test "$cross_compiling" != no; then
1963 if test -n "$ac_tool_prefix"; then
1964 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1965 set dummy ${ac_tool_prefix}strip; ac_word=$2
1966 echo "$as_me:$LINENO: checking for $ac_word" >&5
1967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968 if test "${ac_cv_prog_STRIP+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 if test -n "$STRIP"; then
1972 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
1980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 STRIP=$ac_cv_prog_STRIP
1991 if test -n "$STRIP"; then
1992 echo "$as_me:$LINENO: result: $STRIP" >&5
1993 echo "${ECHO_T}$STRIP" >&6
1995 echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6
2000 if test -z "$ac_cv_prog_STRIP"; then
2002 # Extract the first word of "strip", so it can be a program name with args.
2003 set dummy strip; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$ac_ct_STRIP"; then
2010 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 ac_cv_prog_ac_ct_STRIP="strip"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2029 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2030 if test -n "$ac_ct_STRIP"; then
2031 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2032 echo "${ECHO_T}$ac_ct_STRIP" >&6
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2040 STRIP="$ac_cv_prog_STRIP"
2044 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2046 # We need awk for the "check" target. The system "awk" is bad on
2048 # Always define AMTAR for backward compatibility.
2050 AMTAR=${AMTAR-"${am_missing_run}tar"}
2052 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2062 # Check whether --with-release or --without-release was given.
2063 if test "${with_release+set}" = set; then
2064 withval="$with_release"
2071 # Check whether --with-statedir or --without-statedir was given.
2072 if test "${with_statedir+set}" = set; then
2073 withval="$with_statedir"
2076 statedir=/var/lib/nfs
2080 # Check whether --with-statduser or --without-statduser was given.
2081 if test "${with_statduser+set}" = set; then
2082 withval="$with_statduser"
2085 if test "x$cross_compiling" = "xno"; then
2086 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2096 # Check whether --enable-nfsv3 or --disable-nfsv3 was given.
2097 if test "${enable_nfsv3+set}" = set; then
2098 enableval="$enable_nfsv3"
2099 enable_nfsv3=$enableval
2103 if test "$enable_nfsv3" = yes; then
2105 cat >>confdefs.h <<\_ACEOF
2106 #define NFS3_SUPPORTED 1
2113 # Check whether --enable-nfsv4 or --disable-nfsv4 was given.
2114 if test "${enable_nfsv4+set}" = set; then
2115 enableval="$enable_nfsv4"
2116 enable_nfsv4=$enableval
2120 if test "$enable_nfsv4" = yes; then
2122 cat >>confdefs.h <<\_ACEOF
2123 #define NFS4_SUPPORTED 1
2135 if test "$enable_nfsv4" = "yes"; then
2137 CONFIG_NFSV4_FALSE='#'
2139 CONFIG_NFSV4_TRUE='#'
2143 # Check whether --enable-gss or --disable-gss was given.
2144 if test "${enable_gss+set}" = set; then
2145 enableval="$enable_gss"
2146 enable_gss=$enableval
2150 if test "$enable_gss" = yes; then
2152 cat >>confdefs.h <<\_ACEOF
2153 #define GSS_SUPPORTED 1
2168 if test "$enable_gss" = "yes"; then
2170 CONFIG_GSS_FALSE='#'
2176 # Check whether --enable-kprefix or --disable-kprefix was given.
2177 if test "${enable_kprefix+set}" = set; then
2178 enableval="$enable_kprefix"
2179 test "$enableval" = "yes" && kprefix=k
2184 # Check whether --enable-secure-statd or --disable-secure-statd was given.
2185 if test "${enable_secure_statd+set}" = set; then
2186 enableval="$enable_secure_statd"
2187 test "$enableval" = "yes" && secure_statd=yes
2191 if test "$secure_statd" = yes; then
2193 cat >>confdefs.h <<\_ACEOF
2194 #define RESTRICTED_STATD 1
2199 # Check whether --enable-rquotad or --disable-rquotad was given.
2200 if test "${enable_rquotad+set}" = set; then
2201 enableval="$enable_rquotad"
2202 enable_rquotad=$enableval
2206 if test "$enable_rquotad" = yes; then
2213 if test "$enable_rquotad" = "yes"; then
2214 CONFIG_RQUOTAD_TRUE=
2215 CONFIG_RQUOTAD_FALSE='#'
2217 CONFIG_RQUOTAD_TRUE='#'
2218 CONFIG_RQUOTAD_FALSE=
2222 # Check whether user wants TCP wrappers support
2223 DEPDIR="${am__leading_dot}deps"
2225 ac_config_commands="$ac_config_commands depfiles"
2228 am_make=${MAKE-make}
2229 cat > confinc << 'END'
2234 # If we don't find an include directive, just comment out the code.
2235 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2236 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2240 # First try GNU make style include.
2241 echo "include confinc" > confmf
2242 # We grep out `Entering directory' and `Leaving directory'
2243 # messages which can occur if `w' ends up in MAKEFLAGS.
2244 # In particular we don't look at `^make:' because GNU make might
2245 # be invoked under some other name (usually "gmake"), in which
2246 # case it prints its new name instead of `make'.
2247 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2252 # Now try BSD make style include.
2253 if test "$am__include" = "#"; then
2254 echo '.include "confinc"' > confmf
2255 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2256 am__include=.include
2263 echo "$as_me:$LINENO: result: $_am_result" >&5
2264 echo "${ECHO_T}$_am_result" >&6
2265 rm -f confinc confmf
2267 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2268 if test "${enable_dependency_tracking+set}" = set; then
2269 enableval="$enable_dependency_tracking"
2272 if test "x$enable_dependency_tracking" != xno; then
2273 am_depcomp="$ac_aux_dir/depcomp"
2278 if test "x$enable_dependency_tracking" != xno; then
2289 ac_cpp='$CPP $CPPFLAGS'
2290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2293 if test -n "$ac_tool_prefix"; then
2294 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2295 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2296 echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2298 if test "${ac_cv_prog_CC+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 if test -n "$CC"; then
2302 ac_cv_prog_CC="$CC" # Let the user override the test.
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 test -z "$as_dir" && as_dir=.
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 if test -n "$CC"; then
2322 echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6
2325 echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6
2330 if test -z "$ac_cv_prog_CC"; then
2332 # Extract the first word of "gcc", so it can be a program name with args.
2333 set dummy gcc; ac_word=$2
2334 echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 if test -n "$ac_ct_CC"; then
2340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2349 ac_cv_prog_ac_ct_CC="gcc"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2359 if test -n "$ac_ct_CC"; then
2360 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2361 echo "${ECHO_T}$ac_ct_CC" >&6
2363 echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6
2372 if test -z "$CC"; then
2373 if test -n "$ac_tool_prefix"; then
2374 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2375 set dummy ${ac_tool_prefix}cc; ac_word=$2
2376 echo "$as_me:$LINENO: checking for $ac_word" >&5
2377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2378 if test "${ac_cv_prog_CC+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 if test -n "$CC"; then
2382 ac_cv_prog_CC="$CC" # Let the user override the test.
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2391 ac_cv_prog_CC="${ac_tool_prefix}cc"
2392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2401 if test -n "$CC"; then
2402 echo "$as_me:$LINENO: result: $CC" >&5
2403 echo "${ECHO_T}$CC" >&6
2405 echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6
2410 if test -z "$ac_cv_prog_CC"; then
2412 # Extract the first word of "cc", so it can be a program name with args.
2413 set dummy cc; ac_word=$2
2414 echo "$as_me:$LINENO: checking for $ac_word" >&5
2415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 if test -n "$ac_ct_CC"; then
2420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2429 ac_cv_prog_ac_ct_CC="cc"
2430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2439 if test -n "$ac_ct_CC"; then
2440 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2441 echo "${ECHO_T}$ac_ct_CC" >&6
2443 echo "$as_me:$LINENO: result: no" >&5
2444 echo "${ECHO_T}no" >&6
2453 if test -z "$CC"; then
2454 # Extract the first word of "cc", so it can be a program name with args.
2455 set dummy cc; ac_word=$2
2456 echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2458 if test "${ac_cv_prog_CC+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 if test -n "$CC"; then
2462 ac_cv_prog_CC="$CC" # Let the user override the test.
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2472 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2473 ac_prog_rejected=yes
2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 if test $ac_prog_rejected = yes; then
2484 # We found a bogon in the path, so make sure we never use it.
2485 set dummy $ac_cv_prog_CC
2487 if test $# != 0; then
2488 # We chose a different compiler from the bogus one.
2489 # However, it has the same basename, so the bogon will be chosen
2490 # first if we set CC to just the basename; use the full file name.
2492 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2498 if test -n "$CC"; then
2499 echo "$as_me:$LINENO: result: $CC" >&5
2500 echo "${ECHO_T}$CC" >&6
2502 echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6
2507 if test -z "$CC"; then
2508 if test -n "$ac_tool_prefix"; then
2511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2513 echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2515 if test "${ac_cv_prog_CC+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 if test -n "$CC"; then
2519 ac_cv_prog_CC="$CC" # Let the user override the test.
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2528 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 if test -n "$CC"; then
2539 echo "$as_me:$LINENO: result: $CC" >&5
2540 echo "${ECHO_T}$CC" >&6
2542 echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6
2546 test -n "$CC" && break
2549 if test -z "$CC"; then
2553 # Extract the first word of "$ac_prog", so it can be a program name with args.
2554 set dummy $ac_prog; ac_word=$2
2555 echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 if test -n "$ac_ct_CC"; then
2561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2570 ac_cv_prog_ac_ct_CC="$ac_prog"
2571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2580 if test -n "$ac_ct_CC"; then
2581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2582 echo "${ECHO_T}$ac_ct_CC" >&6
2584 echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6
2588 test -n "$ac_ct_CC" && break
2597 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2598 See \`config.log' for more details." >&5
2599 echo "$as_me: error: no acceptable C compiler found in \$PATH
2600 See \`config.log' for more details." >&2;}
2601 { (exit 1); exit 1; }; }
2603 # Provide some information about the compiler.
2604 echo "$as_me:$LINENO:" \
2605 "checking for C compiler version" >&5
2606 ac_compiler=`set X $ac_compile; echo $2`
2607 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2608 (eval $ac_compiler --version </dev/null >&5) 2>&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }
2612 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2613 (eval $ac_compiler -v </dev/null >&5) 2>&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }
2617 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2618 (eval $ac_compiler -V </dev/null >&5) 2>&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }
2623 cat >conftest.$ac_ext <<_ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2638 ac_clean_files_save=$ac_clean_files
2639 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2640 # Try to create an executable without -o first, disregard a.out.
2641 # It will help us diagnose broken compilers, and finding out an intuition
2643 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2644 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2645 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2646 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2647 (eval $ac_link_default) 2>&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; then
2651 # Find the output, starting from the most likely. This scheme is
2652 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2655 # Be careful to initialize this variable, since it used to be cached.
2656 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2658 # b.out is created by i960 compilers.
2659 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2661 test -f "$ac_file" || continue
2663 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2666 # This is the source file.
2669 # We found the default executable, but exeext='' is most
2673 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2674 # FIXME: I believe we export ac_cv_exeext for Libtool,
2675 # but it would be cool to find out if it's true. Does anybody
2676 # maintain Libtool? --akim.
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2687 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2688 See \`config.log' for more details." >&5
2689 echo "$as_me: error: C compiler cannot create executables
2690 See \`config.log' for more details." >&2;}
2691 { (exit 77); exit 77; }; }
2694 ac_exeext=$ac_cv_exeext
2695 echo "$as_me:$LINENO: result: $ac_file" >&5
2696 echo "${ECHO_T}$ac_file" >&6
2698 # Check the compiler produces executables we can run. If not, either
2699 # the compiler is broken, or we cross compile.
2700 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2701 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2702 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2703 # If not cross compiling, check that we can run a simple program.
2704 if test "$cross_compiling" != yes; then
2705 if { ac_try='./$ac_file'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
2713 if test "$cross_compiling" = maybe; then
2716 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2717 If you meant to cross compile, use \`--host'.
2718 See \`config.log' for more details." >&5
2719 echo "$as_me: error: cannot run C compiled programs.
2720 If you meant to cross compile, use \`--host'.
2721 See \`config.log' for more details." >&2;}
2722 { (exit 1); exit 1; }; }
2726 echo "$as_me:$LINENO: result: yes" >&5
2727 echo "${ECHO_T}yes" >&6
2729 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2730 ac_clean_files=$ac_clean_files_save
2731 # Check the compiler produces executables we can run. If not, either
2732 # the compiler is broken, or we cross compile.
2733 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2734 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2735 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2736 echo "${ECHO_T}$cross_compiling" >&6
2738 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2739 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2741 (eval $ac_link) 2>&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; then
2745 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2746 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2747 # work properly (i.e., refer to `conftest.exe'), while it won't with
2749 for ac_file in conftest.exe conftest conftest.*; do
2750 test -f "$ac_file" || continue
2752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2753 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2760 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2761 See \`config.log' for more details." >&5
2762 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2763 See \`config.log' for more details." >&2;}
2764 { (exit 1); exit 1; }; }
2767 rm -f conftest$ac_cv_exeext
2768 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2769 echo "${ECHO_T}$ac_cv_exeext" >&6
2771 rm -f conftest.$ac_ext
2772 EXEEXT=$ac_cv_exeext
2774 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2775 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2776 if test "${ac_cv_objext+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2779 cat >conftest.$ac_ext <<_ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2794 rm -f conftest.o conftest.obj
2795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796 (eval $ac_compile) 2>&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; then
2800 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2803 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2808 echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2811 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2812 See \`config.log' for more details." >&5
2813 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2814 See \`config.log' for more details." >&2;}
2815 { (exit 1); exit 1; }; }
2818 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2820 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2821 echo "${ECHO_T}$ac_cv_objext" >&6
2822 OBJEXT=$ac_cv_objext
2824 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2825 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2826 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 cat >conftest.$ac_ext <<_ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849 (eval $ac_compile) 2>conftest.er1
2851 grep -v '^ *+' conftest.er1 >conftest.err
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } &&
2856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; } &&
2862 { ac_try='test -s conftest.$ac_objext'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2870 echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2876 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2879 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2880 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2881 GCC=`test $ac_compiler_gnu = yes && echo yes`
2882 ac_test_CFLAGS=${CFLAGS+set}
2883 ac_save_CFLAGS=$CFLAGS
2885 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2886 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2887 if test "${ac_cv_prog_cc_g+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 cat >conftest.$ac_ext <<_ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2905 rm -f conftest.$ac_objext
2906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>conftest.er1
2909 grep -v '^ *+' conftest.er1 >conftest.err
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } &&
2914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; } &&
2920 { ac_try='test -s conftest.$ac_objext'
2921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; }; then
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2935 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2936 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2937 if test "$ac_test_CFLAGS" = set; then
2938 CFLAGS=$ac_save_CFLAGS
2939 elif test $ac_cv_prog_cc_g = yes; then
2940 if test "$GCC" = yes; then
2946 if test "$GCC" = yes; then
2952 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2953 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2954 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 ac_cv_prog_cc_stdc=no
2959 cat >conftest.$ac_ext <<_ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2967 #include <sys/types.h>
2968 #include <sys/stat.h>
2969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2970 struct buf { int x; };
2971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2972 static char *e (p, i)
2978 static char *f (char * (*g) (char **, int), char **p, ...)
2983 s = g (p, va_arg (v,int));
2988 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2989 function prototypes and stuff, but not '\xHH' hex character constants.
2990 These don't provoke an error unfortunately, instead are silently treated
2991 as 'x'. The following induces an error, until -std1 is added to get
2992 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2993 array size at least. It's necessary to write '\x00'==0 to get something
2994 that's true only with -std1. */
2995 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2997 int test (int i, double x);
2998 struct s1 {int (*f) (int a);};
2999 struct s2 {int (*f) (double a);};
3000 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3006 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3011 # Don't try gcc -ansi; that turns off useful extensions and
3012 # breaks some systems' header files.
3013 # AIX -qlanglvl=ansi
3014 # Ultrix and OSF/1 -std1
3015 # HP-UX 10.20 and later -Ae
3016 # HP-UX older versions -Aa -D_HPUX_SOURCE
3017 # SVR4 -Xc -D__EXTENSIONS__
3018 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3020 CC="$ac_save_CC $ac_arg"
3021 rm -f conftest.$ac_objext
3022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3023 (eval $ac_compile) 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } &&
3030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; } &&
3036 { ac_try='test -s conftest.$ac_objext'
3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; }; then
3042 ac_cv_prog_cc_stdc=$ac_arg
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3049 rm -f conftest.err conftest.$ac_objext
3051 rm -f conftest.$ac_ext conftest.$ac_objext
3056 case "x$ac_cv_prog_cc_stdc" in
3058 echo "$as_me:$LINENO: result: none needed" >&5
3059 echo "${ECHO_T}none needed" >&6 ;;
3061 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3062 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3063 CC="$CC $ac_cv_prog_cc_stdc" ;;
3066 # Some people use a C++ compiler to compile C. Since we use `exit',
3067 # in C++ we need to declare it. In case someone uses the same compiler
3068 # for both compiling C and C++ we need to have the C++ compiler decide
3069 # the declaration of exit, since it's the most demanding environment.
3070 cat >conftest.$ac_ext <<_ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>conftest.er1
3079 grep -v '^ *+' conftest.er1 >conftest.err
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; } &&
3090 { ac_try='test -s conftest.$ac_objext'
3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; }; then
3096 for ac_declaration in \
3098 'extern "C" void std::exit (int) throw (); using std::exit;' \
3099 'extern "C" void std::exit (int); using std::exit;' \
3100 'extern "C" void exit (int) throw ();' \
3101 'extern "C" void exit (int);' \
3104 cat >conftest.$ac_ext <<_ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3120 rm -f conftest.$ac_objext
3121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3122 (eval $ac_compile) 2>conftest.er1
3124 grep -v '^ *+' conftest.er1 >conftest.err
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3143 echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3149 cat >conftest.$ac_ext <<_ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3164 rm -f conftest.$ac_objext
3165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3166 (eval $ac_compile) 2>conftest.er1
3168 grep -v '^ *+' conftest.er1 >conftest.err
3170 cat conftest.err >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } &&
3173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; } &&
3179 { ac_try='test -s conftest.$ac_objext'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3194 if test -n "$ac_declaration"; then
3195 echo '#ifdef __cplusplus' >>confdefs.h
3196 echo $ac_declaration >>confdefs.h
3197 echo '#endif' >>confdefs.h
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212 depcc="$CC" am_compiler_list=
3214 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3215 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3216 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3220 # We make a subdir and do the tests there. Otherwise we can end up
3221 # making bogus files that we don't know about and never remove. For
3222 # instance it was reported that on HP-UX the gcc test will end up
3223 # making a dummy file named `D' -- because `-MD' means `put the output
3226 # Copy depcomp to subdir because otherwise we won't find it if we're
3227 # using a relative directory.
3228 cp "$am_depcomp" conftest.dir
3230 # We will build objects and dependencies in a subdirectory because
3231 # it helps to detect inapplicable dependency modes. For instance
3232 # both Tru64's cc and ICC support -MD to output dependencies as a
3233 # side effect of compilation, but ICC will put the dependencies in
3234 # the current directory while Tru64 will put them in the object
3238 am_cv_CC_dependencies_compiler_type=none
3239 if test "$am_compiler_list" = ""; then
3240 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3242 for depmode in $am_compiler_list; do
3243 # Setup a source with many dependencies, because some compilers
3244 # like to wrap large dependency lists on column 80 (with \), and
3245 # we should not choose a depcomp mode which is confused by this.
3247 # We need to recreate these files for each test, as the compiler may
3248 # overwrite some of them when testing with obscure command lines.
3249 # This happens at least with the AIX C compiler.
3251 for i in 1 2 3 4 5 6; do
3252 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3253 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3254 # Solaris 8's {/usr,}/bin/sh.
3255 touch sub/conftst$i.h
3257 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3261 # after this tag, mechanisms are not by side-effect, so they'll
3262 # only be used when explicitly requested
3263 if test "x$enable_dependency_tracking" = xyes; then
3271 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3272 # mode. It turns out that the SunPro C++ compiler does not properly
3273 # handle `-M -o', and we need to detect this.
3274 if depmode=$depmode \
3275 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3276 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3277 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3278 >/dev/null 2>conftest.err &&
3279 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3280 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3281 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3282 # icc doesn't choke on unknown options, it will just issue warnings
3283 # or remarks (even with -Werror). So we grep stderr for any message
3284 # that says an option was ignored or not supported.
3285 # When given -MP, icc 7.0 and 7.1 complain thusly:
3286 # icc: Command line warning: ignoring option '-M'; no argument required
3287 # The diagnosis changed in icc 8.0:
3288 # icc: Command line remark: option '-MP' not supported
3289 if (grep 'ignoring option' conftest.err ||
3290 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3291 am_cv_CC_dependencies_compiler_type=$depmode
3300 am_cv_CC_dependencies_compiler_type=none
3304 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3305 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3306 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3311 test "x$enable_dependency_tracking" != xno \
3312 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3314 am__fastdepCC_FALSE='#'
3316 am__fastdepCC_TRUE='#'
3317 am__fastdepCC_FALSE=
3325 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3326 if test "${with_tcp_wrappers+set}" = set; then
3327 withval="$with_tcp_wrappers"
3329 if test "x$withval" != "xno" ; then
3331 saved_LDFLAGS="$LDFLAGS"
3332 saved_CPPFLAGS="$CPPFLAGS"
3333 if test -n "${withval}" -a "${withval}" != "yes"; then
3334 if test -d "${withval}/lib"; then
3335 if test -n "${need_dash_r}"; then
3336 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3338 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3341 if test -n "${need_dash_r}"; then
3342 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3344 LDFLAGS="-L${withval} ${LDFLAGS}"
3347 if test -d "${withval}/include"; then
3348 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3350 CPPFLAGS="-I${withval} ${CPPFLAGS}"
3354 LIBS="$LIBWRAP $LIBS"
3355 echo "$as_me:$LINENO: checking for libwrap" >&5
3356 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
3357 cat >conftest.$ac_ext <<_ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3365 int deny_severity = 0, allow_severity = 0;
3375 rm -f conftest.$ac_objext conftest$ac_exeext
3376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3377 (eval $ac_link) 2>conftest.er1
3379 grep -v '^ *+' conftest.er1 >conftest.err
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } &&
3384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; } &&
3390 { ac_try='test -s conftest$ac_exeext'
3391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3397 echo "$as_me:$LINENO: result: yes" >&5
3398 echo "${ECHO_T}yes" >&6
3401 cat >>confdefs.h <<\_ACEOF
3406 cat >>confdefs.h <<\_ACEOF
3407 #define HAVE_LIBWRAP 1
3411 cat >>confdefs.h <<\_ACEOF
3412 #define HAVE_TCP_WRAPPER 1
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3422 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3423 echo "$as_me: error: *** libwrap missing" >&2;}
3424 { (exit 1); exit 1; }; }
3428 rm -f conftest.err conftest.$ac_objext \
3429 conftest$ac_exeext conftest.$ac_ext
3441 ac_config_headers="$ac_config_headers support/include/config.h"
3444 # Checks for programs.
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" || test ! -s conftest.err'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; } &&
3596 { ac_try='test -s conftest.$ac_objext'
3597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; }; then
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3610 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3613 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3614 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3615 GXX=`test $ac_compiler_gnu = yes && echo yes`
3616 ac_test_CXXFLAGS=${CXXFLAGS+set}
3617 ac_save_CXXFLAGS=$CXXFLAGS
3619 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3620 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3621 if test "${ac_cv_prog_cxx_g+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 cat >conftest.$ac_ext <<_ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3639 rm -f conftest.$ac_objext
3640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3641 (eval $ac_compile) 2>conftest.er1
3643 grep -v '^ *+' conftest.er1 >conftest.err
3645 cat conftest.err >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } &&
3648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; } &&
3654 { ac_try='test -s conftest.$ac_objext'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; }; then
3660 ac_cv_prog_cxx_g=yes
3662 echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3669 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3670 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3671 if test "$ac_test_CXXFLAGS" = set; then
3672 CXXFLAGS=$ac_save_CXXFLAGS
3673 elif test $ac_cv_prog_cxx_g = yes; then
3674 if test "$GXX" = yes; then
3680 if test "$GXX" = yes; then
3686 for ac_declaration in \
3688 'extern "C" void std::exit (int) throw (); using std::exit;' \
3689 'extern "C" void std::exit (int); using std::exit;' \
3690 'extern "C" void exit (int) throw ();' \
3691 'extern "C" void exit (int);' \
3694 cat >conftest.$ac_ext <<_ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>conftest.er1
3714 grep -v '^ *+' conftest.er1 >conftest.err
3716 cat conftest.err >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } &&
3719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; } &&
3725 { ac_try='test -s conftest.$ac_objext'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3733 echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3739 cat >conftest.$ac_ext <<_ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3754 rm -f conftest.$ac_objext
3755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3756 (eval $ac_compile) 2>conftest.er1
3758 grep -v '^ *+' conftest.er1 >conftest.err
3760 cat conftest.err >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } &&
3763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; } &&
3769 { ac_try='test -s conftest.$ac_objext'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; }; then
3777 echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3784 if test -n "$ac_declaration"; then
3785 echo '#ifdef __cplusplus' >>confdefs.h
3786 echo $ac_declaration >>confdefs.h
3787 echo '#endif' >>confdefs.h
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796 depcc="$CXX" am_compiler_list=
3798 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3799 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3800 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3804 # We make a subdir and do the tests there. Otherwise we can end up
3805 # making bogus files that we don't know about and never remove. For
3806 # instance it was reported that on HP-UX the gcc test will end up
3807 # making a dummy file named `D' -- because `-MD' means `put the output
3810 # Copy depcomp to subdir because otherwise we won't find it if we're
3811 # using a relative directory.
3812 cp "$am_depcomp" conftest.dir
3814 # We will build objects and dependencies in a subdirectory because
3815 # it helps to detect inapplicable dependency modes. For instance
3816 # both Tru64's cc and ICC support -MD to output dependencies as a
3817 # side effect of compilation, but ICC will put the dependencies in
3818 # the current directory while Tru64 will put them in the object
3822 am_cv_CXX_dependencies_compiler_type=none
3823 if test "$am_compiler_list" = ""; then
3824 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3826 for depmode in $am_compiler_list; do
3827 # Setup a source with many dependencies, because some compilers
3828 # like to wrap large dependency lists on column 80 (with \), and
3829 # we should not choose a depcomp mode which is confused by this.
3831 # We need to recreate these files for each test, as the compiler may
3832 # overwrite some of them when testing with obscure command lines.
3833 # This happens at least with the AIX C compiler.
3835 for i in 1 2 3 4 5 6; do
3836 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3837 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3838 # Solaris 8's {/usr,}/bin/sh.
3839 touch sub/conftst$i.h
3841 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3845 # after this tag, mechanisms are not by side-effect, so they'll
3846 # only be used when explicitly requested
3847 if test "x$enable_dependency_tracking" = xyes; then
3855 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3856 # mode. It turns out that the SunPro C++ compiler does not properly
3857 # handle `-M -o', and we need to detect this.
3858 if depmode=$depmode \
3859 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3860 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3861 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3862 >/dev/null 2>conftest.err &&
3863 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3864 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3865 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3866 # icc doesn't choke on unknown options, it will just issue warnings
3867 # or remarks (even with -Werror). So we grep stderr for any message
3868 # that says an option was ignored or not supported.
3869 # When given -MP, icc 7.0 and 7.1 complain thusly:
3870 # icc: Command line warning: ignoring option '-M'; no argument required
3871 # The diagnosis changed in icc 8.0:
3872 # icc: Command line remark: option '-MP' not supported
3873 if (grep 'ignoring option' conftest.err ||
3874 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3875 am_cv_CXX_dependencies_compiler_type=$depmode
3884 am_cv_CXX_dependencies_compiler_type=none
3888 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3889 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3890 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3895 test "x$enable_dependency_tracking" != xno \
3896 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3897 am__fastdepCXX_TRUE=
3898 am__fastdepCXX_FALSE='#'
3900 am__fastdepCXX_TRUE='#'
3901 am__fastdepCXX_FALSE=
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910 if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3913 echo "$as_me:$LINENO: checking for $ac_word" >&5
3914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3915 if test "${ac_cv_prog_CC+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 if test -n "$CC"; then
3919 ac_cv_prog_CC="$CC" # Let the user override the test.
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 if test -n "$CC"; then
3939 echo "$as_me:$LINENO: result: $CC" >&5
3940 echo "${ECHO_T}$CC" >&6
3942 echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6
3947 if test -z "$ac_cv_prog_CC"; then
3949 # Extract the first word of "gcc", so it can be a program name with args.
3950 set dummy gcc; ac_word=$2
3951 echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 if test -n "$ac_ct_CC"; then
3957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966 ac_cv_prog_ac_ct_CC="gcc"
3967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3976 if test -n "$ac_ct_CC"; then
3977 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3978 echo "${ECHO_T}$ac_ct_CC" >&6
3980 echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3989 if test -z "$CC"; then
3990 if test -n "$ac_tool_prefix"; then
3991 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3992 set dummy ${ac_tool_prefix}cc; ac_word=$2
3993 echo "$as_me:$LINENO: checking for $ac_word" >&5
3994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3995 if test "${ac_cv_prog_CC+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 if test -n "$CC"; then
3999 ac_cv_prog_CC="$CC" # Let the user override the test.
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008 ac_cv_prog_CC="${ac_tool_prefix}cc"
4009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 if test -n "$CC"; then
4019 echo "$as_me:$LINENO: result: $CC" >&5
4020 echo "${ECHO_T}$CC" >&6
4022 echo "$as_me:$LINENO: result: no" >&5
4023 echo "${ECHO_T}no" >&6
4027 if test -z "$ac_cv_prog_CC"; then
4029 # Extract the first word of "cc", so it can be a program name with args.
4030 set dummy cc; ac_word=$2
4031 echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 if test -n "$ac_ct_CC"; then
4037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046 ac_cv_prog_ac_ct_CC="cc"
4047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4056 if test -n "$ac_ct_CC"; then
4057 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4058 echo "${ECHO_T}$ac_ct_CC" >&6
4060 echo "$as_me:$LINENO: result: no" >&5
4061 echo "${ECHO_T}no" >&6
4070 if test -z "$CC"; then
4071 # Extract the first word of "cc", so it can be a program name with args.
4072 set dummy cc; ac_word=$2
4073 echo "$as_me:$LINENO: checking for $ac_word" >&5
4074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4075 if test "${ac_cv_prog_CC+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC="$CC" # Let the user override the test.
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4090 ac_prog_rejected=yes
4094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4100 if test $ac_prog_rejected = yes; then
4101 # We found a bogon in the path, so make sure we never use it.
4102 set dummy $ac_cv_prog_CC
4104 if test $# != 0; then
4105 # We chose a different compiler from the bogus one.
4106 # However, it has the same basename, so the bogon will be chosen
4107 # first if we set CC to just the basename; use the full file name.
4109 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4115 if test -n "$CC"; then
4116 echo "$as_me:$LINENO: result: $CC" >&5
4117 echo "${ECHO_T}$CC" >&6
4119 echo "$as_me:$LINENO: result: no" >&5
4120 echo "${ECHO_T}no" >&6
4124 if test -z "$CC"; then
4125 if test -n "$ac_tool_prefix"; then
4128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4130 echo "$as_me:$LINENO: checking for $ac_word" >&5
4131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4132 if test "${ac_cv_prog_CC+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 if test -n "$CC"; then
4136 ac_cv_prog_CC="$CC" # Let the user override the test.
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 if test -n "$CC"; then
4156 echo "$as_me:$LINENO: result: $CC" >&5
4157 echo "${ECHO_T}$CC" >&6
4159 echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6
4163 test -n "$CC" && break
4166 if test -z "$CC"; then
4170 # Extract the first word of "$ac_prog", so it can be a program name with args.
4171 set dummy $ac_prog; ac_word=$2
4172 echo "$as_me:$LINENO: checking for $ac_word" >&5
4173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4174 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 if test -n "$ac_ct_CC"; then
4178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_ac_ct_CC="$ac_prog"
4188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4197 if test -n "$ac_ct_CC"; then
4198 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4199 echo "${ECHO_T}$ac_ct_CC" >&6
4201 echo "$as_me:$LINENO: result: no" >&5
4202 echo "${ECHO_T}no" >&6
4205 test -n "$ac_ct_CC" && break
4214 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4215 See \`config.log' for more details." >&5
4216 echo "$as_me: error: no acceptable C compiler found in \$PATH
4217 See \`config.log' for more details." >&2;}
4218 { (exit 1); exit 1; }; }
4220 # Provide some information about the compiler.
4221 echo "$as_me:$LINENO:" \
4222 "checking for C compiler version" >&5
4223 ac_compiler=`set X $ac_compile; echo $2`
4224 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4225 (eval $ac_compiler --version </dev/null >&5) 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }
4229 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4230 (eval $ac_compiler -v </dev/null >&5) 2>&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }
4234 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4235 (eval $ac_compiler -V </dev/null >&5) 2>&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }
4240 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4241 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4242 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4263 rm -f conftest.$ac_objext
4264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4265 (eval $ac_compile) 2>conftest.er1
4267 grep -v '^ *+' conftest.er1 >conftest.err
4269 cat conftest.err >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } &&
4272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4292 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4295 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4296 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4297 GCC=`test $ac_compiler_gnu = yes && echo yes`
4298 ac_test_CFLAGS=${CFLAGS+set}
4299 ac_save_CFLAGS=$CFLAGS
4301 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4302 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4303 if test "${ac_cv_prog_cc_g+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 cat >conftest.$ac_ext <<_ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h. */
4321 rm -f conftest.$ac_objext
4322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4323 (eval $ac_compile) 2>conftest.er1
4325 grep -v '^ *+' conftest.er1 >conftest.err
4327 cat conftest.err >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } &&
4330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; } &&
4336 { ac_try='test -s conftest.$ac_objext'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4351 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4352 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4353 if test "$ac_test_CFLAGS" = set; then
4354 CFLAGS=$ac_save_CFLAGS
4355 elif test $ac_cv_prog_cc_g = yes; then
4356 if test "$GCC" = yes; then
4362 if test "$GCC" = yes; then
4368 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4369 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4370 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 ac_cv_prog_cc_stdc=no
4375 cat >conftest.$ac_ext <<_ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4383 #include <sys/types.h>
4384 #include <sys/stat.h>
4385 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4386 struct buf { int x; };
4387 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4388 static char *e (p, i)
4394 static char *f (char * (*g) (char **, int), char **p, ...)
4399 s = g (p, va_arg (v,int));
4404 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4405 function prototypes and stuff, but not '\xHH' hex character constants.
4406 These don't provoke an error unfortunately, instead are silently treated
4407 as 'x'. The following induces an error, until -std1 is added to get
4408 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4409 array size at least. It's necessary to write '\x00'==0 to get something
4410 that's true only with -std1. */
4411 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4413 int test (int i, double x);
4414 struct s1 {int (*f) (int a);};
4415 struct s2 {int (*f) (double a);};
4416 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4422 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4427 # Don't try gcc -ansi; that turns off useful extensions and
4428 # breaks some systems' header files.
4429 # AIX -qlanglvl=ansi
4430 # Ultrix and OSF/1 -std1
4431 # HP-UX 10.20 and later -Ae
4432 # HP-UX older versions -Aa -D_HPUX_SOURCE
4433 # SVR4 -Xc -D__EXTENSIONS__
4434 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4436 CC="$ac_save_CC $ac_arg"
4437 rm -f conftest.$ac_objext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439 (eval $ac_compile) 2>conftest.er1
4441 grep -v '^ *+' conftest.er1 >conftest.err
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; } &&
4452 { ac_try='test -s conftest.$ac_objext'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; }; then
4458 ac_cv_prog_cc_stdc=$ac_arg
4461 echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.$ac_ext >&5
4465 rm -f conftest.err conftest.$ac_objext
4467 rm -f conftest.$ac_ext conftest.$ac_objext
4472 case "x$ac_cv_prog_cc_stdc" in
4474 echo "$as_me:$LINENO: result: none needed" >&5
4475 echo "${ECHO_T}none needed" >&6 ;;
4477 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4478 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4479 CC="$CC $ac_cv_prog_cc_stdc" ;;
4482 # Some people use a C++ compiler to compile C. Since we use `exit',
4483 # in C++ we need to declare it. In case someone uses the same compiler
4484 # for both compiling C and C++ we need to have the C++ compiler decide
4485 # the declaration of exit, since it's the most demanding environment.
4486 cat >conftest.$ac_ext <<_ACEOF
4491 rm -f conftest.$ac_objext
4492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493 (eval $ac_compile) 2>conftest.er1
4495 grep -v '^ *+' conftest.er1 >conftest.err
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } &&
4500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; } &&
4506 { ac_try='test -s conftest.$ac_objext'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; }; then
4512 for ac_declaration in \
4514 'extern "C" void std::exit (int) throw (); using std::exit;' \
4515 'extern "C" void std::exit (int); using std::exit;' \
4516 'extern "C" void exit (int) throw ();' \
4517 'extern "C" void exit (int);' \
4520 cat >conftest.$ac_ext <<_ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4536 rm -f conftest.$ac_objext
4537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4538 (eval $ac_compile) 2>conftest.er1
4540 grep -v '^ *+' conftest.er1 >conftest.err
4542 cat conftest.err >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } &&
4545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; } &&
4551 { ac_try='test -s conftest.$ac_objext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4565 cat >conftest.$ac_ext <<_ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>conftest.er1
4584 grep -v '^ *+' conftest.er1 >conftest.err
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; } &&
4595 { ac_try='test -s conftest.$ac_objext'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4610 if test -n "$ac_declaration"; then
4611 echo '#ifdef __cplusplus' >>confdefs.h
4612 echo $ac_declaration >>confdefs.h
4613 echo '#endif' >>confdefs.h
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4623 ac_cpp='$CPP $CPPFLAGS'
4624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4628 depcc="$CC" am_compiler_list=
4630 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4631 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4632 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4636 # We make a subdir and do the tests there. Otherwise we can end up
4637 # making bogus files that we don't know about and never remove. For
4638 # instance it was reported that on HP-UX the gcc test will end up
4639 # making a dummy file named `D' -- because `-MD' means `put the output
4642 # Copy depcomp to subdir because otherwise we won't find it if we're
4643 # using a relative directory.
4644 cp "$am_depcomp" conftest.dir
4646 # We will build objects and dependencies in a subdirectory because
4647 # it helps to detect inapplicable dependency modes. For instance
4648 # both Tru64's cc and ICC support -MD to output dependencies as a
4649 # side effect of compilation, but ICC will put the dependencies in
4650 # the current directory while Tru64 will put them in the object
4654 am_cv_CC_dependencies_compiler_type=none
4655 if test "$am_compiler_list" = ""; then
4656 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4658 for depmode in $am_compiler_list; do
4659 # Setup a source with many dependencies, because some compilers
4660 # like to wrap large dependency lists on column 80 (with \), and
4661 # we should not choose a depcomp mode which is confused by this.
4663 # We need to recreate these files for each test, as the compiler may
4664 # overwrite some of them when testing with obscure command lines.
4665 # This happens at least with the AIX C compiler.
4667 for i in 1 2 3 4 5 6; do
4668 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4669 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4670 # Solaris 8's {/usr,}/bin/sh.
4671 touch sub/conftst$i.h
4673 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4677 # after this tag, mechanisms are not by side-effect, so they'll
4678 # only be used when explicitly requested
4679 if test "x$enable_dependency_tracking" = xyes; then
4687 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4688 # mode. It turns out that the SunPro C++ compiler does not properly
4689 # handle `-M -o', and we need to detect this.
4690 if depmode=$depmode \
4691 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4692 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4693 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4694 >/dev/null 2>conftest.err &&
4695 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4696 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4697 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4698 # icc doesn't choke on unknown options, it will just issue warnings
4699 # or remarks (even with -Werror). So we grep stderr for any message
4700 # that says an option was ignored or not supported.
4701 # When given -MP, icc 7.0 and 7.1 complain thusly:
4702 # icc: Command line warning: ignoring option '-M'; no argument required
4703 # The diagnosis changed in icc 8.0:
4704 # icc: Command line remark: option '-MP' not supported
4705 if (grep 'ignoring option' conftest.err ||
4706 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4707 am_cv_CC_dependencies_compiler_type=$depmode
4716 am_cv_CC_dependencies_compiler_type=none
4720 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4721 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4722 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4727 test "x$enable_dependency_tracking" != xno \
4728 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4730 am__fastdepCC_FALSE='#'
4732 am__fastdepCC_TRUE='#'
4733 am__fastdepCC_FALSE=
4738 ac_cpp='$CPP $CPPFLAGS'
4739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4742 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4743 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4744 # On Suns, sometimes $CPP names a directory.
4745 if test -n "$CPP" && test -d "$CPP"; then
4748 if test -z "$CPP"; then
4749 if test "${ac_cv_prog_CPP+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 # Double quotes because CPP needs to be expanded
4753 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4756 for ac_c_preproc_warn_flag in '' yes
4758 # Use a header file that comes with gcc, so configuring glibc
4759 # with a fresh cross-compiler works.
4760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4761 # <limits.h> exists even on freestanding compilers.
4762 # On the NeXT, cc -E runs the code through the compiler's parser,
4763 # not just through cpp. "Syntax error" is here to catch this case.
4764 cat >conftest.$ac_ext <<_ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4771 # include <limits.h>
4773 # include <assert.h>
4777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4780 grep -v '^ *+' conftest.er1 >conftest.err
4782 cat conftest.err >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } >/dev/null; then
4785 if test -s conftest.err; then
4786 ac_cpp_err=$ac_c_preproc_warn_flag
4787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4794 if test -z "$ac_cpp_err"; then
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4800 # Broken: fails on valid input.
4803 rm -f conftest.err conftest.$ac_ext
4805 # OK, works on sane cases. Now check whether non-existent headers
4806 # can be detected and how.
4807 cat >conftest.$ac_ext <<_ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 #include <ac_nonexistent.h>
4815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4818 grep -v '^ *+' conftest.er1 >conftest.err
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } >/dev/null; then
4823 if test -s conftest.err; then
4824 ac_cpp_err=$ac_c_preproc_warn_flag
4825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4832 if test -z "$ac_cpp_err"; then
4833 # Broken: success on invalid input.
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4839 # Passes both tests.
4843 rm -f conftest.err conftest.$ac_ext
4846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4847 rm -f conftest.err conftest.$ac_ext
4848 if $ac_preproc_ok; then
4860 echo "$as_me:$LINENO: result: $CPP" >&5
4861 echo "${ECHO_T}$CPP" >&6
4863 for ac_c_preproc_warn_flag in '' yes
4865 # Use a header file that comes with gcc, so configuring glibc
4866 # with a fresh cross-compiler works.
4867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4868 # <limits.h> exists even on freestanding compilers.
4869 # On the NeXT, cc -E runs the code through the compiler's parser,
4870 # not just through cpp. "Syntax error" is here to catch this case.
4871 cat >conftest.$ac_ext <<_ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4878 # include <limits.h>
4880 # include <assert.h>
4884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4887 grep -v '^ *+' conftest.er1 >conftest.err
4889 cat conftest.err >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } >/dev/null; then
4892 if test -s conftest.err; then
4893 ac_cpp_err=$ac_c_preproc_warn_flag
4894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4901 if test -z "$ac_cpp_err"; then
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 # Broken: fails on valid input.
4910 rm -f conftest.err conftest.$ac_ext
4912 # OK, works on sane cases. Now check whether non-existent headers
4913 # can be detected and how.
4914 cat >conftest.$ac_ext <<_ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4920 #include <ac_nonexistent.h>
4922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4925 grep -v '^ *+' conftest.er1 >conftest.err
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } >/dev/null; then
4930 if test -s conftest.err; then
4931 ac_cpp_err=$ac_c_preproc_warn_flag
4932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4939 if test -z "$ac_cpp_err"; then
4940 # Broken: success on invalid input.
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4946 # Passes both tests.
4950 rm -f conftest.err conftest.$ac_ext
4953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4954 rm -f conftest.err conftest.$ac_ext
4955 if $ac_preproc_ok; then
4958 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4959 See \`config.log' for more details." >&5
4960 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4961 See \`config.log' for more details." >&2;}
4962 { (exit 1); exit 1; }; }
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4971 # Find a good install program. We prefer a C program (faster),
4972 # so one script is as good as another. But avoid the broken or
4973 # incompatible versions:
4974 # SysV /etc/install, /usr/sbin/install
4975 # SunOS /usr/etc/install
4976 # IRIX /sbin/install
4978 # AmigaOS /C/install, which installs bootblocks on floppy discs
4979 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4982 # OS/2's system install, which has a completely different semantic
4983 # ./install, which can be erroneously created by make from ./install.sh.
4984 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4985 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4986 if test -z "$INSTALL"; then
4987 if test "${ac_cv_path_install+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 test -z "$as_dir" && as_dir=.
4995 # Account for people who put trailing slashes in PATH elements.
4997 ./ | .// | /cC/* | \
4998 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4999 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5002 # OSF1 and SCO ODT 3.0 have their own names for install.
5003 # Don't use installbsd from OSF since it installs stuff as root
5005 for ac_prog in ginstall scoinst install; do
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5008 if test $ac_prog = install &&
5009 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5010 # AIX install. It has an incompatible calling convention.
5012 elif test $ac_prog = install &&
5013 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5014 # program-specific install script used by HP pwplus--don't use.
5017 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5029 if test "${ac_cv_path_install+set}" = set; then
5030 INSTALL=$ac_cv_path_install
5032 # As a last resort, use the slow shell script. We don't cache a
5033 # path for INSTALL within a source directory, because that will
5034 # break other packages using the cache if that directory is
5035 # removed, or if the path is relative.
5036 INSTALL=$ac_install_sh
5039 echo "$as_me:$LINENO: result: $INSTALL" >&5
5040 echo "${ECHO_T}$INSTALL" >&6
5042 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5043 # It thinks the first close brace ends the variable substitution.
5044 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5046 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5048 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5050 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5051 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5053 if test "$LN_S" = "ln -s"; then
5054 echo "$as_me:$LINENO: result: yes" >&5
5055 echo "${ECHO_T}yes" >&6
5057 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5058 echo "${ECHO_T}no, using $LN_S" >&6
5061 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5062 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5063 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5064 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 cat >conftest.make <<\_ACEOF
5069 @echo 'ac_maketemp="$(MAKE)"'
5071 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5072 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5073 if test -n "$ac_maketemp"; then
5074 eval ac_cv_prog_make_${ac_make}_set=yes
5076 eval ac_cv_prog_make_${ac_make}_set=no
5080 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5081 echo "$as_me:$LINENO: result: yes" >&5
5082 echo "${ECHO_T}yes" >&6
5085 echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5087 SET_MAKE="MAKE=${MAKE-make}"
5090 # Check whether --enable-shared or --disable-shared was given.
5091 if test "${enable_shared+set}" = set; then
5092 enableval="$enable_shared"
5093 p=${PACKAGE-default}
5095 yes) enable_shared=yes ;;
5096 no) enable_shared=no ;;
5099 # Look at the argument we got. We use all the common list separators.
5100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5101 for pkg in $enableval; do
5103 if test "X$pkg" = "X$p"; then
5114 # Check whether --enable-static or --disable-static was given.
5115 if test "${enable_static+set}" = set; then
5116 enableval="$enable_static"
5117 p=${PACKAGE-default}
5119 yes) enable_static=yes ;;
5120 no) enable_static=no ;;
5123 # Look at the argument we got. We use all the common list separators.
5124 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5125 for pkg in $enableval; do
5127 if test "X$pkg" = "X$p"; then
5138 # Check whether --enable-fast-install or --disable-fast-install was given.
5139 if test "${enable_fast_install+set}" = set; then
5140 enableval="$enable_fast_install"
5141 p=${PACKAGE-default}
5143 yes) enable_fast_install=yes ;;
5144 no) enable_fast_install=no ;;
5146 enable_fast_install=no
5147 # Look at the argument we got. We use all the common list separators.
5148 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5149 for pkg in $enableval; do
5151 if test "X$pkg" = "X$p"; then
5152 enable_fast_install=yes
5159 enable_fast_install=yes
5162 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5163 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5164 if test "${lt_cv_path_SED+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 # Loop through the user's path and test for sed and gsed.
5168 # Then use that list of sed's as ones to test for truncation.
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 test -z "$as_dir" && as_dir=.
5174 for lt_ac_prog in sed gsed; do
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5177 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5184 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5185 # along with /bin/sed that truncates output.
5186 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5187 test ! -f $lt_ac_sed && continue
5188 cat /dev/null > conftest.in
5190 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5191 # Check for GNU sed and select it if it is found.
5192 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5193 lt_cv_path_SED=$lt_ac_sed
5197 cat conftest.in conftest.in >conftest.tmp
5198 mv conftest.tmp conftest.in
5199 cp conftest.in conftest.nl
5201 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5202 cmp -s conftest.out conftest.nl || break
5203 # 10000 chars as input seems more than enough
5204 test $lt_ac_count -gt 10 && break
5205 lt_ac_count=`expr $lt_ac_count + 1`
5206 if test $lt_ac_count -gt $lt_ac_max; then
5207 lt_ac_max=$lt_ac_count
5208 lt_cv_path_SED=$lt_ac_sed
5216 echo "$as_me:$LINENO: result: $SED" >&5
5217 echo "${ECHO_T}$SED" >&6
5219 echo "$as_me:$LINENO: checking for egrep" >&5
5220 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5221 if test "${ac_cv_prog_egrep+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5225 then ac_cv_prog_egrep='grep -E'
5226 else ac_cv_prog_egrep='egrep'
5229 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5230 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5231 EGREP=$ac_cv_prog_egrep
5235 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5236 if test "${with_gnu_ld+set}" = set; then
5237 withval="$with_gnu_ld"
5238 test "$withval" = no || with_gnu_ld=yes
5243 if test "$GCC" = yes; then
5244 # Check if gcc -print-prog-name=ld gives a path.
5245 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5246 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5249 # gcc leaves a trailing carriage return which upsets mingw
5250 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5252 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5255 # Accept absolute paths.
5257 re_direlt='/[^/][^/]*/\.\./'
5258 # Canonicalize the pathname of ld
5259 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5260 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5261 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5263 test -z "$LD" && LD="$ac_prog"
5266 # If it fails, then pretend we aren't using GCC.
5270 # If it is relative, then search for the first ld in PATH.
5274 elif test "$with_gnu_ld" = yes; then
5275 echo "$as_me:$LINENO: checking for GNU ld" >&5
5276 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5278 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5279 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5281 if test "${lt_cv_path_LD+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 if test -z "$LD"; then
5285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5286 for ac_dir in $PATH; do
5288 test -z "$ac_dir" && ac_dir=.
5289 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5290 lt_cv_path_LD="$ac_dir/$ac_prog"
5291 # Check to see if the program is GNU ld. I'd rather use --version,
5292 # but apparently some variants of GNU ld only accept -v.
5293 # Break only if it was the GNU/non-GNU ld that we prefer.
5294 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5295 *GNU* | *'with BFD'*)
5296 test "$with_gnu_ld" != no && break
5299 test "$with_gnu_ld" != yes && break
5306 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5311 if test -n "$LD"; then
5312 echo "$as_me:$LINENO: result: $LD" >&5
5313 echo "${ECHO_T}$LD" >&6
5315 echo "$as_me:$LINENO: result: no" >&5
5316 echo "${ECHO_T}no" >&6
5318 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5319 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5320 { (exit 1); exit 1; }; }
5321 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5322 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5323 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5327 case `$LD -v 2>&1 </dev/null` in
5328 *GNU* | *'with BFD'*)
5329 lt_cv_prog_gnu_ld=yes
5332 lt_cv_prog_gnu_ld=no
5336 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5337 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5338 with_gnu_ld=$lt_cv_prog_gnu_ld
5341 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5342 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5343 if test "${lt_cv_ld_reload_flag+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 lt_cv_ld_reload_flag='-r'
5348 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5349 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5350 reload_flag=$lt_cv_ld_reload_flag
5351 case $reload_flag in
5353 *) reload_flag=" $reload_flag" ;;
5355 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5358 if test "$GCC" = yes; then
5359 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5361 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5366 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5367 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5368 if test "${lt_cv_path_NM+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 if test -n "$NM"; then
5372 # Let the user override the test.
5375 lt_nm_to_check="${ac_tool_prefix}nm"
5376 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5377 lt_nm_to_check="$lt_nm_to_check nm"
5379 for lt_tmp_nm in $lt_nm_to_check; do
5380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5381 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5383 test -z "$ac_dir" && ac_dir=.
5384 tmp_nm="$ac_dir/$lt_tmp_nm"
5385 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5386 # Check to see if the nm accepts a BSD-compat flag.
5387 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5388 # nm: unknown option "B" ignored
5389 # Tru64's nm complains that /dev/null is an invalid object file
5390 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5391 */dev/null* | *'Invalid file or object type'*)
5392 lt_cv_path_NM="$tmp_nm -B"
5396 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5398 lt_cv_path_NM="$tmp_nm -p"
5402 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5403 continue # so that we can try to find one that supports BSD flags
5412 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5415 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5416 echo "${ECHO_T}$lt_cv_path_NM" >&6
5419 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5420 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5421 if test "${lt_cv_deplibs_check_method+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 lt_cv_file_magic_cmd='$MAGIC_CMD'
5425 lt_cv_file_magic_test_file=
5426 lt_cv_deplibs_check_method='unknown'
5427 # Need to set the preceding variable on all platforms that support
5428 # interlibrary dependencies.
5429 # 'none' -- dependencies not supported.
5430 # `unknown' -- same as none, but documents that we really don't know.
5431 # 'pass_all' -- all dependencies passed with no checks.
5432 # 'test_compile' -- check by making test program.
5433 # 'file_magic [[regex]]' -- check by looking for files in library path
5434 # which responds to the $file_magic_cmd with a given extended regex.
5435 # If you have `file' or equivalent on your system and you're not sure
5436 # whether `pass_all' will *always* work, you probably want this one.
5440 lt_cv_deplibs_check_method=pass_all
5444 lt_cv_deplibs_check_method=pass_all
5448 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5449 lt_cv_file_magic_cmd='/usr/bin/file -L'
5450 lt_cv_file_magic_test_file=/shlib/libc.so
5454 # func_win32_libid is a shell function defined in ltmain.sh
5455 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5456 lt_cv_file_magic_cmd='func_win32_libid'
5460 # Base MSYS/MinGW do not provide the 'file' command needed by
5461 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5462 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5463 lt_cv_file_magic_cmd='$OBJDUMP -f'
5466 darwin* | rhapsody*)
5467 lt_cv_deplibs_check_method=pass_all
5470 freebsd* | dragonfly*)
5471 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5474 # Not sure whether the presence of OpenBSD here was a mistake.
5475 # Let's accept both of them until this is cleared up.
5476 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5477 lt_cv_file_magic_cmd=/usr/bin/file
5478 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5482 lt_cv_deplibs_check_method=pass_all
5487 lt_cv_deplibs_check_method=pass_all
5490 hpux10.20* | hpux11*)
5491 lt_cv_file_magic_cmd=/usr/bin/file
5494 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5495 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5498 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]'
5499 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5502 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5503 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5509 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5513 irix5* | irix6* | nonstopux*)
5515 *-32|*"-32 ") libmagic=32-bit;;
5516 *-n32|*"-n32 ") libmagic=N32;;
5517 *-64|*"-64 ") libmagic=64-bit;;
5518 *) libmagic=never-match;;
5520 lt_cv_deplibs_check_method=pass_all
5523 # This must be Linux ELF.
5524 linux* | k*bsd*-gnu)
5525 lt_cv_deplibs_check_method=pass_all
5528 netbsd* | netbsdelf*-gnu)
5529 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5538 lt_cv_file_magic_cmd=/usr/bin/file
5539 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5543 lt_cv_deplibs_check_method=unknown
5547 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5548 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5554 osf3* | osf4* | osf5*)
5555 lt_cv_deplibs_check_method=pass_all
5559 lt_cv_deplibs_check_method=pass_all
5563 case $host_vendor in
5565 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]'
5566 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5569 lt_cv_deplibs_check_method=pass_all
5572 lt_cv_file_magic_cmd='/bin/file'
5573 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5576 lt_cv_file_magic_cmd='/bin/file'
5577 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5578 lt_cv_file_magic_test_file=/lib/libc.so
5581 lt_cv_deplibs_check_method=pass_all
5584 lt_cv_deplibs_check_method=pass_all
5589 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5590 lt_cv_deplibs_check_method=pass_all
5595 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5596 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5597 file_magic_cmd=$lt_cv_file_magic_cmd
5598 deplibs_check_method=$lt_cv_deplibs_check_method
5599 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5604 # If no C compiler was specified, use CC.
5607 # If no C compiler flags were specified, use CFLAGS.
5608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5610 # Allow CC to be a program name with arguments.
5613 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5614 if test "${enable_libtool_lock+set}" = set; then
5615 enableval="$enable_libtool_lock"
5618 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5620 # Some flags need to be propagated to the compiler or linker for good
5624 # Find out which ABI we are using.
5625 echo 'int i;' > conftest.$ac_ext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627 (eval $ac_compile) 2>&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }; then
5631 case `/usr/bin/file conftest.$ac_objext` in
5643 # Find out which ABI we are using.
5644 echo '#line 5644 "configure"' > conftest.$ac_ext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646 (eval $ac_compile) 2>&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; then
5650 if test "$lt_cv_prog_gnu_ld" = yes; then
5651 case `/usr/bin/file conftest.$ac_objext` in
5653 LD="${LD-ld} -melf32bsmip"
5656 LD="${LD-ld} -melf32bmipn32"
5659 LD="${LD-ld} -melf64bmip"
5663 case `/usr/bin/file conftest.$ac_objext` in
5679 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5680 # Find out which ABI we are using.
5681 echo 'int i;' > conftest.$ac_ext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5683 (eval $ac_compile) 2>&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; then
5687 case `/usr/bin/file conftest.o` in
5691 LD="${LD-ld} -m elf_i386"
5693 ppc64-*linux*|powerpc64-*linux*)
5694 LD="${LD-ld} -m elf32ppclinux"
5697 LD="${LD-ld} -m elf_s390"
5700 LD="${LD-ld} -m elf32_sparc"
5707 LD="${LD-ld} -m elf_x86_64"
5709 ppc*-*linux*|powerpc*-*linux*)
5710 LD="${LD-ld} -m elf64ppc"
5713 LD="${LD-ld} -m elf64_s390"
5716 LD="${LD-ld} -m elf64_sparc"
5726 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5727 SAVE_CFLAGS="$CFLAGS"
5728 CFLAGS="$CFLAGS -belf"
5729 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5730 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5731 if test "${lt_cv_cc_needs_belf+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 ac_cpp='$CPP $CPPFLAGS'
5736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5740 cat >conftest.$ac_ext <<_ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5755 rm -f conftest.$ac_objext conftest$ac_exeext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5757 (eval $ac_link) 2>conftest.er1
5759 grep -v '^ *+' conftest.er1 >conftest.err
5761 cat conftest.err >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } &&
5764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; } &&
5770 { ac_try='test -s conftest$ac_exeext'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
5776 lt_cv_cc_needs_belf=yes
5778 echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.$ac_ext >&5
5781 lt_cv_cc_needs_belf=no
5783 rm -f conftest.err conftest.$ac_objext \
5784 conftest$ac_exeext conftest.$ac_ext
5786 ac_cpp='$CPP $CPPFLAGS'
5787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5792 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5793 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5794 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5795 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5796 CFLAGS="$SAVE_CFLAGS"
5800 # Find out which ABI we are using.
5801 echo 'int i;' > conftest.$ac_ext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803 (eval $ac_compile) 2>&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; then
5807 case `/usr/bin/file conftest.o` in
5809 case $lt_cv_prog_gnu_ld in
5810 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5811 *) LD="${LD-ld} -64" ;;
5822 need_locks="$enable_libtool_lock"
5826 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5827 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5828 if test "${ac_cv_header_stdc+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 cat >conftest.$ac_ext <<_ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5850 rm -f conftest.$ac_objext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852 (eval $ac_compile) 2>conftest.er1
5854 grep -v '^ *+' conftest.er1 >conftest.err
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } &&
5859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; } &&
5865 { ac_try='test -s conftest.$ac_objext'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; }; then
5871 ac_cv_header_stdc=yes
5873 echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5876 ac_cv_header_stdc=no
5878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5880 if test $ac_cv_header_stdc = yes; then
5881 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5882 cat >conftest.$ac_ext <<_ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5892 $EGREP "memchr" >/dev/null 2>&1; then
5895 ac_cv_header_stdc=no
5901 if test $ac_cv_header_stdc = yes; then
5902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5903 cat >conftest.$ac_ext <<_ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5913 $EGREP "free" >/dev/null 2>&1; then
5916 ac_cv_header_stdc=no
5922 if test $ac_cv_header_stdc = yes; then
5923 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5924 if test "$cross_compiling" = yes; then
5927 cat >conftest.$ac_ext <<_ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5934 #if ((' ' & 0x0FF) == 0x020)
5935 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5936 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5938 # define ISLOWER(c) \
5939 (('a' <= (c) && (c) <= 'i') \
5940 || ('j' <= (c) && (c) <= 'r') \
5941 || ('s' <= (c) && (c) <= 'z'))
5942 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5945 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5950 for (i = 0; i < 256; i++)
5951 if (XOR (islower (i), ISLOWER (i))
5952 || toupper (i) != TOUPPER (i))
5957 rm -f conftest$ac_exeext
5958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5959 (eval $ac_link) 2>&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5970 echo "$as_me: program exited with status $ac_status" >&5
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5975 ac_cv_header_stdc=no
5977 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5981 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5982 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5983 if test $ac_cv_header_stdc = yes; then
5985 cat >>confdefs.h <<\_ACEOF
5986 #define STDC_HEADERS 1
5991 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6001 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6002 inttypes.h stdint.h unistd.h
6004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6005 echo "$as_me:$LINENO: checking for $ac_header" >&5
6006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6010 cat >conftest.$ac_ext <<_ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6016 $ac_includes_default
6018 #include <$ac_header>
6020 rm -f conftest.$ac_objext
6021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022 (eval $ac_compile) 2>conftest.er1
6024 grep -v '^ *+' conftest.er1 >conftest.err
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } &&
6029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; } &&
6035 { ac_try='test -s conftest.$ac_objext'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; }; then
6041 eval "$as_ac_Header=yes"
6043 echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.$ac_ext >&5
6046 eval "$as_ac_Header=no"
6048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6053 cat >>confdefs.h <<_ACEOF
6054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6063 for ac_header in dlfcn.h
6065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6067 echo "$as_me:$LINENO: checking for $ac_header" >&5
6068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6075 # Is the header compilable?
6076 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6078 cat >conftest.$ac_ext <<_ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6084 $ac_includes_default
6085 #include <$ac_header>
6087 rm -f conftest.$ac_objext
6088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6089 (eval $ac_compile) 2>conftest.er1
6091 grep -v '^ *+' conftest.er1 >conftest.err
6093 cat conftest.err >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } &&
6096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try='test -s conftest.$ac_objext'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; }; then
6108 ac_header_compiler=yes
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6113 ac_header_compiler=no
6115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6117 echo "${ECHO_T}$ac_header_compiler" >&6
6119 # Is the header present?
6120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6122 cat >conftest.$ac_ext <<_ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 #include <$ac_header>
6130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6133 grep -v '^ *+' conftest.er1 >conftest.err
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } >/dev/null; then
6138 if test -s conftest.err; then
6139 ac_cpp_err=$ac_c_preproc_warn_flag
6140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6147 if test -z "$ac_cpp_err"; then
6148 ac_header_preproc=yes
6150 echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6153 ac_header_preproc=no
6155 rm -f conftest.err conftest.$ac_ext
6156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6157 echo "${ECHO_T}$ac_header_preproc" >&6
6159 # So? What about this header?
6160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6166 ac_header_preproc=yes
6169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6183 ## ------------------------------- ##
6184 ## Report this to nfs@lists.sf.net ##
6185 ## ------------------------------- ##
6188 sed "s/^/$as_me: WARNING: /" >&2
6191 echo "$as_me:$LINENO: checking for $ac_header" >&5
6192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 eval "$as_ac_Header=\$ac_header_preproc"
6198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6203 cat >>confdefs.h <<_ACEOF
6204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6213 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6214 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6215 (test "X$CXX" != "Xg++"))) ; then
6217 ac_cpp='$CXXCPP $CPPFLAGS'
6218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6221 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6222 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6223 if test -z "$CXXCPP"; then
6224 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 # Double quotes because CXXCPP needs to be expanded
6228 for CXXCPP in "$CXX -E" "/lib/cpp"
6231 for ac_cxx_preproc_warn_flag in '' yes
6233 # Use a header file that comes with gcc, so configuring glibc
6234 # with a fresh cross-compiler works.
6235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6236 # <limits.h> exists even on freestanding compilers.
6237 # On the NeXT, cc -E runs the code through the compiler's parser,
6238 # not just through cpp. "Syntax error" is here to catch this case.
6239 cat >conftest.$ac_ext <<_ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6246 # include <limits.h>
6248 # include <assert.h>
6252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6255 grep -v '^ *+' conftest.er1 >conftest.err
6257 cat conftest.err >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); } >/dev/null; then
6260 if test -s conftest.err; then
6261 ac_cpp_err=$ac_cxx_preproc_warn_flag
6262 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6269 if test -z "$ac_cpp_err"; then
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 # Broken: fails on valid input.
6278 rm -f conftest.err conftest.$ac_ext
6280 # OK, works on sane cases. Now check whether non-existent headers
6281 # can be detected and how.
6282 cat >conftest.$ac_ext <<_ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6288 #include <ac_nonexistent.h>
6290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6293 grep -v '^ *+' conftest.er1 >conftest.err
6295 cat conftest.err >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } >/dev/null; then
6298 if test -s conftest.err; then
6299 ac_cpp_err=$ac_cxx_preproc_warn_flag
6300 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6307 if test -z "$ac_cpp_err"; then
6308 # Broken: success on invalid input.
6311 echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6314 # Passes both tests.
6318 rm -f conftest.err conftest.$ac_ext
6321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6322 rm -f conftest.err conftest.$ac_ext
6323 if $ac_preproc_ok; then
6328 ac_cv_prog_CXXCPP=$CXXCPP
6331 CXXCPP=$ac_cv_prog_CXXCPP
6333 ac_cv_prog_CXXCPP=$CXXCPP
6335 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6336 echo "${ECHO_T}$CXXCPP" >&6
6338 for ac_cxx_preproc_warn_flag in '' yes
6340 # Use a header file that comes with gcc, so configuring glibc
6341 # with a fresh cross-compiler works.
6342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6343 # <limits.h> exists even on freestanding compilers.
6344 # On the NeXT, cc -E runs the code through the compiler's parser,
6345 # not just through cpp. "Syntax error" is here to catch this case.
6346 cat >conftest.$ac_ext <<_ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6353 # include <limits.h>
6355 # include <assert.h>
6359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6362 grep -v '^ *+' conftest.er1 >conftest.err
6364 cat conftest.err >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } >/dev/null; then
6367 if test -s conftest.err; then
6368 ac_cpp_err=$ac_cxx_preproc_warn_flag
6369 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6376 if test -z "$ac_cpp_err"; then
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6382 # Broken: fails on valid input.
6385 rm -f conftest.err conftest.$ac_ext
6387 # OK, works on sane cases. Now check whether non-existent headers
6388 # can be detected and how.
6389 cat >conftest.$ac_ext <<_ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6395 #include <ac_nonexistent.h>
6397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6400 grep -v '^ *+' conftest.er1 >conftest.err
6402 cat conftest.err >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } >/dev/null; then
6405 if test -s conftest.err; then
6406 ac_cpp_err=$ac_cxx_preproc_warn_flag
6407 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6414 if test -z "$ac_cpp_err"; then
6415 # Broken: success on invalid input.
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6421 # Passes both tests.
6425 rm -f conftest.err conftest.$ac_ext
6428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6429 rm -f conftest.err conftest.$ac_ext
6430 if $ac_preproc_ok; then
6433 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6434 See \`config.log' for more details." >&5
6435 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6436 See \`config.log' for more details." >&2;}
6437 { (exit 1); exit 1; }; }
6441 ac_cpp='$CXXCPP $CPPFLAGS'
6442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6450 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6451 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6452 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6453 if test -n "$ac_tool_prefix"; then
6454 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6458 echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6460 if test "${ac_cv_prog_F77+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 if test -n "$F77"; then
6464 ac_cv_prog_F77="$F77" # Let the user override the test.
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 if test -n "$F77"; then
6484 echo "$as_me:$LINENO: result: $F77" >&5
6485 echo "${ECHO_T}$F77" >&6
6487 echo "$as_me:$LINENO: result: no" >&5
6488 echo "${ECHO_T}no" >&6
6491 test -n "$F77" && break
6494 if test -z "$F77"; then
6496 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6498 # Extract the first word of "$ac_prog", so it can be a program name with args.
6499 set dummy $ac_prog; ac_word=$2
6500 echo "$as_me:$LINENO: checking for $ac_word" >&5
6501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6502 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 if test -n "$ac_ct_F77"; then
6506 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_ac_ct_F77="$ac_prog"
6516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6525 if test -n "$ac_ct_F77"; then
6526 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6527 echo "${ECHO_T}$ac_ct_F77" >&6
6529 echo "$as_me:$LINENO: result: no" >&5
6530 echo "${ECHO_T}no" >&6
6533 test -n "$ac_ct_F77" && break
6540 # Provide some information about the compiler.
6541 echo "$as_me:6541:" \
6542 "checking for Fortran 77 compiler version" >&5
6543 ac_compiler=`set X $ac_compile; echo $2`
6544 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6545 (eval $ac_compiler --version </dev/null >&5) 2>&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }
6549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6550 (eval $ac_compiler -v </dev/null >&5) 2>&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }
6554 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6555 (eval $ac_compiler -V </dev/null >&5) 2>&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }
6561 # If we don't use `.F' as extension, the preprocessor is not run on the
6562 # input file. (Note that this only needs to work for GNU compilers.)
6565 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6566 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6567 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 cat >conftest.$ac_ext <<_ACEOF
6578 rm -f conftest.$ac_objext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580 (eval $ac_compile) 2>conftest.er1
6582 grep -v '^ *+' conftest.er1 >conftest.err
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; } &&
6593 { ac_try='test -s conftest.$ac_objext'
6594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; }; then
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6607 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6610 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6611 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6613 ac_test_FFLAGS=${FFLAGS+set}
6614 ac_save_FFLAGS=$FFLAGS
6616 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6617 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6618 if test "${ac_cv_prog_f77_g+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 cat >conftest.$ac_ext <<_ACEOF
6627 rm -f conftest.$ac_objext
6628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6629 (eval $ac_compile) 2>conftest.er1
6631 grep -v '^ *+' conftest.er1 >conftest.err
6633 cat conftest.err >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } &&
6636 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; } &&
6642 { ac_try='test -s conftest.$ac_objext'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 ac_cv_prog_f77_g=yes
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6658 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6659 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6660 if test "$ac_test_FFLAGS" = set; then
6661 FFLAGS=$ac_save_FFLAGS
6662 elif test $ac_cv_prog_f77_g = yes; then
6663 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6669 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6676 G77=`test $ac_compiler_gnu = yes && echo yes`
6678 ac_cpp='$CPP $CPPFLAGS'
6679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6685 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6687 # find the maximum length of command line arguments
6688 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6689 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6690 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 # On DJGPP, this test can blow up pretty badly due to problems in libc
6699 # (any single argument exceeding 2000 bytes causes a buffer overrun
6700 # during glob expansion). Even if it were fixed, the result of this
6701 # check would be larger than it should be.
6702 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6706 # Under GNU Hurd, this test is not required because there is
6707 # no limit to the length of command line arguments.
6708 # Libtool will interpret -1 as no limit whatsoever
6709 lt_cv_sys_max_cmd_len=-1;
6713 # On Win9x/ME, this test blows up -- it succeeds, but takes
6714 # about 5 minutes as the teststring grows exponentially.
6715 # Worse, since 9x/ME are not pre-emptively multitasking,
6716 # you end up with a "frozen" computer, even though with patience
6717 # the test eventually succeeds (with a max line length of 256k).
6718 # Instead, let's just punt: use the minimum linelength reported by
6719 # all of the supported platforms: 8192 (on NT/2K/XP).
6720 lt_cv_sys_max_cmd_len=8192;
6724 # On AmigaOS with pdksh, this test takes hours, literally.
6725 # So we just punt and use a minimum line length of 8192.
6726 lt_cv_sys_max_cmd_len=8192;
6729 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6730 # This has been around since 386BSD, at least. Likely further.
6731 if test -x /sbin/sysctl; then
6732 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6733 elif test -x /usr/sbin/sysctl; then
6734 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6736 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6738 # And add a safety zone
6739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6744 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6745 lt_cv_sys_max_cmd_len=196608
6749 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6750 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6751 # nice to cause kernel panics so lets avoid the loop below.
6752 # First set a reasonable default.
6753 lt_cv_sys_max_cmd_len=16384
6755 if test -x /sbin/sysconfig; then
6756 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6757 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6762 lt_cv_sys_max_cmd_len=102400
6764 sysv5* | sco5v6* | sysv4.2uw2*)
6765 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6766 if test -n "$kargmax"; then
6767 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6769 lt_cv_sys_max_cmd_len=32768
6773 # If test is not a shell built-in, we'll probably end up computing a
6774 # maximum length that is only half of the actual maximum length, but
6776 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6777 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6778 = "XX$teststring") >/dev/null 2>&1 &&
6779 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6780 lt_cv_sys_max_cmd_len=$new_result &&
6781 test $i != 17 # 1/2 MB should be enough
6784 teststring=$teststring$teststring
6787 # Add a significant safety factor because C++ compilers can tack on massive
6788 # amounts of additional arguments before passing them to the linker.
6789 # It appears as though 1/2 is a usable value.
6790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6796 if test -n $lt_cv_sys_max_cmd_len ; then
6797 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6798 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6800 echo "$as_me:$LINENO: result: none" >&5
6801 echo "${ECHO_T}none" >&6
6807 # Check for command to grab the raw symbol name followed by C symbol from nm.
6808 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6809 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6810 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 # These are sane defaults that work on at least a few old systems.
6815 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6817 # Character class describing NM global symbol codes.
6818 symcode='[BCDEGRST]'
6820 # Regexp to match symbols that can be accessed directly from C.
6821 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6823 # Transform an extracted symbol line into a proper C declaration
6824 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6826 # Transform an extracted symbol line into symbol name and symbol address
6827 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'"
6829 # Define system-specific variables.
6834 cygwin* | mingw* | pw32*)
6835 symcode='[ABCDGISTW]'
6837 hpux*) # Its linker distinguishes data from code symbols
6838 if test "$host_cpu" = ia64; then
6839 symcode='[ABCDEGRST]'
6841 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6842 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'"
6844 linux* | k*bsd*-gnu)
6845 if test "$host_cpu" = ia64; then
6846 symcode='[ABCDGIRSTW]'
6847 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6848 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'"
6852 symcode='[BCDEGRST]'
6855 symcode='[BCDEGQRST]'
6866 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6874 # Handle CRLF in mingw tool chain
6878 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6882 # If we're using GNU nm, then use its standard symbol codes.
6883 case `$NM -V 2>&1` in
6884 *GNU* | *'with BFD'*)
6885 symcode='[ABCDGIRSTW]' ;;
6888 # Try without a prefix undercore, then with it.
6889 for ac_symprfx in "" "_"; do
6891 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6892 symxfrm="\\1 $ac_symprfx\\2 \\2"
6894 # Write the raw and C identifiers.
6895 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6897 # Check to see that the pipe works correctly.
6901 cat > conftest.$ac_ext <<EOF
6906 void nm_test_func(){}
6910 int main(){nm_test_var='a';nm_test_func();return(0);}
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914 (eval $ac_compile) 2>&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; then
6918 # Now try to grab the symbols.
6920 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6921 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } && test -s "$nlist"; then
6925 # Try sorting and uniquifying the output.
6926 if sort "$nlist" | uniq > "$nlist"T; then
6927 mv -f "$nlist"T "$nlist"
6932 # Make sure that we snagged all the symbols we need.
6933 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6934 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6935 cat <<EOF > conftest.$ac_ext
6941 # Now generate the symbol file.
6942 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6944 cat <<EOF >> conftest.$ac_ext
6945 #if defined (__STDC__) && __STDC__
6946 # define lt_ptr_t void *
6948 # define lt_ptr_t char *
6952 /* The mapping between symbol names and symbols. */
6957 lt_preloaded_symbols[] =
6960 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6961 cat <<\EOF >> conftest.$ac_ext
6969 # Now try linking the two files.
6970 mv conftest.$ac_objext conftstm.$ac_objext
6971 lt_save_LIBS="$LIBS"
6972 lt_save_CFLAGS="$CFLAGS"
6973 LIBS="conftstm.$ac_objext"
6974 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6976 (eval $ac_link) 2>&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6982 LIBS="$lt_save_LIBS"
6983 CFLAGS="$lt_save_CFLAGS"
6985 echo "cannot find nm_test_func in $nlist" >&5
6988 echo "cannot find nm_test_var in $nlist" >&5
6991 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6994 echo "$progname: failed program was:" >&5
6995 cat conftest.$ac_ext >&5
6997 rm -f conftest* conftst*
6999 # Do not use the global_symbol_pipe unless it works.
7000 if test "$pipe_works" = yes; then
7003 lt_cv_sys_global_symbol_pipe=
7009 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7010 lt_cv_sys_global_symbol_to_cdecl=
7012 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7013 echo "$as_me:$LINENO: result: failed" >&5
7014 echo "${ECHO_T}failed" >&6
7016 echo "$as_me:$LINENO: result: ok" >&5
7017 echo "${ECHO_T}ok" >&6
7020 echo "$as_me:$LINENO: checking for objdir" >&5
7021 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7022 if test "${lt_cv_objdir+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 rm -f .libs 2>/dev/null
7026 mkdir .libs 2>/dev/null
7027 if test -d .libs; then
7030 # MS-DOS does not allow filenames that begin with a dot.
7033 rmdir .libs 2>/dev/null
7035 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7036 echo "${ECHO_T}$lt_cv_objdir" >&6
7037 objdir=$lt_cv_objdir
7045 # AIX sometimes has problems with the GCC collect2 program. For some
7046 # reason, if we set the COLLECT_NAMES environment variable, the problems
7047 # vanish in a puff of smoke.
7048 if test "X${COLLECT_NAMES+set}" != Xset; then
7050 export COLLECT_NAMES
7055 # Sed substitution that helps us do robust quoting. It backslashifies
7056 # metacharacters that are still active within double-quoted strings.
7057 Xsed='sed -e 1s/^X//'
7058 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7060 # Same as above, but do not quote variable references.
7061 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7063 # Sed substitution to delay expansion of an escaped shell variable in a
7064 # double_quote_subst'ed string.
7065 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7067 # Sed substitution to avoid accidental globbing in evaled expressions
7068 no_glob_subst='s/\*/\\\*/g'
7074 default_ofile=libtool
7075 can_build_shared=yes
7077 # All known linkers require a `.a' archive for static linking (except MSVC,
7078 # which needs '.lib').
7080 ltmain="$ac_aux_dir/ltmain.sh"
7081 ofile="$default_ofile"
7082 with_gnu_ld="$lt_cv_prog_gnu_ld"
7084 if test -n "$ac_tool_prefix"; then
7085 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7086 set dummy ${ac_tool_prefix}ar; ac_word=$2
7087 echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7089 if test "${ac_cv_prog_AR+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 if test -n "$AR"; then
7093 ac_cv_prog_AR="$AR" # Let the user override the test.
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102 ac_cv_prog_AR="${ac_tool_prefix}ar"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 if test -n "$AR"; then
7113 echo "$as_me:$LINENO: result: $AR" >&5
7114 echo "${ECHO_T}$AR" >&6
7116 echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6
7121 if test -z "$ac_cv_prog_AR"; then
7123 # Extract the first word of "ar", so it can be a program name with args.
7124 set dummy ar; ac_word=$2
7125 echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7127 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 if test -n "$ac_ct_AR"; then
7131 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7140 ac_cv_prog_ac_ct_AR="ar"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7150 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7151 if test -n "$ac_ct_AR"; then
7152 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7153 echo "${ECHO_T}$ac_ct_AR" >&6
7155 echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6
7164 if test -n "$ac_tool_prefix"; then
7165 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7166 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7167 echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7169 if test "${ac_cv_prog_RANLIB+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 if test -n "$RANLIB"; then
7173 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7182 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 RANLIB=$ac_cv_prog_RANLIB
7192 if test -n "$RANLIB"; then
7193 echo "$as_me:$LINENO: result: $RANLIB" >&5
7194 echo "${ECHO_T}$RANLIB" >&6
7196 echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6
7201 if test -z "$ac_cv_prog_RANLIB"; then
7202 ac_ct_RANLIB=$RANLIB
7203 # Extract the first word of "ranlib", so it can be a program name with args.
7204 set dummy ranlib; ac_word=$2
7205 echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7207 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 if test -n "$ac_ct_RANLIB"; then
7211 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7220 ac_cv_prog_ac_ct_RANLIB="ranlib"
7221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7230 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7231 if test -n "$ac_ct_RANLIB"; then
7232 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7233 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7235 echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6
7239 RANLIB=$ac_ct_RANLIB
7241 RANLIB="$ac_cv_prog_RANLIB"
7244 if test -n "$ac_tool_prefix"; then
7245 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7246 set dummy ${ac_tool_prefix}strip; ac_word=$2
7247 echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7249 if test "${ac_cv_prog_STRIP+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 if test -n "$STRIP"; then
7253 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 STRIP=$ac_cv_prog_STRIP
7272 if test -n "$STRIP"; then
7273 echo "$as_me:$LINENO: result: $STRIP" >&5
7274 echo "${ECHO_T}$STRIP" >&6
7276 echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6
7281 if test -z "$ac_cv_prog_STRIP"; then
7283 # Extract the first word of "strip", so it can be a program name with args.
7284 set dummy strip; ac_word=$2
7285 echo "$as_me:$LINENO: checking for $ac_word" >&5
7286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7287 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 if test -n "$ac_ct_STRIP"; then
7291 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7300 ac_cv_prog_ac_ct_STRIP="strip"
7301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7310 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7311 if test -n "$ac_ct_STRIP"; then
7312 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7313 echo "${ECHO_T}$ac_ct_STRIP" >&6
7315 echo "$as_me:$LINENO: result: no" >&5
7316 echo "${ECHO_T}no" >&6
7321 STRIP="$ac_cv_prog_STRIP"
7326 old_CFLAGS="$CFLAGS"
7328 # Set sane defaults for various variables
7329 test -z "$AR" && AR=ar
7330 test -z "$AR_FLAGS" && AR_FLAGS=cru
7331 test -z "$AS" && AS=as
7332 test -z "$CC" && CC=cc
7333 test -z "$LTCC" && LTCC=$CC
7334 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7335 test -z "$DLLTOOL" && DLLTOOL=dlltool
7336 test -z "$LD" && LD=ld
7337 test -z "$LN_S" && LN_S="ln -s"
7338 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7339 test -z "$NM" && NM=nm
7340 test -z "$SED" && SED=sed
7341 test -z "$OBJDUMP" && OBJDUMP=objdump
7342 test -z "$RANLIB" && RANLIB=:
7343 test -z "$STRIP" && STRIP=:
7344 test -z "$ac_objext" && ac_objext=o
7346 # Determine commands to create old-style static archives.
7347 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7348 old_postinstall_cmds='chmod 644 $oldlib'
7349 old_postuninstall_cmds=
7351 if test -n "$RANLIB"; then
7354 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7357 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7360 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7363 for cc_temp in $compiler""; do
7365 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7366 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7371 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7374 # Only perform the check for file, if the check method requires it
7375 case $deplibs_check_method in
7377 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7378 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7379 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7380 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7388 lt_save_MAGIC_CMD="$MAGIC_CMD"
7389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7390 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7391 for ac_dir in $ac_dummy; do
7393 test -z "$ac_dir" && ac_dir=.
7394 if test -f $ac_dir/${ac_tool_prefix}file; then
7395 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7396 if test -n "$file_magic_test_file"; then
7397 case $deplibs_check_method in
7399 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7400 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7401 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7402 $EGREP "$file_magic_regex" > /dev/null; then
7407 *** Warning: the command libtool uses to detect shared libraries,
7408 *** $file_magic_cmd, produces output that libtool cannot recognize.
7409 *** The result is that libtool may fail to recognize shared libraries
7410 *** as such. This will affect the creation of libtool libraries that
7411 *** depend on shared libraries, but programs linked with such libtool
7412 *** libraries will work regardless of this problem. Nevertheless, you
7413 *** may want to report the problem to your system manager and/or to
7414 *** bug-libtool@gnu.org
7424 MAGIC_CMD="$lt_save_MAGIC_CMD"
7429 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7430 if test -n "$MAGIC_CMD"; then
7431 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7432 echo "${ECHO_T}$MAGIC_CMD" >&6
7434 echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6
7438 if test -z "$lt_cv_path_MAGIC_CMD"; then
7439 if test -n "$ac_tool_prefix"; then
7440 echo "$as_me:$LINENO: checking for file" >&5
7441 echo $ECHO_N "checking for file... $ECHO_C" >&6
7442 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7450 lt_save_MAGIC_CMD="$MAGIC_CMD"
7451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7452 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7453 for ac_dir in $ac_dummy; do
7455 test -z "$ac_dir" && ac_dir=.
7456 if test -f $ac_dir/file; then
7457 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7458 if test -n "$file_magic_test_file"; then
7459 case $deplibs_check_method in
7461 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7462 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7463 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7464 $EGREP "$file_magic_regex" > /dev/null; then
7469 *** Warning: the command libtool uses to detect shared libraries,
7470 *** $file_magic_cmd, produces output that libtool cannot recognize.
7471 *** The result is that libtool may fail to recognize shared libraries
7472 *** as such. This will affect the creation of libtool libraries that
7473 *** depend on shared libraries, but programs linked with such libtool
7474 *** libraries will work regardless of this problem. Nevertheless, you
7475 *** may want to report the problem to your system manager and/or to
7476 *** bug-libtool@gnu.org
7486 MAGIC_CMD="$lt_save_MAGIC_CMD"
7491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7492 if test -n "$MAGIC_CMD"; then
7493 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7494 echo "${ECHO_T}$MAGIC_CMD" >&6
7496 echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6
7512 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7513 if test "${enable_libtool_lock+set}" = set; then
7514 enableval="$enable_libtool_lock"
7517 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7520 # Check whether --with-pic or --without-pic was given.
7521 if test "${with_pic+set}" = set; then
7527 test -z "$pic_mode" && pic_mode=default
7529 # Use C for the default configuration in the libtool script
7533 ac_cpp='$CPP $CPPFLAGS'
7534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7539 # Source file extension for C test sources.
7542 # Object file extension for compiled C test sources.
7546 # Code to be used in simple compile tests
7547 lt_simple_compile_test_code="int some_variable = 0;\n"
7549 # Code to be used in simple link tests
7550 lt_simple_link_test_code='int main(){return(0);}\n'
7553 # If no C compiler was specified, use CC.
7556 # If no C compiler flags were specified, use CFLAGS.
7557 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7559 # Allow CC to be a program name with arguments.
7563 # save warnings/boilerplate of simple test code
7564 ac_outfile=conftest.$ac_objext
7565 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7566 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7567 _lt_compiler_boilerplate=`cat conftest.err`
7570 ac_outfile=conftest.$ac_objext
7571 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7572 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7573 _lt_linker_boilerplate=`cat conftest.err`
7578 lt_prog_compiler_no_builtin_flag=
7580 if test "$GCC" = yes; then
7581 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7584 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7585 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7586 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 lt_cv_prog_compiler_rtti_exceptions=no
7590 ac_outfile=conftest.$ac_objext
7591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7592 lt_compiler_flag="-fno-rtti -fno-exceptions"
7593 # Insert the option either (1) after the last *FLAGS variable, or
7594 # (2) before a word containing "conftest.", or (3) at the end.
7595 # Note that $ac_compile itself does not contain backslashes and begins
7596 # with a dollar sign (not a hyphen), so the echo should work correctly.
7597 # The option is referenced via a variable to avoid confusing sed.
7598 lt_compile=`echo "$ac_compile" | $SED \
7599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7601 -e 's:$: $lt_compiler_flag:'`
7602 (eval echo "\"\$as_me:7602: $lt_compile\"" >&5)
7603 (eval "$lt_compile" 2>conftest.err)
7605 cat conftest.err >&5
7606 echo "$as_me:7606: \$? = $ac_status" >&5
7607 if (exit $ac_status) && test -s "$ac_outfile"; then
7608 # The compiler can only warn and ignore the option if not recognized
7609 # So say no if there are warnings other than the usual output.
7610 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7612 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7613 lt_cv_prog_compiler_rtti_exceptions=yes
7619 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7620 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7622 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7623 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7630 lt_prog_compiler_wl=
7631 lt_prog_compiler_pic=
7632 lt_prog_compiler_static=
7634 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7635 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7637 if test "$GCC" = yes; then
7638 lt_prog_compiler_wl='-Wl,'
7639 lt_prog_compiler_static='-static'
7643 # All AIX code is PIC.
7644 if test "$host_cpu" = ia64; then
7645 # AIX 5 now supports IA64 processor
7646 lt_prog_compiler_static='-Bstatic'
7651 # FIXME: we need at least 68020 code to build shared libraries, but
7652 # adding the `-m68020' flag to GCC prevents building anything better,
7654 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7657 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7658 # PIC is the default for these OSes.
7661 mingw* | pw32* | os2*)
7662 # This hack is so that the source file can tell whether it is being
7663 # built for inclusion in a dll (and should export symbols for example).
7664 lt_prog_compiler_pic='-DDLL_EXPORT'
7667 darwin* | rhapsody*)
7668 # PIC is the default on this platform
7669 # Common symbols not allowed in MH_DYLIB files
7670 lt_prog_compiler_pic='-fno-common'
7674 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7675 # Instead, we relocate shared libraries at runtime.
7679 # Just because we use GCC doesn't mean we suddenly get shared libraries
7680 # on systems that don't support them.
7681 lt_prog_compiler_can_build_shared=no
7686 if test -d /usr/nec; then
7687 lt_prog_compiler_pic=-Kconform_pic
7692 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7699 lt_prog_compiler_pic='-fPIC'
7705 lt_prog_compiler_pic='-fPIC'
7709 # PORTME Check for flag to pass linker flags through the system compiler.
7712 lt_prog_compiler_wl='-Wl,'
7713 if test "$host_cpu" = ia64; then
7714 # AIX 5 now supports IA64 processor
7715 lt_prog_compiler_static='-Bstatic'
7717 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7721 # PIC is the default on this platform
7722 # Common symbols not allowed in MH_DYLIB files
7723 case $cc_basename in
7725 lt_prog_compiler_pic='-qnocommon'
7726 lt_prog_compiler_wl='-Wl,'
7731 mingw* | pw32* | os2*)
7732 # This hack is so that the source file can tell whether it is being
7733 # built for inclusion in a dll (and should export symbols for example).
7734 lt_prog_compiler_pic='-DDLL_EXPORT'
7737 hpux9* | hpux10* | hpux11*)
7738 lt_prog_compiler_wl='-Wl,'
7739 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7746 lt_prog_compiler_pic='+Z'
7749 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7750 lt_prog_compiler_static='${wl}-a ${wl}archive'
7753 irix5* | irix6* | nonstopux*)
7754 lt_prog_compiler_wl='-Wl,'
7755 # PIC (with -KPIC) is the default.
7756 lt_prog_compiler_static='-non_shared'
7760 lt_prog_compiler_pic='-KPIC'
7761 lt_prog_compiler_static='-Bstatic'
7764 linux* | k*bsd*-gnu)
7765 case $cc_basename in
7767 lt_prog_compiler_wl='-Wl,'
7768 lt_prog_compiler_pic='-KPIC'
7769 lt_prog_compiler_static='-static'
7771 pgcc* | pgf77* | pgf90* | pgf95*)
7772 # Portland Group compilers (*not* the Pentium gcc compiler,
7773 # which looks to be a dead project)
7774 lt_prog_compiler_wl='-Wl,'
7775 lt_prog_compiler_pic='-fpic'
7776 lt_prog_compiler_static='-Bstatic'
7779 lt_prog_compiler_wl='-Wl,'
7780 # All Alpha code is PIC.
7781 lt_prog_compiler_static='-non_shared'
7786 osf3* | osf4* | osf5*)
7787 lt_prog_compiler_wl='-Wl,'
7788 # All OSF/1 code is PIC.
7789 lt_prog_compiler_static='-non_shared'
7793 lt_prog_compiler_pic='-KPIC'
7794 lt_prog_compiler_static='-Bstatic'
7795 case $cc_basename in
7797 lt_prog_compiler_wl='-Qoption ld ';;
7799 lt_prog_compiler_wl='-Wl,';;
7804 lt_prog_compiler_wl='-Qoption ld '
7805 lt_prog_compiler_pic='-PIC'
7806 lt_prog_compiler_static='-Bstatic'
7809 sysv4 | sysv4.2uw2* | sysv4.3*)
7810 lt_prog_compiler_wl='-Wl,'
7811 lt_prog_compiler_pic='-KPIC'
7812 lt_prog_compiler_static='-Bstatic'
7816 if test -d /usr/nec ;then
7817 lt_prog_compiler_pic='-Kconform_pic'
7818 lt_prog_compiler_static='-Bstatic'
7822 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7823 lt_prog_compiler_wl='-Wl,'
7824 lt_prog_compiler_pic='-KPIC'
7825 lt_prog_compiler_static='-Bstatic'
7829 lt_prog_compiler_wl='-Wl,'
7830 lt_prog_compiler_can_build_shared=no
7834 lt_prog_compiler_pic='-pic'
7835 lt_prog_compiler_static='-Bstatic'
7839 lt_prog_compiler_can_build_shared=no
7844 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7845 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7848 # Check to make sure the PIC flag actually works.
7850 if test -n "$lt_prog_compiler_pic"; then
7852 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7853 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7854 if test "${lt_prog_compiler_pic_works+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 lt_prog_compiler_pic_works=no
7858 ac_outfile=conftest.$ac_objext
7859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7860 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7861 # Insert the option either (1) after the last *FLAGS variable, or
7862 # (2) before a word containing "conftest.", or (3) at the end.
7863 # Note that $ac_compile itself does not contain backslashes and begins
7864 # with a dollar sign (not a hyphen), so the echo should work correctly.
7865 # The option is referenced via a variable to avoid confusing sed.
7866 lt_compile=`echo "$ac_compile" | $SED \
7867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7869 -e 's:$: $lt_compiler_flag:'`
7870 (eval echo "\"\$as_me:7870: $lt_compile\"" >&5)
7871 (eval "$lt_compile" 2>conftest.err)
7873 cat conftest.err >&5
7874 echo "$as_me:7874: \$? = $ac_status" >&5
7875 if (exit $ac_status) && test -s "$ac_outfile"; then
7876 # The compiler can only warn and ignore the option if not recognized
7877 # So say no if there are warnings other than the usual output.
7878 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7880 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7881 lt_prog_compiler_pic_works=yes
7887 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7888 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7890 if test x"$lt_prog_compiler_pic_works" = xyes; then
7891 case $lt_prog_compiler_pic in
7893 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7896 lt_prog_compiler_pic=
7897 lt_prog_compiler_can_build_shared=no
7902 # For platforms which do not support PIC, -DPIC is meaningless:
7904 lt_prog_compiler_pic=
7907 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7912 # Check to make sure the static flag actually works.
7914 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7915 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7916 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7917 if test "${lt_prog_compiler_static_works+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 lt_prog_compiler_static_works=no
7921 save_LDFLAGS="$LDFLAGS"
7922 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7923 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7924 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7925 # The linker can only warn and ignore the option if not recognized
7926 # So say no if there are warnings
7927 if test -s conftest.err; then
7928 # Append any errors to the config.log.
7929 cat conftest.err 1>&5
7930 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7932 if diff conftest.exp conftest.er2 >/dev/null; then
7933 lt_prog_compiler_static_works=yes
7936 lt_prog_compiler_static_works=yes
7940 LDFLAGS="$save_LDFLAGS"
7943 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7944 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7946 if test x"$lt_prog_compiler_static_works" = xyes; then
7949 lt_prog_compiler_static=
7953 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7954 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7955 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 lt_cv_prog_compiler_c_o=no
7959 $rm -r conftest 2>/dev/null
7963 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7965 lt_compiler_flag="-o out/conftest2.$ac_objext"
7966 # Insert the option either (1) after the last *FLAGS variable, or
7967 # (2) before a word containing "conftest.", or (3) at the end.
7968 # Note that $ac_compile itself does not contain backslashes and begins
7969 # with a dollar sign (not a hyphen), so the echo should work correctly.
7970 lt_compile=`echo "$ac_compile" | $SED \
7971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7973 -e 's:$: $lt_compiler_flag:'`
7974 (eval echo "\"\$as_me:7974: $lt_compile\"" >&5)
7975 (eval "$lt_compile" 2>out/conftest.err)
7977 cat out/conftest.err >&5
7978 echo "$as_me:7978: \$? = $ac_status" >&5
7979 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7981 # The compiler can only warn and ignore the option if not recognized
7982 # So say no if there are warnings
7983 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7984 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7985 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7986 lt_cv_prog_compiler_c_o=yes
7991 # SGI C++ compiler will create directory out/ii_files/ for
7992 # template instantiation
7993 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7994 $rm out/* && rmdir out
8000 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8001 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8004 hard_links="nottested"
8005 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8006 # do not overwrite the value of need_locks provided by the user
8007 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8008 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8011 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8013 ln conftest.a conftest.b 2>&5 || hard_links=no
8014 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8015 echo "$as_me:$LINENO: result: $hard_links" >&5
8016 echo "${ECHO_T}$hard_links" >&6
8017 if test "$hard_links" = no; then
8018 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8019 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8026 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8027 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8030 allow_undefined_flag=
8031 enable_shared_with_static_runtimes=no
8033 archive_expsym_cmds=
8034 old_archive_From_new_cmds=
8035 old_archive_from_expsyms_cmds=
8036 export_dynamic_flag_spec=
8037 whole_archive_flag_spec=
8038 thread_safe_flag_spec=
8039 hardcode_libdir_flag_spec=
8040 hardcode_libdir_flag_spec_ld=
8041 hardcode_libdir_separator=
8044 hardcode_shlibpath_var=unsupported
8045 link_all_deplibs=unknown
8046 hardcode_automatic=no
8049 always_export_symbols=no
8050 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8051 # include_expsyms should be a list of space-separated symbols to be *always*
8052 # included in the symbol list
8054 # exclude_expsyms can be an extended regexp of symbols to exclude
8055 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8056 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8057 # as well as any symbol that contains `d'.
8058 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8059 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8060 # platforms (ab)use it in PIC code, but their linkers get confused if
8061 # the symbol is explicitly referenced. Since portable code cannot
8062 # rely on this symbol name, it's probably fine to never include it in
8063 # preloaded symbol tables.
8064 extract_expsyms_cmds=
8065 # Just being paranoid about ensuring that cc_basename is set.
8066 for cc_temp in $compiler""; do
8068 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8069 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8074 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8077 cygwin* | mingw* | pw32*)
8078 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8079 # When not using gcc, we currently assume that we are using
8080 # Microsoft Visual C++.
8081 if test "$GCC" != yes; then
8086 # we just hope/assume this is gcc and not c89 (= MSVC++)
8095 if test "$with_gnu_ld" = yes; then
8096 # If archive_cmds runs LD, not CC, wlarc should be empty
8099 # Set some defaults for GNU ld with shared library support. These
8100 # are reset later if shared libraries are not supported. Putting them
8101 # here allows them to be overridden if necessary.
8102 runpath_var=LD_RUN_PATH
8103 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8104 export_dynamic_flag_spec='${wl}--export-dynamic'
8105 # ancient GNU ld didn't support --whole-archive et. al.
8106 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8107 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8109 whole_archive_flag_spec=
8111 supports_anon_versioning=no
8112 case `$LD -v 2>/dev/null` in
8113 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8114 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8115 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8116 *\ 2.11.*) ;; # other 2.11 versions
8117 *) supports_anon_versioning=yes ;;
8120 # See if GNU ld supports shared libraries.
8122 aix3* | aix4* | aix5*)
8123 # On AIX/PPC, the GNU linker is very broken
8124 if test "$host_cpu" != ia64; then
8128 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8129 *** to be unable to reliably create shared libraries on AIX.
8130 *** Therefore, libtool is disabling shared libraries support. If you
8131 *** really care for shared libraries, you may want to modify your PATH
8132 *** so that a non-GNU linker is found, and then restart.
8139 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)'
8140 hardcode_libdir_flag_spec='-L$libdir'
8141 hardcode_minus_L=yes
8143 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8144 # that the semantics of dynamic libraries on AmigaOS, at least up
8145 # to version 4, is to share data among multiple programs linked
8146 # with the same dynamic library. Since this doesn't match the
8147 # behavior of shared libraries on other platforms, we can't use
8153 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8154 allow_undefined_flag=unsupported
8155 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8156 # support --undefined. This deserves some investigation. FIXME
8157 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8163 cygwin* | mingw* | pw32*)
8164 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8165 # as there is no search path for DLLs.
8166 hardcode_libdir_flag_spec='-L$libdir'
8167 allow_undefined_flag=unsupported
8168 always_export_symbols=no
8169 enable_shared_with_static_runtimes=yes
8170 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8172 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8174 # If the export-symbols file already is a .def file (1st line
8175 # is EXPORTS), use it as is; otherwise, prepend...
8176 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8177 cp $export_symbols $output_objdir/$soname.def;
8179 echo EXPORTS > $output_objdir/$soname.def;
8180 cat $export_symbols >> $output_objdir/$soname.def;
8182 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8190 hardcode_shlibpath_var=no
8191 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8192 export_dynamic_flag_spec='${wl}-E'
8193 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8194 # Instead, shared libraries are loaded at an image base (0x10000000 by
8195 # default) and relocated if they conflict, which is a slow very memory
8196 # consuming and fragmenting process. To avoid this, we pick a random,
8197 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8198 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8199 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8200 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8203 linux* | k*bsd*-gnu)
8204 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8206 case $cc_basename,$host_cpu in
8207 pgcc*) # Portland Group C compiler
8208 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'
8209 tmp_addflag=' $pic_flag'
8211 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8212 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'
8213 tmp_addflag=' $pic_flag -Mnomain' ;;
8214 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8215 tmp_addflag=' -i_dynamic' ;;
8216 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8217 tmp_addflag=' -i_dynamic -nofor_main' ;;
8218 ifc* | ifort*) # Intel Fortran compiler
8219 tmp_addflag=' -nofor_main' ;;
8221 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223 if test $supports_anon_versioning = yes; then
8224 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8225 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8226 $echo "local: *; };" >> $output_objdir/$libname.ver~
8227 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8235 netbsd* | netbsdelf*-gnu)
8236 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8237 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8241 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8246 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8250 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8251 *** create shared libraries on Solaris systems. Therefore, libtool
8252 *** is disabling shared libraries support. We urge you to upgrade GNU
8253 *** binutils to release 2.9.1 or newer. Another option is to modify
8254 *** your PATH or compiler configuration so that the native linker is
8255 *** used, and then restart.
8258 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8266 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8267 case `$LD -v 2>&1` in
8268 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8272 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8273 *** reliably create shared libraries on SCO systems. Therefore, libtool
8274 *** is disabling shared libraries support. We urge you to upgrade GNU
8275 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8276 *** your PATH or compiler configuration so that the native linker is
8277 *** used, and then restart.
8282 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8283 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8285 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8294 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8297 hardcode_shlibpath_var=no
8301 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8303 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8310 if test "$ld_shlibs" = no; then
8312 hardcode_libdir_flag_spec=
8313 export_dynamic_flag_spec=
8314 whole_archive_flag_spec=
8317 # PORTME fill in a description of your system's linker (not GNU ld)
8320 allow_undefined_flag=unsupported
8321 always_export_symbols=yes
8322 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'
8323 # Note: this linker hardcodes the directories in LIBPATH if there
8324 # are no directories specified by -L.
8325 hardcode_minus_L=yes
8326 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8327 # Neither direct hardcoding nor static linking is supported with a
8329 hardcode_direct=unsupported
8334 if test "$host_cpu" = ia64; then
8335 # On IA64, the linker does run time linking by default, so we don't
8336 # have to do anything special.
8337 aix_use_runtimelinking=no
8338 exp_sym_flag='-Bexport'
8341 # If we're using GNU nm, then we don't want the "-C" option.
8342 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8343 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8344 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'
8346 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'
8348 aix_use_runtimelinking=no
8350 # Test if we are trying to use run time linking or normal
8351 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8352 # need to do runtime linking.
8353 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8354 for ld_flag in $LDFLAGS; do
8355 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8356 aix_use_runtimelinking=yes
8363 exp_sym_flag='-bexport'
8364 no_entry_flag='-bnoentry'
8367 # When large executables or shared objects are built, AIX ld can
8368 # have problems creating the table of contents. If linking a library
8369 # or program results in "error TOC overflow" add -mminimal-toc to
8370 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8371 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8375 hardcode_libdir_separator=':'
8376 link_all_deplibs=yes
8378 if test "$GCC" = yes; then
8379 case $host_os in aix4.[012]|aix4.[012].*)
8380 # We only want to do this on AIX 4.2 and lower, the check
8381 # below for broken collect2 doesn't work under 4.3+
8382 collect2name=`${CC} -print-prog-name=collect2`
8383 if test -f "$collect2name" && \
8384 strings "$collect2name" | grep resolve_lib_name >/dev/null
8386 # We have reworked collect2
8389 # We have old collect2
8390 hardcode_direct=unsupported
8391 # It fails to find uninstalled libraries when the uninstalled
8392 # path is not listed in the libpath. Setting hardcode_minus_L
8393 # to unsupported forces relinking
8394 hardcode_minus_L=yes
8395 hardcode_libdir_flag_spec='-L$libdir'
8396 hardcode_libdir_separator=
8400 shared_flag='-shared'
8401 if test "$aix_use_runtimelinking" = yes; then
8402 shared_flag="$shared_flag "'${wl}-G'
8406 if test "$host_cpu" = ia64; then
8407 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8408 # chokes on -Wl,-G. The following line is correct:
8411 if test "$aix_use_runtimelinking" = yes; then
8412 shared_flag='${wl}-G'
8414 shared_flag='${wl}-bM:SRE'
8419 # It seems that -bexpall does not export symbols beginning with
8420 # underscore (_), so it is better to generate a list of symbols to export.
8421 always_export_symbols=yes
8422 if test "$aix_use_runtimelinking" = yes; then
8423 # Warning - without using the other runtime loading flags (-brtl),
8424 # -berok will link without error, but may produce a broken library.
8425 allow_undefined_flag='-berok'
8426 # Determine the default libpath from the value encoded in an empty executable.
8427 cat >conftest.$ac_ext <<_ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8442 rm -f conftest.$ac_objext conftest$ac_exeext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8444 (eval $ac_link) 2>conftest.er1
8446 grep -v '^ *+' conftest.er1 >conftest.err
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } &&
8451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; } &&
8457 { ac_try='test -s conftest$ac_exeext'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; }; then
8464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8466 # Check for a 64-bit object if we didn't find anything.
8467 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; }
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8474 rm -f conftest.err conftest.$ac_objext \
8475 conftest$ac_exeext conftest.$ac_ext
8476 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8478 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8479 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8481 if test "$host_cpu" = ia64; then
8482 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8483 allow_undefined_flag="-z nodefs"
8484 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8486 # Determine the default libpath from the value encoded in an empty executable.
8487 cat >conftest.$ac_ext <<_ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8502 rm -f conftest.$ac_objext conftest$ac_exeext
8503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8504 (eval $ac_link) 2>conftest.er1
8506 grep -v '^ *+' conftest.er1 >conftest.err
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } &&
8511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; } &&
8517 { ac_try='test -s conftest$ac_exeext'
8518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); }; }; then
8524 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8526 # Check for a 64-bit object if we didn't find anything.
8527 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; }
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8534 rm -f conftest.err conftest.$ac_objext \
8535 conftest$ac_exeext conftest.$ac_ext
8536 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8538 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8539 # Warning - without using the other run time loading flags,
8540 # -berok will link without error, but may produce a broken library.
8541 no_undefined_flag=' ${wl}-bernotok'
8542 allow_undefined_flag=' ${wl}-berok'
8543 # Exported symbols can be pulled into shared objects from archives
8544 whole_archive_flag_spec='$convenience'
8545 archive_cmds_need_lc=yes
8546 # This is similar to how AIX traditionally builds its shared libraries.
8547 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8553 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)'
8554 hardcode_libdir_flag_spec='-L$libdir'
8555 hardcode_minus_L=yes
8556 # see comment about different semantics on the GNU ld section
8561 export_dynamic_flag_spec=-rdynamic
8564 cygwin* | mingw* | pw32*)
8565 # When not using gcc, we currently assume that we are using
8566 # Microsoft Visual C++.
8567 # hardcode_libdir_flag_spec is actually meaningless, as there is
8568 # no search path for DLLs.
8569 hardcode_libdir_flag_spec=' '
8570 allow_undefined_flag=unsupported
8571 # Tell ltmain to make .lib files, not .a files.
8573 # Tell ltmain to make .dll files, not .so files.
8575 # FIXME: Setting linknames here is a bad hack.
8576 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8577 # The linker will automatically build a .lib file if we build a DLL.
8578 old_archive_From_new_cmds='true'
8579 # FIXME: Should let the user specify the lib program.
8580 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8581 fix_srcfile_path='`cygpath -w "$srcfile"`'
8582 enable_shared_with_static_runtimes=yes
8585 darwin* | rhapsody*)
8587 rhapsody* | darwin1.[012])
8588 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8591 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8592 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8594 case ${MACOSX_DEPLOYMENT_TARGET} in
8596 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8599 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8605 archive_cmds_need_lc=no
8607 hardcode_automatic=yes
8608 hardcode_shlibpath_var=unsupported
8609 whole_archive_flag_spec=''
8610 link_all_deplibs=yes
8611 if test "$GCC" = yes ; then
8612 output_verbose_link_cmd='echo'
8613 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8614 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8615 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8616 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}'
8617 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}'
8619 case $cc_basename in
8621 output_verbose_link_cmd='echo'
8622 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8623 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8624 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8625 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}'
8626 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}'
8636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8637 hardcode_libdir_flag_spec='-L$libdir'
8638 hardcode_shlibpath_var=no
8645 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8646 # support. Future versions do this automatically, but an explicit c++rt0.o
8647 # does not break anything, and helps significantly (at the cost of a little
8650 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8651 hardcode_libdir_flag_spec='-R$libdir'
8653 hardcode_shlibpath_var=no
8656 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8660 hardcode_minus_L=yes
8661 hardcode_shlibpath_var=no
8664 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8665 freebsd* | dragonfly*)
8666 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8667 hardcode_libdir_flag_spec='-R$libdir'
8669 hardcode_shlibpath_var=no
8673 if test "$GCC" = yes; then
8674 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'
8676 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'
8678 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8679 hardcode_libdir_separator=:
8682 # hardcode_minus_L: Not really in the search PATH,
8683 # but as the default location of the library.
8684 hardcode_minus_L=yes
8685 export_dynamic_flag_spec='${wl}-E'
8689 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8690 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8692 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8694 if test "$with_gnu_ld" = no; then
8695 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8696 hardcode_libdir_separator=:
8699 export_dynamic_flag_spec='${wl}-E'
8701 # hardcode_minus_L: Not really in the search PATH,
8702 # but as the default location of the library.
8703 hardcode_minus_L=yes
8708 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8711 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8714 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8717 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8723 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8726 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8729 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8733 if test "$with_gnu_ld" = no; then
8734 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8735 hardcode_libdir_separator=:
8739 hardcode_libdir_flag_spec_ld='+b $libdir'
8741 hardcode_shlibpath_var=no
8745 export_dynamic_flag_spec='${wl}-E'
8747 # hardcode_minus_L: Not really in the search PATH,
8748 # but as the default location of the library.
8749 hardcode_minus_L=yes
8755 irix5* | irix6* | nonstopux*)
8756 if test "$GCC" = yes; then
8757 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'
8759 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'
8760 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8763 hardcode_libdir_separator=:
8764 link_all_deplibs=yes
8767 netbsd* | netbsdelf*-gnu)
8768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8771 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8773 hardcode_libdir_flag_spec='-R$libdir'
8775 hardcode_shlibpath_var=no
8779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8782 hardcode_libdir_separator=:
8783 hardcode_shlibpath_var=no
8788 hardcode_shlibpath_var=no
8789 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8790 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8791 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8792 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8793 export_dynamic_flag_spec='${wl}-E'
8796 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8798 hardcode_libdir_flag_spec='-R$libdir'
8801 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8802 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8809 hardcode_libdir_flag_spec='-L$libdir'
8810 hardcode_minus_L=yes
8811 allow_undefined_flag=unsupported
8812 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'
8813 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8817 if test "$GCC" = yes; then
8818 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8819 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'
8821 allow_undefined_flag=' -expect_unresolved \*'
8822 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'
8824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8825 hardcode_libdir_separator=:
8828 osf4* | osf5*) # as osf3* with the addition of -msym flag
8829 if test "$GCC" = yes; then
8830 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8831 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'
8832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8834 allow_undefined_flag=' -expect_unresolved \*'
8835 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'
8836 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8837 $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'
8839 # Both c and cxx compiler support -rpath directly
8840 hardcode_libdir_flag_spec='-rpath $libdir'
8842 hardcode_libdir_separator=:
8846 no_undefined_flag=' -z text'
8847 if test "$GCC" = yes; then
8849 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8850 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8851 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8854 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8855 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8856 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8858 hardcode_libdir_flag_spec='-R$libdir'
8859 hardcode_shlibpath_var=no
8861 solaris2.[0-5] | solaris2.[0-5].*) ;;
8863 # The compiler driver will combine linker options so we
8864 # cannot just pass the convience library names through
8865 # without $wl, iff we do not link with $LD.
8866 # Luckily, gcc supports the same syntax we need for Sun Studio.
8867 # Supported since Solaris 2.6 (maybe 2.5.1?)
8870 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8872 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' ;;
8875 link_all_deplibs=yes
8879 if test "x$host_vendor" = xsequent; then
8880 # Use $CC to link under sequent, because it throws in some extra .o
8881 # files that make .init and .fini sections work.
8882 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8884 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8886 hardcode_libdir_flag_spec='-L$libdir'
8888 hardcode_minus_L=yes
8889 hardcode_shlibpath_var=no
8893 case $host_vendor in
8895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8896 hardcode_direct=yes # is this really true???
8899 ## LD is ld it makes a PLAMLIB
8900 ## CC just makes a GrossModule.
8901 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8902 reload_cmds='$CC -r -o $output$reload_objs'
8906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8907 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8910 runpath_var='LD_RUN_PATH'
8911 hardcode_shlibpath_var=no
8915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8916 hardcode_shlibpath_var=no
8917 export_dynamic_flag_spec='-Bexport'
8921 if test -d /usr/nec; then
8922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8923 hardcode_shlibpath_var=no
8924 runpath_var=LD_RUN_PATH
8925 hardcode_runpath_var=yes
8930 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8931 no_undefined_flag='${wl}-z,text'
8932 archive_cmds_need_lc=no
8933 hardcode_shlibpath_var=no
8934 runpath_var='LD_RUN_PATH'
8936 if test "$GCC" = yes; then
8937 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8938 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8940 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8941 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8945 sysv5* | sco3.2v5* | sco5v6*)
8946 # Note: We can NOT use -z defs as we might desire, because we do not
8947 # link with -lc, and that would cause any symbols used from libc to
8948 # always be unresolved, which means just about no library would
8949 # ever link correctly. If we're not using GNU ld we use -z text
8950 # though, which does catch some bad symbols but isn't as heavy-handed
8952 no_undefined_flag='${wl}-z,text'
8953 allow_undefined_flag='${wl}-z,nodefs'
8954 archive_cmds_need_lc=no
8955 hardcode_shlibpath_var=no
8956 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8957 hardcode_libdir_separator=':'
8958 link_all_deplibs=yes
8959 export_dynamic_flag_spec='${wl}-Bexport'
8960 runpath_var='LD_RUN_PATH'
8962 if test "$GCC" = yes; then
8963 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8964 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8966 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8967 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8973 hardcode_libdir_flag_spec='-L$libdir'
8974 hardcode_shlibpath_var=no
8983 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8984 echo "${ECHO_T}$ld_shlibs" >&6
8985 test "$ld_shlibs" = no && can_build_shared=no
8988 # Do we need to explicitly link libc?
8990 case "x$archive_cmds_need_lc" in
8992 # Assume -lc should be added
8993 archive_cmds_need_lc=yes
8995 if test "$enable_shared" = yes && test "$GCC" = yes; then
8996 case $archive_cmds in
8998 # FIXME: we may have to deal with multi-command sequences.
9001 # Test whether the compiler implicitly links with -lc since on some
9002 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9003 # to ld, don't add -lc before -lgcc.
9004 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9005 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9007 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9010 (eval $ac_compile) 2>&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } 2>conftest.err; then
9016 libobjs=conftest.$ac_objext
9018 wl=$lt_prog_compiler_wl
9019 pic_flag=$lt_prog_compiler_pic
9025 lt_save_allow_undefined_flag=$allow_undefined_flag
9026 allow_undefined_flag=
9027 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9028 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }
9033 archive_cmds_need_lc=no
9035 archive_cmds_need_lc=yes
9037 allow_undefined_flag=$lt_save_allow_undefined_flag
9039 cat conftest.err 1>&5
9042 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9043 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9050 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9051 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9053 libname_spec='lib$name'
9061 shlibpath_overrides_runpath=unknown
9063 dynamic_linker="$host_os ld.so"
9064 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9065 if test "$GCC" = yes; then
9066 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9067 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9068 # if the path contains ";" then we assume it to be the separator
9069 # otherwise default to the standard path separator (i.e. ":") - it is
9070 # assumed that no part of a normal pathname contains ";" but that should
9071 # okay in the real world where ";" in dirpaths is itself problematic.
9072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9077 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9079 need_lib_prefix=unknown
9080 hardcode_into_libs=no
9082 # when you set need_version to no, make sure it does not cause -set_version
9083 # flags to be left without arguments
9084 need_version=unknown
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9090 shlibpath_var=LIBPATH
9092 # AIX 3 has no versioning support, so we append a major version to the name.
9093 soname_spec='${libname}${release}${shared_ext}$major'
9100 hardcode_into_libs=yes
9101 if test "$host_cpu" = ia64; then
9102 # AIX 5 supports IA64
9103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9104 shlibpath_var=LD_LIBRARY_PATH
9106 # With GCC up to 2.95.x, collect2 would create an import file
9107 # for dependence libraries. The import file would start with
9108 # the line `#! .'. This would cause the generated library to
9109 # depend on `.', always an invalid library. This was fixed in
9110 # development snapshots of GCC prior to 3.0.
9112 aix4 | aix4.[01] | aix4.[01].*)
9113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9115 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9123 # soname into executable. Probably we can add versioning support to
9124 # collect2, so additional links can be useful in future.
9125 if test "$aix_use_runtimelinking" = yes; then
9126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9127 # instead of lib<name>.a to let people know that these are not
9128 # typical AIX shared libraries.
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131 # We preserve .a as extension for shared libraries through AIX4.2
9132 # and later when we are not doing run time linking.
9133 library_names_spec='${libname}${release}.a $libname.a'
9134 soname_spec='${libname}${release}${shared_ext}$major'
9136 shlibpath_var=LIBPATH
9141 library_names_spec='$libname.ixlibrary $libname.a'
9142 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9143 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'
9147 library_names_spec='${libname}${shared_ext}'
9148 dynamic_linker="$host_os ld.so"
9149 shlibpath_var=LIBRARY_PATH
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156 soname_spec='${libname}${release}${shared_ext}$major'
9157 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9158 shlibpath_var=LD_LIBRARY_PATH
9159 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9160 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9161 # the default ld.so.conf also contains /usr/contrib/lib and
9162 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9163 # libtool to hard-code these into programs
9166 cygwin* | mingw* | pw32*)
9167 version_type=windows
9172 case $GCC,$host_os in
9173 yes,cygwin* | yes,mingw* | yes,pw32*)
9174 library_names_spec='$libname.dll.a'
9175 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9176 postinstall_cmds='base_file=`basename \${file}`~
9177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9178 dldir=$destdir/`dirname \$dlpath`~
9179 test -d \$dldir || mkdir -p \$dldir~
9180 $install_prog $dir/$dlname \$dldir/$dlname~
9181 chmod a+x \$dldir/$dlname'
9182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9183 dlpath=$dir/\$dldll~
9185 shlibpath_overrides_runpath=yes
9189 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9190 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9191 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9194 # MinGW DLLs use traditional 'lib' prefix
9195 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9196 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9197 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9198 # It is most probably a Windows format PATH printed by
9199 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9200 # path with ; separators, and with drive letters. We can handle the
9201 # drive letters (cygwin fileutils understands them), so leave them,
9202 # especially as we might pass files found there to a mingw objdump,
9203 # which wouldn't understand a cygwinified path. Ahh.
9204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9210 # pw32 DLLs use 'pw' prefix rather than 'lib'
9211 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9217 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9220 dynamic_linker='Win32 ld.exe'
9221 # FIXME: first we should search . and the directory the executable is in
9225 darwin* | rhapsody*)
9226 dynamic_linker="$host_os dyld"
9230 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9231 soname_spec='${libname}${release}${major}$shared_ext'
9232 shlibpath_overrides_runpath=yes
9233 shlibpath_var=DYLD_LIBRARY_PATH
9234 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9235 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9236 if test "$GCC" = yes; then
9237 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"`
9239 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9241 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9249 soname_spec='${libname}${release}${shared_ext}$major'
9250 shlibpath_var=LD_LIBRARY_PATH
9257 freebsd* | dragonfly*)
9258 # DragonFly does not have aout. When/if they implement a new
9259 # versioning mechanism, adjust this.
9260 if test -x /usr/bin/objformat; then
9261 objformat=`/usr/bin/objformat`
9264 freebsd[123]*) objformat=aout ;;
9268 version_type=freebsd-$objformat
9269 case $version_type in
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9280 shlibpath_var=LD_LIBRARY_PATH
9283 shlibpath_overrides_runpath=yes
9285 freebsd3.[01]* | freebsdelf3.[01]*)
9286 shlibpath_overrides_runpath=yes
9287 hardcode_into_libs=yes
9289 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9290 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9291 shlibpath_overrides_runpath=no
9292 hardcode_into_libs=yes
9294 freebsd*) # from 4.6 on
9295 shlibpath_overrides_runpath=yes
9296 hardcode_into_libs=yes
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9306 soname_spec='${libname}${release}${shared_ext}$major'
9307 shlibpath_var=LD_LIBRARY_PATH
9308 hardcode_into_libs=yes
9311 hpux9* | hpux10* | hpux11*)
9312 # Give a soname corresponding to the major version so that dld.sl refuses to
9313 # link against other versions.
9320 hardcode_into_libs=yes
9321 dynamic_linker="$host_os dld.so"
9322 shlibpath_var=LD_LIBRARY_PATH
9323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325 soname_spec='${libname}${release}${shared_ext}$major'
9326 if test "X$HPUX_IA64_MODE" = X32; then
9327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9335 hardcode_into_libs=yes
9336 dynamic_linker="$host_os dld.sl"
9337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340 soname_spec='${libname}${release}${shared_ext}$major'
9341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9346 dynamic_linker="$host_os dld.sl"
9347 shlibpath_var=SHLIB_PATH
9348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350 soname_spec='${libname}${release}${shared_ext}$major'
9353 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9354 postinstall_cmds='chmod 555 $lib'
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9362 soname_spec='${libname}${release}${shared_ext}$major'
9363 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9364 shlibpath_var=LD_LIBRARY_PATH
9365 shlibpath_overrides_runpath=no
9366 hardcode_into_libs=yes
9369 irix5* | irix6* | nonstopux*)
9371 nonstopux*) version_type=nonstopux ;;
9373 if test "$lt_cv_prog_gnu_ld" = yes; then
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9384 irix5* | nonstopux*)
9388 case $LD in # libtool.m4 will add one of these switches to LD
9389 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9390 libsuff= shlibsuff= libmagic=32-bit;;
9391 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9392 libsuff=32 shlibsuff=N32 libmagic=N32;;
9393 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9394 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9395 *) libsuff= shlibsuff= libmagic=never-match;;
9399 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9400 shlibpath_overrides_runpath=no
9401 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9402 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9403 hardcode_into_libs=yes
9406 # No shared lib support for Linux oldld, aout, or coff.
9407 linux*oldld* | linux*aout* | linux*coff*)
9411 # This must be Linux ELF.
9412 linux* | k*bsd*-gnu)
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417 soname_spec='${libname}${release}${shared_ext}$major'
9418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9419 shlibpath_var=LD_LIBRARY_PATH
9420 shlibpath_overrides_runpath=no
9421 # This implies no fast_install, which is unacceptable.
9422 # Some rework will be needed to allow for fast_install
9423 # before this can be enabled.
9424 hardcode_into_libs=yes
9426 # Append ld.so.conf contents to the search path
9427 if test -f /etc/ld.so.conf; then
9428 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' ' '`
9429 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9432 # We used to test for /lib/ld.so.1 and disable shared libraries on
9433 # powerpc, because MkLinux only supported shared libraries with the
9434 # GNU dynamic linker. Since this was broken with cross compilers,
9435 # most powerpc-linux boxes support dynamic linking these days and
9436 # people can always --disable-shared, the test was removed, and we
9437 # assume the GNU/Linux dynamic linker is in use.
9438 dynamic_linker='GNU/Linux ld.so'
9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9446 soname_spec='${libname}${release}${shared_ext}$major'
9447 shlibpath_var=LD_LIBRARY_PATH
9448 shlibpath_overrides_runpath=no
9449 hardcode_into_libs=yes
9450 dynamic_linker='NetBSD ld.elf_so'
9457 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9460 dynamic_linker='NetBSD (a.out) ld.so'
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9463 soname_spec='${libname}${release}${shared_ext}$major'
9464 dynamic_linker='NetBSD ld.elf_so'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 shlibpath_overrides_runpath=yes
9468 hardcode_into_libs=yes
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474 shlibpath_var=LD_LIBRARY_PATH
9475 shlibpath_overrides_runpath=yes
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 shlibpath_var=LD_LIBRARY_PATH
9485 shlibpath_overrides_runpath=yes
9490 sys_lib_dlsearch_path_spec="/usr/lib"
9492 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9494 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9495 *) need_version=no ;;
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9499 shlibpath_var=LD_LIBRARY_PATH
9500 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9502 openbsd2.[89] | openbsd2.[89].*)
9503 shlibpath_overrides_runpath=no
9506 shlibpath_overrides_runpath=yes
9510 shlibpath_overrides_runpath=yes
9515 libname_spec='$name'
9518 library_names_spec='$libname${shared_ext} $libname.a'
9519 dynamic_linker='OS/2 ld.exe'
9520 shlibpath_var=LIBPATH
9523 osf3* | osf4* | osf5*)
9527 soname_spec='${libname}${release}${shared_ext}$major'
9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529 shlibpath_var=LD_LIBRARY_PATH
9530 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9531 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539 soname_spec='${libname}${release}${shared_ext}$major'
9540 shlibpath_var=LD_LIBRARY_PATH
9541 shlibpath_overrides_runpath=yes
9542 hardcode_into_libs=yes
9543 # ldd complains unless libraries are executable
9544 postinstall_cmds='chmod +x $lib'
9549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9550 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9551 shlibpath_var=LD_LIBRARY_PATH
9552 shlibpath_overrides_runpath=yes
9553 if test "$with_gnu_ld" = yes; then
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9562 soname_spec='${libname}${release}${shared_ext}$major'
9563 shlibpath_var=LD_LIBRARY_PATH
9564 case $host_vendor in
9566 shlibpath_overrides_runpath=no
9568 export_dynamic_flag_spec='${wl}-Blargedynsym'
9569 runpath_var=LD_RUN_PATH
9577 shlibpath_overrides_runpath=no
9578 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9584 if test -d /usr/nec ;then
9586 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9587 soname_spec='$libname${shared_ext}.$major'
9588 shlibpath_var=LD_LIBRARY_PATH
9592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9593 version_type=freebsd-elf
9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9597 soname_spec='${libname}${release}${shared_ext}$major'
9598 shlibpath_var=LD_LIBRARY_PATH
9599 hardcode_into_libs=yes
9600 if test "$with_gnu_ld" = yes; then
9601 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9602 shlibpath_overrides_runpath=no
9604 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9605 shlibpath_overrides_runpath=yes
9608 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9612 sys_lib_dlsearch_path_spec='/usr/lib'
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9618 soname_spec='${libname}${release}${shared_ext}$major'
9619 shlibpath_var=LD_LIBRARY_PATH
9626 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9627 echo "${ECHO_T}$dynamic_linker" >&6
9628 test "$dynamic_linker" = no && can_build_shared=no
9630 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9631 if test "$GCC" = yes; then
9632 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9635 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9636 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9638 if test -n "$hardcode_libdir_flag_spec" || \
9639 test -n "$runpath_var" || \
9640 test "X$hardcode_automatic" = "Xyes" ; then
9642 # We can hardcode non-existant directories.
9643 if test "$hardcode_direct" != no &&
9644 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9645 # have to relink, otherwise we might link with an installed library
9646 # when we should be linking with a yet-to-be-installed one
9647 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9648 test "$hardcode_minus_L" != no; then
9649 # Linking always hardcodes the temporary library directory.
9650 hardcode_action=relink
9652 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9653 hardcode_action=immediate
9656 # We cannot hardcode anything, or else we can only hardcode existing
9658 hardcode_action=unsupported
9660 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9661 echo "${ECHO_T}$hardcode_action" >&6
9663 if test "$hardcode_action" = relink; then
9664 # Fast installation is not supported
9665 enable_fast_install=no
9666 elif test "$shlibpath_overrides_runpath" = yes ||
9667 test "$enable_shared" = no; then
9668 # Fast installation is not necessary
9669 enable_fast_install=needless
9674 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9675 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9676 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9677 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9678 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9679 echo "$as_me:$LINENO: result: yes" >&5
9680 echo "${ECHO_T}yes" >&6
9682 # FIXME - insert some real tests, host_os isn't really good enough
9685 if test -n "$STRIP" ; then
9686 striplib="$STRIP -x"
9687 echo "$as_me:$LINENO: result: yes" >&5
9688 echo "${ECHO_T}yes" >&6
9690 echo "$as_me:$LINENO: result: no" >&5
9691 echo "${ECHO_T}no" >&6
9695 echo "$as_me:$LINENO: result: no" >&5
9696 echo "${ECHO_T}no" >&6
9701 if test "x$enable_dlopen" != xyes; then
9702 enable_dlopen=unknown
9703 enable_dlopen_self=unknown
9704 enable_dlopen_self_static=unknown
9711 lt_cv_dlopen="load_add_on"
9713 lt_cv_dlopen_self=yes
9717 lt_cv_dlopen="LoadLibrary"
9722 lt_cv_dlopen="dlopen"
9727 # if libdl is installed we need to link against it
9728 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9729 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9730 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9731 echo $ECHO_N "(cached) $ECHO_C" >&6
9733 ac_check_lib_save_LIBS=$LIBS
9735 cat >conftest.$ac_ext <<_ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9742 /* Override any gcc2 internal prototype to avoid an error. */
9746 /* We use char because int might match the return type of a gcc2
9747 builtin and then its argument prototype would still apply. */
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9759 (eval $ac_link) 2>conftest.er1
9761 grep -v '^ *+' conftest.er1 >conftest.err
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
9766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; } &&
9772 { ac_try='test -s conftest$ac_exeext'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9778 ac_cv_lib_dl_dlopen=yes
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9783 ac_cv_lib_dl_dlopen=no
9785 rm -f conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
9787 LIBS=$ac_check_lib_save_LIBS
9789 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9790 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9791 if test $ac_cv_lib_dl_dlopen = yes; then
9792 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9797 lt_cv_dlopen_self=yes
9804 echo "$as_me:$LINENO: checking for shl_load" >&5
9805 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9806 if test "${ac_cv_func_shl_load+set}" = set; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 cat >conftest.$ac_ext <<_ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9817 #define shl_load innocuous_shl_load
9819 /* System header to define __stub macros and hopefully few prototypes,
9820 which can conflict with char shl_load (); below.
9821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9822 <limits.h> exists even on freestanding compilers. */
9825 # include <limits.h>
9827 # include <assert.h>
9832 /* Override any gcc2 internal prototype to avoid an error. */
9837 /* We use char because int might match the return type of a gcc2
9838 builtin and then its argument prototype would still apply. */
9840 /* The GNU C library defines this for functions which it implements
9841 to always fail with ENOSYS. Some functions are actually named
9842 something starting with __ and the normal name is an alias. */
9843 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9846 char (*f) () = shl_load;
9855 return f != shl_load;
9860 rm -f conftest.$ac_objext conftest$ac_exeext
9861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9862 (eval $ac_link) 2>conftest.er1
9864 grep -v '^ *+' conftest.er1 >conftest.err
9866 cat conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } &&
9869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try='test -s conftest$ac_exeext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_cv_func_shl_load=yes
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9886 ac_cv_func_shl_load=no
9888 rm -f conftest.err conftest.$ac_objext \
9889 conftest$ac_exeext conftest.$ac_ext
9891 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9892 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9893 if test $ac_cv_func_shl_load = yes; then
9894 lt_cv_dlopen="shl_load"
9896 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9897 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9898 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 ac_check_lib_save_LIBS=$LIBS
9903 cat >conftest.$ac_ext <<_ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9910 /* Override any gcc2 internal prototype to avoid an error. */
9914 /* We use char because int might match the return type of a gcc2
9915 builtin and then its argument prototype would still apply. */
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9927 (eval $ac_link) 2>conftest.er1
9929 grep -v '^ *+' conftest.er1 >conftest.err
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
9934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; } &&
9940 { ac_try='test -s conftest$ac_exeext'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9946 ac_cv_lib_dld_shl_load=yes
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 ac_cv_lib_dld_shl_load=no
9953 rm -f conftest.err conftest.$ac_objext \
9954 conftest$ac_exeext conftest.$ac_ext
9955 LIBS=$ac_check_lib_save_LIBS
9957 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9958 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9959 if test $ac_cv_lib_dld_shl_load = yes; then
9960 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9962 echo "$as_me:$LINENO: checking for dlopen" >&5
9963 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9964 if test "${ac_cv_func_dlopen+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 cat >conftest.$ac_ext <<_ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9973 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9975 #define dlopen innocuous_dlopen
9977 /* System header to define __stub macros and hopefully few prototypes,
9978 which can conflict with char dlopen (); below.
9979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9980 <limits.h> exists even on freestanding compilers. */
9983 # include <limits.h>
9985 # include <assert.h>
9990 /* Override any gcc2 internal prototype to avoid an error. */
9995 /* We use char because int might match the return type of a gcc2
9996 builtin and then its argument prototype would still apply. */
9998 /* The GNU C library defines this for functions which it implements
9999 to always fail with ENOSYS. Some functions are actually named
10000 something starting with __ and the normal name is an alias. */
10001 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10004 char (*f) () = dlopen;
10013 return f != dlopen;
10018 rm -f conftest.$ac_objext conftest$ac_exeext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10020 (eval $ac_link) 2>conftest.er1
10022 grep -v '^ *+' conftest.er1 >conftest.err
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } &&
10027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; } &&
10033 { ac_try='test -s conftest$ac_exeext'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; }; then
10039 ac_cv_func_dlopen=yes
10041 echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10044 ac_cv_func_dlopen=no
10046 rm -f conftest.err conftest.$ac_objext \
10047 conftest$ac_exeext conftest.$ac_ext
10049 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10050 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10051 if test $ac_cv_func_dlopen = yes; then
10052 lt_cv_dlopen="dlopen"
10054 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10055 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10056 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 ac_check_lib_save_LIBS=$LIBS
10061 cat >conftest.$ac_ext <<_ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10068 /* Override any gcc2 internal prototype to avoid an error. */
10072 /* We use char because int might match the return type of a gcc2
10073 builtin and then its argument prototype would still apply. */
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10085 (eval $ac_link) 2>conftest.er1
10087 grep -v '^ *+' conftest.er1 >conftest.err
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } &&
10092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; } &&
10098 { ac_try='test -s conftest$ac_exeext'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 ac_cv_lib_dl_dlopen=yes
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10109 ac_cv_lib_dl_dlopen=no
10111 rm -f conftest.err conftest.$ac_objext \
10112 conftest$ac_exeext conftest.$ac_ext
10113 LIBS=$ac_check_lib_save_LIBS
10115 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10116 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10117 if test $ac_cv_lib_dl_dlopen = yes; then
10118 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10120 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10121 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10122 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10123 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 ac_check_lib_save_LIBS=$LIBS
10126 LIBS="-lsvld $LIBS"
10127 cat >conftest.$ac_ext <<_ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10134 /* Override any gcc2 internal prototype to avoid an error. */
10138 /* We use char because int might match the return type of a gcc2
10139 builtin and then its argument prototype would still apply. */
10149 rm -f conftest.$ac_objext conftest$ac_exeext
10150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10151 (eval $ac_link) 2>conftest.er1
10153 grep -v '^ *+' conftest.er1 >conftest.err
10155 cat conftest.err >&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); } &&
10158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; } &&
10164 { ac_try='test -s conftest$ac_exeext'
10165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166 (eval $ac_try) 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; }; then
10170 ac_cv_lib_svld_dlopen=yes
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10175 ac_cv_lib_svld_dlopen=no
10177 rm -f conftest.err conftest.$ac_objext \
10178 conftest$ac_exeext conftest.$ac_ext
10179 LIBS=$ac_check_lib_save_LIBS
10181 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10182 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10183 if test $ac_cv_lib_svld_dlopen = yes; then
10184 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10186 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10187 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10188 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 ac_check_lib_save_LIBS=$LIBS
10193 cat >conftest.$ac_ext <<_ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10200 /* Override any gcc2 internal prototype to avoid an error. */
10204 /* We use char because int might match the return type of a gcc2
10205 builtin and then its argument prototype would still apply. */
10215 rm -f conftest.$ac_objext conftest$ac_exeext
10216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10217 (eval $ac_link) 2>conftest.er1
10219 grep -v '^ *+' conftest.er1 >conftest.err
10221 cat conftest.err >&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); } &&
10224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; } &&
10230 { ac_try='test -s conftest$ac_exeext'
10231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10232 (eval $ac_try) 2>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); }; }; then
10236 ac_cv_lib_dld_dld_link=yes
10238 echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10241 ac_cv_lib_dld_dld_link=no
10243 rm -f conftest.err conftest.$ac_objext \
10244 conftest$ac_exeext conftest.$ac_ext
10245 LIBS=$ac_check_lib_save_LIBS
10247 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10248 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10249 if test $ac_cv_lib_dld_dld_link = yes; then
10250 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10271 if test "x$lt_cv_dlopen" != xno; then
10277 case $lt_cv_dlopen in
10279 save_CPPFLAGS="$CPPFLAGS"
10280 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10282 save_LDFLAGS="$LDFLAGS"
10283 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10286 LIBS="$lt_cv_dlopen_libs $LIBS"
10288 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10289 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10290 if test "${lt_cv_dlopen_self+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 if test "$cross_compiling" = yes; then :
10294 lt_cv_dlopen_self=cross
10296 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10297 lt_status=$lt_dlunknown
10298 cat > conftest.$ac_ext <<EOF
10299 #line 10299 "configure"
10300 #include "confdefs.h"
10309 # define LT_DLGLOBAL RTLD_GLOBAL
10312 # define LT_DLGLOBAL DL_GLOBAL
10314 # define LT_DLGLOBAL 0
10318 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10319 find out it does not work in some platform. */
10320 #ifndef LT_DLLAZY_OR_NOW
10322 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10325 # define LT_DLLAZY_OR_NOW DL_LAZY
10328 # define LT_DLLAZY_OR_NOW RTLD_NOW
10331 # define LT_DLLAZY_OR_NOW DL_NOW
10333 # define LT_DLLAZY_OR_NOW 0
10341 extern "C" void exit (int);
10344 void fnord() { int i=42;}
10347 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10348 int status = $lt_dlunknown;
10352 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10353 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10354 /* dlclose (self); */
10362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10363 (eval $ac_link) 2>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10367 (./conftest; exit; ) >&5 2>/dev/null
10369 case x$lt_status in
10370 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10371 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10372 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10375 # compilation failed
10376 lt_cv_dlopen_self=no
10383 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10384 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10386 if test "x$lt_cv_dlopen_self" = xyes; then
10387 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10388 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10389 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10390 if test "${lt_cv_dlopen_self_static+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 if test "$cross_compiling" = yes; then :
10394 lt_cv_dlopen_self_static=cross
10396 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10397 lt_status=$lt_dlunknown
10398 cat > conftest.$ac_ext <<EOF
10399 #line 10399 "configure"
10400 #include "confdefs.h"
10409 # define LT_DLGLOBAL RTLD_GLOBAL
10412 # define LT_DLGLOBAL DL_GLOBAL
10414 # define LT_DLGLOBAL 0
10418 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10419 find out it does not work in some platform. */
10420 #ifndef LT_DLLAZY_OR_NOW
10422 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10425 # define LT_DLLAZY_OR_NOW DL_LAZY
10428 # define LT_DLLAZY_OR_NOW RTLD_NOW
10431 # define LT_DLLAZY_OR_NOW DL_NOW
10433 # define LT_DLLAZY_OR_NOW 0
10441 extern "C" void exit (int);
10444 void fnord() { int i=42;}
10447 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10448 int status = $lt_dlunknown;
10452 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10453 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10454 /* dlclose (self); */
10462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10463 (eval $ac_link) 2>&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10467 (./conftest; exit; ) >&5 2>/dev/null
10469 case x$lt_status in
10470 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10471 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10472 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10475 # compilation failed
10476 lt_cv_dlopen_self_static=no
10483 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10484 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10487 CPPFLAGS="$save_CPPFLAGS"
10488 LDFLAGS="$save_LDFLAGS"
10493 case $lt_cv_dlopen_self in
10494 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10495 *) enable_dlopen_self=unknown ;;
10498 case $lt_cv_dlopen_self_static in
10499 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10500 *) enable_dlopen_self_static=unknown ;;
10505 # Report which library types will actually be built
10506 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10507 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10508 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10509 echo "${ECHO_T}$can_build_shared" >&6
10511 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10512 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10513 test "$can_build_shared" = "no" && enable_shared=no
10515 # On AIX, shared libraries and static libraries use the same namespace, and
10516 # are all built from PIC.
10519 test "$enable_shared" = yes && enable_static=no
10520 if test -n "$RANLIB"; then
10521 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10522 postinstall_cmds='$RANLIB $lib'
10527 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10528 test "$enable_shared" = yes && enable_static=no
10532 echo "$as_me:$LINENO: result: $enable_shared" >&5
10533 echo "${ECHO_T}$enable_shared" >&6
10535 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10536 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10537 # Make sure either enable_shared or enable_static is yes.
10538 test "$enable_shared" = yes || enable_static=yes
10539 echo "$as_me:$LINENO: result: $enable_static" >&5
10540 echo "${ECHO_T}$enable_static" >&6
10542 # The else clause should only fire when bootstrapping the
10543 # libtool distribution, otherwise you forgot to ship ltmain.sh
10544 # with your package, and you will get complaints that there are
10545 # no rules to generate ltmain.sh.
10546 if test -f "$ltmain"; then
10547 # See if we are running on zsh, and set the options which allow our commands through
10548 # without removal of \ escapes.
10549 if test -n "${ZSH_VERSION+set}" ; then
10550 setopt NO_GLOB_SUBST
10552 # Now quote all the things that may contain metacharacters while being
10553 # careful not to overquote the AC_SUBSTed values. We take copies of the
10554 # variables and quote the copies for generation of the libtool script.
10555 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10557 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10558 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10559 deplibs_check_method reload_flag reload_cmds need_locks \
10560 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10561 lt_cv_sys_global_symbol_to_c_name_address \
10562 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10563 old_postinstall_cmds old_postuninstall_cmds \
10567 lt_prog_compiler_wl \
10568 lt_prog_compiler_pic \
10569 lt_prog_compiler_static \
10570 lt_prog_compiler_no_builtin_flag \
10571 export_dynamic_flag_spec \
10572 thread_safe_flag_spec \
10573 whole_archive_flag_spec \
10574 enable_shared_with_static_runtimes \
10576 old_archive_from_new_cmds \
10581 compiler_lib_search_path \
10583 archive_expsym_cmds \
10585 postuninstall_cmds \
10586 old_archive_from_expsyms_cmds \
10587 allow_undefined_flag \
10588 no_undefined_flag \
10589 export_symbols_cmds \
10590 hardcode_libdir_flag_spec \
10591 hardcode_libdir_flag_spec_ld \
10592 hardcode_libdir_separator \
10593 hardcode_automatic \
10595 module_expsym_cmds \
10596 lt_cv_prog_compiler_c_o \
10598 include_expsyms; do
10601 old_archive_cmds | \
10602 old_archive_from_new_cmds | \
10604 archive_expsym_cmds | \
10606 module_expsym_cmds | \
10607 old_archive_from_expsyms_cmds | \
10608 export_symbols_cmds | \
10609 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10610 postinstall_cmds | postuninstall_cmds | \
10611 old_postinstall_cmds | old_postuninstall_cmds | \
10612 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10613 # Double-quote double-evaled strings.
10614 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10617 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10623 *'\$0 --fallback-echo"')
10624 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10628 cfgfile="${ofile}T"
10629 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10631 { echo "$as_me:$LINENO: creating $ofile" >&5
10632 echo "$as_me: creating $ofile" >&6;}
10634 cat <<__EOF__ >> "$cfgfile"
10637 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10638 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10639 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10641 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10642 # Free Software Foundation, Inc.
10644 # This file is part of GNU Libtool:
10645 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10647 # This program is free software; you can redistribute it and/or modify
10648 # it under the terms of the GNU General Public License as published by
10649 # the Free Software Foundation; either version 2 of the License, or
10650 # (at your option) any later version.
10652 # This program is distributed in the hope that it will be useful, but
10653 # WITHOUT ANY WARRANTY; without even the implied warranty of
10654 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10655 # General Public License for more details.
10657 # You should have received a copy of the GNU General Public License
10658 # along with this program; if not, write to the Free Software
10659 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10661 # As a special exception to the GNU General Public License, if you
10662 # distribute this file as part of a program that contains a
10663 # configuration script generated by Autoconf, you may include it under
10664 # the same distribution terms that you use for the rest of that program.
10666 # A sed program that does not truncate output.
10669 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10670 Xsed="$SED -e 1s/^X//"
10672 # The HP-UX ksh and POSIX shell print the target directory to stdout
10673 # if CDPATH is set.
10674 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10676 # The names of the tagged configurations supported by this script.
10679 # ### BEGIN LIBTOOL CONFIG
10681 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10683 # Shell to use when invoking shell scripts.
10686 # Whether or not to build shared libraries.
10687 build_libtool_libs=$enable_shared
10689 # Whether or not to build static libraries.
10690 build_old_libs=$enable_static
10692 # Whether or not to add -lc for building shared libraries.
10693 build_libtool_need_lc=$archive_cmds_need_lc
10695 # Whether or not to disallow shared libs when runtime libs are static
10696 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10698 # Whether or not to optimize for fast installation.
10699 fast_install=$enable_fast_install
10702 host_alias=$host_alias
10706 # The build system.
10707 build_alias=$build_alias
10711 # An echo program that does not interpret backslashes.
10716 AR_FLAGS=$lt_AR_FLAGS
10721 # LTCC compiler flags.
10722 LTCFLAGS=$lt_LTCFLAGS
10724 # A language-specific compiler.
10727 # Is the compiler the GNU C compiler?
10733 # The linker used to build libraries.
10736 # Whether we need hard or soft links.
10739 # A BSD-compatible nm program.
10742 # A symbol stripping program
10745 # Used to examine libraries when file_magic_cmd begins "file"
10746 MAGIC_CMD=$MAGIC_CMD
10748 # Used on cygwin: DLL creation program.
10751 # Used on cygwin: object dumper.
10754 # Used on cygwin: assembler.
10757 # The name of the directory that contains temporary libtool files.
10760 # How to create reloadable object files.
10761 reload_flag=$lt_reload_flag
10762 reload_cmds=$lt_reload_cmds
10764 # How to pass a linker flag through the compiler.
10765 wl=$lt_lt_prog_compiler_wl
10767 # Object file suffix (normally "o").
10768 objext="$ac_objext"
10770 # Old archive suffix (normally "a").
10773 # Shared library suffix (normally ".so").
10774 shrext_cmds='$shrext_cmds'
10776 # Executable file suffix (normally "").
10779 # Additional compiler flags for building library objects.
10780 pic_flag=$lt_lt_prog_compiler_pic
10783 # What is the maximum length of a command?
10784 max_cmd_len=$lt_cv_sys_max_cmd_len
10786 # Does compiler simultaneously support -c and -o options?
10787 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10789 # Must we lock files when doing compilation?
10790 need_locks=$lt_need_locks
10792 # Do we need the lib prefix for modules?
10793 need_lib_prefix=$need_lib_prefix
10795 # Do we need a version for libraries?
10796 need_version=$need_version
10798 # Whether dlopen is supported.
10799 dlopen_support=$enable_dlopen
10801 # Whether dlopen of programs is supported.
10802 dlopen_self=$enable_dlopen_self
10804 # Whether dlopen of statically linked programs is supported.
10805 dlopen_self_static=$enable_dlopen_self_static
10807 # Compiler flag to prevent dynamic linking.
10808 link_static_flag=$lt_lt_prog_compiler_static
10810 # Compiler flag to turn off builtin functions.
10811 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10813 # Compiler flag to allow reflexive dlopens.
10814 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10816 # Compiler flag to generate shared objects directly from archives.
10817 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10819 # Compiler flag to generate thread-safe objects.
10820 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10822 # Library versioning type.
10823 version_type=$version_type
10825 # Format of library name prefix.
10826 libname_spec=$lt_libname_spec
10828 # List of archive names. First name is the real one, the rest are links.
10829 # The last name is the one that the linker finds with -lNAME.
10830 library_names_spec=$lt_library_names_spec
10832 # The coded name of the library, if different from the real name.
10833 soname_spec=$lt_soname_spec
10835 # Commands used to build and install an old-style archive.
10837 old_archive_cmds=$lt_old_archive_cmds
10838 old_postinstall_cmds=$lt_old_postinstall_cmds
10839 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10841 # Create an old-style archive from a shared archive.
10842 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10844 # Create a temporary old-style archive to link instead of a shared archive.
10845 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10847 # Commands used to build and install a shared archive.
10848 archive_cmds=$lt_archive_cmds
10849 archive_expsym_cmds=$lt_archive_expsym_cmds
10850 postinstall_cmds=$lt_postinstall_cmds
10851 postuninstall_cmds=$lt_postuninstall_cmds
10853 # Commands used to build a loadable module (assumed same as above if empty)
10854 module_cmds=$lt_module_cmds
10855 module_expsym_cmds=$lt_module_expsym_cmds
10857 # Commands to strip libraries.
10858 old_striplib=$lt_old_striplib
10859 striplib=$lt_striplib
10861 # Dependencies to place before the objects being linked to create a
10863 predep_objects=$lt_predep_objects
10865 # Dependencies to place after the objects being linked to create a
10867 postdep_objects=$lt_postdep_objects
10869 # Dependencies to place before the objects being linked to create a
10871 predeps=$lt_predeps
10873 # Dependencies to place after the objects being linked to create a
10875 postdeps=$lt_postdeps
10877 # The library search path used internally by the compiler when linking
10878 # a shared library.
10879 compiler_lib_search_path=$lt_compiler_lib_search_path
10881 # Method to check whether dependent libraries are shared objects.
10882 deplibs_check_method=$lt_deplibs_check_method
10884 # Command to use when deplibs_check_method == file_magic.
10885 file_magic_cmd=$lt_file_magic_cmd
10887 # Flag that allows shared libraries with undefined symbols to be built.
10888 allow_undefined_flag=$lt_allow_undefined_flag
10890 # Flag that forces no undefined symbols.
10891 no_undefined_flag=$lt_no_undefined_flag
10893 # Commands used to finish a libtool library installation in a directory.
10894 finish_cmds=$lt_finish_cmds
10896 # Same as above, but a single script fragment to be evaled but not shown.
10897 finish_eval=$lt_finish_eval
10899 # Take the output of nm and produce a listing of raw symbols and C names.
10900 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10902 # Transform the output of nm in a proper C declaration
10903 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10905 # Transform the output of nm in a C name address pair
10906 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10908 # This is the shared library runtime path variable.
10909 runpath_var=$runpath_var
10911 # This is the shared library path variable.
10912 shlibpath_var=$shlibpath_var
10914 # Is shlibpath searched before the hard-coded library search path?
10915 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10917 # How to hardcode a shared library path into an executable.
10918 hardcode_action=$hardcode_action
10920 # Whether we should hardcode library paths into libraries.
10921 hardcode_into_libs=$hardcode_into_libs
10923 # Flag to hardcode \$libdir into a binary during linking.
10924 # This must work even if \$libdir does not exist.
10925 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10927 # If ld is used when linking, flag to hardcode \$libdir into
10928 # a binary during linking. This must work even if \$libdir does
10930 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10932 # Whether we need a single -rpath flag with a separated argument.
10933 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10935 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10936 # resulting binary.
10937 hardcode_direct=$hardcode_direct
10939 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10940 # resulting binary.
10941 hardcode_minus_L=$hardcode_minus_L
10943 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10944 # the resulting binary.
10945 hardcode_shlibpath_var=$hardcode_shlibpath_var
10947 # Set to yes if building a shared library automatically hardcodes DIR into the library
10948 # and all subsequent libraries and executables linked against it.
10949 hardcode_automatic=$hardcode_automatic
10951 # Variables whose values should be saved in libtool wrapper scripts and
10952 # restored at relink time.
10953 variables_saved_for_relink="$variables_saved_for_relink"
10955 # Whether libtool must link a program against all its dependency libraries.
10956 link_all_deplibs=$link_all_deplibs
10958 # Compile-time system search path for libraries
10959 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10961 # Run-time system search path for libraries
10962 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10964 # Fix the shell variable \$srcfile for the compiler.
10965 fix_srcfile_path="$fix_srcfile_path"
10967 # Set to yes if exported symbols are required.
10968 always_export_symbols=$always_export_symbols
10970 # The commands to list exported symbols.
10971 export_symbols_cmds=$lt_export_symbols_cmds
10973 # The commands to extract the exported symbol list from a shared archive.
10974 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10976 # Symbols that should not be listed in the preloaded symbols.
10977 exclude_expsyms=$lt_exclude_expsyms
10979 # Symbols that must always be exported.
10980 include_expsyms=$lt_include_expsyms
10982 # ### END LIBTOOL CONFIG
10989 cat <<\EOF >> "$cfgfile"
10991 # AIX sometimes has problems with the GCC collect2 program. For some
10992 # reason, if we set the COLLECT_NAMES environment variable, the problems
10993 # vanish in a puff of smoke.
10994 if test "X${COLLECT_NAMES+set}" != Xset; then
10996 export COLLECT_NAMES
11002 # We use sed instead of cat because bash on DJGPP gets confused if
11003 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11004 # text mode, it properly converts lines to CR/LF. This bash problem
11005 # is reportedly fixed, but why not run on old versions too?
11006 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11008 mv -f "$cfgfile" "$ofile" || \
11009 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11013 # If there is no Makefile yet, we rely on a make rule to execute
11014 # `config.status --recheck' to rerun these tests and create the
11015 # libtool script then.
11016 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11017 if test -f "$ltmain_in"; then
11018 test -f Makefile && make "$ltmain"
11024 ac_cpp='$CPP $CPPFLAGS'
11025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11032 # Check whether --with-tags or --without-tags was given.
11033 if test "${with_tags+set}" = set; then
11034 withval="$with_tags"
11035 tagnames="$withval"
11038 if test -f "$ltmain" && test -n "$tagnames"; then
11039 if test ! -f "${ofile}"; then
11040 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11041 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11044 if test -z "$LTCC"; then
11045 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11046 if test -z "$LTCC"; then
11047 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11048 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11050 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11051 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11054 if test -z "$LTCFLAGS"; then
11055 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11058 # Extract list of available tagged configurations in $ofile.
11059 # Note that this assumes the entire list is on one line.
11060 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11063 for tagname in $tagnames; do
11065 # Check whether tagname contains only valid characters
11066 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11068 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11069 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11070 { (exit 1); exit 1; }; }
11074 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11076 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11077 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11078 { (exit 1); exit 1; }; }
11081 # Update the list of available tags.
11082 if test -n "$tagname"; then
11083 echo appending configuration tag \"$tagname\" to $ofile
11087 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11088 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11089 (test "X$CXX" != "Xg++"))) ; then
11091 ac_cpp='$CXXCPP $CPPFLAGS'
11092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11099 archive_cmds_need_lc_CXX=no
11100 allow_undefined_flag_CXX=
11101 always_export_symbols_CXX=no
11102 archive_expsym_cmds_CXX=
11103 export_dynamic_flag_spec_CXX=
11104 hardcode_direct_CXX=no
11105 hardcode_libdir_flag_spec_CXX=
11106 hardcode_libdir_flag_spec_ld_CXX=
11107 hardcode_libdir_separator_CXX=
11108 hardcode_minus_L_CXX=no
11109 hardcode_shlibpath_var_CXX=unsupported
11110 hardcode_automatic_CXX=no
11112 module_expsym_cmds_CXX=
11113 link_all_deplibs_CXX=unknown
11114 old_archive_cmds_CXX=$old_archive_cmds
11115 no_undefined_flag_CXX=
11116 whole_archive_flag_spec_CXX=
11117 enable_shared_with_static_runtimes_CXX=no
11119 # Dependencies to place before and after the object being linked:
11120 predep_objects_CXX=
11121 postdep_objects_CXX=
11124 compiler_lib_search_path_CXX=
11126 # Source file extension for C++ test sources.
11129 # Object file extension for compiled C++ test sources.
11133 # Code to be used in simple compile tests
11134 lt_simple_compile_test_code="int some_variable = 0;\n"
11136 # Code to be used in simple link tests
11137 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11139 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11141 # If no C compiler was specified, use CC.
11144 # If no C compiler flags were specified, use CFLAGS.
11145 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11147 # Allow CC to be a program name with arguments.
11151 # save warnings/boilerplate of simple test code
11152 ac_outfile=conftest.$ac_objext
11153 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11154 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11155 _lt_compiler_boilerplate=`cat conftest.err`
11158 ac_outfile=conftest.$ac_objext
11159 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11160 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11161 _lt_linker_boilerplate=`cat conftest.err`
11165 # Allow CC to be a program name with arguments.
11170 lt_save_with_gnu_ld=$with_gnu_ld
11171 lt_save_path_LD=$lt_cv_path_LD
11172 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11173 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11175 $as_unset lt_cv_prog_gnu_ld
11177 if test -n "${lt_cv_path_LDCXX+set}"; then
11178 lt_cv_path_LD=$lt_cv_path_LDCXX
11180 $as_unset lt_cv_path_LD
11182 test -z "${LDCXX+set}" || LD=$LDCXX
11186 for cc_temp in $compiler""; do
11188 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11189 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11194 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11197 # We don't want -fno-exception wen compiling C++ code, so set the
11198 # no_builtin_flag separately
11199 if test "$GXX" = yes; then
11200 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11202 lt_prog_compiler_no_builtin_flag_CXX=
11205 if test "$GXX" = yes; then
11206 # Set up default GNU C++ configuration
11209 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11210 if test "${with_gnu_ld+set}" = set; then
11211 withval="$with_gnu_ld"
11212 test "$withval" = no || with_gnu_ld=yes
11217 if test "$GCC" = yes; then
11218 # Check if gcc -print-prog-name=ld gives a path.
11219 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11220 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11223 # gcc leaves a trailing carriage return which upsets mingw
11224 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11226 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11229 # Accept absolute paths.
11231 re_direlt='/[^/][^/]*/\.\./'
11232 # Canonicalize the pathname of ld
11233 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11234 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11235 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11237 test -z "$LD" && LD="$ac_prog"
11240 # If it fails, then pretend we aren't using GCC.
11244 # If it is relative, then search for the first ld in PATH.
11245 with_gnu_ld=unknown
11248 elif test "$with_gnu_ld" = yes; then
11249 echo "$as_me:$LINENO: checking for GNU ld" >&5
11250 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11252 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11253 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11255 if test "${lt_cv_path_LD+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 if test -z "$LD"; then
11259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11260 for ac_dir in $PATH; do
11262 test -z "$ac_dir" && ac_dir=.
11263 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11264 lt_cv_path_LD="$ac_dir/$ac_prog"
11265 # Check to see if the program is GNU ld. I'd rather use --version,
11266 # but apparently some variants of GNU ld only accept -v.
11267 # Break only if it was the GNU/non-GNU ld that we prefer.
11268 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11269 *GNU* | *'with BFD'*)
11270 test "$with_gnu_ld" != no && break
11273 test "$with_gnu_ld" != yes && break
11280 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11284 LD="$lt_cv_path_LD"
11285 if test -n "$LD"; then
11286 echo "$as_me:$LINENO: result: $LD" >&5
11287 echo "${ECHO_T}$LD" >&6
11289 echo "$as_me:$LINENO: result: no" >&5
11290 echo "${ECHO_T}no" >&6
11292 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11293 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11294 { (exit 1); exit 1; }; }
11295 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11296 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11297 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11301 case `$LD -v 2>&1 </dev/null` in
11302 *GNU* | *'with BFD'*)
11303 lt_cv_prog_gnu_ld=yes
11306 lt_cv_prog_gnu_ld=no
11310 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11311 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11312 with_gnu_ld=$lt_cv_prog_gnu_ld
11316 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11317 # archiving commands below assume that GNU ld is being used.
11318 if test "$with_gnu_ld" = yes; then
11319 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11320 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'
11322 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11323 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11325 # If archive_cmds runs LD, not CC, wlarc should be empty
11326 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11327 # investigate it a little bit more. (MM)
11330 # ancient GNU ld didn't support --whole-archive et. al.
11331 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11332 grep 'no-whole-archive' > /dev/null; then
11333 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11335 whole_archive_flag_spec_CXX=
11341 # A generic and very simple default shared library creation
11342 # command for GNU C++ for the case where it uses the native
11343 # linker, instead of GNU ld. If possible, this setting should
11344 # overridden to take advantage of the native linker features on
11345 # the platform it is being used on.
11346 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11349 # Commands to make compiler produce verbose output that lists
11350 # what "hidden" libraries, object files and flags are used when
11351 # linking a shared library.
11352 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11360 # PORTME: fill in a description of your system's C++ link characteristics
11361 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11362 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11366 # FIXME: insert proper C++ library support
11370 if test "$host_cpu" = ia64; then
11371 # On IA64, the linker does run time linking by default, so we don't
11372 # have to do anything special.
11373 aix_use_runtimelinking=no
11374 exp_sym_flag='-Bexport'
11377 aix_use_runtimelinking=no
11379 # Test if we are trying to use run time linking or normal
11380 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11381 # need to do runtime linking.
11382 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11383 for ld_flag in $LDFLAGS; do
11386 aix_use_runtimelinking=yes
11394 exp_sym_flag='-bexport'
11395 no_entry_flag='-bnoentry'
11398 # When large executables or shared objects are built, AIX ld can
11399 # have problems creating the table of contents. If linking a library
11400 # or program results in "error TOC overflow" add -mminimal-toc to
11401 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11402 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11404 archive_cmds_CXX=''
11405 hardcode_direct_CXX=yes
11406 hardcode_libdir_separator_CXX=':'
11407 link_all_deplibs_CXX=yes
11409 if test "$GXX" = yes; then
11410 case $host_os in aix4.[012]|aix4.[012].*)
11411 # We only want to do this on AIX 4.2 and lower, the check
11412 # below for broken collect2 doesn't work under 4.3+
11413 collect2name=`${CC} -print-prog-name=collect2`
11414 if test -f "$collect2name" && \
11415 strings "$collect2name" | grep resolve_lib_name >/dev/null
11417 # We have reworked collect2
11418 hardcode_direct_CXX=yes
11420 # We have old collect2
11421 hardcode_direct_CXX=unsupported
11422 # It fails to find uninstalled libraries when the uninstalled
11423 # path is not listed in the libpath. Setting hardcode_minus_L
11424 # to unsupported forces relinking
11425 hardcode_minus_L_CXX=yes
11426 hardcode_libdir_flag_spec_CXX='-L$libdir'
11427 hardcode_libdir_separator_CXX=
11431 shared_flag='-shared'
11432 if test "$aix_use_runtimelinking" = yes; then
11433 shared_flag="$shared_flag "'${wl}-G'
11437 if test "$host_cpu" = ia64; then
11438 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11439 # chokes on -Wl,-G. The following line is correct:
11442 if test "$aix_use_runtimelinking" = yes; then
11443 shared_flag='${wl}-G'
11445 shared_flag='${wl}-bM:SRE'
11450 # It seems that -bexpall does not export symbols beginning with
11451 # underscore (_), so it is better to generate a list of symbols to export.
11452 always_export_symbols_CXX=yes
11453 if test "$aix_use_runtimelinking" = yes; then
11454 # Warning - without using the other runtime loading flags (-brtl),
11455 # -berok will link without error, but may produce a broken library.
11456 allow_undefined_flag_CXX='-berok'
11457 # Determine the default libpath from the value encoded in an empty executable.
11458 cat >conftest.$ac_ext <<_ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11473 rm -f conftest.$ac_objext conftest$ac_exeext
11474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11475 (eval $ac_link) 2>conftest.er1
11477 grep -v '^ *+' conftest.er1 >conftest.err
11479 cat conftest.err >&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); } &&
11482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; } &&
11488 { ac_try='test -s conftest$ac_exeext'
11489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490 (eval $ac_try) 2>&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; }; then
11495 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11497 # Check for a 64-bit object if we didn't find anything.
11498 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; }
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11505 rm -f conftest.err conftest.$ac_objext \
11506 conftest$ac_exeext conftest.$ac_ext
11507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11509 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11511 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11513 if test "$host_cpu" = ia64; then
11514 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11515 allow_undefined_flag_CXX="-z nodefs"
11516 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11518 # Determine the default libpath from the value encoded in an empty executable.
11519 cat >conftest.$ac_ext <<_ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h. */
11534 rm -f conftest.$ac_objext conftest$ac_exeext
11535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11536 (eval $ac_link) 2>conftest.er1
11538 grep -v '^ *+' conftest.er1 >conftest.err
11540 cat conftest.err >&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } &&
11543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; } &&
11549 { ac_try='test -s conftest$ac_exeext'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11556 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11558 # Check for a 64-bit object if we didn't find anything.
11559 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; }
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11566 rm -f conftest.err conftest.$ac_objext \
11567 conftest$ac_exeext conftest.$ac_ext
11568 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11570 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11571 # Warning - without using the other run time loading flags,
11572 # -berok will link without error, but may produce a broken library.
11573 no_undefined_flag_CXX=' ${wl}-bernotok'
11574 allow_undefined_flag_CXX=' ${wl}-berok'
11575 # Exported symbols can be pulled into shared objects from archives
11576 whole_archive_flag_spec_CXX='$convenience'
11577 archive_cmds_need_lc_CXX=yes
11578 # This is similar to how AIX traditionally builds its shared libraries.
11579 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11585 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11586 allow_undefined_flag_CXX=unsupported
11587 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11588 # support --undefined. This deserves some investigation. FIXME
11589 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11596 case $cc_basename in
11598 # FIXME: insert proper C++ library support
11604 cygwin* | mingw* | pw32*)
11605 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11606 # as there is no search path for DLLs.
11607 hardcode_libdir_flag_spec_CXX='-L$libdir'
11608 allow_undefined_flag_CXX=unsupported
11609 always_export_symbols_CXX=no
11610 enable_shared_with_static_runtimes_CXX=yes
11612 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11613 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11614 # If the export-symbols file already is a .def file (1st line
11615 # is EXPORTS), use it as is; otherwise, prepend...
11616 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11617 cp $export_symbols $output_objdir/$soname.def;
11619 echo EXPORTS > $output_objdir/$soname.def;
11620 cat $export_symbols >> $output_objdir/$soname.def;
11622 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11627 darwin* | rhapsody*)
11629 rhapsody* | darwin1.[012])
11630 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11633 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11634 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11636 case ${MACOSX_DEPLOYMENT_TARGET} in
11638 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11641 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11647 archive_cmds_need_lc_CXX=no
11648 hardcode_direct_CXX=no
11649 hardcode_automatic_CXX=yes
11650 hardcode_shlibpath_var_CXX=unsupported
11651 whole_archive_flag_spec_CXX=''
11652 link_all_deplibs_CXX=yes
11654 if test "$GXX" = yes ; then
11655 lt_int_apple_cc_single_mod=no
11656 output_verbose_link_cmd='echo'
11657 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11658 lt_int_apple_cc_single_mod=yes
11660 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11661 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11663 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'
11665 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11666 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11667 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11668 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}'
11670 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}'
11672 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}'
11674 case $cc_basename in
11676 output_verbose_link_cmd='echo'
11677 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'
11678 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11679 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11680 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}'
11681 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}'
11691 case $cc_basename in
11693 # FIXME: insert proper C++ library support
11697 # Green Hills C++ Compiler
11698 # FIXME: insert proper C++ library support
11702 # FIXME: insert proper C++ library support
11708 # C++ shared libraries reported to be fairly broken before switch to ELF
11712 archive_cmds_need_lc_CXX=no
11714 freebsd* | dragonfly*)
11715 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11722 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11723 hardcode_libdir_separator_CXX=:
11724 export_dynamic_flag_spec_CXX='${wl}-E'
11725 hardcode_direct_CXX=yes
11726 hardcode_minus_L_CXX=yes # Not in the search PATH,
11727 # but as the default
11728 # location of the library.
11730 case $cc_basename in
11732 # FIXME: insert proper C++ library support
11736 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'
11737 # Commands to make compiler produce verbose output that lists
11738 # what "hidden" libraries, object files and flags are used when
11739 # linking a shared library.
11741 # There doesn't appear to be a way to prevent this compiler from
11742 # explicitly linking system object files so we need to strip them
11743 # from the output so that they don't get included in the library
11745 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'
11748 if test "$GXX" = yes; then
11749 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'
11751 # FIXME: insert proper C++ library support
11758 if test $with_gnu_ld = no; then
11759 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11760 hardcode_libdir_separator_CXX=:
11764 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11767 export_dynamic_flag_spec_CXX='${wl}-E'
11773 hardcode_direct_CXX=no
11774 hardcode_shlibpath_var_CXX=no
11777 hardcode_direct_CXX=yes
11778 hardcode_minus_L_CXX=yes # Not in the search PATH,
11779 # but as the default
11780 # location of the library.
11784 case $cc_basename in
11786 # FIXME: insert proper C++ library support
11792 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11795 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11798 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11801 # Commands to make compiler produce verbose output that lists
11802 # what "hidden" libraries, object files and flags are used when
11803 # linking a shared library.
11805 # There doesn't appear to be a way to prevent this compiler from
11806 # explicitly linking system object files so we need to strip them
11807 # from the output so that they don't get included in the library
11809 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'
11812 if test "$GXX" = yes; then
11813 if test $with_gnu_ld = no; then
11816 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11819 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11822 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'
11827 # FIXME: insert proper C++ library support
11834 hardcode_direct_CXX=no
11835 hardcode_shlibpath_var_CXX=no
11836 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11837 export_dynamic_flag_spec_CXX='${wl}-E'
11838 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11839 # Instead, shared libraries are loaded at an image base (0x10000000 by
11840 # default) and relocated if they conflict, which is a slow very memory
11841 # consuming and fragmenting process. To avoid this, we pick a random,
11842 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11843 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11844 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11845 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11848 case $cc_basename in
11851 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'
11853 # Archives containing C++ object files must be created using
11854 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11855 # necessary to make sure instantiated templates are included
11857 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11860 if test "$GXX" = yes; then
11861 if test "$with_gnu_ld" = no; then
11862 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'
11864 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'
11867 link_all_deplibs_CXX=yes
11870 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11871 hardcode_libdir_separator_CXX=:
11873 linux* | k*bsd*-gnu)
11874 case $cc_basename in
11876 # Kuck and Associates, Inc. (KAI) C++ Compiler
11878 # KCC will only create a shared library if the output file
11879 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11880 # to its proper name (with version) after linking.
11881 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'
11882 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'
11883 # Commands to make compiler produce verbose output that lists
11884 # what "hidden" libraries, object files and flags are used when
11885 # linking a shared library.
11887 # There doesn't appear to be a way to prevent this compiler from
11888 # explicitly linking system object files so we need to strip them
11889 # from the output so that they don't get included in the library
11891 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'
11893 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11894 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11896 # Archives containing C++ object files must be created using
11897 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11898 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11903 # version 8.0 and above of icpc choke on multiply defined symbols
11904 # if we add $predep_objects and $postdep_objects, however 7.1 and
11905 # earlier do not add the objects themselves.
11906 case `$CC -V 2>&1` in
11908 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11909 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'
11911 *) # Version 8.0 or newer
11914 ia64*) tmp_idyn=' -i_dynamic';;
11916 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11917 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'
11920 archive_cmds_need_lc_CXX=no
11921 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11922 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11923 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11926 # Portland Group C++ compiler
11927 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11928 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'
11930 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11931 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11932 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'
11936 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11937 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'
11939 runpath_var=LD_RUN_PATH
11940 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11941 hardcode_libdir_separator_CXX=:
11943 # Commands to make compiler produce verbose output that lists
11944 # what "hidden" libraries, object files and flags are used when
11945 # linking a shared library.
11947 # There doesn't appear to be a way to prevent this compiler from
11948 # explicitly linking system object files so we need to strip them
11949 # from the output so that they don't get included in the library
11951 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'
11956 # FIXME: insert proper C++ library support
11960 # FIXME: insert proper C++ library support
11964 case $cc_basename in
11966 # FIXME: insert proper C++ library support
11970 # FIXME: insert proper C++ library support
11975 netbsd* | netbsdelf*-gnu)
11976 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11977 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11979 hardcode_libdir_flag_spec_CXX='-R$libdir'
11980 hardcode_direct_CXX=yes
11981 hardcode_shlibpath_var_CXX=no
11983 # Workaround some broken pre-1.5 toolchains
11984 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11987 # C++ shared libraries are fairly broken
11991 hardcode_direct_CXX=yes
11992 hardcode_shlibpath_var_CXX=no
11993 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11994 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11995 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11996 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11997 export_dynamic_flag_spec_CXX='${wl}-E'
11998 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12000 output_verbose_link_cmd='echo'
12003 case $cc_basename in
12005 # Kuck and Associates, Inc. (KAI) C++ Compiler
12007 # KCC will only create a shared library if the output file
12008 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12009 # to its proper name (with version) after linking.
12010 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'
12012 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12013 hardcode_libdir_separator_CXX=:
12015 # Archives containing C++ object files must be created using
12016 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12017 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12021 # Rational C++ 2.4.1
12022 # FIXME: insert proper C++ library support
12026 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12027 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'
12029 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12030 hardcode_libdir_separator_CXX=:
12032 # Commands to make compiler produce verbose output that lists
12033 # what "hidden" libraries, object files and flags are used when
12034 # linking a shared library.
12036 # There doesn't appear to be a way to prevent this compiler from
12037 # explicitly linking system object files so we need to strip them
12038 # from the output so that they don't get included in the library
12040 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'
12043 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12044 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12045 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'
12047 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12048 hardcode_libdir_separator_CXX=:
12050 # Commands to make compiler produce verbose output that lists
12051 # what "hidden" libraries, object files and flags are used when
12052 # linking a shared library.
12053 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12056 # FIXME: insert proper C++ library support
12063 case $cc_basename in
12065 # Kuck and Associates, Inc. (KAI) C++ Compiler
12067 # KCC will only create a shared library if the output file
12068 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12069 # to its proper name (with version) after linking.
12070 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'
12072 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12073 hardcode_libdir_separator_CXX=:
12075 # Archives containing C++ object files must be created using
12076 # the KAI C++ compiler.
12077 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12080 # Rational C++ 2.4.1
12081 # FIXME: insert proper C++ library support
12085 allow_undefined_flag_CXX=' -expect_unresolved \*'
12086 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'
12087 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12088 echo "-hidden">> $lib.exp~
12089 $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~
12092 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12093 hardcode_libdir_separator_CXX=:
12095 # Commands to make compiler produce verbose output that lists
12096 # what "hidden" libraries, object files and flags are used when
12097 # linking a shared library.
12099 # There doesn't appear to be a way to prevent this compiler from
12100 # explicitly linking system object files so we need to strip them
12101 # from the output so that they don't get included in the library
12103 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'
12106 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12107 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12108 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'
12110 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12111 hardcode_libdir_separator_CXX=:
12113 # Commands to make compiler produce verbose output that lists
12114 # what "hidden" libraries, object files and flags are used when
12115 # linking a shared library.
12116 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12119 # FIXME: insert proper C++ library support
12126 # FIXME: insert proper C++ library support
12130 case $cc_basename in
12133 # FIXME: insert proper C++ library support
12138 # FIXME: insert proper C++ library support
12142 # FIXME: insert proper C++ library support
12148 case $cc_basename in
12150 # Sun C++ 4.2, 5.x and Centerline C++
12151 archive_cmds_need_lc_CXX=yes
12152 no_undefined_flag_CXX=' -zdefs'
12153 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12154 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12155 $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'
12157 hardcode_libdir_flag_spec_CXX='-R$libdir'
12158 hardcode_shlibpath_var_CXX=no
12160 solaris2.[0-5] | solaris2.[0-5].*) ;;
12162 # The C++ compiler is used as linker so we must use $wl
12163 # flag to pass the commands to the underlying system
12164 # linker. We must also pass each convience library through
12165 # to the system linker between allextract/defaultextract.
12166 # The C++ compiler will combine linker options so we
12167 # cannot just pass the convience library names through
12169 # Supported since Solaris 2.6 (maybe 2.5.1?)
12170 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'
12173 link_all_deplibs_CXX=yes
12175 output_verbose_link_cmd='echo'
12177 # Archives containing C++ object files must be created using
12178 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12179 # necessary to make sure instantiated templates are included
12181 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12184 # Green Hills C++ Compiler
12185 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12187 # The C++ compiler must be used to create the archive.
12188 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12191 # GNU C++ compiler with Solaris linker
12192 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12193 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12194 if $CC --version | grep -v '^2\.7' > /dev/null; then
12195 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12196 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12197 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12199 # Commands to make compiler produce verbose output that lists
12200 # what "hidden" libraries, object files and flags are used when
12201 # linking a shared library.
12202 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12204 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12206 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12207 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12208 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12210 # Commands to make compiler produce verbose output that lists
12211 # what "hidden" libraries, object files and flags are used when
12212 # linking a shared library.
12213 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12216 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12221 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12222 no_undefined_flag_CXX='${wl}-z,text'
12223 archive_cmds_need_lc_CXX=no
12224 hardcode_shlibpath_var_CXX=no
12225 runpath_var='LD_RUN_PATH'
12227 case $cc_basename in
12229 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12230 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12233 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12234 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12238 sysv5* | sco3.2v5* | sco5v6*)
12239 # Note: We can NOT use -z defs as we might desire, because we do not
12240 # link with -lc, and that would cause any symbols used from libc to
12241 # always be unresolved, which means just about no library would
12242 # ever link correctly. If we're not using GNU ld we use -z text
12243 # though, which does catch some bad symbols but isn't as heavy-handed
12245 # For security reasons, it is highly recommended that you always
12246 # use absolute paths for naming shared libraries, and exclude the
12247 # DT_RUNPATH tag from executables and libraries. But doing so
12248 # requires that you compile everything twice, which is a pain.
12249 # So that behaviour is only enabled if SCOABSPATH is set to a
12250 # non-empty value in the environment. Most likely only useful for
12251 # creating official distributions of packages.
12252 # This is a hack until libtool officially supports absolute path
12253 # names for shared libraries.
12254 no_undefined_flag_CXX='${wl}-z,text'
12255 allow_undefined_flag_CXX='${wl}-z,nodefs'
12256 archive_cmds_need_lc_CXX=no
12257 hardcode_shlibpath_var_CXX=no
12258 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12259 hardcode_libdir_separator_CXX=':'
12260 link_all_deplibs_CXX=yes
12261 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12262 runpath_var='LD_RUN_PATH'
12264 case $cc_basename in
12266 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12267 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12270 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12271 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12276 case $cc_basename in
12278 # NonStop-UX NCC 3.20
12279 # FIXME: insert proper C++ library support
12283 # FIXME: insert proper C++ library support
12289 # FIXME: insert proper C++ library support
12293 # FIXME: insert proper C++ library support
12297 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12298 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12299 test "$ld_shlibs_CXX" = no && can_build_shared=no
12305 cat > conftest.$ac_ext <<EOF
12309 Foo (void) { a = 0; }
12315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12316 (eval $ac_compile) 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; then
12320 # Parse the compiler output and extract the necessary
12321 # objects, libraries and library flags.
12323 # Sentinel used to keep track of whether or not we are before
12324 # the conftest object file.
12325 pre_test_object_deps_done=no
12327 # The `*' in the case matches for architectures that use `case' in
12328 # $output_verbose_cmd can trigger glob expansion during the loop
12329 # eval without this substitution.
12330 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12332 for p in `eval $output_verbose_link_cmd`; do
12336 # Some compilers place space between "-{L,R}" and the path.
12337 # Remove the space.
12338 if test $p = "-L" \
12339 || test $p = "-R"; then
12346 if test "$pre_test_object_deps_done" = no; then
12349 # Internal compiler library paths should come after those
12350 # provided the user. The postdeps already come after the
12351 # user supplied libs so there is no need to process them.
12352 if test -z "$compiler_lib_search_path_CXX"; then
12353 compiler_lib_search_path_CXX="${prev}${p}"
12355 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12358 # The "-l" case would never come before the object being
12359 # linked, so don't bother handling this case.
12362 if test -z "$postdeps_CXX"; then
12363 postdeps_CXX="${prev}${p}"
12365 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12371 # This assumes that the test object file only shows up
12372 # once in the compiler output.
12373 if test "$p" = "conftest.$objext"; then
12374 pre_test_object_deps_done=yes
12378 if test "$pre_test_object_deps_done" = no; then
12379 if test -z "$predep_objects_CXX"; then
12380 predep_objects_CXX="$p"
12382 predep_objects_CXX="$predep_objects_CXX $p"
12385 if test -z "$postdep_objects_CXX"; then
12386 postdep_objects_CXX="$p"
12388 postdep_objects_CXX="$postdep_objects_CXX $p"
12393 *) ;; # Ignore the rest.
12401 echo "libtool.m4: error: problem compiling CXX test program"
12404 $rm -f confest.$objext
12406 # PORTME: override above test on systems where it is broken
12409 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12410 # hack all around it, let's just trust "g++" to DTRT.
12411 predep_objects_CXX=
12412 postdep_objects_CXX=
12417 case $cc_basename in
12419 # Adding this requires a known-good setup of shared libraries for
12420 # Sun compiler versions before 5.6, else PIC objects from an old
12421 # archive will be linked into the output, leading to subtle bugs.
12422 postdeps_CXX='-lCstd -lCrun'
12429 case " $postdeps_CXX " in
12430 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12433 lt_prog_compiler_wl_CXX=
12434 lt_prog_compiler_pic_CXX=
12435 lt_prog_compiler_static_CXX=
12437 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12438 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12440 # C++ specific cases for pic, static, wl, etc.
12441 if test "$GXX" = yes; then
12442 lt_prog_compiler_wl_CXX='-Wl,'
12443 lt_prog_compiler_static_CXX='-static'
12447 # All AIX code is PIC.
12448 if test "$host_cpu" = ia64; then
12449 # AIX 5 now supports IA64 processor
12450 lt_prog_compiler_static_CXX='-Bstatic'
12454 # FIXME: we need at least 68020 code to build shared libraries, but
12455 # adding the `-m68020' flag to GCC prevents building anything better,
12457 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12459 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12460 # PIC is the default for these OSes.
12462 mingw* | os2* | pw32*)
12463 # This hack is so that the source file can tell whether it is being
12464 # built for inclusion in a dll (and should export symbols for example).
12465 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12467 darwin* | rhapsody*)
12468 # PIC is the default on this platform
12469 # Common symbols not allowed in MH_DYLIB files
12470 lt_prog_compiler_pic_CXX='-fno-common'
12473 # DJGPP does not support shared libraries at all
12474 lt_prog_compiler_pic_CXX=
12477 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12478 # Instead, we relocate shared libraries at runtime.
12481 if test -d /usr/nec; then
12482 lt_prog_compiler_pic_CXX=-Kconform_pic
12486 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12487 # not for PA HP-UX.
12492 lt_prog_compiler_pic_CXX='-fPIC'
12497 lt_prog_compiler_pic_CXX='-fPIC'
12503 # All AIX code is PIC.
12504 if test "$host_cpu" = ia64; then
12505 # AIX 5 now supports IA64 processor
12506 lt_prog_compiler_static_CXX='-Bstatic'
12508 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12512 case $cc_basename in
12514 # Green Hills C++ Compiler
12515 # _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"
12520 # PIC is the default on this platform
12521 # Common symbols not allowed in MH_DYLIB files
12522 case $cc_basename in
12524 lt_prog_compiler_pic_CXX='-qnocommon'
12525 lt_prog_compiler_wl_CXX='-Wl,'
12530 case $cc_basename in
12532 lt_prog_compiler_pic_CXX='-KPIC'
12535 # Green Hills C++ Compiler
12536 lt_prog_compiler_pic_CXX='-pic'
12542 freebsd* | dragonfly*)
12543 # FreeBSD uses GNU C++
12545 hpux9* | hpux10* | hpux11*)
12546 case $cc_basename in
12548 lt_prog_compiler_wl_CXX='-Wl,'
12549 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12550 if test "$host_cpu" != ia64; then
12551 lt_prog_compiler_pic_CXX='+Z'
12555 lt_prog_compiler_wl_CXX='-Wl,'
12556 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12562 lt_prog_compiler_pic_CXX='+Z'
12571 # This is c89, which is MS Visual C++ (no shared libs)
12572 # Anyone wants to do a port?
12574 irix5* | irix6* | nonstopux*)
12575 case $cc_basename in
12577 lt_prog_compiler_wl_CXX='-Wl,'
12578 lt_prog_compiler_static_CXX='-non_shared'
12579 # CC pic flag -KPIC is the default.
12585 linux* | k*bsd*-gnu)
12586 case $cc_basename in
12589 lt_prog_compiler_wl_CXX='--backend -Wl,'
12590 lt_prog_compiler_pic_CXX='-fPIC'
12594 lt_prog_compiler_wl_CXX='-Wl,'
12595 lt_prog_compiler_pic_CXX='-KPIC'
12596 lt_prog_compiler_static_CXX='-static'
12599 # Portland Group C++ compiler.
12600 lt_prog_compiler_wl_CXX='-Wl,'
12601 lt_prog_compiler_pic_CXX='-fpic'
12602 lt_prog_compiler_static_CXX='-Bstatic'
12606 # Make sure the PIC flag is empty. It appears that all Alpha
12607 # Linux and Compaq Tru64 Unix objects are PIC.
12608 lt_prog_compiler_pic_CXX=
12609 lt_prog_compiler_static_CXX='-non_shared'
12620 case $cc_basename in
12622 lt_prog_compiler_pic_CXX='-W c,exportall'
12628 netbsd* | netbsdelf*-gnu)
12630 osf3* | osf4* | osf5*)
12631 case $cc_basename in
12633 lt_prog_compiler_wl_CXX='--backend -Wl,'
12636 # Rational C++ 2.4.1
12637 lt_prog_compiler_pic_CXX='-pic'
12640 # Digital/Compaq C++
12641 lt_prog_compiler_wl_CXX='-Wl,'
12642 # Make sure the PIC flag is empty. It appears that all Alpha
12643 # Linux and Compaq Tru64 Unix objects are PIC.
12644 lt_prog_compiler_pic_CXX=
12645 lt_prog_compiler_static_CXX='-non_shared'
12654 case $cc_basename in
12656 # Sun C++ 4.2, 5.x and Centerline C++
12657 lt_prog_compiler_pic_CXX='-KPIC'
12658 lt_prog_compiler_static_CXX='-Bstatic'
12659 lt_prog_compiler_wl_CXX='-Qoption ld '
12662 # Green Hills C++ Compiler
12663 lt_prog_compiler_pic_CXX='-PIC'
12670 case $cc_basename in
12673 lt_prog_compiler_pic_CXX='-pic'
12674 lt_prog_compiler_static_CXX='-Bstatic'
12678 lt_prog_compiler_pic_CXX='-pic'
12685 case $cc_basename in
12687 # NonStop-UX NCC 3.20
12688 lt_prog_compiler_pic_CXX='-KPIC'
12694 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12695 case $cc_basename in
12697 lt_prog_compiler_wl_CXX='-Wl,'
12698 lt_prog_compiler_pic_CXX='-KPIC'
12699 lt_prog_compiler_static_CXX='-Bstatic'
12706 lt_prog_compiler_can_build_shared_CXX=no
12711 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12712 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12715 # Check to make sure the PIC flag actually works.
12717 if test -n "$lt_prog_compiler_pic_CXX"; then
12719 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12721 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12724 lt_prog_compiler_pic_works_CXX=no
12725 ac_outfile=conftest.$ac_objext
12726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12727 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12728 # Insert the option either (1) after the last *FLAGS variable, or
12729 # (2) before a word containing "conftest.", or (3) at the end.
12730 # Note that $ac_compile itself does not contain backslashes and begins
12731 # with a dollar sign (not a hyphen), so the echo should work correctly.
12732 # The option is referenced via a variable to avoid confusing sed.
12733 lt_compile=`echo "$ac_compile" | $SED \
12734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12736 -e 's:$: $lt_compiler_flag:'`
12737 (eval echo "\"\$as_me:12737: $lt_compile\"" >&5)
12738 (eval "$lt_compile" 2>conftest.err)
12740 cat conftest.err >&5
12741 echo "$as_me:12741: \$? = $ac_status" >&5
12742 if (exit $ac_status) && test -s "$ac_outfile"; then
12743 # The compiler can only warn and ignore the option if not recognized
12744 # So say no if there are warnings other than the usual output.
12745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12748 lt_prog_compiler_pic_works_CXX=yes
12754 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12755 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12757 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12758 case $lt_prog_compiler_pic_CXX in
12760 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12763 lt_prog_compiler_pic_CXX=
12764 lt_prog_compiler_can_build_shared_CXX=no
12769 # For platforms which do not support PIC, -DPIC is meaningless:
12771 lt_prog_compiler_pic_CXX=
12774 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12779 # Check to make sure the static flag actually works.
12781 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12782 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12783 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12784 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 lt_prog_compiler_static_works_CXX=no
12788 save_LDFLAGS="$LDFLAGS"
12789 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12790 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12792 # The linker can only warn and ignore the option if not recognized
12793 # So say no if there are warnings
12794 if test -s conftest.err; then
12795 # Append any errors to the config.log.
12796 cat conftest.err 1>&5
12797 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12799 if diff conftest.exp conftest.er2 >/dev/null; then
12800 lt_prog_compiler_static_works_CXX=yes
12803 lt_prog_compiler_static_works_CXX=yes
12807 LDFLAGS="$save_LDFLAGS"
12810 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12811 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12813 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12816 lt_prog_compiler_static_CXX=
12820 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12821 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12822 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12825 lt_cv_prog_compiler_c_o_CXX=no
12826 $rm -r conftest 2>/dev/null
12830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12832 lt_compiler_flag="-o out/conftest2.$ac_objext"
12833 # Insert the option either (1) after the last *FLAGS variable, or
12834 # (2) before a word containing "conftest.", or (3) at the end.
12835 # Note that $ac_compile itself does not contain backslashes and begins
12836 # with a dollar sign (not a hyphen), so the echo should work correctly.
12837 lt_compile=`echo "$ac_compile" | $SED \
12838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12840 -e 's:$: $lt_compiler_flag:'`
12841 (eval echo "\"\$as_me:12841: $lt_compile\"" >&5)
12842 (eval "$lt_compile" 2>out/conftest.err)
12844 cat out/conftest.err >&5
12845 echo "$as_me:12845: \$? = $ac_status" >&5
12846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12848 # The compiler can only warn and ignore the option if not recognized
12849 # So say no if there are warnings
12850 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12853 lt_cv_prog_compiler_c_o_CXX=yes
12858 # SGI C++ compiler will create directory out/ii_files/ for
12859 # template instantiation
12860 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12861 $rm out/* && rmdir out
12867 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12871 hard_links="nottested"
12872 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12873 # do not overwrite the value of need_locks provided by the user
12874 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12880 ln conftest.a conftest.b 2>&5 || hard_links=no
12881 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12882 echo "$as_me:$LINENO: result: $hard_links" >&5
12883 echo "${ECHO_T}$hard_links" >&6
12884 if test "$hard_links" = no; then
12885 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12893 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12896 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12899 # If we're using GNU nm, then we don't want the "-C" option.
12900 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12901 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12902 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'
12904 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'
12908 export_symbols_cmds_CXX="$ltdll_cmds"
12911 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'
12913 linux* | k*bsd*-gnu)
12914 link_all_deplibs_CXX=no
12917 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12921 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12922 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12923 test "$ld_shlibs_CXX" = no && can_build_shared=no
12926 # Do we need to explicitly link libc?
12928 case "x$archive_cmds_need_lc_CXX" in
12930 # Assume -lc should be added
12931 archive_cmds_need_lc_CXX=yes
12933 if test "$enable_shared" = yes && test "$GCC" = yes; then
12934 case $archive_cmds_CXX in
12936 # FIXME: we may have to deal with multi-command sequences.
12939 # Test whether the compiler implicitly links with -lc since on some
12940 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12941 # to ld, don't add -lc before -lgcc.
12942 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12943 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12948 (eval $ac_compile) 2>&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } 2>conftest.err; then
12954 libobjs=conftest.$ac_objext
12956 wl=$lt_prog_compiler_wl_CXX
12957 pic_flag=$lt_prog_compiler_pic_CXX
12963 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12964 allow_undefined_flag_CXX=
12965 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12966 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }
12971 archive_cmds_need_lc_CXX=no
12973 archive_cmds_need_lc_CXX=yes
12975 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12977 cat conftest.err 1>&5
12980 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12981 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12988 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12989 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12990 library_names_spec=
12991 libname_spec='lib$name'
12995 postuninstall_cmds=
12999 shlibpath_overrides_runpath=unknown
13001 dynamic_linker="$host_os ld.so"
13002 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13003 if test "$GCC" = yes; then
13004 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13005 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13006 # if the path contains ";" then we assume it to be the separator
13007 # otherwise default to the standard path separator (i.e. ":") - it is
13008 # assumed that no part of a normal pathname contains ";" but that should
13009 # okay in the real world where ";" in dirpaths is itself problematic.
13010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13015 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13017 need_lib_prefix=unknown
13018 hardcode_into_libs=no
13020 # when you set need_version to no, make sure it does not cause -set_version
13021 # flags to be left without arguments
13022 need_version=unknown
13027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13028 shlibpath_var=LIBPATH
13030 # AIX 3 has no versioning support, so we append a major version to the name.
13031 soname_spec='${libname}${release}${shared_ext}$major'
13038 hardcode_into_libs=yes
13039 if test "$host_cpu" = ia64; then
13040 # AIX 5 supports IA64
13041 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13042 shlibpath_var=LD_LIBRARY_PATH
13044 # With GCC up to 2.95.x, collect2 would create an import file
13045 # for dependence libraries. The import file would start with
13046 # the line `#! .'. This would cause the generated library to
13047 # depend on `.', always an invalid library. This was fixed in
13048 # development snapshots of GCC prior to 3.0.
13050 aix4 | aix4.[01] | aix4.[01].*)
13051 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13053 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13056 can_build_shared=no
13060 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13061 # soname into executable. Probably we can add versioning support to
13062 # collect2, so additional links can be useful in future.
13063 if test "$aix_use_runtimelinking" = yes; then
13064 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13065 # instead of lib<name>.a to let people know that these are not
13066 # typical AIX shared libraries.
13067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13069 # We preserve .a as extension for shared libraries through AIX4.2
13070 # and later when we are not doing run time linking.
13071 library_names_spec='${libname}${release}.a $libname.a'
13072 soname_spec='${libname}${release}${shared_ext}$major'
13074 shlibpath_var=LIBPATH
13079 library_names_spec='$libname.ixlibrary $libname.a'
13080 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13081 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'
13085 library_names_spec='${libname}${shared_ext}'
13086 dynamic_linker="$host_os ld.so"
13087 shlibpath_var=LIBRARY_PATH
13093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13094 soname_spec='${libname}${release}${shared_ext}$major'
13095 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13096 shlibpath_var=LD_LIBRARY_PATH
13097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13099 # the default ld.so.conf also contains /usr/contrib/lib and
13100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13101 # libtool to hard-code these into programs
13104 cygwin* | mingw* | pw32*)
13105 version_type=windows
13110 case $GCC,$host_os in
13111 yes,cygwin* | yes,mingw* | yes,pw32*)
13112 library_names_spec='$libname.dll.a'
13113 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13114 postinstall_cmds='base_file=`basename \${file}`~
13115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13116 dldir=$destdir/`dirname \$dlpath`~
13117 test -d \$dldir || mkdir -p \$dldir~
13118 $install_prog $dir/$dlname \$dldir/$dlname~
13119 chmod a+x \$dldir/$dlname'
13120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13121 dlpath=$dir/\$dldll~
13123 shlibpath_overrides_runpath=yes
13127 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13129 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13132 # MinGW DLLs use traditional 'lib' prefix
13133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13134 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13135 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13136 # It is most probably a Windows format PATH printed by
13137 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13138 # path with ; separators, and with drive letters. We can handle the
13139 # drive letters (cygwin fileutils understands them), so leave them,
13140 # especially as we might pass files found there to a mingw objdump,
13141 # which wouldn't understand a cygwinified path. Ahh.
13142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13148 # pw32 DLLs use 'pw' prefix rather than 'lib'
13149 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13155 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13158 dynamic_linker='Win32 ld.exe'
13159 # FIXME: first we should search . and the directory the executable is in
13163 darwin* | rhapsody*)
13164 dynamic_linker="$host_os dyld"
13165 version_type=darwin
13168 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13169 soname_spec='${libname}${release}${major}$shared_ext'
13170 shlibpath_overrides_runpath=yes
13171 shlibpath_var=DYLD_LIBRARY_PATH
13172 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13173 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13174 if test "$GCC" = yes; then
13175 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"`
13177 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13179 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13187 soname_spec='${libname}${release}${shared_ext}$major'
13188 shlibpath_var=LD_LIBRARY_PATH
13195 freebsd* | dragonfly*)
13196 # DragonFly does not have aout. When/if they implement a new
13197 # versioning mechanism, adjust this.
13198 if test -x /usr/bin/objformat; then
13199 objformat=`/usr/bin/objformat`
13202 freebsd[123]*) objformat=aout ;;
13203 *) objformat=elf ;;
13206 version_type=freebsd-$objformat
13207 case $version_type in
13209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13218 shlibpath_var=LD_LIBRARY_PATH
13221 shlibpath_overrides_runpath=yes
13223 freebsd3.[01]* | freebsdelf3.[01]*)
13224 shlibpath_overrides_runpath=yes
13225 hardcode_into_libs=yes
13227 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13228 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13229 shlibpath_overrides_runpath=no
13230 hardcode_into_libs=yes
13232 freebsd*) # from 4.6 on
13233 shlibpath_overrides_runpath=yes
13234 hardcode_into_libs=yes
13243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13244 soname_spec='${libname}${release}${shared_ext}$major'
13245 shlibpath_var=LD_LIBRARY_PATH
13246 hardcode_into_libs=yes
13249 hpux9* | hpux10* | hpux11*)
13250 # Give a soname corresponding to the major version so that dld.sl refuses to
13251 # link against other versions.
13258 hardcode_into_libs=yes
13259 dynamic_linker="$host_os dld.so"
13260 shlibpath_var=LD_LIBRARY_PATH
13261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13263 soname_spec='${libname}${release}${shared_ext}$major'
13264 if test "X$HPUX_IA64_MODE" = X32; then
13265 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13267 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13273 hardcode_into_libs=yes
13274 dynamic_linker="$host_os dld.sl"
13275 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13278 soname_spec='${libname}${release}${shared_ext}$major'
13279 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13284 dynamic_linker="$host_os dld.sl"
13285 shlibpath_var=SHLIB_PATH
13286 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13288 soname_spec='${libname}${release}${shared_ext}$major'
13291 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13292 postinstall_cmds='chmod 555 $lib'
13299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13300 soname_spec='${libname}${release}${shared_ext}$major'
13301 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13302 shlibpath_var=LD_LIBRARY_PATH
13303 shlibpath_overrides_runpath=no
13304 hardcode_into_libs=yes
13307 irix5* | irix6* | nonstopux*)
13309 nonstopux*) version_type=nonstopux ;;
13311 if test "$lt_cv_prog_gnu_ld" = yes; then
13319 soname_spec='${libname}${release}${shared_ext}$major'
13320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13322 irix5* | nonstopux*)
13323 libsuff= shlibsuff=
13326 case $LD in # libtool.m4 will add one of these switches to LD
13327 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13328 libsuff= shlibsuff= libmagic=32-bit;;
13329 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13330 libsuff=32 shlibsuff=N32 libmagic=N32;;
13331 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13332 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13333 *) libsuff= shlibsuff= libmagic=never-match;;
13337 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13338 shlibpath_overrides_runpath=no
13339 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13340 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13341 hardcode_into_libs=yes
13344 # No shared lib support for Linux oldld, aout, or coff.
13345 linux*oldld* | linux*aout* | linux*coff*)
13349 # This must be Linux ELF.
13350 linux* | k*bsd*-gnu)
13354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13355 soname_spec='${libname}${release}${shared_ext}$major'
13356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13357 shlibpath_var=LD_LIBRARY_PATH
13358 shlibpath_overrides_runpath=no
13359 # This implies no fast_install, which is unacceptable.
13360 # Some rework will be needed to allow for fast_install
13361 # before this can be enabled.
13362 hardcode_into_libs=yes
13364 # Append ld.so.conf contents to the search path
13365 if test -f /etc/ld.so.conf; then
13366 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' ' '`
13367 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13370 # We used to test for /lib/ld.so.1 and disable shared libraries on
13371 # powerpc, because MkLinux only supported shared libraries with the
13372 # GNU dynamic linker. Since this was broken with cross compilers,
13373 # most powerpc-linux boxes support dynamic linking these days and
13374 # people can always --disable-shared, the test was removed, and we
13375 # assume the GNU/Linux dynamic linker is in use.
13376 dynamic_linker='GNU/Linux ld.so'
13383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13384 soname_spec='${libname}${release}${shared_ext}$major'
13385 shlibpath_var=LD_LIBRARY_PATH
13386 shlibpath_overrides_runpath=no
13387 hardcode_into_libs=yes
13388 dynamic_linker='NetBSD ld.elf_so'
13395 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13398 dynamic_linker='NetBSD (a.out) ld.so'
13400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13401 soname_spec='${libname}${release}${shared_ext}$major'
13402 dynamic_linker='NetBSD ld.elf_so'
13404 shlibpath_var=LD_LIBRARY_PATH
13405 shlibpath_overrides_runpath=yes
13406 hardcode_into_libs=yes
13411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13412 shlibpath_var=LD_LIBRARY_PATH
13413 shlibpath_overrides_runpath=yes
13420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13421 soname_spec='${libname}${release}${shared_ext}$major'
13422 shlibpath_var=LD_LIBRARY_PATH
13423 shlibpath_overrides_runpath=yes
13428 sys_lib_dlsearch_path_spec="/usr/lib"
13430 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13432 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13433 *) need_version=no ;;
13435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13437 shlibpath_var=LD_LIBRARY_PATH
13438 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13440 openbsd2.[89] | openbsd2.[89].*)
13441 shlibpath_overrides_runpath=no
13444 shlibpath_overrides_runpath=yes
13448 shlibpath_overrides_runpath=yes
13453 libname_spec='$name'
13456 library_names_spec='$libname${shared_ext} $libname.a'
13457 dynamic_linker='OS/2 ld.exe'
13458 shlibpath_var=LIBPATH
13461 osf3* | osf4* | osf5*)
13465 soname_spec='${libname}${release}${shared_ext}$major'
13466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13469 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477 soname_spec='${libname}${release}${shared_ext}$major'
13478 shlibpath_var=LD_LIBRARY_PATH
13479 shlibpath_overrides_runpath=yes
13480 hardcode_into_libs=yes
13481 # ldd complains unless libraries are executable
13482 postinstall_cmds='chmod +x $lib'
13487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13488 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13489 shlibpath_var=LD_LIBRARY_PATH
13490 shlibpath_overrides_runpath=yes
13491 if test "$with_gnu_ld" = yes; then
13499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13500 soname_spec='${libname}${release}${shared_ext}$major'
13501 shlibpath_var=LD_LIBRARY_PATH
13502 case $host_vendor in
13504 shlibpath_overrides_runpath=no
13506 export_dynamic_flag_spec='${wl}-Blargedynsym'
13507 runpath_var=LD_RUN_PATH
13515 shlibpath_overrides_runpath=no
13516 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13522 if test -d /usr/nec ;then
13524 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13525 soname_spec='$libname${shared_ext}.$major'
13526 shlibpath_var=LD_LIBRARY_PATH
13530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13531 version_type=freebsd-elf
13534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13535 soname_spec='${libname}${release}${shared_ext}$major'
13536 shlibpath_var=LD_LIBRARY_PATH
13537 hardcode_into_libs=yes
13538 if test "$with_gnu_ld" = yes; then
13539 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13540 shlibpath_overrides_runpath=no
13542 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13543 shlibpath_overrides_runpath=yes
13546 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13550 sys_lib_dlsearch_path_spec='/usr/lib'
13555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13556 soname_spec='${libname}${release}${shared_ext}$major'
13557 shlibpath_var=LD_LIBRARY_PATH
13564 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13565 echo "${ECHO_T}$dynamic_linker" >&6
13566 test "$dynamic_linker" = no && can_build_shared=no
13568 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13569 if test "$GCC" = yes; then
13570 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13573 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13574 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13575 hardcode_action_CXX=
13576 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13577 test -n "$runpath_var_CXX" || \
13578 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13580 # We can hardcode non-existant directories.
13581 if test "$hardcode_direct_CXX" != no &&
13582 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13583 # have to relink, otherwise we might link with an installed library
13584 # when we should be linking with a yet-to-be-installed one
13585 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13586 test "$hardcode_minus_L_CXX" != no; then
13587 # Linking always hardcodes the temporary library directory.
13588 hardcode_action_CXX=relink
13590 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13591 hardcode_action_CXX=immediate
13594 # We cannot hardcode anything, or else we can only hardcode existing
13596 hardcode_action_CXX=unsupported
13598 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13599 echo "${ECHO_T}$hardcode_action_CXX" >&6
13601 if test "$hardcode_action_CXX" = relink; then
13602 # Fast installation is not supported
13603 enable_fast_install=no
13604 elif test "$shlibpath_overrides_runpath" = yes ||
13605 test "$enable_shared" = no; then
13606 # Fast installation is not necessary
13607 enable_fast_install=needless
13611 # The else clause should only fire when bootstrapping the
13612 # libtool distribution, otherwise you forgot to ship ltmain.sh
13613 # with your package, and you will get complaints that there are
13614 # no rules to generate ltmain.sh.
13615 if test -f "$ltmain"; then
13616 # See if we are running on zsh, and set the options which allow our commands through
13617 # without removal of \ escapes.
13618 if test -n "${ZSH_VERSION+set}" ; then
13619 setopt NO_GLOB_SUBST
13621 # Now quote all the things that may contain metacharacters while being
13622 # careful not to overquote the AC_SUBSTed values. We take copies of the
13623 # variables and quote the copies for generation of the libtool script.
13624 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13626 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13627 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13628 deplibs_check_method reload_flag reload_cmds need_locks \
13629 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13630 lt_cv_sys_global_symbol_to_c_name_address \
13631 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13632 old_postinstall_cmds old_postuninstall_cmds \
13636 lt_prog_compiler_wl_CXX \
13637 lt_prog_compiler_pic_CXX \
13638 lt_prog_compiler_static_CXX \
13639 lt_prog_compiler_no_builtin_flag_CXX \
13640 export_dynamic_flag_spec_CXX \
13641 thread_safe_flag_spec_CXX \
13642 whole_archive_flag_spec_CXX \
13643 enable_shared_with_static_runtimes_CXX \
13644 old_archive_cmds_CXX \
13645 old_archive_from_new_cmds_CXX \
13646 predep_objects_CXX \
13647 postdep_objects_CXX \
13650 compiler_lib_search_path_CXX \
13652 archive_expsym_cmds_CXX \
13653 postinstall_cmds_CXX \
13654 postuninstall_cmds_CXX \
13655 old_archive_from_expsyms_cmds_CXX \
13656 allow_undefined_flag_CXX \
13657 no_undefined_flag_CXX \
13658 export_symbols_cmds_CXX \
13659 hardcode_libdir_flag_spec_CXX \
13660 hardcode_libdir_flag_spec_ld_CXX \
13661 hardcode_libdir_separator_CXX \
13662 hardcode_automatic_CXX \
13664 module_expsym_cmds_CXX \
13665 lt_cv_prog_compiler_c_o_CXX \
13666 exclude_expsyms_CXX \
13667 include_expsyms_CXX; do
13670 old_archive_cmds_CXX | \
13671 old_archive_from_new_cmds_CXX | \
13672 archive_cmds_CXX | \
13673 archive_expsym_cmds_CXX | \
13674 module_cmds_CXX | \
13675 module_expsym_cmds_CXX | \
13676 old_archive_from_expsyms_cmds_CXX | \
13677 export_symbols_cmds_CXX | \
13678 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13679 postinstall_cmds | postuninstall_cmds | \
13680 old_postinstall_cmds | old_postuninstall_cmds | \
13681 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13682 # Double-quote double-evaled strings.
13683 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13686 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13692 *'\$0 --fallback-echo"')
13693 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13699 cat <<__EOF__ >> "$cfgfile"
13700 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13702 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13704 # Shell to use when invoking shell scripts.
13707 # Whether or not to build shared libraries.
13708 build_libtool_libs=$enable_shared
13710 # Whether or not to build static libraries.
13711 build_old_libs=$enable_static
13713 # Whether or not to add -lc for building shared libraries.
13714 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13716 # Whether or not to disallow shared libs when runtime libs are static
13717 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13719 # Whether or not to optimize for fast installation.
13720 fast_install=$enable_fast_install
13723 host_alias=$host_alias
13727 # The build system.
13728 build_alias=$build_alias
13732 # An echo program that does not interpret backslashes.
13737 AR_FLAGS=$lt_AR_FLAGS
13742 # LTCC compiler flags.
13743 LTCFLAGS=$lt_LTCFLAGS
13745 # A language-specific compiler.
13746 CC=$lt_compiler_CXX
13748 # Is the compiler the GNU C compiler?
13754 # The linker used to build libraries.
13757 # Whether we need hard or soft links.
13760 # A BSD-compatible nm program.
13763 # A symbol stripping program
13766 # Used to examine libraries when file_magic_cmd begins "file"
13767 MAGIC_CMD=$MAGIC_CMD
13769 # Used on cygwin: DLL creation program.
13772 # Used on cygwin: object dumper.
13775 # Used on cygwin: assembler.
13778 # The name of the directory that contains temporary libtool files.
13781 # How to create reloadable object files.
13782 reload_flag=$lt_reload_flag
13783 reload_cmds=$lt_reload_cmds
13785 # How to pass a linker flag through the compiler.
13786 wl=$lt_lt_prog_compiler_wl_CXX
13788 # Object file suffix (normally "o").
13789 objext="$ac_objext"
13791 # Old archive suffix (normally "a").
13794 # Shared library suffix (normally ".so").
13795 shrext_cmds='$shrext_cmds'
13797 # Executable file suffix (normally "").
13800 # Additional compiler flags for building library objects.
13801 pic_flag=$lt_lt_prog_compiler_pic_CXX
13804 # What is the maximum length of a command?
13805 max_cmd_len=$lt_cv_sys_max_cmd_len
13807 # Does compiler simultaneously support -c and -o options?
13808 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13810 # Must we lock files when doing compilation?
13811 need_locks=$lt_need_locks
13813 # Do we need the lib prefix for modules?
13814 need_lib_prefix=$need_lib_prefix
13816 # Do we need a version for libraries?
13817 need_version=$need_version
13819 # Whether dlopen is supported.
13820 dlopen_support=$enable_dlopen
13822 # Whether dlopen of programs is supported.
13823 dlopen_self=$enable_dlopen_self
13825 # Whether dlopen of statically linked programs is supported.
13826 dlopen_self_static=$enable_dlopen_self_static
13828 # Compiler flag to prevent dynamic linking.
13829 link_static_flag=$lt_lt_prog_compiler_static_CXX
13831 # Compiler flag to turn off builtin functions.
13832 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13834 # Compiler flag to allow reflexive dlopens.
13835 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13837 # Compiler flag to generate shared objects directly from archives.
13838 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13840 # Compiler flag to generate thread-safe objects.
13841 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13843 # Library versioning type.
13844 version_type=$version_type
13846 # Format of library name prefix.
13847 libname_spec=$lt_libname_spec
13849 # List of archive names. First name is the real one, the rest are links.
13850 # The last name is the one that the linker finds with -lNAME.
13851 library_names_spec=$lt_library_names_spec
13853 # The coded name of the library, if different from the real name.
13854 soname_spec=$lt_soname_spec
13856 # Commands used to build and install an old-style archive.
13858 old_archive_cmds=$lt_old_archive_cmds_CXX
13859 old_postinstall_cmds=$lt_old_postinstall_cmds
13860 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13862 # Create an old-style archive from a shared archive.
13863 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13865 # Create a temporary old-style archive to link instead of a shared archive.
13866 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13868 # Commands used to build and install a shared archive.
13869 archive_cmds=$lt_archive_cmds_CXX
13870 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13871 postinstall_cmds=$lt_postinstall_cmds
13872 postuninstall_cmds=$lt_postuninstall_cmds
13874 # Commands used to build a loadable module (assumed same as above if empty)
13875 module_cmds=$lt_module_cmds_CXX
13876 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13878 # Commands to strip libraries.
13879 old_striplib=$lt_old_striplib
13880 striplib=$lt_striplib
13882 # Dependencies to place before the objects being linked to create a
13884 predep_objects=$lt_predep_objects_CXX
13886 # Dependencies to place after the objects being linked to create a
13888 postdep_objects=$lt_postdep_objects_CXX
13890 # Dependencies to place before the objects being linked to create a
13892 predeps=$lt_predeps_CXX
13894 # Dependencies to place after the objects being linked to create a
13896 postdeps=$lt_postdeps_CXX
13898 # The library search path used internally by the compiler when linking
13899 # a shared library.
13900 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13902 # Method to check whether dependent libraries are shared objects.
13903 deplibs_check_method=$lt_deplibs_check_method
13905 # Command to use when deplibs_check_method == file_magic.
13906 file_magic_cmd=$lt_file_magic_cmd
13908 # Flag that allows shared libraries with undefined symbols to be built.
13909 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13911 # Flag that forces no undefined symbols.
13912 no_undefined_flag=$lt_no_undefined_flag_CXX
13914 # Commands used to finish a libtool library installation in a directory.
13915 finish_cmds=$lt_finish_cmds
13917 # Same as above, but a single script fragment to be evaled but not shown.
13918 finish_eval=$lt_finish_eval
13920 # Take the output of nm and produce a listing of raw symbols and C names.
13921 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13923 # Transform the output of nm in a proper C declaration
13924 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13926 # Transform the output of nm in a C name address pair
13927 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13929 # This is the shared library runtime path variable.
13930 runpath_var=$runpath_var
13932 # This is the shared library path variable.
13933 shlibpath_var=$shlibpath_var
13935 # Is shlibpath searched before the hard-coded library search path?
13936 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13938 # How to hardcode a shared library path into an executable.
13939 hardcode_action=$hardcode_action_CXX
13941 # Whether we should hardcode library paths into libraries.
13942 hardcode_into_libs=$hardcode_into_libs
13944 # Flag to hardcode \$libdir into a binary during linking.
13945 # This must work even if \$libdir does not exist.
13946 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13948 # If ld is used when linking, flag to hardcode \$libdir into
13949 # a binary during linking. This must work even if \$libdir does
13951 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13953 # Whether we need a single -rpath flag with a separated argument.
13954 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13956 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13957 # resulting binary.
13958 hardcode_direct=$hardcode_direct_CXX
13960 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13961 # resulting binary.
13962 hardcode_minus_L=$hardcode_minus_L_CXX
13964 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13965 # the resulting binary.
13966 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13968 # Set to yes if building a shared library automatically hardcodes DIR into the library
13969 # and all subsequent libraries and executables linked against it.
13970 hardcode_automatic=$hardcode_automatic_CXX
13972 # Variables whose values should be saved in libtool wrapper scripts and
13973 # restored at relink time.
13974 variables_saved_for_relink="$variables_saved_for_relink"
13976 # Whether libtool must link a program against all its dependency libraries.
13977 link_all_deplibs=$link_all_deplibs_CXX
13979 # Compile-time system search path for libraries
13980 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13982 # Run-time system search path for libraries
13983 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13985 # Fix the shell variable \$srcfile for the compiler.
13986 fix_srcfile_path="$fix_srcfile_path_CXX"
13988 # Set to yes if exported symbols are required.
13989 always_export_symbols=$always_export_symbols_CXX
13991 # The commands to list exported symbols.
13992 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13994 # The commands to extract the exported symbol list from a shared archive.
13995 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13997 # Symbols that should not be listed in the preloaded symbols.
13998 exclude_expsyms=$lt_exclude_expsyms_CXX
14000 # Symbols that must always be exported.
14001 include_expsyms=$lt_include_expsyms_CXX
14003 # ### END LIBTOOL TAG CONFIG: $tagname
14009 # If there is no Makefile yet, we rely on a make rule to execute
14010 # `config.status --recheck' to rerun these tests and create the
14011 # libtool script then.
14012 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14013 if test -f "$ltmain_in"; then
14014 test -f Makefile && make "$ltmain"
14020 ac_cpp='$CPP $CPPFLAGS'
14021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14029 with_gnu_ldcxx=$with_gnu_ld
14030 with_gnu_ld=$lt_save_with_gnu_ld
14031 lt_cv_path_LDCXX=$lt_cv_path_LD
14032 lt_cv_path_LD=$lt_save_path_LD
14033 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14034 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14042 if test -n "$F77" && test "X$F77" != "Xno"; then
14045 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14046 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14047 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14050 archive_cmds_need_lc_F77=no
14051 allow_undefined_flag_F77=
14052 always_export_symbols_F77=no
14053 archive_expsym_cmds_F77=
14054 export_dynamic_flag_spec_F77=
14055 hardcode_direct_F77=no
14056 hardcode_libdir_flag_spec_F77=
14057 hardcode_libdir_flag_spec_ld_F77=
14058 hardcode_libdir_separator_F77=
14059 hardcode_minus_L_F77=no
14060 hardcode_automatic_F77=no
14062 module_expsym_cmds_F77=
14063 link_all_deplibs_F77=unknown
14064 old_archive_cmds_F77=$old_archive_cmds
14065 no_undefined_flag_F77=
14066 whole_archive_flag_spec_F77=
14067 enable_shared_with_static_runtimes_F77=no
14069 # Source file extension for f77 test sources.
14072 # Object file extension for compiled f77 test sources.
14076 # Code to be used in simple compile tests
14077 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14079 # Code to be used in simple link tests
14080 lt_simple_link_test_code=" program t\n end\n"
14082 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14084 # If no C compiler was specified, use CC.
14087 # If no C compiler flags were specified, use CFLAGS.
14088 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14090 # Allow CC to be a program name with arguments.
14094 # save warnings/boilerplate of simple test code
14095 ac_outfile=conftest.$ac_objext
14096 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14097 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14098 _lt_compiler_boilerplate=`cat conftest.err`
14101 ac_outfile=conftest.$ac_objext
14102 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14103 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14104 _lt_linker_boilerplate=`cat conftest.err`
14108 # Allow CC to be a program name with arguments.
14113 for cc_temp in $compiler""; do
14115 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14116 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14121 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14124 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14125 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14126 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14127 echo "${ECHO_T}$can_build_shared" >&6
14129 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14130 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14131 test "$can_build_shared" = "no" && enable_shared=no
14133 # On AIX, shared libraries and static libraries use the same namespace, and
14134 # are all built from PIC.
14137 test "$enable_shared" = yes && enable_static=no
14138 if test -n "$RANLIB"; then
14139 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14140 postinstall_cmds='$RANLIB $lib'
14144 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14145 test "$enable_shared" = yes && enable_static=no
14149 echo "$as_me:$LINENO: result: $enable_shared" >&5
14150 echo "${ECHO_T}$enable_shared" >&6
14152 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14153 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14154 # Make sure either enable_shared or enable_static is yes.
14155 test "$enable_shared" = yes || enable_static=yes
14156 echo "$as_me:$LINENO: result: $enable_static" >&5
14157 echo "${ECHO_T}$enable_static" >&6
14162 lt_prog_compiler_wl_F77=
14163 lt_prog_compiler_pic_F77=
14164 lt_prog_compiler_static_F77=
14166 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14167 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14169 if test "$GCC" = yes; then
14170 lt_prog_compiler_wl_F77='-Wl,'
14171 lt_prog_compiler_static_F77='-static'
14175 # All AIX code is PIC.
14176 if test "$host_cpu" = ia64; then
14177 # AIX 5 now supports IA64 processor
14178 lt_prog_compiler_static_F77='-Bstatic'
14183 # FIXME: we need at least 68020 code to build shared libraries, but
14184 # adding the `-m68020' flag to GCC prevents building anything better,
14186 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14189 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14190 # PIC is the default for these OSes.
14193 mingw* | pw32* | os2*)
14194 # This hack is so that the source file can tell whether it is being
14195 # built for inclusion in a dll (and should export symbols for example).
14196 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14199 darwin* | rhapsody*)
14200 # PIC is the default on this platform
14201 # Common symbols not allowed in MH_DYLIB files
14202 lt_prog_compiler_pic_F77='-fno-common'
14206 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14207 # Instead, we relocate shared libraries at runtime.
14211 # Just because we use GCC doesn't mean we suddenly get shared libraries
14212 # on systems that don't support them.
14213 lt_prog_compiler_can_build_shared_F77=no
14218 if test -d /usr/nec; then
14219 lt_prog_compiler_pic_F77=-Kconform_pic
14224 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14225 # not for PA HP-UX.
14231 lt_prog_compiler_pic_F77='-fPIC'
14237 lt_prog_compiler_pic_F77='-fPIC'
14241 # PORTME Check for flag to pass linker flags through the system compiler.
14244 lt_prog_compiler_wl_F77='-Wl,'
14245 if test "$host_cpu" = ia64; then
14246 # AIX 5 now supports IA64 processor
14247 lt_prog_compiler_static_F77='-Bstatic'
14249 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14253 # PIC is the default on this platform
14254 # Common symbols not allowed in MH_DYLIB files
14255 case $cc_basename in
14257 lt_prog_compiler_pic_F77='-qnocommon'
14258 lt_prog_compiler_wl_F77='-Wl,'
14263 mingw* | pw32* | os2*)
14264 # This hack is so that the source file can tell whether it is being
14265 # built for inclusion in a dll (and should export symbols for example).
14266 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14269 hpux9* | hpux10* | hpux11*)
14270 lt_prog_compiler_wl_F77='-Wl,'
14271 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14272 # not for PA HP-UX.
14278 lt_prog_compiler_pic_F77='+Z'
14281 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14282 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14285 irix5* | irix6* | nonstopux*)
14286 lt_prog_compiler_wl_F77='-Wl,'
14287 # PIC (with -KPIC) is the default.
14288 lt_prog_compiler_static_F77='-non_shared'
14292 lt_prog_compiler_pic_F77='-KPIC'
14293 lt_prog_compiler_static_F77='-Bstatic'
14296 linux* | k*bsd*-gnu)
14297 case $cc_basename in
14299 lt_prog_compiler_wl_F77='-Wl,'
14300 lt_prog_compiler_pic_F77='-KPIC'
14301 lt_prog_compiler_static_F77='-static'
14303 pgcc* | pgf77* | pgf90* | pgf95*)
14304 # Portland Group compilers (*not* the Pentium gcc compiler,
14305 # which looks to be a dead project)
14306 lt_prog_compiler_wl_F77='-Wl,'
14307 lt_prog_compiler_pic_F77='-fpic'
14308 lt_prog_compiler_static_F77='-Bstatic'
14311 lt_prog_compiler_wl_F77='-Wl,'
14312 # All Alpha code is PIC.
14313 lt_prog_compiler_static_F77='-non_shared'
14318 osf3* | osf4* | osf5*)
14319 lt_prog_compiler_wl_F77='-Wl,'
14320 # All OSF/1 code is PIC.
14321 lt_prog_compiler_static_F77='-non_shared'
14325 lt_prog_compiler_pic_F77='-KPIC'
14326 lt_prog_compiler_static_F77='-Bstatic'
14327 case $cc_basename in
14328 f77* | f90* | f95*)
14329 lt_prog_compiler_wl_F77='-Qoption ld ';;
14331 lt_prog_compiler_wl_F77='-Wl,';;
14336 lt_prog_compiler_wl_F77='-Qoption ld '
14337 lt_prog_compiler_pic_F77='-PIC'
14338 lt_prog_compiler_static_F77='-Bstatic'
14341 sysv4 | sysv4.2uw2* | sysv4.3*)
14342 lt_prog_compiler_wl_F77='-Wl,'
14343 lt_prog_compiler_pic_F77='-KPIC'
14344 lt_prog_compiler_static_F77='-Bstatic'
14348 if test -d /usr/nec ;then
14349 lt_prog_compiler_pic_F77='-Kconform_pic'
14350 lt_prog_compiler_static_F77='-Bstatic'
14354 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14355 lt_prog_compiler_wl_F77='-Wl,'
14356 lt_prog_compiler_pic_F77='-KPIC'
14357 lt_prog_compiler_static_F77='-Bstatic'
14361 lt_prog_compiler_wl_F77='-Wl,'
14362 lt_prog_compiler_can_build_shared_F77=no
14366 lt_prog_compiler_pic_F77='-pic'
14367 lt_prog_compiler_static_F77='-Bstatic'
14371 lt_prog_compiler_can_build_shared_F77=no
14376 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14377 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14380 # Check to make sure the PIC flag actually works.
14382 if test -n "$lt_prog_compiler_pic_F77"; then
14384 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14385 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14386 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14389 lt_prog_compiler_pic_works_F77=no
14390 ac_outfile=conftest.$ac_objext
14391 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14392 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14393 # Insert the option either (1) after the last *FLAGS variable, or
14394 # (2) before a word containing "conftest.", or (3) at the end.
14395 # Note that $ac_compile itself does not contain backslashes and begins
14396 # with a dollar sign (not a hyphen), so the echo should work correctly.
14397 # The option is referenced via a variable to avoid confusing sed.
14398 lt_compile=`echo "$ac_compile" | $SED \
14399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14401 -e 's:$: $lt_compiler_flag:'`
14402 (eval echo "\"\$as_me:14402: $lt_compile\"" >&5)
14403 (eval "$lt_compile" 2>conftest.err)
14405 cat conftest.err >&5
14406 echo "$as_me:14406: \$? = $ac_status" >&5
14407 if (exit $ac_status) && test -s "$ac_outfile"; then
14408 # The compiler can only warn and ignore the option if not recognized
14409 # So say no if there are warnings other than the usual output.
14410 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14412 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14413 lt_prog_compiler_pic_works_F77=yes
14419 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14420 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14422 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14423 case $lt_prog_compiler_pic_F77 in
14425 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14428 lt_prog_compiler_pic_F77=
14429 lt_prog_compiler_can_build_shared_F77=no
14434 # For platforms which do not support PIC, -DPIC is meaningless:
14436 lt_prog_compiler_pic_F77=
14439 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14444 # Check to make sure the static flag actually works.
14446 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14447 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14448 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14449 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 lt_prog_compiler_static_works_F77=no
14453 save_LDFLAGS="$LDFLAGS"
14454 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14455 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14456 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14457 # The linker can only warn and ignore the option if not recognized
14458 # So say no if there are warnings
14459 if test -s conftest.err; then
14460 # Append any errors to the config.log.
14461 cat conftest.err 1>&5
14462 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14464 if diff conftest.exp conftest.er2 >/dev/null; then
14465 lt_prog_compiler_static_works_F77=yes
14468 lt_prog_compiler_static_works_F77=yes
14472 LDFLAGS="$save_LDFLAGS"
14475 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14476 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14478 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14481 lt_prog_compiler_static_F77=
14485 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14486 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14487 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 lt_cv_prog_compiler_c_o_F77=no
14491 $rm -r conftest 2>/dev/null
14495 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14497 lt_compiler_flag="-o out/conftest2.$ac_objext"
14498 # Insert the option either (1) after the last *FLAGS variable, or
14499 # (2) before a word containing "conftest.", or (3) at the end.
14500 # Note that $ac_compile itself does not contain backslashes and begins
14501 # with a dollar sign (not a hyphen), so the echo should work correctly.
14502 lt_compile=`echo "$ac_compile" | $SED \
14503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14505 -e 's:$: $lt_compiler_flag:'`
14506 (eval echo "\"\$as_me:14506: $lt_compile\"" >&5)
14507 (eval "$lt_compile" 2>out/conftest.err)
14509 cat out/conftest.err >&5
14510 echo "$as_me:14510: \$? = $ac_status" >&5
14511 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14513 # The compiler can only warn and ignore the option if not recognized
14514 # So say no if there are warnings
14515 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14516 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14517 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14518 lt_cv_prog_compiler_c_o_F77=yes
14523 # SGI C++ compiler will create directory out/ii_files/ for
14524 # template instantiation
14525 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14526 $rm out/* && rmdir out
14532 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14533 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14536 hard_links="nottested"
14537 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14538 # do not overwrite the value of need_locks provided by the user
14539 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14540 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14543 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14545 ln conftest.a conftest.b 2>&5 || hard_links=no
14546 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14547 echo "$as_me:$LINENO: result: $hard_links" >&5
14548 echo "${ECHO_T}$hard_links" >&6
14549 if test "$hard_links" = no; then
14550 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14551 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14558 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14559 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14562 allow_undefined_flag_F77=
14563 enable_shared_with_static_runtimes_F77=no
14565 archive_expsym_cmds_F77=
14566 old_archive_From_new_cmds_F77=
14567 old_archive_from_expsyms_cmds_F77=
14568 export_dynamic_flag_spec_F77=
14569 whole_archive_flag_spec_F77=
14570 thread_safe_flag_spec_F77=
14571 hardcode_libdir_flag_spec_F77=
14572 hardcode_libdir_flag_spec_ld_F77=
14573 hardcode_libdir_separator_F77=
14574 hardcode_direct_F77=no
14575 hardcode_minus_L_F77=no
14576 hardcode_shlibpath_var_F77=unsupported
14577 link_all_deplibs_F77=unknown
14578 hardcode_automatic_F77=no
14580 module_expsym_cmds_F77=
14581 always_export_symbols_F77=no
14582 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14583 # include_expsyms should be a list of space-separated symbols to be *always*
14584 # included in the symbol list
14585 include_expsyms_F77=
14586 # exclude_expsyms can be an extended regexp of symbols to exclude
14587 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14588 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14589 # as well as any symbol that contains `d'.
14590 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14591 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14592 # platforms (ab)use it in PIC code, but their linkers get confused if
14593 # the symbol is explicitly referenced. Since portable code cannot
14594 # rely on this symbol name, it's probably fine to never include it in
14595 # preloaded symbol tables.
14596 extract_expsyms_cmds=
14597 # Just being paranoid about ensuring that cc_basename is set.
14598 for cc_temp in $compiler""; do
14600 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14601 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14606 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14609 cygwin* | mingw* | pw32*)
14610 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14611 # When not using gcc, we currently assume that we are using
14612 # Microsoft Visual C++.
14613 if test "$GCC" != yes; then
14618 # we just hope/assume this is gcc and not c89 (= MSVC++)
14627 if test "$with_gnu_ld" = yes; then
14628 # If archive_cmds runs LD, not CC, wlarc should be empty
14631 # Set some defaults for GNU ld with shared library support. These
14632 # are reset later if shared libraries are not supported. Putting them
14633 # here allows them to be overridden if necessary.
14634 runpath_var=LD_RUN_PATH
14635 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14636 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14637 # ancient GNU ld didn't support --whole-archive et. al.
14638 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14639 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14641 whole_archive_flag_spec_F77=
14643 supports_anon_versioning=no
14644 case `$LD -v 2>/dev/null` in
14645 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14646 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14647 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14648 *\ 2.11.*) ;; # other 2.11 versions
14649 *) supports_anon_versioning=yes ;;
14652 # See if GNU ld supports shared libraries.
14654 aix3* | aix4* | aix5*)
14655 # On AIX/PPC, the GNU linker is very broken
14656 if test "$host_cpu" != ia64; then
14660 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14661 *** to be unable to reliably create shared libraries on AIX.
14662 *** Therefore, libtool is disabling shared libraries support. If you
14663 *** really care for shared libraries, you may want to modify your PATH
14664 *** so that a non-GNU linker is found, and then restart.
14671 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)'
14672 hardcode_libdir_flag_spec_F77='-L$libdir'
14673 hardcode_minus_L_F77=yes
14675 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14676 # that the semantics of dynamic libraries on AmigaOS, at least up
14677 # to version 4, is to share data among multiple programs linked
14678 # with the same dynamic library. Since this doesn't match the
14679 # behavior of shared libraries on other platforms, we can't use
14685 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14686 allow_undefined_flag_F77=unsupported
14687 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14688 # support --undefined. This deserves some investigation. FIXME
14689 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14695 cygwin* | mingw* | pw32*)
14696 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14697 # as there is no search path for DLLs.
14698 hardcode_libdir_flag_spec_F77='-L$libdir'
14699 allow_undefined_flag_F77=unsupported
14700 always_export_symbols_F77=no
14701 enable_shared_with_static_runtimes_F77=yes
14702 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14704 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14705 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14706 # If the export-symbols file already is a .def file (1st line
14707 # is EXPORTS), use it as is; otherwise, prepend...
14708 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14709 cp $export_symbols $output_objdir/$soname.def;
14711 echo EXPORTS > $output_objdir/$soname.def;
14712 cat $export_symbols >> $output_objdir/$soname.def;
14714 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14721 hardcode_direct_F77=no
14722 hardcode_shlibpath_var_F77=no
14723 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14724 export_dynamic_flag_spec_F77='${wl}-E'
14725 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14726 # Instead, shared libraries are loaded at an image base (0x10000000 by
14727 # default) and relocated if they conflict, which is a slow very memory
14728 # consuming and fragmenting process. To avoid this, we pick a random,
14729 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14730 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14731 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14732 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14735 linux* | k*bsd*-gnu)
14736 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14738 case $cc_basename,$host_cpu in
14739 pgcc*) # Portland Group C compiler
14740 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'
14741 tmp_addflag=' $pic_flag'
14743 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14744 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'
14745 tmp_addflag=' $pic_flag -Mnomain' ;;
14746 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14747 tmp_addflag=' -i_dynamic' ;;
14748 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14749 tmp_addflag=' -i_dynamic -nofor_main' ;;
14750 ifc* | ifort*) # Intel Fortran compiler
14751 tmp_addflag=' -nofor_main' ;;
14753 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14755 if test $supports_anon_versioning = yes; then
14756 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14757 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14758 $echo "local: *; };" >> $output_objdir/$libname.ver~
14759 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14761 link_all_deplibs_F77=no
14767 netbsd* | netbsdelf*-gnu)
14768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14769 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14772 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14773 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14778 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14782 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14783 *** create shared libraries on Solaris systems. Therefore, libtool
14784 *** is disabling shared libraries support. We urge you to upgrade GNU
14785 *** binutils to release 2.9.1 or newer. Another option is to modify
14786 *** your PATH or compiler configuration so that the native linker is
14787 *** used, and then restart.
14790 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14791 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14792 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14798 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14799 case `$LD -v 2>&1` in
14800 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14804 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14805 *** reliably create shared libraries on SCO systems. Therefore, libtool
14806 *** is disabling shared libraries support. We urge you to upgrade GNU
14807 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14808 *** your PATH or compiler configuration so that the native linker is
14809 *** used, and then restart.
14814 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14815 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14816 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14817 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14826 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14828 hardcode_direct_F77=yes
14829 hardcode_shlibpath_var_F77=no
14833 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14834 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14835 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14842 if test "$ld_shlibs_F77" = no; then
14844 hardcode_libdir_flag_spec_F77=
14845 export_dynamic_flag_spec_F77=
14846 whole_archive_flag_spec_F77=
14849 # PORTME fill in a description of your system's linker (not GNU ld)
14852 allow_undefined_flag_F77=unsupported
14853 always_export_symbols_F77=yes
14854 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'
14855 # Note: this linker hardcodes the directories in LIBPATH if there
14856 # are no directories specified by -L.
14857 hardcode_minus_L_F77=yes
14858 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14859 # Neither direct hardcoding nor static linking is supported with a
14861 hardcode_direct_F77=unsupported
14866 if test "$host_cpu" = ia64; then
14867 # On IA64, the linker does run time linking by default, so we don't
14868 # have to do anything special.
14869 aix_use_runtimelinking=no
14870 exp_sym_flag='-Bexport'
14873 # If we're using GNU nm, then we don't want the "-C" option.
14874 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14875 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14876 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'
14878 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'
14880 aix_use_runtimelinking=no
14882 # Test if we are trying to use run time linking or normal
14883 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14884 # need to do runtime linking.
14885 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14886 for ld_flag in $LDFLAGS; do
14887 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14888 aix_use_runtimelinking=yes
14895 exp_sym_flag='-bexport'
14896 no_entry_flag='-bnoentry'
14899 # When large executables or shared objects are built, AIX ld can
14900 # have problems creating the table of contents. If linking a library
14901 # or program results in "error TOC overflow" add -mminimal-toc to
14902 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14903 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14905 archive_cmds_F77=''
14906 hardcode_direct_F77=yes
14907 hardcode_libdir_separator_F77=':'
14908 link_all_deplibs_F77=yes
14910 if test "$GCC" = yes; then
14911 case $host_os in aix4.[012]|aix4.[012].*)
14912 # We only want to do this on AIX 4.2 and lower, the check
14913 # below for broken collect2 doesn't work under 4.3+
14914 collect2name=`${CC} -print-prog-name=collect2`
14915 if test -f "$collect2name" && \
14916 strings "$collect2name" | grep resolve_lib_name >/dev/null
14918 # We have reworked collect2
14919 hardcode_direct_F77=yes
14921 # We have old collect2
14922 hardcode_direct_F77=unsupported
14923 # It fails to find uninstalled libraries when the uninstalled
14924 # path is not listed in the libpath. Setting hardcode_minus_L
14925 # to unsupported forces relinking
14926 hardcode_minus_L_F77=yes
14927 hardcode_libdir_flag_spec_F77='-L$libdir'
14928 hardcode_libdir_separator_F77=
14932 shared_flag='-shared'
14933 if test "$aix_use_runtimelinking" = yes; then
14934 shared_flag="$shared_flag "'${wl}-G'
14938 if test "$host_cpu" = ia64; then
14939 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14940 # chokes on -Wl,-G. The following line is correct:
14943 if test "$aix_use_runtimelinking" = yes; then
14944 shared_flag='${wl}-G'
14946 shared_flag='${wl}-bM:SRE'
14951 # It seems that -bexpall does not export symbols beginning with
14952 # underscore (_), so it is better to generate a list of symbols to export.
14953 always_export_symbols_F77=yes
14954 if test "$aix_use_runtimelinking" = yes; then
14955 # Warning - without using the other runtime loading flags (-brtl),
14956 # -berok will link without error, but may produce a broken library.
14957 allow_undefined_flag_F77='-berok'
14958 # Determine the default libpath from the value encoded in an empty executable.
14959 cat >conftest.$ac_ext <<_ACEOF
14964 rm -f conftest.$ac_objext conftest$ac_exeext
14965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14966 (eval $ac_link) 2>conftest.er1
14968 grep -v '^ *+' conftest.er1 >conftest.err
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } &&
14973 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; } &&
14979 { ac_try='test -s conftest$ac_exeext'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14986 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14988 # Check for a 64-bit object if we didn't find anything.
14989 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; }
14992 echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14996 rm -f conftest.err conftest.$ac_objext \
14997 conftest$ac_exeext conftest.$ac_ext
14998 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15000 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15001 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15003 if test "$host_cpu" = ia64; then
15004 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15005 allow_undefined_flag_F77="-z nodefs"
15006 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15008 # Determine the default libpath from the value encoded in an empty executable.
15009 cat >conftest.$ac_ext <<_ACEOF
15014 rm -f conftest.$ac_objext conftest$ac_exeext
15015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15016 (eval $ac_link) 2>conftest.er1
15018 grep -v '^ *+' conftest.er1 >conftest.err
15020 cat conftest.err >&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } &&
15023 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025 (eval $ac_try) 2>&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); }; } &&
15029 { ac_try='test -s conftest$ac_exeext'
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; }; then
15036 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15038 # Check for a 64-bit object if we didn't find anything.
15039 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; }
15042 echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15046 rm -f conftest.err conftest.$ac_objext \
15047 conftest$ac_exeext conftest.$ac_ext
15048 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15050 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15051 # Warning - without using the other run time loading flags,
15052 # -berok will link without error, but may produce a broken library.
15053 no_undefined_flag_F77=' ${wl}-bernotok'
15054 allow_undefined_flag_F77=' ${wl}-berok'
15055 # Exported symbols can be pulled into shared objects from archives
15056 whole_archive_flag_spec_F77='$convenience'
15057 archive_cmds_need_lc_F77=yes
15058 # This is similar to how AIX traditionally builds its shared libraries.
15059 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15065 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)'
15066 hardcode_libdir_flag_spec_F77='-L$libdir'
15067 hardcode_minus_L_F77=yes
15068 # see comment about different semantics on the GNU ld section
15073 export_dynamic_flag_spec_F77=-rdynamic
15076 cygwin* | mingw* | pw32*)
15077 # When not using gcc, we currently assume that we are using
15078 # Microsoft Visual C++.
15079 # hardcode_libdir_flag_spec is actually meaningless, as there is
15080 # no search path for DLLs.
15081 hardcode_libdir_flag_spec_F77=' '
15082 allow_undefined_flag_F77=unsupported
15083 # Tell ltmain to make .lib files, not .a files.
15085 # Tell ltmain to make .dll files, not .so files.
15087 # FIXME: Setting linknames here is a bad hack.
15088 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15089 # The linker will automatically build a .lib file if we build a DLL.
15090 old_archive_From_new_cmds_F77='true'
15091 # FIXME: Should let the user specify the lib program.
15092 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15093 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15094 enable_shared_with_static_runtimes_F77=yes
15097 darwin* | rhapsody*)
15099 rhapsody* | darwin1.[012])
15100 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15103 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15104 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15106 case ${MACOSX_DEPLOYMENT_TARGET} in
15108 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15111 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15117 archive_cmds_need_lc_F77=no
15118 hardcode_direct_F77=no
15119 hardcode_automatic_F77=yes
15120 hardcode_shlibpath_var_F77=unsupported
15121 whole_archive_flag_spec_F77=''
15122 link_all_deplibs_F77=yes
15123 if test "$GCC" = yes ; then
15124 output_verbose_link_cmd='echo'
15125 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15126 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15127 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15128 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}'
15129 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}'
15131 case $cc_basename in
15133 output_verbose_link_cmd='echo'
15134 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15135 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15136 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15137 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}'
15138 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}'
15148 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15149 hardcode_libdir_flag_spec_F77='-L$libdir'
15150 hardcode_shlibpath_var_F77=no
15157 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15158 # support. Future versions do this automatically, but an explicit c++rt0.o
15159 # does not break anything, and helps significantly (at the cost of a little
15162 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15163 hardcode_libdir_flag_spec_F77='-R$libdir'
15164 hardcode_direct_F77=yes
15165 hardcode_shlibpath_var_F77=no
15168 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15170 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15171 hardcode_direct_F77=yes
15172 hardcode_minus_L_F77=yes
15173 hardcode_shlibpath_var_F77=no
15176 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15177 freebsd* | dragonfly*)
15178 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15179 hardcode_libdir_flag_spec_F77='-R$libdir'
15180 hardcode_direct_F77=yes
15181 hardcode_shlibpath_var_F77=no
15185 if test "$GCC" = yes; then
15186 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'
15188 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'
15190 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15191 hardcode_libdir_separator_F77=:
15192 hardcode_direct_F77=yes
15194 # hardcode_minus_L: Not really in the search PATH,
15195 # but as the default location of the library.
15196 hardcode_minus_L_F77=yes
15197 export_dynamic_flag_spec_F77='${wl}-E'
15201 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15202 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15204 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15206 if test "$with_gnu_ld" = no; then
15207 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15208 hardcode_libdir_separator_F77=:
15210 hardcode_direct_F77=yes
15211 export_dynamic_flag_spec_F77='${wl}-E'
15213 # hardcode_minus_L: Not really in the search PATH,
15214 # but as the default location of the library.
15215 hardcode_minus_L_F77=yes
15220 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15223 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15226 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15229 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15235 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15238 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15241 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15245 if test "$with_gnu_ld" = no; then
15246 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15247 hardcode_libdir_separator_F77=:
15251 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15252 hardcode_direct_F77=no
15253 hardcode_shlibpath_var_F77=no
15256 hardcode_direct_F77=yes
15257 export_dynamic_flag_spec_F77='${wl}-E'
15259 # hardcode_minus_L: Not really in the search PATH,
15260 # but as the default location of the library.
15261 hardcode_minus_L_F77=yes
15267 irix5* | irix6* | nonstopux*)
15268 if test "$GCC" = yes; then
15269 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'
15271 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'
15272 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15274 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15275 hardcode_libdir_separator_F77=:
15276 link_all_deplibs_F77=yes
15279 netbsd* | netbsdelf*-gnu)
15280 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15281 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15283 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15285 hardcode_libdir_flag_spec_F77='-R$libdir'
15286 hardcode_direct_F77=yes
15287 hardcode_shlibpath_var_F77=no
15291 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15292 hardcode_direct_F77=yes
15293 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15294 hardcode_libdir_separator_F77=:
15295 hardcode_shlibpath_var_F77=no
15299 hardcode_direct_F77=yes
15300 hardcode_shlibpath_var_F77=no
15301 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15302 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15303 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15304 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15305 export_dynamic_flag_spec_F77='${wl}-E'
15308 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15309 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15310 hardcode_libdir_flag_spec_F77='-R$libdir'
15313 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15314 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15321 hardcode_libdir_flag_spec_F77='-L$libdir'
15322 hardcode_minus_L_F77=yes
15323 allow_undefined_flag_F77=unsupported
15324 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'
15325 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15329 if test "$GCC" = yes; then
15330 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15331 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'
15333 allow_undefined_flag_F77=' -expect_unresolved \*'
15334 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'
15336 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15337 hardcode_libdir_separator_F77=:
15340 osf4* | osf5*) # as osf3* with the addition of -msym flag
15341 if test "$GCC" = yes; then
15342 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15343 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'
15344 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15346 allow_undefined_flag_F77=' -expect_unresolved \*'
15347 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'
15348 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~
15349 $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'
15351 # Both c and cxx compiler support -rpath directly
15352 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15354 hardcode_libdir_separator_F77=:
15358 no_undefined_flag_F77=' -z text'
15359 if test "$GCC" = yes; then
15361 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15362 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15363 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15366 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15367 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15368 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15370 hardcode_libdir_flag_spec_F77='-R$libdir'
15371 hardcode_shlibpath_var_F77=no
15373 solaris2.[0-5] | solaris2.[0-5].*) ;;
15375 # The compiler driver will combine linker options so we
15376 # cannot just pass the convience library names through
15377 # without $wl, iff we do not link with $LD.
15378 # Luckily, gcc supports the same syntax we need for Sun Studio.
15379 # Supported since Solaris 2.6 (maybe 2.5.1?)
15382 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15384 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' ;;
15387 link_all_deplibs_F77=yes
15391 if test "x$host_vendor" = xsequent; then
15392 # Use $CC to link under sequent, because it throws in some extra .o
15393 # files that make .init and .fini sections work.
15394 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15396 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15398 hardcode_libdir_flag_spec_F77='-L$libdir'
15399 hardcode_direct_F77=yes
15400 hardcode_minus_L_F77=yes
15401 hardcode_shlibpath_var_F77=no
15405 case $host_vendor in
15407 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15408 hardcode_direct_F77=yes # is this really true???
15411 ## LD is ld it makes a PLAMLIB
15412 ## CC just makes a GrossModule.
15413 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15414 reload_cmds_F77='$CC -r -o $output$reload_objs'
15415 hardcode_direct_F77=no
15418 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15419 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15422 runpath_var='LD_RUN_PATH'
15423 hardcode_shlibpath_var_F77=no
15427 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428 hardcode_shlibpath_var_F77=no
15429 export_dynamic_flag_spec_F77='-Bexport'
15433 if test -d /usr/nec; then
15434 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15435 hardcode_shlibpath_var_F77=no
15436 runpath_var=LD_RUN_PATH
15437 hardcode_runpath_var=yes
15442 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15443 no_undefined_flag_F77='${wl}-z,text'
15444 archive_cmds_need_lc_F77=no
15445 hardcode_shlibpath_var_F77=no
15446 runpath_var='LD_RUN_PATH'
15448 if test "$GCC" = yes; then
15449 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15450 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15452 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15453 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15457 sysv5* | sco3.2v5* | sco5v6*)
15458 # Note: We can NOT use -z defs as we might desire, because we do not
15459 # link with -lc, and that would cause any symbols used from libc to
15460 # always be unresolved, which means just about no library would
15461 # ever link correctly. If we're not using GNU ld we use -z text
15462 # though, which does catch some bad symbols but isn't as heavy-handed
15464 no_undefined_flag_F77='${wl}-z,text'
15465 allow_undefined_flag_F77='${wl}-z,nodefs'
15466 archive_cmds_need_lc_F77=no
15467 hardcode_shlibpath_var_F77=no
15468 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15469 hardcode_libdir_separator_F77=':'
15470 link_all_deplibs_F77=yes
15471 export_dynamic_flag_spec_F77='${wl}-Bexport'
15472 runpath_var='LD_RUN_PATH'
15474 if test "$GCC" = yes; then
15475 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15476 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15478 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15479 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15484 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15485 hardcode_libdir_flag_spec_F77='-L$libdir'
15486 hardcode_shlibpath_var_F77=no
15495 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15496 echo "${ECHO_T}$ld_shlibs_F77" >&6
15497 test "$ld_shlibs_F77" = no && can_build_shared=no
15500 # Do we need to explicitly link libc?
15502 case "x$archive_cmds_need_lc_F77" in
15504 # Assume -lc should be added
15505 archive_cmds_need_lc_F77=yes
15507 if test "$enable_shared" = yes && test "$GCC" = yes; then
15508 case $archive_cmds_F77 in
15510 # FIXME: we may have to deal with multi-command sequences.
15513 # Test whether the compiler implicitly links with -lc since on some
15514 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15515 # to ld, don't add -lc before -lgcc.
15516 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15517 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15522 (eval $ac_compile) 2>&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } 2>conftest.err; then
15528 libobjs=conftest.$ac_objext
15530 wl=$lt_prog_compiler_wl_F77
15531 pic_flag=$lt_prog_compiler_pic_F77
15537 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15538 allow_undefined_flag_F77=
15539 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15540 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }
15545 archive_cmds_need_lc_F77=no
15547 archive_cmds_need_lc_F77=yes
15549 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15551 cat conftest.err 1>&5
15554 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15555 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15562 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15563 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15564 library_names_spec=
15565 libname_spec='lib$name'
15569 postuninstall_cmds=
15573 shlibpath_overrides_runpath=unknown
15575 dynamic_linker="$host_os ld.so"
15576 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15577 if test "$GCC" = yes; then
15578 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15579 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15580 # if the path contains ";" then we assume it to be the separator
15581 # otherwise default to the standard path separator (i.e. ":") - it is
15582 # assumed that no part of a normal pathname contains ";" but that should
15583 # okay in the real world where ";" in dirpaths is itself problematic.
15584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15589 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15591 need_lib_prefix=unknown
15592 hardcode_into_libs=no
15594 # when you set need_version to no, make sure it does not cause -set_version
15595 # flags to be left without arguments
15596 need_version=unknown
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15602 shlibpath_var=LIBPATH
15604 # AIX 3 has no versioning support, so we append a major version to the name.
15605 soname_spec='${libname}${release}${shared_ext}$major'
15612 hardcode_into_libs=yes
15613 if test "$host_cpu" = ia64; then
15614 # AIX 5 supports IA64
15615 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15616 shlibpath_var=LD_LIBRARY_PATH
15618 # With GCC up to 2.95.x, collect2 would create an import file
15619 # for dependence libraries. The import file would start with
15620 # the line `#! .'. This would cause the generated library to
15621 # depend on `.', always an invalid library. This was fixed in
15622 # development snapshots of GCC prior to 3.0.
15624 aix4 | aix4.[01] | aix4.[01].*)
15625 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15627 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15630 can_build_shared=no
15634 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15635 # soname into executable. Probably we can add versioning support to
15636 # collect2, so additional links can be useful in future.
15637 if test "$aix_use_runtimelinking" = yes; then
15638 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15639 # instead of lib<name>.a to let people know that these are not
15640 # typical AIX shared libraries.
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643 # We preserve .a as extension for shared libraries through AIX4.2
15644 # and later when we are not doing run time linking.
15645 library_names_spec='${libname}${release}.a $libname.a'
15646 soname_spec='${libname}${release}${shared_ext}$major'
15648 shlibpath_var=LIBPATH
15653 library_names_spec='$libname.ixlibrary $libname.a'
15654 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15655 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'
15659 library_names_spec='${libname}${shared_ext}'
15660 dynamic_linker="$host_os ld.so"
15661 shlibpath_var=LIBRARY_PATH
15667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668 soname_spec='${libname}${release}${shared_ext}$major'
15669 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15670 shlibpath_var=LD_LIBRARY_PATH
15671 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15672 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15673 # the default ld.so.conf also contains /usr/contrib/lib and
15674 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15675 # libtool to hard-code these into programs
15678 cygwin* | mingw* | pw32*)
15679 version_type=windows
15684 case $GCC,$host_os in
15685 yes,cygwin* | yes,mingw* | yes,pw32*)
15686 library_names_spec='$libname.dll.a'
15687 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15688 postinstall_cmds='base_file=`basename \${file}`~
15689 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15690 dldir=$destdir/`dirname \$dlpath`~
15691 test -d \$dldir || mkdir -p \$dldir~
15692 $install_prog $dir/$dlname \$dldir/$dlname~
15693 chmod a+x \$dldir/$dlname'
15694 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15695 dlpath=$dir/\$dldll~
15697 shlibpath_overrides_runpath=yes
15701 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15702 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15703 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15706 # MinGW DLLs use traditional 'lib' prefix
15707 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15708 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15709 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15710 # It is most probably a Windows format PATH printed by
15711 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15712 # path with ; separators, and with drive letters. We can handle the
15713 # drive letters (cygwin fileutils understands them), so leave them,
15714 # especially as we might pass files found there to a mingw objdump,
15715 # which wouldn't understand a cygwinified path. Ahh.
15716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15722 # pw32 DLLs use 'pw' prefix rather than 'lib'
15723 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15729 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15732 dynamic_linker='Win32 ld.exe'
15733 # FIXME: first we should search . and the directory the executable is in
15737 darwin* | rhapsody*)
15738 dynamic_linker="$host_os dyld"
15739 version_type=darwin
15742 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15743 soname_spec='${libname}${release}${major}$shared_ext'
15744 shlibpath_overrides_runpath=yes
15745 shlibpath_var=DYLD_LIBRARY_PATH
15746 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15747 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15748 if test "$GCC" = yes; then
15749 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"`
15751 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15753 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15761 soname_spec='${libname}${release}${shared_ext}$major'
15762 shlibpath_var=LD_LIBRARY_PATH
15769 freebsd* | dragonfly*)
15770 # DragonFly does not have aout. When/if they implement a new
15771 # versioning mechanism, adjust this.
15772 if test -x /usr/bin/objformat; then
15773 objformat=`/usr/bin/objformat`
15776 freebsd[123]*) objformat=aout ;;
15777 *) objformat=elf ;;
15780 version_type=freebsd-$objformat
15781 case $version_type in
15783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15788 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15792 shlibpath_var=LD_LIBRARY_PATH
15795 shlibpath_overrides_runpath=yes
15797 freebsd3.[01]* | freebsdelf3.[01]*)
15798 shlibpath_overrides_runpath=yes
15799 hardcode_into_libs=yes
15801 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15802 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15803 shlibpath_overrides_runpath=no
15804 hardcode_into_libs=yes
15806 freebsd*) # from 4.6 on
15807 shlibpath_overrides_runpath=yes
15808 hardcode_into_libs=yes
15817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15818 soname_spec='${libname}${release}${shared_ext}$major'
15819 shlibpath_var=LD_LIBRARY_PATH
15820 hardcode_into_libs=yes
15823 hpux9* | hpux10* | hpux11*)
15824 # Give a soname corresponding to the major version so that dld.sl refuses to
15825 # link against other versions.
15832 hardcode_into_libs=yes
15833 dynamic_linker="$host_os dld.so"
15834 shlibpath_var=LD_LIBRARY_PATH
15835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15837 soname_spec='${libname}${release}${shared_ext}$major'
15838 if test "X$HPUX_IA64_MODE" = X32; then
15839 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15841 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15847 hardcode_into_libs=yes
15848 dynamic_linker="$host_os dld.sl"
15849 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15852 soname_spec='${libname}${release}${shared_ext}$major'
15853 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15858 dynamic_linker="$host_os dld.sl"
15859 shlibpath_var=SHLIB_PATH
15860 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15862 soname_spec='${libname}${release}${shared_ext}$major'
15865 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15866 postinstall_cmds='chmod 555 $lib'
15873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15874 soname_spec='${libname}${release}${shared_ext}$major'
15875 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15876 shlibpath_var=LD_LIBRARY_PATH
15877 shlibpath_overrides_runpath=no
15878 hardcode_into_libs=yes
15881 irix5* | irix6* | nonstopux*)
15883 nonstopux*) version_type=nonstopux ;;
15885 if test "$lt_cv_prog_gnu_ld" = yes; then
15893 soname_spec='${libname}${release}${shared_ext}$major'
15894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15896 irix5* | nonstopux*)
15897 libsuff= shlibsuff=
15900 case $LD in # libtool.m4 will add one of these switches to LD
15901 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15902 libsuff= shlibsuff= libmagic=32-bit;;
15903 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15904 libsuff=32 shlibsuff=N32 libmagic=N32;;
15905 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15906 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15907 *) libsuff= shlibsuff= libmagic=never-match;;
15911 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15912 shlibpath_overrides_runpath=no
15913 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15914 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15915 hardcode_into_libs=yes
15918 # No shared lib support for Linux oldld, aout, or coff.
15919 linux*oldld* | linux*aout* | linux*coff*)
15923 # This must be Linux ELF.
15924 linux* | k*bsd*-gnu)
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929 soname_spec='${libname}${release}${shared_ext}$major'
15930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15931 shlibpath_var=LD_LIBRARY_PATH
15932 shlibpath_overrides_runpath=no
15933 # This implies no fast_install, which is unacceptable.
15934 # Some rework will be needed to allow for fast_install
15935 # before this can be enabled.
15936 hardcode_into_libs=yes
15938 # Append ld.so.conf contents to the search path
15939 if test -f /etc/ld.so.conf; then
15940 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' ' '`
15941 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15944 # We used to test for /lib/ld.so.1 and disable shared libraries on
15945 # powerpc, because MkLinux only supported shared libraries with the
15946 # GNU dynamic linker. Since this was broken with cross compilers,
15947 # most powerpc-linux boxes support dynamic linking these days and
15948 # people can always --disable-shared, the test was removed, and we
15949 # assume the GNU/Linux dynamic linker is in use.
15950 dynamic_linker='GNU/Linux ld.so'
15957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15958 soname_spec='${libname}${release}${shared_ext}$major'
15959 shlibpath_var=LD_LIBRARY_PATH
15960 shlibpath_overrides_runpath=no
15961 hardcode_into_libs=yes
15962 dynamic_linker='NetBSD ld.elf_so'
15969 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15972 dynamic_linker='NetBSD (a.out) ld.so'
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15975 soname_spec='${libname}${release}${shared_ext}$major'
15976 dynamic_linker='NetBSD ld.elf_so'
15978 shlibpath_var=LD_LIBRARY_PATH
15979 shlibpath_overrides_runpath=yes
15980 hardcode_into_libs=yes
15985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15986 shlibpath_var=LD_LIBRARY_PATH
15987 shlibpath_overrides_runpath=yes
15994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995 soname_spec='${libname}${release}${shared_ext}$major'
15996 shlibpath_var=LD_LIBRARY_PATH
15997 shlibpath_overrides_runpath=yes
16002 sys_lib_dlsearch_path_spec="/usr/lib"
16004 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16006 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16007 *) need_version=no ;;
16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16014 openbsd2.[89] | openbsd2.[89].*)
16015 shlibpath_overrides_runpath=no
16018 shlibpath_overrides_runpath=yes
16022 shlibpath_overrides_runpath=yes
16027 libname_spec='$name'
16030 library_names_spec='$libname${shared_ext} $libname.a'
16031 dynamic_linker='OS/2 ld.exe'
16032 shlibpath_var=LIBPATH
16035 osf3* | osf4* | osf5*)
16039 soname_spec='${libname}${release}${shared_ext}$major'
16040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16041 shlibpath_var=LD_LIBRARY_PATH
16042 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16043 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051 soname_spec='${libname}${release}${shared_ext}$major'
16052 shlibpath_var=LD_LIBRARY_PATH
16053 shlibpath_overrides_runpath=yes
16054 hardcode_into_libs=yes
16055 # ldd complains unless libraries are executable
16056 postinstall_cmds='chmod +x $lib'
16061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16062 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16063 shlibpath_var=LD_LIBRARY_PATH
16064 shlibpath_overrides_runpath=yes
16065 if test "$with_gnu_ld" = yes; then
16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16074 soname_spec='${libname}${release}${shared_ext}$major'
16075 shlibpath_var=LD_LIBRARY_PATH
16076 case $host_vendor in
16078 shlibpath_overrides_runpath=no
16080 export_dynamic_flag_spec='${wl}-Blargedynsym'
16081 runpath_var=LD_RUN_PATH
16089 shlibpath_overrides_runpath=no
16090 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16096 if test -d /usr/nec ;then
16098 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16099 soname_spec='$libname${shared_ext}.$major'
16100 shlibpath_var=LD_LIBRARY_PATH
16104 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16105 version_type=freebsd-elf
16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16109 soname_spec='${libname}${release}${shared_ext}$major'
16110 shlibpath_var=LD_LIBRARY_PATH
16111 hardcode_into_libs=yes
16112 if test "$with_gnu_ld" = yes; then
16113 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16114 shlibpath_overrides_runpath=no
16116 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16117 shlibpath_overrides_runpath=yes
16120 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16124 sys_lib_dlsearch_path_spec='/usr/lib'
16129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16130 soname_spec='${libname}${release}${shared_ext}$major'
16131 shlibpath_var=LD_LIBRARY_PATH
16138 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16139 echo "${ECHO_T}$dynamic_linker" >&6
16140 test "$dynamic_linker" = no && can_build_shared=no
16142 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16143 if test "$GCC" = yes; then
16144 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16147 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16148 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16149 hardcode_action_F77=
16150 if test -n "$hardcode_libdir_flag_spec_F77" || \
16151 test -n "$runpath_var_F77" || \
16152 test "X$hardcode_automatic_F77" = "Xyes" ; then
16154 # We can hardcode non-existant directories.
16155 if test "$hardcode_direct_F77" != no &&
16156 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16157 # have to relink, otherwise we might link with an installed library
16158 # when we should be linking with a yet-to-be-installed one
16159 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16160 test "$hardcode_minus_L_F77" != no; then
16161 # Linking always hardcodes the temporary library directory.
16162 hardcode_action_F77=relink
16164 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16165 hardcode_action_F77=immediate
16168 # We cannot hardcode anything, or else we can only hardcode existing
16170 hardcode_action_F77=unsupported
16172 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16173 echo "${ECHO_T}$hardcode_action_F77" >&6
16175 if test "$hardcode_action_F77" = relink; then
16176 # Fast installation is not supported
16177 enable_fast_install=no
16178 elif test "$shlibpath_overrides_runpath" = yes ||
16179 test "$enable_shared" = no; then
16180 # Fast installation is not necessary
16181 enable_fast_install=needless
16185 # The else clause should only fire when bootstrapping the
16186 # libtool distribution, otherwise you forgot to ship ltmain.sh
16187 # with your package, and you will get complaints that there are
16188 # no rules to generate ltmain.sh.
16189 if test -f "$ltmain"; then
16190 # See if we are running on zsh, and set the options which allow our commands through
16191 # without removal of \ escapes.
16192 if test -n "${ZSH_VERSION+set}" ; then
16193 setopt NO_GLOB_SUBST
16195 # Now quote all the things that may contain metacharacters while being
16196 # careful not to overquote the AC_SUBSTed values. We take copies of the
16197 # variables and quote the copies for generation of the libtool script.
16198 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16200 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16201 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16202 deplibs_check_method reload_flag reload_cmds need_locks \
16203 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16204 lt_cv_sys_global_symbol_to_c_name_address \
16205 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16206 old_postinstall_cmds old_postuninstall_cmds \
16210 lt_prog_compiler_wl_F77 \
16211 lt_prog_compiler_pic_F77 \
16212 lt_prog_compiler_static_F77 \
16213 lt_prog_compiler_no_builtin_flag_F77 \
16214 export_dynamic_flag_spec_F77 \
16215 thread_safe_flag_spec_F77 \
16216 whole_archive_flag_spec_F77 \
16217 enable_shared_with_static_runtimes_F77 \
16218 old_archive_cmds_F77 \
16219 old_archive_from_new_cmds_F77 \
16220 predep_objects_F77 \
16221 postdep_objects_F77 \
16224 compiler_lib_search_path_F77 \
16226 archive_expsym_cmds_F77 \
16227 postinstall_cmds_F77 \
16228 postuninstall_cmds_F77 \
16229 old_archive_from_expsyms_cmds_F77 \
16230 allow_undefined_flag_F77 \
16231 no_undefined_flag_F77 \
16232 export_symbols_cmds_F77 \
16233 hardcode_libdir_flag_spec_F77 \
16234 hardcode_libdir_flag_spec_ld_F77 \
16235 hardcode_libdir_separator_F77 \
16236 hardcode_automatic_F77 \
16238 module_expsym_cmds_F77 \
16239 lt_cv_prog_compiler_c_o_F77 \
16240 exclude_expsyms_F77 \
16241 include_expsyms_F77; do
16244 old_archive_cmds_F77 | \
16245 old_archive_from_new_cmds_F77 | \
16246 archive_cmds_F77 | \
16247 archive_expsym_cmds_F77 | \
16248 module_cmds_F77 | \
16249 module_expsym_cmds_F77 | \
16250 old_archive_from_expsyms_cmds_F77 | \
16251 export_symbols_cmds_F77 | \
16252 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16253 postinstall_cmds | postuninstall_cmds | \
16254 old_postinstall_cmds | old_postuninstall_cmds | \
16255 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16256 # Double-quote double-evaled strings.
16257 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16260 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16266 *'\$0 --fallback-echo"')
16267 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16273 cat <<__EOF__ >> "$cfgfile"
16274 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16276 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16278 # Shell to use when invoking shell scripts.
16281 # Whether or not to build shared libraries.
16282 build_libtool_libs=$enable_shared
16284 # Whether or not to build static libraries.
16285 build_old_libs=$enable_static
16287 # Whether or not to add -lc for building shared libraries.
16288 build_libtool_need_lc=$archive_cmds_need_lc_F77
16290 # Whether or not to disallow shared libs when runtime libs are static
16291 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16293 # Whether or not to optimize for fast installation.
16294 fast_install=$enable_fast_install
16297 host_alias=$host_alias
16301 # The build system.
16302 build_alias=$build_alias
16306 # An echo program that does not interpret backslashes.
16311 AR_FLAGS=$lt_AR_FLAGS
16316 # LTCC compiler flags.
16317 LTCFLAGS=$lt_LTCFLAGS
16319 # A language-specific compiler.
16320 CC=$lt_compiler_F77
16322 # Is the compiler the GNU C compiler?
16328 # The linker used to build libraries.
16331 # Whether we need hard or soft links.
16334 # A BSD-compatible nm program.
16337 # A symbol stripping program
16340 # Used to examine libraries when file_magic_cmd begins "file"
16341 MAGIC_CMD=$MAGIC_CMD
16343 # Used on cygwin: DLL creation program.
16346 # Used on cygwin: object dumper.
16349 # Used on cygwin: assembler.
16352 # The name of the directory that contains temporary libtool files.
16355 # How to create reloadable object files.
16356 reload_flag=$lt_reload_flag
16357 reload_cmds=$lt_reload_cmds
16359 # How to pass a linker flag through the compiler.
16360 wl=$lt_lt_prog_compiler_wl_F77
16362 # Object file suffix (normally "o").
16363 objext="$ac_objext"
16365 # Old archive suffix (normally "a").
16368 # Shared library suffix (normally ".so").
16369 shrext_cmds='$shrext_cmds'
16371 # Executable file suffix (normally "").
16374 # Additional compiler flags for building library objects.
16375 pic_flag=$lt_lt_prog_compiler_pic_F77
16378 # What is the maximum length of a command?
16379 max_cmd_len=$lt_cv_sys_max_cmd_len
16381 # Does compiler simultaneously support -c and -o options?
16382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16384 # Must we lock files when doing compilation?
16385 need_locks=$lt_need_locks
16387 # Do we need the lib prefix for modules?
16388 need_lib_prefix=$need_lib_prefix
16390 # Do we need a version for libraries?
16391 need_version=$need_version
16393 # Whether dlopen is supported.
16394 dlopen_support=$enable_dlopen
16396 # Whether dlopen of programs is supported.
16397 dlopen_self=$enable_dlopen_self
16399 # Whether dlopen of statically linked programs is supported.
16400 dlopen_self_static=$enable_dlopen_self_static
16402 # Compiler flag to prevent dynamic linking.
16403 link_static_flag=$lt_lt_prog_compiler_static_F77
16405 # Compiler flag to turn off builtin functions.
16406 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16408 # Compiler flag to allow reflexive dlopens.
16409 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16411 # Compiler flag to generate shared objects directly from archives.
16412 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16414 # Compiler flag to generate thread-safe objects.
16415 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16417 # Library versioning type.
16418 version_type=$version_type
16420 # Format of library name prefix.
16421 libname_spec=$lt_libname_spec
16423 # List of archive names. First name is the real one, the rest are links.
16424 # The last name is the one that the linker finds with -lNAME.
16425 library_names_spec=$lt_library_names_spec
16427 # The coded name of the library, if different from the real name.
16428 soname_spec=$lt_soname_spec
16430 # Commands used to build and install an old-style archive.
16432 old_archive_cmds=$lt_old_archive_cmds_F77
16433 old_postinstall_cmds=$lt_old_postinstall_cmds
16434 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16436 # Create an old-style archive from a shared archive.
16437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16439 # Create a temporary old-style archive to link instead of a shared archive.
16440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16442 # Commands used to build and install a shared archive.
16443 archive_cmds=$lt_archive_cmds_F77
16444 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16445 postinstall_cmds=$lt_postinstall_cmds
16446 postuninstall_cmds=$lt_postuninstall_cmds
16448 # Commands used to build a loadable module (assumed same as above if empty)
16449 module_cmds=$lt_module_cmds_F77
16450 module_expsym_cmds=$lt_module_expsym_cmds_F77
16452 # Commands to strip libraries.
16453 old_striplib=$lt_old_striplib
16454 striplib=$lt_striplib
16456 # Dependencies to place before the objects being linked to create a
16458 predep_objects=$lt_predep_objects_F77
16460 # Dependencies to place after the objects being linked to create a
16462 postdep_objects=$lt_postdep_objects_F77
16464 # Dependencies to place before the objects being linked to create a
16466 predeps=$lt_predeps_F77
16468 # Dependencies to place after the objects being linked to create a
16470 postdeps=$lt_postdeps_F77
16472 # The library search path used internally by the compiler when linking
16473 # a shared library.
16474 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16476 # Method to check whether dependent libraries are shared objects.
16477 deplibs_check_method=$lt_deplibs_check_method
16479 # Command to use when deplibs_check_method == file_magic.
16480 file_magic_cmd=$lt_file_magic_cmd
16482 # Flag that allows shared libraries with undefined symbols to be built.
16483 allow_undefined_flag=$lt_allow_undefined_flag_F77
16485 # Flag that forces no undefined symbols.
16486 no_undefined_flag=$lt_no_undefined_flag_F77
16488 # Commands used to finish a libtool library installation in a directory.
16489 finish_cmds=$lt_finish_cmds
16491 # Same as above, but a single script fragment to be evaled but not shown.
16492 finish_eval=$lt_finish_eval
16494 # Take the output of nm and produce a listing of raw symbols and C names.
16495 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16497 # Transform the output of nm in a proper C declaration
16498 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16500 # Transform the output of nm in a C name address pair
16501 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16503 # This is the shared library runtime path variable.
16504 runpath_var=$runpath_var
16506 # This is the shared library path variable.
16507 shlibpath_var=$shlibpath_var
16509 # Is shlibpath searched before the hard-coded library search path?
16510 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16512 # How to hardcode a shared library path into an executable.
16513 hardcode_action=$hardcode_action_F77
16515 # Whether we should hardcode library paths into libraries.
16516 hardcode_into_libs=$hardcode_into_libs
16518 # Flag to hardcode \$libdir into a binary during linking.
16519 # This must work even if \$libdir does not exist.
16520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16522 # If ld is used when linking, flag to hardcode \$libdir into
16523 # a binary during linking. This must work even if \$libdir does
16525 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16527 # Whether we need a single -rpath flag with a separated argument.
16528 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16530 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16531 # resulting binary.
16532 hardcode_direct=$hardcode_direct_F77
16534 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16535 # resulting binary.
16536 hardcode_minus_L=$hardcode_minus_L_F77
16538 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16539 # the resulting binary.
16540 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16542 # Set to yes if building a shared library automatically hardcodes DIR into the library
16543 # and all subsequent libraries and executables linked against it.
16544 hardcode_automatic=$hardcode_automatic_F77
16546 # Variables whose values should be saved in libtool wrapper scripts and
16547 # restored at relink time.
16548 variables_saved_for_relink="$variables_saved_for_relink"
16550 # Whether libtool must link a program against all its dependency libraries.
16551 link_all_deplibs=$link_all_deplibs_F77
16553 # Compile-time system search path for libraries
16554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16556 # Run-time system search path for libraries
16557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16559 # Fix the shell variable \$srcfile for the compiler.
16560 fix_srcfile_path="$fix_srcfile_path_F77"
16562 # Set to yes if exported symbols are required.
16563 always_export_symbols=$always_export_symbols_F77
16565 # The commands to list exported symbols.
16566 export_symbols_cmds=$lt_export_symbols_cmds_F77
16568 # The commands to extract the exported symbol list from a shared archive.
16569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16571 # Symbols that should not be listed in the preloaded symbols.
16572 exclude_expsyms=$lt_exclude_expsyms_F77
16574 # Symbols that must always be exported.
16575 include_expsyms=$lt_include_expsyms_F77
16577 # ### END LIBTOOL TAG CONFIG: $tagname
16583 # If there is no Makefile yet, we rely on a make rule to execute
16584 # `config.status --recheck' to rerun these tests and create the
16585 # libtool script then.
16586 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16587 if test -f "$ltmain_in"; then
16588 test -f Makefile && make "$ltmain"
16594 ac_cpp='$CPP $CPPFLAGS'
16595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16607 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16611 # Source file extension for Java test sources.
16614 # Object file extension for compiled Java test sources.
16618 # Code to be used in simple compile tests
16619 lt_simple_compile_test_code="class foo {}\n"
16621 # Code to be used in simple link tests
16622 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16624 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16626 # If no C compiler was specified, use CC.
16629 # If no C compiler flags were specified, use CFLAGS.
16630 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16632 # Allow CC to be a program name with arguments.
16636 # save warnings/boilerplate of simple test code
16637 ac_outfile=conftest.$ac_objext
16638 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16639 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16640 _lt_compiler_boilerplate=`cat conftest.err`
16643 ac_outfile=conftest.$ac_objext
16644 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16645 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16646 _lt_linker_boilerplate=`cat conftest.err`
16650 # Allow CC to be a program name with arguments.
16655 for cc_temp in $compiler""; do
16657 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16658 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16663 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16666 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16667 archive_cmds_need_lc_GCJ=no
16669 old_archive_cmds_GCJ=$old_archive_cmds
16672 lt_prog_compiler_no_builtin_flag_GCJ=
16674 if test "$GCC" = yes; then
16675 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16678 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16679 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16680 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16681 echo $ECHO_N "(cached) $ECHO_C" >&6
16683 lt_cv_prog_compiler_rtti_exceptions=no
16684 ac_outfile=conftest.$ac_objext
16685 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16686 lt_compiler_flag="-fno-rtti -fno-exceptions"
16687 # Insert the option either (1) after the last *FLAGS variable, or
16688 # (2) before a word containing "conftest.", or (3) at the end.
16689 # Note that $ac_compile itself does not contain backslashes and begins
16690 # with a dollar sign (not a hyphen), so the echo should work correctly.
16691 # The option is referenced via a variable to avoid confusing sed.
16692 lt_compile=`echo "$ac_compile" | $SED \
16693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16695 -e 's:$: $lt_compiler_flag:'`
16696 (eval echo "\"\$as_me:16696: $lt_compile\"" >&5)
16697 (eval "$lt_compile" 2>conftest.err)
16699 cat conftest.err >&5
16700 echo "$as_me:16700: \$? = $ac_status" >&5
16701 if (exit $ac_status) && test -s "$ac_outfile"; then
16702 # The compiler can only warn and ignore the option if not recognized
16703 # So say no if there are warnings other than the usual output.
16704 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16707 lt_cv_prog_compiler_rtti_exceptions=yes
16713 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16714 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16716 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16717 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16724 lt_prog_compiler_wl_GCJ=
16725 lt_prog_compiler_pic_GCJ=
16726 lt_prog_compiler_static_GCJ=
16728 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16729 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16731 if test "$GCC" = yes; then
16732 lt_prog_compiler_wl_GCJ='-Wl,'
16733 lt_prog_compiler_static_GCJ='-static'
16737 # All AIX code is PIC.
16738 if test "$host_cpu" = ia64; then
16739 # AIX 5 now supports IA64 processor
16740 lt_prog_compiler_static_GCJ='-Bstatic'
16745 # FIXME: we need at least 68020 code to build shared libraries, but
16746 # adding the `-m68020' flag to GCC prevents building anything better,
16748 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16751 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16752 # PIC is the default for these OSes.
16755 mingw* | pw32* | os2*)
16756 # This hack is so that the source file can tell whether it is being
16757 # built for inclusion in a dll (and should export symbols for example).
16758 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16761 darwin* | rhapsody*)
16762 # PIC is the default on this platform
16763 # Common symbols not allowed in MH_DYLIB files
16764 lt_prog_compiler_pic_GCJ='-fno-common'
16768 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16769 # Instead, we relocate shared libraries at runtime.
16773 # Just because we use GCC doesn't mean we suddenly get shared libraries
16774 # on systems that don't support them.
16775 lt_prog_compiler_can_build_shared_GCJ=no
16780 if test -d /usr/nec; then
16781 lt_prog_compiler_pic_GCJ=-Kconform_pic
16786 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16787 # not for PA HP-UX.
16793 lt_prog_compiler_pic_GCJ='-fPIC'
16799 lt_prog_compiler_pic_GCJ='-fPIC'
16803 # PORTME Check for flag to pass linker flags through the system compiler.
16806 lt_prog_compiler_wl_GCJ='-Wl,'
16807 if test "$host_cpu" = ia64; then
16808 # AIX 5 now supports IA64 processor
16809 lt_prog_compiler_static_GCJ='-Bstatic'
16811 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16815 # PIC is the default on this platform
16816 # Common symbols not allowed in MH_DYLIB files
16817 case $cc_basename in
16819 lt_prog_compiler_pic_GCJ='-qnocommon'
16820 lt_prog_compiler_wl_GCJ='-Wl,'
16825 mingw* | pw32* | os2*)
16826 # This hack is so that the source file can tell whether it is being
16827 # built for inclusion in a dll (and should export symbols for example).
16828 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16831 hpux9* | hpux10* | hpux11*)
16832 lt_prog_compiler_wl_GCJ='-Wl,'
16833 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16834 # not for PA HP-UX.
16840 lt_prog_compiler_pic_GCJ='+Z'
16843 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16844 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16847 irix5* | irix6* | nonstopux*)
16848 lt_prog_compiler_wl_GCJ='-Wl,'
16849 # PIC (with -KPIC) is the default.
16850 lt_prog_compiler_static_GCJ='-non_shared'
16854 lt_prog_compiler_pic_GCJ='-KPIC'
16855 lt_prog_compiler_static_GCJ='-Bstatic'
16858 linux* | k*bsd*-gnu)
16859 case $cc_basename in
16861 lt_prog_compiler_wl_GCJ='-Wl,'
16862 lt_prog_compiler_pic_GCJ='-KPIC'
16863 lt_prog_compiler_static_GCJ='-static'
16865 pgcc* | pgf77* | pgf90* | pgf95*)
16866 # Portland Group compilers (*not* the Pentium gcc compiler,
16867 # which looks to be a dead project)
16868 lt_prog_compiler_wl_GCJ='-Wl,'
16869 lt_prog_compiler_pic_GCJ='-fpic'
16870 lt_prog_compiler_static_GCJ='-Bstatic'
16873 lt_prog_compiler_wl_GCJ='-Wl,'
16874 # All Alpha code is PIC.
16875 lt_prog_compiler_static_GCJ='-non_shared'
16880 osf3* | osf4* | osf5*)
16881 lt_prog_compiler_wl_GCJ='-Wl,'
16882 # All OSF/1 code is PIC.
16883 lt_prog_compiler_static_GCJ='-non_shared'
16887 lt_prog_compiler_pic_GCJ='-KPIC'
16888 lt_prog_compiler_static_GCJ='-Bstatic'
16889 case $cc_basename in
16890 f77* | f90* | f95*)
16891 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16893 lt_prog_compiler_wl_GCJ='-Wl,';;
16898 lt_prog_compiler_wl_GCJ='-Qoption ld '
16899 lt_prog_compiler_pic_GCJ='-PIC'
16900 lt_prog_compiler_static_GCJ='-Bstatic'
16903 sysv4 | sysv4.2uw2* | sysv4.3*)
16904 lt_prog_compiler_wl_GCJ='-Wl,'
16905 lt_prog_compiler_pic_GCJ='-KPIC'
16906 lt_prog_compiler_static_GCJ='-Bstatic'
16910 if test -d /usr/nec ;then
16911 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16912 lt_prog_compiler_static_GCJ='-Bstatic'
16916 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16917 lt_prog_compiler_wl_GCJ='-Wl,'
16918 lt_prog_compiler_pic_GCJ='-KPIC'
16919 lt_prog_compiler_static_GCJ='-Bstatic'
16923 lt_prog_compiler_wl_GCJ='-Wl,'
16924 lt_prog_compiler_can_build_shared_GCJ=no
16928 lt_prog_compiler_pic_GCJ='-pic'
16929 lt_prog_compiler_static_GCJ='-Bstatic'
16933 lt_prog_compiler_can_build_shared_GCJ=no
16938 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16939 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16942 # Check to make sure the PIC flag actually works.
16944 if test -n "$lt_prog_compiler_pic_GCJ"; then
16946 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16947 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16948 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16949 echo $ECHO_N "(cached) $ECHO_C" >&6
16951 lt_prog_compiler_pic_works_GCJ=no
16952 ac_outfile=conftest.$ac_objext
16953 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16954 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16955 # Insert the option either (1) after the last *FLAGS variable, or
16956 # (2) before a word containing "conftest.", or (3) at the end.
16957 # Note that $ac_compile itself does not contain backslashes and begins
16958 # with a dollar sign (not a hyphen), so the echo should work correctly.
16959 # The option is referenced via a variable to avoid confusing sed.
16960 lt_compile=`echo "$ac_compile" | $SED \
16961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16963 -e 's:$: $lt_compiler_flag:'`
16964 (eval echo "\"\$as_me:16964: $lt_compile\"" >&5)
16965 (eval "$lt_compile" 2>conftest.err)
16967 cat conftest.err >&5
16968 echo "$as_me:16968: \$? = $ac_status" >&5
16969 if (exit $ac_status) && test -s "$ac_outfile"; then
16970 # The compiler can only warn and ignore the option if not recognized
16971 # So say no if there are warnings other than the usual output.
16972 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16974 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16975 lt_prog_compiler_pic_works_GCJ=yes
16981 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16982 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16984 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16985 case $lt_prog_compiler_pic_GCJ in
16987 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16990 lt_prog_compiler_pic_GCJ=
16991 lt_prog_compiler_can_build_shared_GCJ=no
16996 # For platforms which do not support PIC, -DPIC is meaningless:
16998 lt_prog_compiler_pic_GCJ=
17001 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17006 # Check to make sure the static flag actually works.
17008 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17009 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17010 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17011 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17012 echo $ECHO_N "(cached) $ECHO_C" >&6
17014 lt_prog_compiler_static_works_GCJ=no
17015 save_LDFLAGS="$LDFLAGS"
17016 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17017 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17018 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17019 # The linker can only warn and ignore the option if not recognized
17020 # So say no if there are warnings
17021 if test -s conftest.err; then
17022 # Append any errors to the config.log.
17023 cat conftest.err 1>&5
17024 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17026 if diff conftest.exp conftest.er2 >/dev/null; then
17027 lt_prog_compiler_static_works_GCJ=yes
17030 lt_prog_compiler_static_works_GCJ=yes
17034 LDFLAGS="$save_LDFLAGS"
17037 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17038 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17040 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17043 lt_prog_compiler_static_GCJ=
17047 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17048 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17049 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17052 lt_cv_prog_compiler_c_o_GCJ=no
17053 $rm -r conftest 2>/dev/null
17057 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17059 lt_compiler_flag="-o out/conftest2.$ac_objext"
17060 # Insert the option either (1) after the last *FLAGS variable, or
17061 # (2) before a word containing "conftest.", or (3) at the end.
17062 # Note that $ac_compile itself does not contain backslashes and begins
17063 # with a dollar sign (not a hyphen), so the echo should work correctly.
17064 lt_compile=`echo "$ac_compile" | $SED \
17065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17067 -e 's:$: $lt_compiler_flag:'`
17068 (eval echo "\"\$as_me:17068: $lt_compile\"" >&5)
17069 (eval "$lt_compile" 2>out/conftest.err)
17071 cat out/conftest.err >&5
17072 echo "$as_me:17072: \$? = $ac_status" >&5
17073 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17075 # The compiler can only warn and ignore the option if not recognized
17076 # So say no if there are warnings
17077 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17078 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17079 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17080 lt_cv_prog_compiler_c_o_GCJ=yes
17085 # SGI C++ compiler will create directory out/ii_files/ for
17086 # template instantiation
17087 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17088 $rm out/* && rmdir out
17094 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17095 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17098 hard_links="nottested"
17099 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17100 # do not overwrite the value of need_locks provided by the user
17101 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17102 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17105 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17107 ln conftest.a conftest.b 2>&5 || hard_links=no
17108 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17109 echo "$as_me:$LINENO: result: $hard_links" >&5
17110 echo "${ECHO_T}$hard_links" >&6
17111 if test "$hard_links" = no; then
17112 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17113 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17120 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17121 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17124 allow_undefined_flag_GCJ=
17125 enable_shared_with_static_runtimes_GCJ=no
17127 archive_expsym_cmds_GCJ=
17128 old_archive_From_new_cmds_GCJ=
17129 old_archive_from_expsyms_cmds_GCJ=
17130 export_dynamic_flag_spec_GCJ=
17131 whole_archive_flag_spec_GCJ=
17132 thread_safe_flag_spec_GCJ=
17133 hardcode_libdir_flag_spec_GCJ=
17134 hardcode_libdir_flag_spec_ld_GCJ=
17135 hardcode_libdir_separator_GCJ=
17136 hardcode_direct_GCJ=no
17137 hardcode_minus_L_GCJ=no
17138 hardcode_shlibpath_var_GCJ=unsupported
17139 link_all_deplibs_GCJ=unknown
17140 hardcode_automatic_GCJ=no
17142 module_expsym_cmds_GCJ=
17143 always_export_symbols_GCJ=no
17144 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17145 # include_expsyms should be a list of space-separated symbols to be *always*
17146 # included in the symbol list
17147 include_expsyms_GCJ=
17148 # exclude_expsyms can be an extended regexp of symbols to exclude
17149 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17150 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17151 # as well as any symbol that contains `d'.
17152 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17153 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17154 # platforms (ab)use it in PIC code, but their linkers get confused if
17155 # the symbol is explicitly referenced. Since portable code cannot
17156 # rely on this symbol name, it's probably fine to never include it in
17157 # preloaded symbol tables.
17158 extract_expsyms_cmds=
17159 # Just being paranoid about ensuring that cc_basename is set.
17160 for cc_temp in $compiler""; do
17162 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17163 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17168 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17171 cygwin* | mingw* | pw32*)
17172 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17173 # When not using gcc, we currently assume that we are using
17174 # Microsoft Visual C++.
17175 if test "$GCC" != yes; then
17180 # we just hope/assume this is gcc and not c89 (= MSVC++)
17189 if test "$with_gnu_ld" = yes; then
17190 # If archive_cmds runs LD, not CC, wlarc should be empty
17193 # Set some defaults for GNU ld with shared library support. These
17194 # are reset later if shared libraries are not supported. Putting them
17195 # here allows them to be overridden if necessary.
17196 runpath_var=LD_RUN_PATH
17197 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17198 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17199 # ancient GNU ld didn't support --whole-archive et. al.
17200 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17201 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17203 whole_archive_flag_spec_GCJ=
17205 supports_anon_versioning=no
17206 case `$LD -v 2>/dev/null` in
17207 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17208 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17209 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17210 *\ 2.11.*) ;; # other 2.11 versions
17211 *) supports_anon_versioning=yes ;;
17214 # See if GNU ld supports shared libraries.
17216 aix3* | aix4* | aix5*)
17217 # On AIX/PPC, the GNU linker is very broken
17218 if test "$host_cpu" != ia64; then
17222 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17223 *** to be unable to reliably create shared libraries on AIX.
17224 *** Therefore, libtool is disabling shared libraries support. If you
17225 *** really care for shared libraries, you may want to modify your PATH
17226 *** so that a non-GNU linker is found, and then restart.
17233 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)'
17234 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17235 hardcode_minus_L_GCJ=yes
17237 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17238 # that the semantics of dynamic libraries on AmigaOS, at least up
17239 # to version 4, is to share data among multiple programs linked
17240 # with the same dynamic library. Since this doesn't match the
17241 # behavior of shared libraries on other platforms, we can't use
17247 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17248 allow_undefined_flag_GCJ=unsupported
17249 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17250 # support --undefined. This deserves some investigation. FIXME
17251 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17257 cygwin* | mingw* | pw32*)
17258 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17259 # as there is no search path for DLLs.
17260 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17261 allow_undefined_flag_GCJ=unsupported
17262 always_export_symbols_GCJ=no
17263 enable_shared_with_static_runtimes_GCJ=yes
17264 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17266 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17267 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17268 # If the export-symbols file already is a .def file (1st line
17269 # is EXPORTS), use it as is; otherwise, prepend...
17270 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17271 cp $export_symbols $output_objdir/$soname.def;
17273 echo EXPORTS > $output_objdir/$soname.def;
17274 cat $export_symbols >> $output_objdir/$soname.def;
17276 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17283 hardcode_direct_GCJ=no
17284 hardcode_shlibpath_var_GCJ=no
17285 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17286 export_dynamic_flag_spec_GCJ='${wl}-E'
17287 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17288 # Instead, shared libraries are loaded at an image base (0x10000000 by
17289 # default) and relocated if they conflict, which is a slow very memory
17290 # consuming and fragmenting process. To avoid this, we pick a random,
17291 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17292 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17293 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17294 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17297 linux* | k*bsd*-gnu)
17298 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17300 case $cc_basename,$host_cpu in
17301 pgcc*) # Portland Group C compiler
17302 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'
17303 tmp_addflag=' $pic_flag'
17305 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17306 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'
17307 tmp_addflag=' $pic_flag -Mnomain' ;;
17308 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17309 tmp_addflag=' -i_dynamic' ;;
17310 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17311 tmp_addflag=' -i_dynamic -nofor_main' ;;
17312 ifc* | ifort*) # Intel Fortran compiler
17313 tmp_addflag=' -nofor_main' ;;
17315 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17317 if test $supports_anon_versioning = yes; then
17318 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17319 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17320 $echo "local: *; };" >> $output_objdir/$libname.ver~
17321 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17323 link_all_deplibs_GCJ=no
17329 netbsd* | netbsdelf*-gnu)
17330 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17331 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17334 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17335 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17340 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17344 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17345 *** create shared libraries on Solaris systems. Therefore, libtool
17346 *** is disabling shared libraries support. We urge you to upgrade GNU
17347 *** binutils to release 2.9.1 or newer. Another option is to modify
17348 *** your PATH or compiler configuration so that the native linker is
17349 *** used, and then restart.
17352 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17353 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17354 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17361 case `$LD -v 2>&1` in
17362 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17366 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17367 *** reliably create shared libraries on SCO systems. Therefore, libtool
17368 *** is disabling shared libraries support. We urge you to upgrade GNU
17369 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17370 *** your PATH or compiler configuration so that the native linker is
17371 *** used, and then restart.
17376 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17377 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17378 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17379 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17388 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17390 hardcode_direct_GCJ=yes
17391 hardcode_shlibpath_var_GCJ=no
17395 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17396 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17397 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17404 if test "$ld_shlibs_GCJ" = no; then
17406 hardcode_libdir_flag_spec_GCJ=
17407 export_dynamic_flag_spec_GCJ=
17408 whole_archive_flag_spec_GCJ=
17411 # PORTME fill in a description of your system's linker (not GNU ld)
17414 allow_undefined_flag_GCJ=unsupported
17415 always_export_symbols_GCJ=yes
17416 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'
17417 # Note: this linker hardcodes the directories in LIBPATH if there
17418 # are no directories specified by -L.
17419 hardcode_minus_L_GCJ=yes
17420 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17421 # Neither direct hardcoding nor static linking is supported with a
17423 hardcode_direct_GCJ=unsupported
17428 if test "$host_cpu" = ia64; then
17429 # On IA64, the linker does run time linking by default, so we don't
17430 # have to do anything special.
17431 aix_use_runtimelinking=no
17432 exp_sym_flag='-Bexport'
17435 # If we're using GNU nm, then we don't want the "-C" option.
17436 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17437 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17438 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'
17440 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'
17442 aix_use_runtimelinking=no
17444 # Test if we are trying to use run time linking or normal
17445 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17446 # need to do runtime linking.
17447 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17448 for ld_flag in $LDFLAGS; do
17449 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17450 aix_use_runtimelinking=yes
17457 exp_sym_flag='-bexport'
17458 no_entry_flag='-bnoentry'
17461 # When large executables or shared objects are built, AIX ld can
17462 # have problems creating the table of contents. If linking a library
17463 # or program results in "error TOC overflow" add -mminimal-toc to
17464 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17465 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17467 archive_cmds_GCJ=''
17468 hardcode_direct_GCJ=yes
17469 hardcode_libdir_separator_GCJ=':'
17470 link_all_deplibs_GCJ=yes
17472 if test "$GCC" = yes; then
17473 case $host_os in aix4.[012]|aix4.[012].*)
17474 # We only want to do this on AIX 4.2 and lower, the check
17475 # below for broken collect2 doesn't work under 4.3+
17476 collect2name=`${CC} -print-prog-name=collect2`
17477 if test -f "$collect2name" && \
17478 strings "$collect2name" | grep resolve_lib_name >/dev/null
17480 # We have reworked collect2
17481 hardcode_direct_GCJ=yes
17483 # We have old collect2
17484 hardcode_direct_GCJ=unsupported
17485 # It fails to find uninstalled libraries when the uninstalled
17486 # path is not listed in the libpath. Setting hardcode_minus_L
17487 # to unsupported forces relinking
17488 hardcode_minus_L_GCJ=yes
17489 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17490 hardcode_libdir_separator_GCJ=
17494 shared_flag='-shared'
17495 if test "$aix_use_runtimelinking" = yes; then
17496 shared_flag="$shared_flag "'${wl}-G'
17500 if test "$host_cpu" = ia64; then
17501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17502 # chokes on -Wl,-G. The following line is correct:
17505 if test "$aix_use_runtimelinking" = yes; then
17506 shared_flag='${wl}-G'
17508 shared_flag='${wl}-bM:SRE'
17513 # It seems that -bexpall does not export symbols beginning with
17514 # underscore (_), so it is better to generate a list of symbols to export.
17515 always_export_symbols_GCJ=yes
17516 if test "$aix_use_runtimelinking" = yes; then
17517 # Warning - without using the other runtime loading flags (-brtl),
17518 # -berok will link without error, but may produce a broken library.
17519 allow_undefined_flag_GCJ='-berok'
17520 # Determine the default libpath from the value encoded in an empty executable.
17521 cat >conftest.$ac_ext <<_ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h. */
17536 rm -f conftest.$ac_objext conftest$ac_exeext
17537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17538 (eval $ac_link) 2>conftest.er1
17540 grep -v '^ *+' conftest.er1 >conftest.err
17542 cat conftest.err >&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } &&
17545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; } &&
17551 { ac_try='test -s conftest$ac_exeext'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; }; then
17558 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17560 # Check for a 64-bit object if we didn't find anything.
17561 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; }
17564 echo "$as_me: failed program was:" >&5
17565 sed 's/^/| /' conftest.$ac_ext >&5
17568 rm -f conftest.err conftest.$ac_objext \
17569 conftest$ac_exeext conftest.$ac_ext
17570 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17572 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17573 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17575 if test "$host_cpu" = ia64; then
17576 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17577 allow_undefined_flag_GCJ="-z nodefs"
17578 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17580 # Determine the default libpath from the value encoded in an empty executable.
17581 cat >conftest.$ac_ext <<_ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h. */
17596 rm -f conftest.$ac_objext conftest$ac_exeext
17597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17598 (eval $ac_link) 2>conftest.er1
17600 grep -v '^ *+' conftest.er1 >conftest.err
17602 cat conftest.err >&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } &&
17605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607 (eval $ac_try) 2>&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); }; } &&
17611 { ac_try='test -s conftest$ac_exeext'
17612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17618 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17620 # Check for a 64-bit object if we didn't find anything.
17621 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; }
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17628 rm -f conftest.err conftest.$ac_objext \
17629 conftest$ac_exeext conftest.$ac_ext
17630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17632 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17633 # Warning - without using the other run time loading flags,
17634 # -berok will link without error, but may produce a broken library.
17635 no_undefined_flag_GCJ=' ${wl}-bernotok'
17636 allow_undefined_flag_GCJ=' ${wl}-berok'
17637 # Exported symbols can be pulled into shared objects from archives
17638 whole_archive_flag_spec_GCJ='$convenience'
17639 archive_cmds_need_lc_GCJ=yes
17640 # This is similar to how AIX traditionally builds its shared libraries.
17641 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17647 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)'
17648 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17649 hardcode_minus_L_GCJ=yes
17650 # see comment about different semantics on the GNU ld section
17655 export_dynamic_flag_spec_GCJ=-rdynamic
17658 cygwin* | mingw* | pw32*)
17659 # When not using gcc, we currently assume that we are using
17660 # Microsoft Visual C++.
17661 # hardcode_libdir_flag_spec is actually meaningless, as there is
17662 # no search path for DLLs.
17663 hardcode_libdir_flag_spec_GCJ=' '
17664 allow_undefined_flag_GCJ=unsupported
17665 # Tell ltmain to make .lib files, not .a files.
17667 # Tell ltmain to make .dll files, not .so files.
17669 # FIXME: Setting linknames here is a bad hack.
17670 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17671 # The linker will automatically build a .lib file if we build a DLL.
17672 old_archive_From_new_cmds_GCJ='true'
17673 # FIXME: Should let the user specify the lib program.
17674 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17675 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17676 enable_shared_with_static_runtimes_GCJ=yes
17679 darwin* | rhapsody*)
17681 rhapsody* | darwin1.[012])
17682 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17685 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17686 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17688 case ${MACOSX_DEPLOYMENT_TARGET} in
17690 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17693 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17699 archive_cmds_need_lc_GCJ=no
17700 hardcode_direct_GCJ=no
17701 hardcode_automatic_GCJ=yes
17702 hardcode_shlibpath_var_GCJ=unsupported
17703 whole_archive_flag_spec_GCJ=''
17704 link_all_deplibs_GCJ=yes
17705 if test "$GCC" = yes ; then
17706 output_verbose_link_cmd='echo'
17707 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17708 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17709 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17710 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}'
17711 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}'
17713 case $cc_basename in
17715 output_verbose_link_cmd='echo'
17716 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17717 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17718 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17719 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}'
17720 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}'
17730 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17731 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17732 hardcode_shlibpath_var_GCJ=no
17739 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17740 # support. Future versions do this automatically, but an explicit c++rt0.o
17741 # does not break anything, and helps significantly (at the cost of a little
17744 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17745 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17746 hardcode_direct_GCJ=yes
17747 hardcode_shlibpath_var_GCJ=no
17750 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17752 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17753 hardcode_direct_GCJ=yes
17754 hardcode_minus_L_GCJ=yes
17755 hardcode_shlibpath_var_GCJ=no
17758 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17759 freebsd* | dragonfly*)
17760 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17761 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17762 hardcode_direct_GCJ=yes
17763 hardcode_shlibpath_var_GCJ=no
17767 if test "$GCC" = yes; then
17768 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'
17770 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'
17772 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17773 hardcode_libdir_separator_GCJ=:
17774 hardcode_direct_GCJ=yes
17776 # hardcode_minus_L: Not really in the search PATH,
17777 # but as the default location of the library.
17778 hardcode_minus_L_GCJ=yes
17779 export_dynamic_flag_spec_GCJ='${wl}-E'
17783 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17784 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17786 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17788 if test "$with_gnu_ld" = no; then
17789 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17790 hardcode_libdir_separator_GCJ=:
17792 hardcode_direct_GCJ=yes
17793 export_dynamic_flag_spec_GCJ='${wl}-E'
17795 # hardcode_minus_L: Not really in the search PATH,
17796 # but as the default location of the library.
17797 hardcode_minus_L_GCJ=yes
17802 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17805 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17808 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17811 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17817 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17820 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17823 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17827 if test "$with_gnu_ld" = no; then
17828 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17829 hardcode_libdir_separator_GCJ=:
17833 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17834 hardcode_direct_GCJ=no
17835 hardcode_shlibpath_var_GCJ=no
17838 hardcode_direct_GCJ=yes
17839 export_dynamic_flag_spec_GCJ='${wl}-E'
17841 # hardcode_minus_L: Not really in the search PATH,
17842 # but as the default location of the library.
17843 hardcode_minus_L_GCJ=yes
17849 irix5* | irix6* | nonstopux*)
17850 if test "$GCC" = yes; then
17851 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'
17853 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'
17854 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17856 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17857 hardcode_libdir_separator_GCJ=:
17858 link_all_deplibs_GCJ=yes
17861 netbsd* | netbsdelf*-gnu)
17862 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17863 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17865 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17867 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17868 hardcode_direct_GCJ=yes
17869 hardcode_shlibpath_var_GCJ=no
17873 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17874 hardcode_direct_GCJ=yes
17875 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17876 hardcode_libdir_separator_GCJ=:
17877 hardcode_shlibpath_var_GCJ=no
17881 hardcode_direct_GCJ=yes
17882 hardcode_shlibpath_var_GCJ=no
17883 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17884 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17885 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17886 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17887 export_dynamic_flag_spec_GCJ='${wl}-E'
17890 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17891 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17892 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17895 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17896 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17903 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17904 hardcode_minus_L_GCJ=yes
17905 allow_undefined_flag_GCJ=unsupported
17906 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'
17907 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17911 if test "$GCC" = yes; then
17912 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17913 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'
17915 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17916 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'
17918 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17919 hardcode_libdir_separator_GCJ=:
17922 osf4* | osf5*) # as osf3* with the addition of -msym flag
17923 if test "$GCC" = yes; then
17924 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17925 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'
17926 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17928 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17929 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'
17930 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~
17931 $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'
17933 # Both c and cxx compiler support -rpath directly
17934 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17936 hardcode_libdir_separator_GCJ=:
17940 no_undefined_flag_GCJ=' -z text'
17941 if test "$GCC" = yes; then
17943 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17944 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17945 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17948 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17949 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17950 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17952 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17953 hardcode_shlibpath_var_GCJ=no
17955 solaris2.[0-5] | solaris2.[0-5].*) ;;
17957 # The compiler driver will combine linker options so we
17958 # cannot just pass the convience library names through
17959 # without $wl, iff we do not link with $LD.
17960 # Luckily, gcc supports the same syntax we need for Sun Studio.
17961 # Supported since Solaris 2.6 (maybe 2.5.1?)
17964 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17966 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' ;;
17969 link_all_deplibs_GCJ=yes
17973 if test "x$host_vendor" = xsequent; then
17974 # Use $CC to link under sequent, because it throws in some extra .o
17975 # files that make .init and .fini sections work.
17976 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17978 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17980 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17981 hardcode_direct_GCJ=yes
17982 hardcode_minus_L_GCJ=yes
17983 hardcode_shlibpath_var_GCJ=no
17987 case $host_vendor in
17989 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17990 hardcode_direct_GCJ=yes # is this really true???
17993 ## LD is ld it makes a PLAMLIB
17994 ## CC just makes a GrossModule.
17995 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17996 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17997 hardcode_direct_GCJ=no
18000 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18001 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18004 runpath_var='LD_RUN_PATH'
18005 hardcode_shlibpath_var_GCJ=no
18009 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18010 hardcode_shlibpath_var_GCJ=no
18011 export_dynamic_flag_spec_GCJ='-Bexport'
18015 if test -d /usr/nec; then
18016 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18017 hardcode_shlibpath_var_GCJ=no
18018 runpath_var=LD_RUN_PATH
18019 hardcode_runpath_var=yes
18024 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18025 no_undefined_flag_GCJ='${wl}-z,text'
18026 archive_cmds_need_lc_GCJ=no
18027 hardcode_shlibpath_var_GCJ=no
18028 runpath_var='LD_RUN_PATH'
18030 if test "$GCC" = yes; then
18031 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18032 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18034 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18035 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18039 sysv5* | sco3.2v5* | sco5v6*)
18040 # Note: We can NOT use -z defs as we might desire, because we do not
18041 # link with -lc, and that would cause any symbols used from libc to
18042 # always be unresolved, which means just about no library would
18043 # ever link correctly. If we're not using GNU ld we use -z text
18044 # though, which does catch some bad symbols but isn't as heavy-handed
18046 no_undefined_flag_GCJ='${wl}-z,text'
18047 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18048 archive_cmds_need_lc_GCJ=no
18049 hardcode_shlibpath_var_GCJ=no
18050 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18051 hardcode_libdir_separator_GCJ=':'
18052 link_all_deplibs_GCJ=yes
18053 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18054 runpath_var='LD_RUN_PATH'
18056 if test "$GCC" = yes; then
18057 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18058 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18060 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18061 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18066 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18067 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18068 hardcode_shlibpath_var_GCJ=no
18077 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18078 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18079 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18082 # Do we need to explicitly link libc?
18084 case "x$archive_cmds_need_lc_GCJ" in
18086 # Assume -lc should be added
18087 archive_cmds_need_lc_GCJ=yes
18089 if test "$enable_shared" = yes && test "$GCC" = yes; then
18090 case $archive_cmds_GCJ in
18092 # FIXME: we may have to deal with multi-command sequences.
18095 # Test whether the compiler implicitly links with -lc since on some
18096 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18097 # to ld, don't add -lc before -lgcc.
18098 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18099 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18101 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18104 (eval $ac_compile) 2>&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } 2>conftest.err; then
18110 libobjs=conftest.$ac_objext
18112 wl=$lt_prog_compiler_wl_GCJ
18113 pic_flag=$lt_prog_compiler_pic_GCJ
18119 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18120 allow_undefined_flag_GCJ=
18121 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18122 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }
18127 archive_cmds_need_lc_GCJ=no
18129 archive_cmds_need_lc_GCJ=yes
18131 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18133 cat conftest.err 1>&5
18136 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18137 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18144 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18145 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18146 library_names_spec=
18147 libname_spec='lib$name'
18151 postuninstall_cmds=
18155 shlibpath_overrides_runpath=unknown
18157 dynamic_linker="$host_os ld.so"
18158 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18159 if test "$GCC" = yes; then
18160 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18161 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18162 # if the path contains ";" then we assume it to be the separator
18163 # otherwise default to the standard path separator (i.e. ":") - it is
18164 # assumed that no part of a normal pathname contains ";" but that should
18165 # okay in the real world where ";" in dirpaths is itself problematic.
18166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18171 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18173 need_lib_prefix=unknown
18174 hardcode_into_libs=no
18176 # when you set need_version to no, make sure it does not cause -set_version
18177 # flags to be left without arguments
18178 need_version=unknown
18183 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18184 shlibpath_var=LIBPATH
18186 # AIX 3 has no versioning support, so we append a major version to the name.
18187 soname_spec='${libname}${release}${shared_ext}$major'
18194 hardcode_into_libs=yes
18195 if test "$host_cpu" = ia64; then
18196 # AIX 5 supports IA64
18197 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18198 shlibpath_var=LD_LIBRARY_PATH
18200 # With GCC up to 2.95.x, collect2 would create an import file
18201 # for dependence libraries. The import file would start with
18202 # the line `#! .'. This would cause the generated library to
18203 # depend on `.', always an invalid library. This was fixed in
18204 # development snapshots of GCC prior to 3.0.
18206 aix4 | aix4.[01] | aix4.[01].*)
18207 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18209 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18212 can_build_shared=no
18216 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18217 # soname into executable. Probably we can add versioning support to
18218 # collect2, so additional links can be useful in future.
18219 if test "$aix_use_runtimelinking" = yes; then
18220 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18221 # instead of lib<name>.a to let people know that these are not
18222 # typical AIX shared libraries.
18223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18225 # We preserve .a as extension for shared libraries through AIX4.2
18226 # and later when we are not doing run time linking.
18227 library_names_spec='${libname}${release}.a $libname.a'
18228 soname_spec='${libname}${release}${shared_ext}$major'
18230 shlibpath_var=LIBPATH
18235 library_names_spec='$libname.ixlibrary $libname.a'
18236 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18237 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'
18241 library_names_spec='${libname}${shared_ext}'
18242 dynamic_linker="$host_os ld.so"
18243 shlibpath_var=LIBRARY_PATH
18249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18250 soname_spec='${libname}${release}${shared_ext}$major'
18251 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18252 shlibpath_var=LD_LIBRARY_PATH
18253 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18254 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18255 # the default ld.so.conf also contains /usr/contrib/lib and
18256 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18257 # libtool to hard-code these into programs
18260 cygwin* | mingw* | pw32*)
18261 version_type=windows
18266 case $GCC,$host_os in
18267 yes,cygwin* | yes,mingw* | yes,pw32*)
18268 library_names_spec='$libname.dll.a'
18269 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18270 postinstall_cmds='base_file=`basename \${file}`~
18271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18272 dldir=$destdir/`dirname \$dlpath`~
18273 test -d \$dldir || mkdir -p \$dldir~
18274 $install_prog $dir/$dlname \$dldir/$dlname~
18275 chmod a+x \$dldir/$dlname'
18276 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18277 dlpath=$dir/\$dldll~
18279 shlibpath_overrides_runpath=yes
18283 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18284 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18285 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18288 # MinGW DLLs use traditional 'lib' prefix
18289 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18290 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18291 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18292 # It is most probably a Windows format PATH printed by
18293 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18294 # path with ; separators, and with drive letters. We can handle the
18295 # drive letters (cygwin fileutils understands them), so leave them,
18296 # especially as we might pass files found there to a mingw objdump,
18297 # which wouldn't understand a cygwinified path. Ahh.
18298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18304 # pw32 DLLs use 'pw' prefix rather than 'lib'
18305 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18311 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18314 dynamic_linker='Win32 ld.exe'
18315 # FIXME: first we should search . and the directory the executable is in
18319 darwin* | rhapsody*)
18320 dynamic_linker="$host_os dyld"
18321 version_type=darwin
18324 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18325 soname_spec='${libname}${release}${major}$shared_ext'
18326 shlibpath_overrides_runpath=yes
18327 shlibpath_var=DYLD_LIBRARY_PATH
18328 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18329 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18330 if test "$GCC" = yes; then
18331 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"`
18333 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18335 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18343 soname_spec='${libname}${release}${shared_ext}$major'
18344 shlibpath_var=LD_LIBRARY_PATH
18351 freebsd* | dragonfly*)
18352 # DragonFly does not have aout. When/if they implement a new
18353 # versioning mechanism, adjust this.
18354 if test -x /usr/bin/objformat; then
18355 objformat=`/usr/bin/objformat`
18358 freebsd[123]*) objformat=aout ;;
18359 *) objformat=elf ;;
18362 version_type=freebsd-$objformat
18363 case $version_type in
18365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18370 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18374 shlibpath_var=LD_LIBRARY_PATH
18377 shlibpath_overrides_runpath=yes
18379 freebsd3.[01]* | freebsdelf3.[01]*)
18380 shlibpath_overrides_runpath=yes
18381 hardcode_into_libs=yes
18383 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18384 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18385 shlibpath_overrides_runpath=no
18386 hardcode_into_libs=yes
18388 freebsd*) # from 4.6 on
18389 shlibpath_overrides_runpath=yes
18390 hardcode_into_libs=yes
18399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18400 soname_spec='${libname}${release}${shared_ext}$major'
18401 shlibpath_var=LD_LIBRARY_PATH
18402 hardcode_into_libs=yes
18405 hpux9* | hpux10* | hpux11*)
18406 # Give a soname corresponding to the major version so that dld.sl refuses to
18407 # link against other versions.
18414 hardcode_into_libs=yes
18415 dynamic_linker="$host_os dld.so"
18416 shlibpath_var=LD_LIBRARY_PATH
18417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18419 soname_spec='${libname}${release}${shared_ext}$major'
18420 if test "X$HPUX_IA64_MODE" = X32; then
18421 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18423 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18425 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18429 hardcode_into_libs=yes
18430 dynamic_linker="$host_os dld.sl"
18431 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18434 soname_spec='${libname}${release}${shared_ext}$major'
18435 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18440 dynamic_linker="$host_os dld.sl"
18441 shlibpath_var=SHLIB_PATH
18442 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18444 soname_spec='${libname}${release}${shared_ext}$major'
18447 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18448 postinstall_cmds='chmod 555 $lib'
18455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18456 soname_spec='${libname}${release}${shared_ext}$major'
18457 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18458 shlibpath_var=LD_LIBRARY_PATH
18459 shlibpath_overrides_runpath=no
18460 hardcode_into_libs=yes
18463 irix5* | irix6* | nonstopux*)
18465 nonstopux*) version_type=nonstopux ;;
18467 if test "$lt_cv_prog_gnu_ld" = yes; then
18475 soname_spec='${libname}${release}${shared_ext}$major'
18476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18478 irix5* | nonstopux*)
18479 libsuff= shlibsuff=
18482 case $LD in # libtool.m4 will add one of these switches to LD
18483 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18484 libsuff= shlibsuff= libmagic=32-bit;;
18485 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18486 libsuff=32 shlibsuff=N32 libmagic=N32;;
18487 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18488 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18489 *) libsuff= shlibsuff= libmagic=never-match;;
18493 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18494 shlibpath_overrides_runpath=no
18495 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18496 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18497 hardcode_into_libs=yes
18500 # No shared lib support for Linux oldld, aout, or coff.
18501 linux*oldld* | linux*aout* | linux*coff*)
18505 # This must be Linux ELF.
18506 linux* | k*bsd*-gnu)
18510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18511 soname_spec='${libname}${release}${shared_ext}$major'
18512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18513 shlibpath_var=LD_LIBRARY_PATH
18514 shlibpath_overrides_runpath=no
18515 # This implies no fast_install, which is unacceptable.
18516 # Some rework will be needed to allow for fast_install
18517 # before this can be enabled.
18518 hardcode_into_libs=yes
18520 # Append ld.so.conf contents to the search path
18521 if test -f /etc/ld.so.conf; then
18522 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' ' '`
18523 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18526 # We used to test for /lib/ld.so.1 and disable shared libraries on
18527 # powerpc, because MkLinux only supported shared libraries with the
18528 # GNU dynamic linker. Since this was broken with cross compilers,
18529 # most powerpc-linux boxes support dynamic linking these days and
18530 # people can always --disable-shared, the test was removed, and we
18531 # assume the GNU/Linux dynamic linker is in use.
18532 dynamic_linker='GNU/Linux ld.so'
18539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18540 soname_spec='${libname}${release}${shared_ext}$major'
18541 shlibpath_var=LD_LIBRARY_PATH
18542 shlibpath_overrides_runpath=no
18543 hardcode_into_libs=yes
18544 dynamic_linker='NetBSD ld.elf_so'
18551 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18554 dynamic_linker='NetBSD (a.out) ld.so'
18556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18557 soname_spec='${libname}${release}${shared_ext}$major'
18558 dynamic_linker='NetBSD ld.elf_so'
18560 shlibpath_var=LD_LIBRARY_PATH
18561 shlibpath_overrides_runpath=yes
18562 hardcode_into_libs=yes
18567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18568 shlibpath_var=LD_LIBRARY_PATH
18569 shlibpath_overrides_runpath=yes
18576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18577 soname_spec='${libname}${release}${shared_ext}$major'
18578 shlibpath_var=LD_LIBRARY_PATH
18579 shlibpath_overrides_runpath=yes
18584 sys_lib_dlsearch_path_spec="/usr/lib"
18586 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18588 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18589 *) need_version=no ;;
18591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18592 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18593 shlibpath_var=LD_LIBRARY_PATH
18594 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18596 openbsd2.[89] | openbsd2.[89].*)
18597 shlibpath_overrides_runpath=no
18600 shlibpath_overrides_runpath=yes
18604 shlibpath_overrides_runpath=yes
18609 libname_spec='$name'
18612 library_names_spec='$libname${shared_ext} $libname.a'
18613 dynamic_linker='OS/2 ld.exe'
18614 shlibpath_var=LIBPATH
18617 osf3* | osf4* | osf5*)
18621 soname_spec='${libname}${release}${shared_ext}$major'
18622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18623 shlibpath_var=LD_LIBRARY_PATH
18624 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18625 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18633 soname_spec='${libname}${release}${shared_ext}$major'
18634 shlibpath_var=LD_LIBRARY_PATH
18635 shlibpath_overrides_runpath=yes
18636 hardcode_into_libs=yes
18637 # ldd complains unless libraries are executable
18638 postinstall_cmds='chmod +x $lib'
18643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18644 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18645 shlibpath_var=LD_LIBRARY_PATH
18646 shlibpath_overrides_runpath=yes
18647 if test "$with_gnu_ld" = yes; then
18655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18656 soname_spec='${libname}${release}${shared_ext}$major'
18657 shlibpath_var=LD_LIBRARY_PATH
18658 case $host_vendor in
18660 shlibpath_overrides_runpath=no
18662 export_dynamic_flag_spec='${wl}-Blargedynsym'
18663 runpath_var=LD_RUN_PATH
18671 shlibpath_overrides_runpath=no
18672 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18678 if test -d /usr/nec ;then
18680 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18681 soname_spec='$libname${shared_ext}.$major'
18682 shlibpath_var=LD_LIBRARY_PATH
18686 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18687 version_type=freebsd-elf
18690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18691 soname_spec='${libname}${release}${shared_ext}$major'
18692 shlibpath_var=LD_LIBRARY_PATH
18693 hardcode_into_libs=yes
18694 if test "$with_gnu_ld" = yes; then
18695 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18696 shlibpath_overrides_runpath=no
18698 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18699 shlibpath_overrides_runpath=yes
18702 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18706 sys_lib_dlsearch_path_spec='/usr/lib'
18711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18712 soname_spec='${libname}${release}${shared_ext}$major'
18713 shlibpath_var=LD_LIBRARY_PATH
18720 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18721 echo "${ECHO_T}$dynamic_linker" >&6
18722 test "$dynamic_linker" = no && can_build_shared=no
18724 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18725 if test "$GCC" = yes; then
18726 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18729 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18730 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18731 hardcode_action_GCJ=
18732 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18733 test -n "$runpath_var_GCJ" || \
18734 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18736 # We can hardcode non-existant directories.
18737 if test "$hardcode_direct_GCJ" != no &&
18738 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18739 # have to relink, otherwise we might link with an installed library
18740 # when we should be linking with a yet-to-be-installed one
18741 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18742 test "$hardcode_minus_L_GCJ" != no; then
18743 # Linking always hardcodes the temporary library directory.
18744 hardcode_action_GCJ=relink
18746 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18747 hardcode_action_GCJ=immediate
18750 # We cannot hardcode anything, or else we can only hardcode existing
18752 hardcode_action_GCJ=unsupported
18754 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18755 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18757 if test "$hardcode_action_GCJ" = relink; then
18758 # Fast installation is not supported
18759 enable_fast_install=no
18760 elif test "$shlibpath_overrides_runpath" = yes ||
18761 test "$enable_shared" = no; then
18762 # Fast installation is not necessary
18763 enable_fast_install=needless
18767 # The else clause should only fire when bootstrapping the
18768 # libtool distribution, otherwise you forgot to ship ltmain.sh
18769 # with your package, and you will get complaints that there are
18770 # no rules to generate ltmain.sh.
18771 if test -f "$ltmain"; then
18772 # See if we are running on zsh, and set the options which allow our commands through
18773 # without removal of \ escapes.
18774 if test -n "${ZSH_VERSION+set}" ; then
18775 setopt NO_GLOB_SUBST
18777 # Now quote all the things that may contain metacharacters while being
18778 # careful not to overquote the AC_SUBSTed values. We take copies of the
18779 # variables and quote the copies for generation of the libtool script.
18780 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18782 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18783 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18784 deplibs_check_method reload_flag reload_cmds need_locks \
18785 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18786 lt_cv_sys_global_symbol_to_c_name_address \
18787 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18788 old_postinstall_cmds old_postuninstall_cmds \
18792 lt_prog_compiler_wl_GCJ \
18793 lt_prog_compiler_pic_GCJ \
18794 lt_prog_compiler_static_GCJ \
18795 lt_prog_compiler_no_builtin_flag_GCJ \
18796 export_dynamic_flag_spec_GCJ \
18797 thread_safe_flag_spec_GCJ \
18798 whole_archive_flag_spec_GCJ \
18799 enable_shared_with_static_runtimes_GCJ \
18800 old_archive_cmds_GCJ \
18801 old_archive_from_new_cmds_GCJ \
18802 predep_objects_GCJ \
18803 postdep_objects_GCJ \
18806 compiler_lib_search_path_GCJ \
18808 archive_expsym_cmds_GCJ \
18809 postinstall_cmds_GCJ \
18810 postuninstall_cmds_GCJ \
18811 old_archive_from_expsyms_cmds_GCJ \
18812 allow_undefined_flag_GCJ \
18813 no_undefined_flag_GCJ \
18814 export_symbols_cmds_GCJ \
18815 hardcode_libdir_flag_spec_GCJ \
18816 hardcode_libdir_flag_spec_ld_GCJ \
18817 hardcode_libdir_separator_GCJ \
18818 hardcode_automatic_GCJ \
18820 module_expsym_cmds_GCJ \
18821 lt_cv_prog_compiler_c_o_GCJ \
18822 exclude_expsyms_GCJ \
18823 include_expsyms_GCJ; do
18826 old_archive_cmds_GCJ | \
18827 old_archive_from_new_cmds_GCJ | \
18828 archive_cmds_GCJ | \
18829 archive_expsym_cmds_GCJ | \
18830 module_cmds_GCJ | \
18831 module_expsym_cmds_GCJ | \
18832 old_archive_from_expsyms_cmds_GCJ | \
18833 export_symbols_cmds_GCJ | \
18834 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18835 postinstall_cmds | postuninstall_cmds | \
18836 old_postinstall_cmds | old_postuninstall_cmds | \
18837 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18838 # Double-quote double-evaled strings.
18839 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18842 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18848 *'\$0 --fallback-echo"')
18849 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18855 cat <<__EOF__ >> "$cfgfile"
18856 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18858 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18860 # Shell to use when invoking shell scripts.
18863 # Whether or not to build shared libraries.
18864 build_libtool_libs=$enable_shared
18866 # Whether or not to build static libraries.
18867 build_old_libs=$enable_static
18869 # Whether or not to add -lc for building shared libraries.
18870 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18872 # Whether or not to disallow shared libs when runtime libs are static
18873 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18875 # Whether or not to optimize for fast installation.
18876 fast_install=$enable_fast_install
18879 host_alias=$host_alias
18883 # The build system.
18884 build_alias=$build_alias
18888 # An echo program that does not interpret backslashes.
18893 AR_FLAGS=$lt_AR_FLAGS
18898 # LTCC compiler flags.
18899 LTCFLAGS=$lt_LTCFLAGS
18901 # A language-specific compiler.
18902 CC=$lt_compiler_GCJ
18904 # Is the compiler the GNU C compiler?
18910 # The linker used to build libraries.
18913 # Whether we need hard or soft links.
18916 # A BSD-compatible nm program.
18919 # A symbol stripping program
18922 # Used to examine libraries when file_magic_cmd begins "file"
18923 MAGIC_CMD=$MAGIC_CMD
18925 # Used on cygwin: DLL creation program.
18928 # Used on cygwin: object dumper.
18931 # Used on cygwin: assembler.
18934 # The name of the directory that contains temporary libtool files.
18937 # How to create reloadable object files.
18938 reload_flag=$lt_reload_flag
18939 reload_cmds=$lt_reload_cmds
18941 # How to pass a linker flag through the compiler.
18942 wl=$lt_lt_prog_compiler_wl_GCJ
18944 # Object file suffix (normally "o").
18945 objext="$ac_objext"
18947 # Old archive suffix (normally "a").
18950 # Shared library suffix (normally ".so").
18951 shrext_cmds='$shrext_cmds'
18953 # Executable file suffix (normally "").
18956 # Additional compiler flags for building library objects.
18957 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18960 # What is the maximum length of a command?
18961 max_cmd_len=$lt_cv_sys_max_cmd_len
18963 # Does compiler simultaneously support -c and -o options?
18964 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18966 # Must we lock files when doing compilation?
18967 need_locks=$lt_need_locks
18969 # Do we need the lib prefix for modules?
18970 need_lib_prefix=$need_lib_prefix
18972 # Do we need a version for libraries?
18973 need_version=$need_version
18975 # Whether dlopen is supported.
18976 dlopen_support=$enable_dlopen
18978 # Whether dlopen of programs is supported.
18979 dlopen_self=$enable_dlopen_self
18981 # Whether dlopen of statically linked programs is supported.
18982 dlopen_self_static=$enable_dlopen_self_static
18984 # Compiler flag to prevent dynamic linking.
18985 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18987 # Compiler flag to turn off builtin functions.
18988 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18990 # Compiler flag to allow reflexive dlopens.
18991 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18993 # Compiler flag to generate shared objects directly from archives.
18994 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18996 # Compiler flag to generate thread-safe objects.
18997 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18999 # Library versioning type.
19000 version_type=$version_type
19002 # Format of library name prefix.
19003 libname_spec=$lt_libname_spec
19005 # List of archive names. First name is the real one, the rest are links.
19006 # The last name is the one that the linker finds with -lNAME.
19007 library_names_spec=$lt_library_names_spec
19009 # The coded name of the library, if different from the real name.
19010 soname_spec=$lt_soname_spec
19012 # Commands used to build and install an old-style archive.
19014 old_archive_cmds=$lt_old_archive_cmds_GCJ
19015 old_postinstall_cmds=$lt_old_postinstall_cmds
19016 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19018 # Create an old-style archive from a shared archive.
19019 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19021 # Create a temporary old-style archive to link instead of a shared archive.
19022 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19024 # Commands used to build and install a shared archive.
19025 archive_cmds=$lt_archive_cmds_GCJ
19026 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19027 postinstall_cmds=$lt_postinstall_cmds
19028 postuninstall_cmds=$lt_postuninstall_cmds
19030 # Commands used to build a loadable module (assumed same as above if empty)
19031 module_cmds=$lt_module_cmds_GCJ
19032 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19034 # Commands to strip libraries.
19035 old_striplib=$lt_old_striplib
19036 striplib=$lt_striplib
19038 # Dependencies to place before the objects being linked to create a
19040 predep_objects=$lt_predep_objects_GCJ
19042 # Dependencies to place after the objects being linked to create a
19044 postdep_objects=$lt_postdep_objects_GCJ
19046 # Dependencies to place before the objects being linked to create a
19048 predeps=$lt_predeps_GCJ
19050 # Dependencies to place after the objects being linked to create a
19052 postdeps=$lt_postdeps_GCJ
19054 # The library search path used internally by the compiler when linking
19055 # a shared library.
19056 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19058 # Method to check whether dependent libraries are shared objects.
19059 deplibs_check_method=$lt_deplibs_check_method
19061 # Command to use when deplibs_check_method == file_magic.
19062 file_magic_cmd=$lt_file_magic_cmd
19064 # Flag that allows shared libraries with undefined symbols to be built.
19065 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19067 # Flag that forces no undefined symbols.
19068 no_undefined_flag=$lt_no_undefined_flag_GCJ
19070 # Commands used to finish a libtool library installation in a directory.
19071 finish_cmds=$lt_finish_cmds
19073 # Same as above, but a single script fragment to be evaled but not shown.
19074 finish_eval=$lt_finish_eval
19076 # Take the output of nm and produce a listing of raw symbols and C names.
19077 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19079 # Transform the output of nm in a proper C declaration
19080 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19082 # Transform the output of nm in a C name address pair
19083 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19085 # This is the shared library runtime path variable.
19086 runpath_var=$runpath_var
19088 # This is the shared library path variable.
19089 shlibpath_var=$shlibpath_var
19091 # Is shlibpath searched before the hard-coded library search path?
19092 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19094 # How to hardcode a shared library path into an executable.
19095 hardcode_action=$hardcode_action_GCJ
19097 # Whether we should hardcode library paths into libraries.
19098 hardcode_into_libs=$hardcode_into_libs
19100 # Flag to hardcode \$libdir into a binary during linking.
19101 # This must work even if \$libdir does not exist.
19102 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19104 # If ld is used when linking, flag to hardcode \$libdir into
19105 # a binary during linking. This must work even if \$libdir does
19107 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19109 # Whether we need a single -rpath flag with a separated argument.
19110 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19112 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19113 # resulting binary.
19114 hardcode_direct=$hardcode_direct_GCJ
19116 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19117 # resulting binary.
19118 hardcode_minus_L=$hardcode_minus_L_GCJ
19120 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19121 # the resulting binary.
19122 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19124 # Set to yes if building a shared library automatically hardcodes DIR into the library
19125 # and all subsequent libraries and executables linked against it.
19126 hardcode_automatic=$hardcode_automatic_GCJ
19128 # Variables whose values should be saved in libtool wrapper scripts and
19129 # restored at relink time.
19130 variables_saved_for_relink="$variables_saved_for_relink"
19132 # Whether libtool must link a program against all its dependency libraries.
19133 link_all_deplibs=$link_all_deplibs_GCJ
19135 # Compile-time system search path for libraries
19136 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19138 # Run-time system search path for libraries
19139 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19141 # Fix the shell variable \$srcfile for the compiler.
19142 fix_srcfile_path="$fix_srcfile_path_GCJ"
19144 # Set to yes if exported symbols are required.
19145 always_export_symbols=$always_export_symbols_GCJ
19147 # The commands to list exported symbols.
19148 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19150 # The commands to extract the exported symbol list from a shared archive.
19151 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19153 # Symbols that should not be listed in the preloaded symbols.
19154 exclude_expsyms=$lt_exclude_expsyms_GCJ
19156 # Symbols that must always be exported.
19157 include_expsyms=$lt_include_expsyms_GCJ
19159 # ### END LIBTOOL TAG CONFIG: $tagname
19165 # If there is no Makefile yet, we rely on a make rule to execute
19166 # `config.status --recheck' to rerun these tests and create the
19167 # libtool script then.
19168 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19169 if test -f "$ltmain_in"; then
19170 test -f Makefile && make "$ltmain"
19176 ac_cpp='$CPP $CPPFLAGS'
19177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19192 # Source file extension for RC test sources.
19195 # Object file extension for compiled RC test sources.
19199 # Code to be used in simple compile tests
19200 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19202 # Code to be used in simple link tests
19203 lt_simple_link_test_code="$lt_simple_compile_test_code"
19205 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19207 # If no C compiler was specified, use CC.
19210 # If no C compiler flags were specified, use CFLAGS.
19211 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19213 # Allow CC to be a program name with arguments.
19217 # save warnings/boilerplate of simple test code
19218 ac_outfile=conftest.$ac_objext
19219 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19220 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19221 _lt_compiler_boilerplate=`cat conftest.err`
19224 ac_outfile=conftest.$ac_objext
19225 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19226 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19227 _lt_linker_boilerplate=`cat conftest.err`
19231 # Allow CC to be a program name with arguments.
19236 for cc_temp in $compiler""; do
19238 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19239 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19244 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19246 lt_cv_prog_compiler_c_o_RC=yes
19248 # The else clause should only fire when bootstrapping the
19249 # libtool distribution, otherwise you forgot to ship ltmain.sh
19250 # with your package, and you will get complaints that there are
19251 # no rules to generate ltmain.sh.
19252 if test -f "$ltmain"; then
19253 # See if we are running on zsh, and set the options which allow our commands through
19254 # without removal of \ escapes.
19255 if test -n "${ZSH_VERSION+set}" ; then
19256 setopt NO_GLOB_SUBST
19258 # Now quote all the things that may contain metacharacters while being
19259 # careful not to overquote the AC_SUBSTed values. We take copies of the
19260 # variables and quote the copies for generation of the libtool script.
19261 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19263 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19264 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19265 deplibs_check_method reload_flag reload_cmds need_locks \
19266 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19267 lt_cv_sys_global_symbol_to_c_name_address \
19268 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19269 old_postinstall_cmds old_postuninstall_cmds \
19273 lt_prog_compiler_wl_RC \
19274 lt_prog_compiler_pic_RC \
19275 lt_prog_compiler_static_RC \
19276 lt_prog_compiler_no_builtin_flag_RC \
19277 export_dynamic_flag_spec_RC \
19278 thread_safe_flag_spec_RC \
19279 whole_archive_flag_spec_RC \
19280 enable_shared_with_static_runtimes_RC \
19281 old_archive_cmds_RC \
19282 old_archive_from_new_cmds_RC \
19283 predep_objects_RC \
19284 postdep_objects_RC \
19287 compiler_lib_search_path_RC \
19289 archive_expsym_cmds_RC \
19290 postinstall_cmds_RC \
19291 postuninstall_cmds_RC \
19292 old_archive_from_expsyms_cmds_RC \
19293 allow_undefined_flag_RC \
19294 no_undefined_flag_RC \
19295 export_symbols_cmds_RC \
19296 hardcode_libdir_flag_spec_RC \
19297 hardcode_libdir_flag_spec_ld_RC \
19298 hardcode_libdir_separator_RC \
19299 hardcode_automatic_RC \
19301 module_expsym_cmds_RC \
19302 lt_cv_prog_compiler_c_o_RC \
19303 exclude_expsyms_RC \
19304 include_expsyms_RC; do
19307 old_archive_cmds_RC | \
19308 old_archive_from_new_cmds_RC | \
19309 archive_cmds_RC | \
19310 archive_expsym_cmds_RC | \
19312 module_expsym_cmds_RC | \
19313 old_archive_from_expsyms_cmds_RC | \
19314 export_symbols_cmds_RC | \
19315 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19316 postinstall_cmds | postuninstall_cmds | \
19317 old_postinstall_cmds | old_postuninstall_cmds | \
19318 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19319 # Double-quote double-evaled strings.
19320 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19323 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19329 *'\$0 --fallback-echo"')
19330 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19336 cat <<__EOF__ >> "$cfgfile"
19337 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19339 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19341 # Shell to use when invoking shell scripts.
19344 # Whether or not to build shared libraries.
19345 build_libtool_libs=$enable_shared
19347 # Whether or not to build static libraries.
19348 build_old_libs=$enable_static
19350 # Whether or not to add -lc for building shared libraries.
19351 build_libtool_need_lc=$archive_cmds_need_lc_RC
19353 # Whether or not to disallow shared libs when runtime libs are static
19354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19356 # Whether or not to optimize for fast installation.
19357 fast_install=$enable_fast_install
19360 host_alias=$host_alias
19364 # The build system.
19365 build_alias=$build_alias
19369 # An echo program that does not interpret backslashes.
19374 AR_FLAGS=$lt_AR_FLAGS
19379 # LTCC compiler flags.
19380 LTCFLAGS=$lt_LTCFLAGS
19382 # A language-specific compiler.
19385 # Is the compiler the GNU C compiler?
19391 # The linker used to build libraries.
19394 # Whether we need hard or soft links.
19397 # A BSD-compatible nm program.
19400 # A symbol stripping program
19403 # Used to examine libraries when file_magic_cmd begins "file"
19404 MAGIC_CMD=$MAGIC_CMD
19406 # Used on cygwin: DLL creation program.
19409 # Used on cygwin: object dumper.
19412 # Used on cygwin: assembler.
19415 # The name of the directory that contains temporary libtool files.
19418 # How to create reloadable object files.
19419 reload_flag=$lt_reload_flag
19420 reload_cmds=$lt_reload_cmds
19422 # How to pass a linker flag through the compiler.
19423 wl=$lt_lt_prog_compiler_wl_RC
19425 # Object file suffix (normally "o").
19426 objext="$ac_objext"
19428 # Old archive suffix (normally "a").
19431 # Shared library suffix (normally ".so").
19432 shrext_cmds='$shrext_cmds'
19434 # Executable file suffix (normally "").
19437 # Additional compiler flags for building library objects.
19438 pic_flag=$lt_lt_prog_compiler_pic_RC
19441 # What is the maximum length of a command?
19442 max_cmd_len=$lt_cv_sys_max_cmd_len
19444 # Does compiler simultaneously support -c and -o options?
19445 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19447 # Must we lock files when doing compilation?
19448 need_locks=$lt_need_locks
19450 # Do we need the lib prefix for modules?
19451 need_lib_prefix=$need_lib_prefix
19453 # Do we need a version for libraries?
19454 need_version=$need_version
19456 # Whether dlopen is supported.
19457 dlopen_support=$enable_dlopen
19459 # Whether dlopen of programs is supported.
19460 dlopen_self=$enable_dlopen_self
19462 # Whether dlopen of statically linked programs is supported.
19463 dlopen_self_static=$enable_dlopen_self_static
19465 # Compiler flag to prevent dynamic linking.
19466 link_static_flag=$lt_lt_prog_compiler_static_RC
19468 # Compiler flag to turn off builtin functions.
19469 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19471 # Compiler flag to allow reflexive dlopens.
19472 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19474 # Compiler flag to generate shared objects directly from archives.
19475 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19477 # Compiler flag to generate thread-safe objects.
19478 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19480 # Library versioning type.
19481 version_type=$version_type
19483 # Format of library name prefix.
19484 libname_spec=$lt_libname_spec
19486 # List of archive names. First name is the real one, the rest are links.
19487 # The last name is the one that the linker finds with -lNAME.
19488 library_names_spec=$lt_library_names_spec
19490 # The coded name of the library, if different from the real name.
19491 soname_spec=$lt_soname_spec
19493 # Commands used to build and install an old-style archive.
19495 old_archive_cmds=$lt_old_archive_cmds_RC
19496 old_postinstall_cmds=$lt_old_postinstall_cmds
19497 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19499 # Create an old-style archive from a shared archive.
19500 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19502 # Create a temporary old-style archive to link instead of a shared archive.
19503 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19505 # Commands used to build and install a shared archive.
19506 archive_cmds=$lt_archive_cmds_RC
19507 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19508 postinstall_cmds=$lt_postinstall_cmds
19509 postuninstall_cmds=$lt_postuninstall_cmds
19511 # Commands used to build a loadable module (assumed same as above if empty)
19512 module_cmds=$lt_module_cmds_RC
19513 module_expsym_cmds=$lt_module_expsym_cmds_RC
19515 # Commands to strip libraries.
19516 old_striplib=$lt_old_striplib
19517 striplib=$lt_striplib
19519 # Dependencies to place before the objects being linked to create a
19521 predep_objects=$lt_predep_objects_RC
19523 # Dependencies to place after the objects being linked to create a
19525 postdep_objects=$lt_postdep_objects_RC
19527 # Dependencies to place before the objects being linked to create a
19529 predeps=$lt_predeps_RC
19531 # Dependencies to place after the objects being linked to create a
19533 postdeps=$lt_postdeps_RC
19535 # The library search path used internally by the compiler when linking
19536 # a shared library.
19537 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19539 # Method to check whether dependent libraries are shared objects.
19540 deplibs_check_method=$lt_deplibs_check_method
19542 # Command to use when deplibs_check_method == file_magic.
19543 file_magic_cmd=$lt_file_magic_cmd
19545 # Flag that allows shared libraries with undefined symbols to be built.
19546 allow_undefined_flag=$lt_allow_undefined_flag_RC
19548 # Flag that forces no undefined symbols.
19549 no_undefined_flag=$lt_no_undefined_flag_RC
19551 # Commands used to finish a libtool library installation in a directory.
19552 finish_cmds=$lt_finish_cmds
19554 # Same as above, but a single script fragment to be evaled but not shown.
19555 finish_eval=$lt_finish_eval
19557 # Take the output of nm and produce a listing of raw symbols and C names.
19558 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19560 # Transform the output of nm in a proper C declaration
19561 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19563 # Transform the output of nm in a C name address pair
19564 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19566 # This is the shared library runtime path variable.
19567 runpath_var=$runpath_var
19569 # This is the shared library path variable.
19570 shlibpath_var=$shlibpath_var
19572 # Is shlibpath searched before the hard-coded library search path?
19573 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19575 # How to hardcode a shared library path into an executable.
19576 hardcode_action=$hardcode_action_RC
19578 # Whether we should hardcode library paths into libraries.
19579 hardcode_into_libs=$hardcode_into_libs
19581 # Flag to hardcode \$libdir into a binary during linking.
19582 # This must work even if \$libdir does not exist.
19583 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19585 # If ld is used when linking, flag to hardcode \$libdir into
19586 # a binary during linking. This must work even if \$libdir does
19588 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19590 # Whether we need a single -rpath flag with a separated argument.
19591 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19593 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19594 # resulting binary.
19595 hardcode_direct=$hardcode_direct_RC
19597 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19598 # resulting binary.
19599 hardcode_minus_L=$hardcode_minus_L_RC
19601 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19602 # the resulting binary.
19603 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19605 # Set to yes if building a shared library automatically hardcodes DIR into the library
19606 # and all subsequent libraries and executables linked against it.
19607 hardcode_automatic=$hardcode_automatic_RC
19609 # Variables whose values should be saved in libtool wrapper scripts and
19610 # restored at relink time.
19611 variables_saved_for_relink="$variables_saved_for_relink"
19613 # Whether libtool must link a program against all its dependency libraries.
19614 link_all_deplibs=$link_all_deplibs_RC
19616 # Compile-time system search path for libraries
19617 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19619 # Run-time system search path for libraries
19620 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19622 # Fix the shell variable \$srcfile for the compiler.
19623 fix_srcfile_path="$fix_srcfile_path_RC"
19625 # Set to yes if exported symbols are required.
19626 always_export_symbols=$always_export_symbols_RC
19628 # The commands to list exported symbols.
19629 export_symbols_cmds=$lt_export_symbols_cmds_RC
19631 # The commands to extract the exported symbol list from a shared archive.
19632 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19634 # Symbols that should not be listed in the preloaded symbols.
19635 exclude_expsyms=$lt_exclude_expsyms_RC
19637 # Symbols that must always be exported.
19638 include_expsyms=$lt_include_expsyms_RC
19640 # ### END LIBTOOL TAG CONFIG: $tagname
19646 # If there is no Makefile yet, we rely on a make rule to execute
19647 # `config.status --recheck' to rerun these tests and create the
19648 # libtool script then.
19649 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19650 if test -f "$ltmain_in"; then
19651 test -f Makefile && make "$ltmain"
19657 ac_cpp='$CPP $CPPFLAGS'
19658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19667 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19668 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19669 { (exit 1); exit 1; }; }
19673 # Append the new tag name to the list of available tags.
19674 if test -n "$tagname" ; then
19675 available_tags="$available_tags $tagname"
19681 # Now substitute the updated list of available tags.
19682 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19683 mv "${ofile}T" "$ofile"
19687 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19688 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19689 { (exit 1); exit 1; }; }
19695 # This can be used to rebuild libtool when needed
19696 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19698 # Always use our own libtool.
19699 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19701 # Prevent multiple expansion
19723 if test "x$cross_compiling" = "xno"; then
19724 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
19726 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
19731 if test -n "$ac_tool_prefix"; then
19732 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19733 set dummy ${ac_tool_prefix}ar; ac_word=$2
19734 echo "$as_me:$LINENO: checking for $ac_word" >&5
19735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19736 if test "${ac_cv_prog_AR+set}" = set; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19739 if test -n "$AR"; then
19740 ac_cv_prog_AR="$AR" # Let the user override the test.
19742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19743 for as_dir in $PATH
19746 test -z "$as_dir" && as_dir=.
19747 for ac_exec_ext in '' $ac_executable_extensions; do
19748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19749 ac_cv_prog_AR="${ac_tool_prefix}ar"
19750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19759 if test -n "$AR"; then
19760 echo "$as_me:$LINENO: result: $AR" >&5
19761 echo "${ECHO_T}$AR" >&6
19763 echo "$as_me:$LINENO: result: no" >&5
19764 echo "${ECHO_T}no" >&6
19768 if test -z "$ac_cv_prog_AR"; then
19770 # Extract the first word of "ar", so it can be a program name with args.
19771 set dummy ar; ac_word=$2
19772 echo "$as_me:$LINENO: checking for $ac_word" >&5
19773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19774 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19775 echo $ECHO_N "(cached) $ECHO_C" >&6
19777 if test -n "$ac_ct_AR"; then
19778 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19781 for as_dir in $PATH
19784 test -z "$as_dir" && as_dir=.
19785 for ac_exec_ext in '' $ac_executable_extensions; do
19786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19787 ac_cv_prog_ac_ct_AR="ar"
19788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19796 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19797 if test -n "$ac_ct_AR"; then
19798 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19799 echo "${ECHO_T}$ac_ct_AR" >&6
19801 echo "$as_me:$LINENO: result: no" >&5
19802 echo "${ECHO_T}no" >&6
19807 AR="$ac_cv_prog_AR"
19810 if test -n "$ac_tool_prefix"; then
19811 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
19812 set dummy ${ac_tool_prefix}ld; ac_word=$2
19813 echo "$as_me:$LINENO: checking for $ac_word" >&5
19814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19815 if test "${ac_cv_prog_LD+set}" = set; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
19818 if test -n "$LD"; then
19819 ac_cv_prog_LD="$LD" # Let the user override the test.
19821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19822 for as_dir in $PATH
19825 test -z "$as_dir" && as_dir=.
19826 for ac_exec_ext in '' $ac_executable_extensions; do
19827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19828 ac_cv_prog_LD="${ac_tool_prefix}ld"
19829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19838 if test -n "$LD"; then
19839 echo "$as_me:$LINENO: result: $LD" >&5
19840 echo "${ECHO_T}$LD" >&6
19842 echo "$as_me:$LINENO: result: no" >&5
19843 echo "${ECHO_T}no" >&6
19847 if test -z "$ac_cv_prog_LD"; then
19849 # Extract the first word of "ld", so it can be a program name with args.
19850 set dummy ld; ac_word=$2
19851 echo "$as_me:$LINENO: checking for $ac_word" >&5
19852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19853 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19856 if test -n "$ac_ct_LD"; then
19857 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
19859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19860 for as_dir in $PATH
19863 test -z "$as_dir" && as_dir=.
19864 for ac_exec_ext in '' $ac_executable_extensions; do
19865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19866 ac_cv_prog_ac_ct_LD="ld"
19867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19875 ac_ct_LD=$ac_cv_prog_ac_ct_LD
19876 if test -n "$ac_ct_LD"; then
19877 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
19878 echo "${ECHO_T}$ac_ct_LD" >&6
19880 echo "$as_me:$LINENO: result: no" >&5
19881 echo "${ECHO_T}no" >&6
19886 LD="$ac_cv_prog_LD"
19890 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19891 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19892 if test "${ac_cv_header_stdc+set}" = set; then
19893 echo $ECHO_N "(cached) $ECHO_C" >&6
19895 cat >conftest.$ac_ext <<_ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h. */
19901 #include <stdlib.h>
19902 #include <stdarg.h>
19903 #include <string.h>
19914 rm -f conftest.$ac_objext
19915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19916 (eval $ac_compile) 2>conftest.er1
19918 grep -v '^ *+' conftest.er1 >conftest.err
19920 cat conftest.err >&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } &&
19923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925 (eval $ac_try) 2>&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; } &&
19929 { ac_try='test -s conftest.$ac_objext'
19930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931 (eval $ac_try) 2>&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; }; then
19935 ac_cv_header_stdc=yes
19937 echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19940 ac_cv_header_stdc=no
19942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19944 if test $ac_cv_header_stdc = yes; then
19945 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19946 cat >conftest.$ac_ext <<_ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h. */
19952 #include <string.h>
19955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19956 $EGREP "memchr" >/dev/null 2>&1; then
19959 ac_cv_header_stdc=no
19965 if test $ac_cv_header_stdc = yes; then
19966 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19967 cat >conftest.$ac_ext <<_ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973 #include <stdlib.h>
19976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19977 $EGREP "free" >/dev/null 2>&1; then
19980 ac_cv_header_stdc=no
19986 if test $ac_cv_header_stdc = yes; then
19987 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19988 if test "$cross_compiling" = yes; then
19991 cat >conftest.$ac_ext <<_ACEOF
19994 cat confdefs.h >>conftest.$ac_ext
19995 cat >>conftest.$ac_ext <<_ACEOF
19996 /* end confdefs.h. */
19998 #if ((' ' & 0x0FF) == 0x020)
19999 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20000 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20002 # define ISLOWER(c) \
20003 (('a' <= (c) && (c) <= 'i') \
20004 || ('j' <= (c) && (c) <= 'r') \
20005 || ('s' <= (c) && (c) <= 'z'))
20006 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20009 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20014 for (i = 0; i < 256; i++)
20015 if (XOR (islower (i), ISLOWER (i))
20016 || toupper (i) != TOUPPER (i))
20021 rm -f conftest$ac_exeext
20022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20023 (eval $ac_link) 2>&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20028 (eval $ac_try) 2>&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); }; }; then
20034 echo "$as_me: program exited with status $ac_status" >&5
20035 echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20038 ( exit $ac_status )
20039 ac_cv_header_stdc=no
20041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20045 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20046 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20047 if test $ac_cv_header_stdc = yes; then
20049 cat >>confdefs.h <<\_ACEOF
20050 #define STDC_HEADERS 1
20056 echo "$as_me:$LINENO: checking for GNU libc2" >&5
20057 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6
20058 if test "${knfsd_cv_glibc2+set}" = set; then
20059 echo $ECHO_N "(cached) $ECHO_C" >&6
20061 cat >conftest.$ac_ext <<_ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h. */
20068 #include <features.h>
20069 #if !defined(__GLIBC__)
20074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20077 grep -v '^ *+' conftest.er1 >conftest.err
20079 cat conftest.err >&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); } >/dev/null; then
20082 if test -s conftest.err; then
20083 ac_cpp_err=$ac_c_preproc_warn_flag
20084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20091 if test -z "$ac_cpp_err"; then
20092 knfsd_cv_glibc2=yes
20094 echo "$as_me: failed program was:" >&5
20095 sed 's/^/| /' conftest.$ac_ext >&5
20099 rm -f conftest.err conftest.$ac_ext
20102 echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20103 echo "${ECHO_T}$knfsd_cv_glibc2" >&6
20104 if test $knfsd_cv_glibc2 = yes; then
20105 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20106 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20110 echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20111 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6
20112 if test "${knfsd_cv_bsd_signals+set}" = set; then
20113 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 if test "$cross_compiling" = yes; then
20116 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20117 See \`config.log' for more details." >&5
20118 echo "$as_me: error: cannot run test program while cross compiling
20119 See \`config.log' for more details." >&2;}
20120 { (exit 1); exit 1; }; }
20122 cat >conftest.$ac_ext <<_ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20129 #include <signal.h>
20130 #include <unistd.h>
20131 #include <sys/wait.h>
20133 static int counter = 0;
20134 static RETSIGTYPE handler(int num) { counter++; }
20139 if ((s = fork()) < 0) return 1;
20141 if (wait(&s) < 0) return 1;
20142 return WIFSIGNALED(s)? 1 : 0;
20145 signal(SIGHUP, handler);
20146 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20147 return (counter == 2)? 0 : 1;
20151 rm -f conftest$ac_exeext
20152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20153 (eval $ac_link) 2>&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158 (eval $ac_try) 2>&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; }; then
20162 knfsd_cv_bsd_signals=yes
20164 echo "$as_me: program exited with status $ac_status" >&5
20165 echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20168 ( exit $ac_status )
20169 knfsd_cv_bsd_signals=no
20171 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20174 echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20175 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6
20176 test $knfsd_cv_bsd_signals = yes &&
20177 cat >>confdefs.h <<\_ACEOF
20178 #define HAVE_BSD_SIGNALS 1
20183 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
20184 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
20185 if test "${ac_cv_lib_socket_main+set}" = set; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20188 ac_check_lib_save_LIBS=$LIBS
20189 LIBS="-lsocket $LIBS"
20190 cat >conftest.$ac_ext <<_ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h. */
20206 rm -f conftest.$ac_objext conftest$ac_exeext
20207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20208 (eval $ac_link) 2>conftest.er1
20210 grep -v '^ *+' conftest.er1 >conftest.err
20212 cat conftest.err >&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } &&
20215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20217 (eval $ac_try) 2>&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); }; } &&
20221 { ac_try='test -s conftest$ac_exeext'
20222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223 (eval $ac_try) 2>&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; }; then
20227 ac_cv_lib_socket_main=yes
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20232 ac_cv_lib_socket_main=no
20234 rm -f conftest.err conftest.$ac_objext \
20235 conftest$ac_exeext conftest.$ac_ext
20236 LIBS=$ac_check_lib_save_LIBS
20238 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
20239 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
20240 if test $ac_cv_lib_socket_main = yes; then
20244 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
20245 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
20246 if test "${ac_cv_lib_nsl_main+set}" = set; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 ac_check_lib_save_LIBS=$LIBS
20251 cat >conftest.$ac_ext <<_ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h. */
20267 rm -f conftest.$ac_objext conftest$ac_exeext
20268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20269 (eval $ac_link) 2>conftest.er1
20271 grep -v '^ *+' conftest.er1 >conftest.err
20273 cat conftest.err >&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } &&
20276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278 (eval $ac_try) 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; } &&
20282 { ac_try='test -s conftest$ac_exeext'
20283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 (eval $ac_try) 2>&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; }; then
20288 ac_cv_lib_nsl_main=yes
20290 echo "$as_me: failed program was:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20293 ac_cv_lib_nsl_main=no
20295 rm -f conftest.err conftest.$ac_objext \
20296 conftest$ac_exeext conftest.$ac_ext
20297 LIBS=$ac_check_lib_save_LIBS
20299 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
20300 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
20301 if test $ac_cv_lib_nsl_main = yes; then
20305 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
20306 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
20307 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
20308 echo $ECHO_N "(cached) $ECHO_C" >&6
20310 ac_check_lib_save_LIBS=$LIBS
20311 LIBS="-lcrypt $LIBS"
20312 cat >conftest.$ac_ext <<_ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20319 /* Override any gcc2 internal prototype to avoid an error. */
20323 /* We use char because int might match the return type of a gcc2
20324 builtin and then its argument prototype would still apply. */
20334 rm -f conftest.$ac_objext conftest$ac_exeext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336 (eval $ac_link) 2>conftest.er1
20338 grep -v '^ *+' conftest.er1 >conftest.err
20340 cat conftest.err >&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } &&
20343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; } &&
20349 { ac_try='test -s conftest$ac_exeext'
20350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20351 (eval $ac_try) 2>&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; }; then
20355 ac_cv_lib_crypt_crypt=yes
20357 echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20360 ac_cv_lib_crypt_crypt=no
20362 rm -f conftest.err conftest.$ac_objext \
20363 conftest$ac_exeext conftest.$ac_ext
20364 LIBS=$ac_check_lib_save_LIBS
20366 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
20367 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
20368 if test $ac_cv_lib_crypt_crypt = yes; then
20372 if test "$enable_nfsv4" = yes; then
20373 echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
20374 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6
20375 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20378 ac_check_lib_save_LIBS=$LIBS
20379 LIBS="-levent $LIBS"
20380 cat >conftest.$ac_ext <<_ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20387 /* Override any gcc2 internal prototype to avoid an error. */
20391 /* We use char because int might match the return type of a gcc2
20392 builtin and then its argument prototype would still apply. */
20393 char event_dispatch ();
20402 rm -f conftest.$ac_objext conftest$ac_exeext
20403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20404 (eval $ac_link) 2>conftest.er1
20406 grep -v '^ *+' conftest.er1 >conftest.err
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } &&
20411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; } &&
20417 { ac_try='test -s conftest$ac_exeext'
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; }; then
20423 ac_cv_lib_event_event_dispatch=yes
20425 echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20428 ac_cv_lib_event_event_dispatch=no
20430 rm -f conftest.err conftest.$ac_objext \
20431 conftest$ac_exeext conftest.$ac_ext
20432 LIBS=$ac_check_lib_save_LIBS
20434 echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
20435 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6
20436 if test $ac_cv_lib_event_event_dispatch = yes; then
20439 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
20440 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
20441 { (exit 1); exit 1; }; }
20444 echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
20445 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6
20446 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20449 ac_check_lib_save_LIBS=$LIBS
20450 LIBS="-lnfsidmap $LIBS"
20451 cat >conftest.$ac_ext <<_ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20458 /* Override any gcc2 internal prototype to avoid an error. */
20462 /* We use char because int might match the return type of a gcc2
20463 builtin and then its argument prototype would still apply. */
20464 char nfs4_init_name_mapping ();
20468 nfs4_init_name_mapping ();
20473 rm -f conftest.$ac_objext conftest$ac_exeext
20474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20475 (eval $ac_link) 2>conftest.er1
20477 grep -v '^ *+' conftest.er1 >conftest.err
20479 cat conftest.err >&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } &&
20482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484 (eval $ac_try) 2>&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; } &&
20488 { ac_try='test -s conftest$ac_exeext'
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; }; then
20494 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
20496 echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20499 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
20501 rm -f conftest.err conftest.$ac_objext \
20502 conftest$ac_exeext conftest.$ac_ext
20503 LIBS=$ac_check_lib_save_LIBS
20505 echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
20506 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6
20507 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
20510 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
20511 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
20512 { (exit 1); exit 1; }; }
20516 for ac_header in event.h
20518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20520 echo "$as_me:$LINENO: checking for $ac_header" >&5
20521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20523 echo $ECHO_N "(cached) $ECHO_C" >&6
20525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20528 # Is the header compilable?
20529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20531 cat >conftest.$ac_ext <<_ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20537 $ac_includes_default
20538 #include <$ac_header>
20540 rm -f conftest.$ac_objext
20541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20542 (eval $ac_compile) 2>conftest.er1
20544 grep -v '^ *+' conftest.er1 >conftest.err
20546 cat conftest.err >&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } &&
20549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; } &&
20555 { ac_try='test -s conftest.$ac_objext'
20556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557 (eval $ac_try) 2>&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; }; then
20561 ac_header_compiler=yes
20563 echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20566 ac_header_compiler=no
20568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20570 echo "${ECHO_T}$ac_header_compiler" >&6
20572 # Is the header present?
20573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20575 cat >conftest.$ac_ext <<_ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20581 #include <$ac_header>
20583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20586 grep -v '^ *+' conftest.er1 >conftest.err
20588 cat conftest.err >&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } >/dev/null; then
20591 if test -s conftest.err; then
20592 ac_cpp_err=$ac_c_preproc_warn_flag
20593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20600 if test -z "$ac_cpp_err"; then
20601 ac_header_preproc=yes
20603 echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20606 ac_header_preproc=no
20608 rm -f conftest.err conftest.$ac_ext
20609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20610 echo "${ECHO_T}$ac_header_preproc" >&6
20612 # So? What about this header?
20613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20619 ac_header_preproc=yes
20622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20636 ## ------------------------------- ##
20637 ## Report this to nfs@lists.sf.net ##
20638 ## ------------------------------- ##
20641 sed "s/^/$as_me: WARNING: /" >&2
20644 echo "$as_me:$LINENO: checking for $ac_header" >&5
20645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20647 echo $ECHO_N "(cached) $ECHO_C" >&6
20649 eval "$as_ac_Header=\$ac_header_preproc"
20651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20656 cat >>confdefs.h <<_ACEOF
20657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20661 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
20662 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
20663 { (exit 1); exit 1; }; }
20669 for ac_header in nfsidmap.h
20671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20673 echo "$as_me:$LINENO: checking for $ac_header" >&5
20674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20681 # Is the header compilable?
20682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20684 cat >conftest.$ac_ext <<_ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20690 $ac_includes_default
20691 #include <$ac_header>
20693 rm -f conftest.$ac_objext
20694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20695 (eval $ac_compile) 2>conftest.er1
20697 grep -v '^ *+' conftest.er1 >conftest.err
20699 cat conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } &&
20702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704 (eval $ac_try) 2>&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; } &&
20708 { ac_try='test -s conftest.$ac_objext'
20709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710 (eval $ac_try) 2>&5
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; }; then
20714 ac_header_compiler=yes
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20719 ac_header_compiler=no
20721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20723 echo "${ECHO_T}$ac_header_compiler" >&6
20725 # Is the header present?
20726 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20728 cat >conftest.$ac_ext <<_ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20734 #include <$ac_header>
20736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20739 grep -v '^ *+' conftest.er1 >conftest.err
20741 cat conftest.err >&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } >/dev/null; then
20744 if test -s conftest.err; then
20745 ac_cpp_err=$ac_c_preproc_warn_flag
20746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20753 if test -z "$ac_cpp_err"; then
20754 ac_header_preproc=yes
20756 echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20759 ac_header_preproc=no
20761 rm -f conftest.err conftest.$ac_ext
20762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20763 echo "${ECHO_T}$ac_header_preproc" >&6
20765 # So? What about this header?
20766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20772 ac_header_preproc=yes
20775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20778 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20782 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20789 ## ------------------------------- ##
20790 ## Report this to nfs@lists.sf.net ##
20791 ## ------------------------------- ##
20794 sed "s/^/$as_me: WARNING: /" >&2
20797 echo "$as_me:$LINENO: checking for $ac_header" >&5
20798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20802 eval "$as_ac_Header=\$ac_header_preproc"
20804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20809 cat >>confdefs.h <<_ACEOF
20810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20814 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
20815 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
20816 { (exit 1); exit 1; }; }
20821 if test "$enable_gss" = yes; then
20824 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20825 if test -n "$ac_tool_prefix"; then
20826 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20827 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20828 echo "$as_me:$LINENO: checking for $ac_word" >&5
20829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20830 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20831 echo $ECHO_N "(cached) $ECHO_C" >&6
20833 case $PKG_CONFIG in
20835 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20839 for as_dir in $PATH
20842 test -z "$as_dir" && as_dir=.
20843 for ac_exec_ext in '' $ac_executable_extensions; do
20844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20845 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20855 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20857 if test -n "$PKG_CONFIG"; then
20858 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20859 echo "${ECHO_T}$PKG_CONFIG" >&6
20861 echo "$as_me:$LINENO: result: no" >&5
20862 echo "${ECHO_T}no" >&6
20866 if test -z "$ac_cv_path_PKG_CONFIG"; then
20867 ac_pt_PKG_CONFIG=$PKG_CONFIG
20868 # Extract the first word of "pkg-config", so it can be a program name with args.
20869 set dummy pkg-config; ac_word=$2
20870 echo "$as_me:$LINENO: checking for $ac_word" >&5
20871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20872 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20873 echo $ECHO_N "(cached) $ECHO_C" >&6
20875 case $ac_pt_PKG_CONFIG in
20877 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20881 for as_dir in $PATH
20884 test -z "$as_dir" && as_dir=.
20885 for ac_exec_ext in '' $ac_executable_extensions; do
20886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20887 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20897 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20899 if test -n "$ac_pt_PKG_CONFIG"; then
20900 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20901 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
20903 echo "$as_me:$LINENO: result: no" >&5
20904 echo "${ECHO_T}no" >&6
20907 PKG_CONFIG=$ac_pt_PKG_CONFIG
20909 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20913 if test -n "$PKG_CONFIG"; then
20914 _pkg_min_version=0.9.0
20915 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20916 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20917 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20918 echo "$as_me:$LINENO: result: yes" >&5
20919 echo "${ECHO_T}yes" >&6
20921 echo "$as_me:$LINENO: result: no" >&5
20922 echo "${ECHO_T}no" >&6
20929 echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
20930 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6
20932 if test -n "$PKG_CONFIG"; then
20933 if test -n "$RPCSECGSS_CFLAGS"; then
20934 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
20936 if test -n "$PKG_CONFIG" && \
20937 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
20938 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); }; then
20942 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
20950 if test -n "$PKG_CONFIG"; then
20951 if test -n "$RPCSECGSS_LIBS"; then
20952 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
20954 if test -n "$PKG_CONFIG" && \
20955 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
20956 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); }; then
20960 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
20971 if test $pkg_failed = yes; then
20973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20974 _pkg_short_errors_supported=yes
20976 _pkg_short_errors_supported=no
20978 if test $_pkg_short_errors_supported = yes; then
20979 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
20981 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
20983 # Put the nasty error message in config.log where it belongs
20984 echo "$RPCSECGSS_PKG_ERRORS" >&5
20986 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
20987 If you have pkgconfig installed, you might try setting environment
20988 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
20989 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
20990 If you have pkgconfig installed, you might try setting environment
20991 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
20992 { (exit 1); exit 1; }; }
20995 elif test $pkg_failed = untried; then
20996 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
20997 If you have pkgconfig installed, you might try setting environment
20998 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
20999 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
21000 If you have pkgconfig installed, you might try setting environment
21001 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
21002 { (exit 1); exit 1; }; }
21006 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
21007 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
21008 echo "$as_me:$LINENO: result: yes" >&5
21009 echo "${ECHO_T}yes" >&6
21014 echo "$as_me:$LINENO: checking for GSSAPI" >&5
21015 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
21017 if test -n "$PKG_CONFIG"; then
21018 if test -n "$GSSAPI_CFLAGS"; then
21019 pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
21021 if test -n "$PKG_CONFIG" && \
21022 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21023 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; then
21027 pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
21035 if test -n "$PKG_CONFIG"; then
21036 if test -n "$GSSAPI_LIBS"; then
21037 pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
21039 if test -n "$PKG_CONFIG" && \
21040 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21041 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; then
21045 pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
21056 if test $pkg_failed = yes; then
21058 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21059 _pkg_short_errors_supported=yes
21061 _pkg_short_errors_supported=no
21063 if test $_pkg_short_errors_supported = yes; then
21064 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21066 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21068 # Put the nasty error message in config.log where it belongs
21069 echo "$GSSAPI_PKG_ERRORS" >&5
21071 { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
21075 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21076 installed software in a non-standard prefix.
21078 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21079 and GSSAPI_LIBS to avoid the need to call pkg-config.
21080 See the pkg-config man page for more details.
21082 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
21086 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21087 installed software in a non-standard prefix.
21089 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21090 and GSSAPI_LIBS to avoid the need to call pkg-config.
21091 See the pkg-config man page for more details.
21093 { (exit 1); exit 1; }; }
21094 elif test $pkg_failed = untried; then
21095 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21096 is in your PATH or set the PKG_CONFIG environment variable to the full
21097 path to pkg-config.
21099 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21100 and GSSAPI_LIBS to avoid the need to call pkg-config.
21101 See the pkg-config man page for more details.
21103 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21104 See \`config.log' for more details." >&5
21105 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21106 is in your PATH or set the PKG_CONFIG environment variable to the full
21107 path to pkg-config.
21109 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21110 and GSSAPI_LIBS to avoid the need to call pkg-config.
21111 See the pkg-config man page for more details.
21113 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21114 See \`config.log' for more details." >&2;}
21115 { (exit 1); exit 1; }; }
21117 GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
21118 GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
21119 echo "$as_me:$LINENO: result: yes" >&5
21120 echo "${ECHO_T}yes" >&6
21126 if test "$knfsd_cv_glibc2" = no; then
21127 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
21128 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
21129 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
21130 echo $ECHO_N "(cached) $ECHO_C" >&6
21132 ac_check_lib_save_LIBS=$LIBS
21134 cat >conftest.$ac_ext <<_ACEOF
21137 cat confdefs.h >>conftest.$ac_ext
21138 cat >>conftest.$ac_ext <<_ACEOF
21139 /* end confdefs.h. */
21141 /* Override any gcc2 internal prototype to avoid an error. */
21145 /* We use char because int might match the return type of a gcc2
21146 builtin and then its argument prototype would still apply. */
21156 rm -f conftest.$ac_objext conftest$ac_exeext
21157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21158 (eval $ac_link) 2>conftest.er1
21160 grep -v '^ *+' conftest.er1 >conftest.err
21162 cat conftest.err >&5
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); } &&
21165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); }; } &&
21171 { ac_try='test -s conftest$ac_exeext'
21172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173 (eval $ac_try) 2>&5
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; }; then
21177 ac_cv_lib_bsd_daemon=yes
21179 echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21182 ac_cv_lib_bsd_daemon=no
21184 rm -f conftest.err conftest.$ac_objext \
21185 conftest$ac_exeext conftest.$ac_ext
21186 LIBS=$ac_check_lib_save_LIBS
21188 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
21189 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
21190 if test $ac_cv_lib_bsd_daemon = yes; then
21200 if test "$enable_gss" = yes; then
21202 for ac_header in nfsidmap.h
21204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21206 echo "$as_me:$LINENO: checking for $ac_header" >&5
21207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21209 echo $ECHO_N "(cached) $ECHO_C" >&6
21211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21214 # Is the header compilable?
21215 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21217 cat >conftest.$ac_ext <<_ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h. */
21223 $ac_includes_default
21224 #include <$ac_header>
21226 rm -f conftest.$ac_objext
21227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21228 (eval $ac_compile) 2>conftest.er1
21230 grep -v '^ *+' conftest.er1 >conftest.err
21232 cat conftest.err >&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } &&
21235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237 (eval $ac_try) 2>&5
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; } &&
21241 { ac_try='test -s conftest.$ac_objext'
21242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21243 (eval $ac_try) 2>&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; }; then
21247 ac_header_compiler=yes
21249 echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21252 ac_header_compiler=no
21254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21256 echo "${ECHO_T}$ac_header_compiler" >&6
21258 # Is the header present?
21259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21261 cat >conftest.$ac_ext <<_ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h. */
21267 #include <$ac_header>
21269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21272 grep -v '^ *+' conftest.er1 >conftest.err
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } >/dev/null; then
21277 if test -s conftest.err; then
21278 ac_cpp_err=$ac_c_preproc_warn_flag
21279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21286 if test -z "$ac_cpp_err"; then
21287 ac_header_preproc=yes
21289 echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.$ac_ext >&5
21292 ac_header_preproc=no
21294 rm -f conftest.err conftest.$ac_ext
21295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21296 echo "${ECHO_T}$ac_header_preproc" >&6
21298 # So? What about this header?
21299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21305 ac_header_preproc=yes
21308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21322 ## ------------------------------- ##
21323 ## Report this to nfs@lists.sf.net ##
21324 ## ------------------------------- ##
21327 sed "s/^/$as_me: WARNING: /" >&2
21330 echo "$as_me:$LINENO: checking for $ac_header" >&5
21331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21333 echo $ECHO_N "(cached) $ECHO_C" >&6
21335 eval "$as_ac_Header=\$ac_header_preproc"
21337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21342 cat >>confdefs.h <<_ACEOF
21343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21347 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
21348 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
21349 { (exit 1); exit 1; }; }
21355 for ac_header in spkm3.h
21357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21359 echo "$as_me:$LINENO: checking for $ac_header" >&5
21360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21362 echo $ECHO_N "(cached) $ECHO_C" >&6
21364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21367 # Is the header compilable?
21368 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21370 cat >conftest.$ac_ext <<_ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h. */
21376 $ac_includes_default
21377 #include <$ac_header>
21379 rm -f conftest.$ac_objext
21380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21381 (eval $ac_compile) 2>conftest.er1
21383 grep -v '^ *+' conftest.er1 >conftest.err
21385 cat conftest.err >&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); } &&
21388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21390 (eval $ac_try) 2>&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); }; } &&
21394 { ac_try='test -s conftest.$ac_objext'
21395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21396 (eval $ac_try) 2>&5
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); }; }; then
21400 ac_header_compiler=yes
21402 echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21405 ac_header_compiler=no
21407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21409 echo "${ECHO_T}$ac_header_compiler" >&6
21411 # Is the header present?
21412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21414 cat >conftest.$ac_ext <<_ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420 #include <$ac_header>
21422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21425 grep -v '^ *+' conftest.er1 >conftest.err
21427 cat conftest.err >&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } >/dev/null; then
21430 if test -s conftest.err; then
21431 ac_cpp_err=$ac_c_preproc_warn_flag
21432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21439 if test -z "$ac_cpp_err"; then
21440 ac_header_preproc=yes
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21445 ac_header_preproc=no
21447 rm -f conftest.err conftest.$ac_ext
21448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21449 echo "${ECHO_T}$ac_header_preproc" >&6
21451 # So? What about this header?
21452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21458 ac_header_preproc=yes
21461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21464 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21468 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21475 ## ------------------------------- ##
21476 ## Report this to nfs@lists.sf.net ##
21477 ## ------------------------------- ##
21480 sed "s/^/$as_me: WARNING: /" >&2
21483 echo "$as_me:$LINENO: checking for $ac_header" >&5
21484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21486 echo $ECHO_N "(cached) $ECHO_C" >&6
21488 eval "$as_ac_Header=\$ac_header_preproc"
21490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21495 cat >>confdefs.h <<_ACEOF
21496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21500 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
21501 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
21508 echo "$as_me:$LINENO: checking for Kerberos v5" >&5
21509 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6
21511 # Check whether --with-krb5 or --without-krb5 was given.
21512 if test "${with_krb5+set}" = set; then
21513 withval="$with_krb5"
21519 krb5_with="$withval"
21525 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
21526 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
21528 if test -f $dir/bin/krb5-config; then
21529 K5CONFIG=$dir/bin/krb5-config
21530 elif test -f "/usr/kerberos/bin/krb5-config"; then
21531 K5CONFIG="/usr/kerberos/bin/krb5-config"
21532 elif test -f "/usr/lib/mit/bin/krb5-config"; then
21533 K5CONFIG="/usr/lib/mit/bin/krb5-config"
21535 if test "$K5CONFIG" != ""; then
21536 KRBCFLAGS=`$K5CONFIG --cflags`
21537 KRBLIBS=`$K5CONFIG --libs gssapi`
21538 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
21540 cat >>confdefs.h <<_ACEOF
21541 #define KRB5_VERSION $K5VERS
21544 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
21545 \( -f $dir/lib/libgssapi_krb5.a -o \
21546 -f $dir/lib/libgssapi_krb5.so \) ; then
21548 cat >>confdefs.h <<\_ACEOF
21549 #define HAVE_KRB5 1
21553 if test $K5VERS -le 131; then
21555 cat >>confdefs.h <<\_ACEOF
21556 #define USE_GSS_KRB5_CCACHE_NAME 1
21560 gssapi_lib=gssapi_krb5
21562 elif test \( -f $dir/include/heim_err.h -o\
21563 -f $dir/include/heimdal/heim_err.h \) -a \
21564 -f $dir/lib/libroken.a; then
21566 cat >>confdefs.h <<\_ACEOF
21567 #define HAVE_HEIMDAL 1
21576 if test "x$KRBDIR" = "x"; then
21577 if test "x$krb5_with" = "x"; then
21578 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
21579 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
21580 { (exit 1); exit 1; }; }
21582 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
21583 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
21584 { (exit 1); exit 1; }; }
21587 echo "$as_me:$LINENO: result: $KRBDIR" >&5
21588 echo "${ECHO_T}$KRBDIR" >&6
21590 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
21591 echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
21592 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6
21593 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21594 echo $ECHO_N "(cached) $ECHO_C" >&6
21596 ac_check_lib_save_LIBS=$LIBS
21597 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21598 cat >conftest.$ac_ext <<_ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h. */
21605 /* Override any gcc2 internal prototype to avoid an error. */
21609 /* We use char because int might match the return type of a gcc2
21610 builtin and then its argument prototype would still apply. */
21611 char gss_krb5_export_lucid_sec_context ();
21615 gss_krb5_export_lucid_sec_context ();
21620 rm -f conftest.$ac_objext conftest$ac_exeext
21621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21622 (eval $ac_link) 2>conftest.er1
21624 grep -v '^ *+' conftest.er1 >conftest.err
21626 cat conftest.err >&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } &&
21629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21631 (eval $ac_try) 2>&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); }; } &&
21635 { ac_try='test -s conftest$ac_exeext'
21636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637 (eval $ac_try) 2>&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); }; }; then
21641 eval "$as_ac_Lib=yes"
21643 echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21646 eval "$as_ac_Lib=no"
21648 rm -f conftest.err conftest.$ac_objext \
21649 conftest$ac_exeext conftest.$ac_ext
21650 LIBS=$ac_check_lib_save_LIBS
21652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21653 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21654 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21656 cat >>confdefs.h <<\_ACEOF
21657 #define HAVE_LUCID_CONTEXT_SUPPORT 1
21662 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
21663 echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
21664 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6
21665 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21666 echo $ECHO_N "(cached) $ECHO_C" >&6
21668 ac_check_lib_save_LIBS=$LIBS
21669 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21670 cat >conftest.$ac_ext <<_ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21677 /* Override any gcc2 internal prototype to avoid an error. */
21681 /* We use char because int might match the return type of a gcc2
21682 builtin and then its argument prototype would still apply. */
21683 char gss_krb5_set_allowable_enctypes ();
21687 gss_krb5_set_allowable_enctypes ();
21692 rm -f conftest.$ac_objext conftest$ac_exeext
21693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21694 (eval $ac_link) 2>conftest.er1
21696 grep -v '^ *+' conftest.er1 >conftest.err
21698 cat conftest.err >&5
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } &&
21701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703 (eval $ac_try) 2>&5
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; } &&
21707 { ac_try='test -s conftest$ac_exeext'
21708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709 (eval $ac_try) 2>&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; }; then
21713 eval "$as_ac_Lib=yes"
21715 echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21718 eval "$as_ac_Lib=no"
21720 rm -f conftest.err conftest.$ac_objext \
21721 conftest$ac_exeext conftest.$ac_ext
21722 LIBS=$ac_check_lib_save_LIBS
21724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21725 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21726 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21728 cat >>confdefs.h <<\_ACEOF
21729 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
21734 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
21735 echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
21736 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6
21737 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21738 echo $ECHO_N "(cached) $ECHO_C" >&6
21740 ac_check_lib_save_LIBS=$LIBS
21741 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21742 cat >conftest.$ac_ext <<_ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h. */
21749 /* Override any gcc2 internal prototype to avoid an error. */
21753 /* We use char because int might match the return type of a gcc2
21754 builtin and then its argument prototype would still apply. */
21755 char gss_krb5_ccache_name ();
21759 gss_krb5_ccache_name ();
21764 rm -f conftest.$ac_objext conftest$ac_exeext
21765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21766 (eval $ac_link) 2>conftest.er1
21768 grep -v '^ *+' conftest.er1 >conftest.err
21770 cat conftest.err >&5
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); } &&
21773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21775 (eval $ac_try) 2>&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); }; } &&
21779 { ac_try='test -s conftest$ac_exeext'
21780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781 (eval $ac_try) 2>&5
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; }; then
21785 eval "$as_ac_Lib=yes"
21787 echo "$as_me: failed program was:" >&5
21788 sed 's/^/| /' conftest.$ac_ext >&5
21790 eval "$as_ac_Lib=no"
21792 rm -f conftest.err conftest.$ac_objext \
21793 conftest$ac_exeext conftest.$ac_ext
21794 LIBS=$ac_check_lib_save_LIBS
21796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21797 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21798 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21800 cat >>confdefs.h <<\_ACEOF
21801 #define HAVE_GSS_KRB5_CCACHE_NAME 1
21807 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
21808 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
21809 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
21819 echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
21820 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6
21821 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
21822 echo $ECHO_N "(cached) $ECHO_C" >&6
21824 ac_check_lib_save_LIBS=$LIBS
21825 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
21826 cat >conftest.$ac_ext <<_ACEOF
21829 cat confdefs.h >>conftest.$ac_ext
21830 cat >>conftest.$ac_ext <<_ACEOF
21831 /* end confdefs.h. */
21833 /* Override any gcc2 internal prototype to avoid an error. */
21837 /* We use char because int might match the return type of a gcc2
21838 builtin and then its argument prototype would still apply. */
21839 char authgss_create_default ();
21843 authgss_create_default ();
21848 rm -f conftest.$ac_objext conftest$ac_exeext
21849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21850 (eval $ac_link) 2>conftest.er1
21852 grep -v '^ *+' conftest.er1 >conftest.err
21854 cat conftest.err >&5
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); } &&
21857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859 (eval $ac_try) 2>&5
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); }; } &&
21863 { ac_try='test -s conftest$ac_exeext'
21864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21865 (eval $ac_try) 2>&5
21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); }; }; then
21869 ac_cv_lib_rpcsecgss_authgss_create_default=yes
21871 echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21874 ac_cv_lib_rpcsecgss_authgss_create_default=no
21876 rm -f conftest.err conftest.$ac_objext \
21877 conftest$ac_exeext conftest.$ac_ext
21878 LIBS=$ac_check_lib_save_LIBS
21880 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
21881 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6
21882 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
21885 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
21886 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
21887 { (exit 1); exit 1; }; }
21890 echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
21891 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6
21892 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
21893 echo $ECHO_N "(cached) $ECHO_C" >&6
21895 ac_check_lib_save_LIBS=$LIBS
21896 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
21897 cat >conftest.$ac_ext <<_ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h. */
21904 /* Override any gcc2 internal prototype to avoid an error. */
21908 /* We use char because int might match the return type of a gcc2
21909 builtin and then its argument prototype would still apply. */
21910 char authgss_set_debug_level ();
21914 authgss_set_debug_level ();
21919 rm -f conftest.$ac_objext conftest$ac_exeext
21920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21921 (eval $ac_link) 2>conftest.er1
21923 grep -v '^ *+' conftest.er1 >conftest.err
21925 cat conftest.err >&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); } &&
21928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930 (eval $ac_try) 2>&5
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }; } &&
21934 { ac_try='test -s conftest$ac_exeext'
21935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21936 (eval $ac_try) 2>&5
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); }; }; then
21940 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
21942 echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21945 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
21947 rm -f conftest.err conftest.$ac_objext \
21948 conftest$ac_exeext conftest.$ac_ext
21949 LIBS=$ac_check_lib_save_LIBS
21951 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
21952 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6
21953 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
21955 cat >>confdefs.h <<\_ACEOF
21956 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
21986 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
21987 malloc.h memory.h netdb.h netinet/in.h paths.h \
21988 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
21989 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
21990 syslog.h unistd.h com_err.h et/com_err.h
21992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21994 echo "$as_me:$LINENO: checking for $ac_header" >&5
21995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21997 echo $ECHO_N "(cached) $ECHO_C" >&6
21999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22002 # Is the header compilable?
22003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22005 cat >conftest.$ac_ext <<_ACEOF
22008 cat confdefs.h >>conftest.$ac_ext
22009 cat >>conftest.$ac_ext <<_ACEOF
22010 /* end confdefs.h. */
22011 $ac_includes_default
22012 #include <$ac_header>
22014 rm -f conftest.$ac_objext
22015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22016 (eval $ac_compile) 2>conftest.er1
22018 grep -v '^ *+' conftest.er1 >conftest.err
22020 cat conftest.err >&5
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); } &&
22023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22025 (eval $ac_try) 2>&5
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); }; } &&
22029 { ac_try='test -s conftest.$ac_objext'
22030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22031 (eval $ac_try) 2>&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
22035 ac_header_compiler=yes
22037 echo "$as_me: failed program was:" >&5
22038 sed 's/^/| /' conftest.$ac_ext >&5
22040 ac_header_compiler=no
22042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22043 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22044 echo "${ECHO_T}$ac_header_compiler" >&6
22046 # Is the header present?
22047 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22049 cat >conftest.$ac_ext <<_ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h. */
22055 #include <$ac_header>
22057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22060 grep -v '^ *+' conftest.er1 >conftest.err
22062 cat conftest.err >&5
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); } >/dev/null; then
22065 if test -s conftest.err; then
22066 ac_cpp_err=$ac_c_preproc_warn_flag
22067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22074 if test -z "$ac_cpp_err"; then
22075 ac_header_preproc=yes
22077 echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22080 ac_header_preproc=no
22082 rm -f conftest.err conftest.$ac_ext
22083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22084 echo "${ECHO_T}$ac_header_preproc" >&6
22086 # So? What about this header?
22087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22093 ac_header_preproc=yes
22096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22103 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22110 ## ------------------------------- ##
22111 ## Report this to nfs@lists.sf.net ##
22112 ## ------------------------------- ##
22115 sed "s/^/$as_me: WARNING: /" >&2
22118 echo "$as_me:$LINENO: checking for $ac_header" >&5
22119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22121 echo $ECHO_N "(cached) $ECHO_C" >&6
22123 eval "$as_ac_Header=\$ac_header_preproc"
22125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22130 cat >>confdefs.h <<_ACEOF
22131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22139 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22140 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22141 if test "${ac_cv_c_const+set}" = set; then
22142 echo $ECHO_N "(cached) $ECHO_C" >&6
22144 cat >conftest.$ac_ext <<_ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h. */
22154 /* FIXME: Include the comments suggested by Paul. */
22155 #ifndef __cplusplus
22156 /* Ultrix mips cc rejects this. */
22157 typedef int charset[2];
22159 /* SunOS 4.1.1 cc rejects this. */
22160 char const *const *ccp;
22162 /* NEC SVR4.0.2 mips cc rejects this. */
22163 struct point {int x, y;};
22164 static struct point const zero = {0,0};
22165 /* AIX XL C 1.02.0.0 rejects this.
22166 It does not let you subtract one const X* pointer from another in
22167 an arm of an if-expression whose if-part is not a constant
22169 const char *g = "string";
22170 ccp = &g + (g ? g-g : 0);
22171 /* HPUX 7.0 cc rejects these. */
22174 ccp = (char const *const *) p;
22175 { /* SCO 3.2v4 cc rejects this. */
22177 char const *s = 0 ? (char *) 0 : (char const *) 0;
22181 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22182 int x[] = {25, 17};
22183 const int *foo = &x[0];
22186 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22187 typedef const int *iptr;
22191 { /* AIX XL C 1.02.0.0 rejects this saying
22192 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22193 struct s { int j; const int *ap[3]; };
22194 struct s *b; b->j = 5;
22196 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22197 const int foo = 10;
22205 rm -f conftest.$ac_objext
22206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22207 (eval $ac_compile) 2>conftest.er1
22209 grep -v '^ *+' conftest.er1 >conftest.err
22211 cat conftest.err >&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); } &&
22214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216 (eval $ac_try) 2>&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); }; } &&
22220 { ac_try='test -s conftest.$ac_objext'
22221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222 (eval $ac_try) 2>&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; }; then
22228 echo "$as_me: failed program was:" >&5
22229 sed 's/^/| /' conftest.$ac_ext >&5
22233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22235 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22236 echo "${ECHO_T}$ac_cv_c_const" >&6
22237 if test $ac_cv_c_const = no; then
22239 cat >>confdefs.h <<\_ACEOF
22245 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22246 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22247 if test "${ac_cv_type_uid_t+set}" = set; then
22248 echo $ECHO_N "(cached) $ECHO_C" >&6
22250 cat >conftest.$ac_ext <<_ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22256 #include <sys/types.h>
22259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22260 $EGREP "uid_t" >/dev/null 2>&1; then
22261 ac_cv_type_uid_t=yes
22263 ac_cv_type_uid_t=no
22268 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22269 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22270 if test $ac_cv_type_uid_t = no; then
22272 cat >>confdefs.h <<\_ACEOF
22277 cat >>confdefs.h <<\_ACEOF
22283 echo "$as_me:$LINENO: checking for inline" >&5
22284 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22285 if test "${ac_cv_c_inline+set}" = set; then
22286 echo $ECHO_N "(cached) $ECHO_C" >&6
22289 for ac_kw in inline __inline__ __inline; do
22290 cat >conftest.$ac_ext <<_ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h. */
22296 #ifndef __cplusplus
22298 static $ac_kw foo_t static_foo () {return 0; }
22299 $ac_kw foo_t foo () {return 0; }
22303 rm -f conftest.$ac_objext
22304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22305 (eval $ac_compile) 2>conftest.er1
22307 grep -v '^ *+' conftest.er1 >conftest.err
22309 cat conftest.err >&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); } &&
22312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; } &&
22318 { ac_try='test -s conftest.$ac_objext'
22319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22320 (eval $ac_try) 2>&5
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); }; }; then
22324 ac_cv_c_inline=$ac_kw; break
22326 echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22334 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22335 echo "${ECHO_T}$ac_cv_c_inline" >&6
22338 case $ac_cv_c_inline in
22341 case $ac_cv_c_inline in
22343 *) ac_val=$ac_cv_c_inline;;
22345 cat >>confdefs.h <<_ACEOF
22346 #ifndef __cplusplus
22347 #define inline $ac_val
22353 echo "$as_me:$LINENO: checking for off_t" >&5
22354 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22355 if test "${ac_cv_type_off_t+set}" = set; then
22356 echo $ECHO_N "(cached) $ECHO_C" >&6
22358 cat >conftest.$ac_ext <<_ACEOF
22361 cat confdefs.h >>conftest.$ac_ext
22362 cat >>conftest.$ac_ext <<_ACEOF
22363 /* end confdefs.h. */
22364 $ac_includes_default
22370 if (sizeof (off_t))
22376 rm -f conftest.$ac_objext
22377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22378 (eval $ac_compile) 2>conftest.er1
22380 grep -v '^ *+' conftest.er1 >conftest.err
22382 cat conftest.err >&5
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); } &&
22385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387 (eval $ac_try) 2>&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); }; } &&
22391 { ac_try='test -s conftest.$ac_objext'
22392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393 (eval $ac_try) 2>&5
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }; }; then
22397 ac_cv_type_off_t=yes
22399 echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22402 ac_cv_type_off_t=no
22404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22406 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22407 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22408 if test $ac_cv_type_off_t = yes; then
22412 cat >>confdefs.h <<_ACEOF
22418 echo "$as_me:$LINENO: checking for pid_t" >&5
22419 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22420 if test "${ac_cv_type_pid_t+set}" = set; then
22421 echo $ECHO_N "(cached) $ECHO_C" >&6
22423 cat >conftest.$ac_ext <<_ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h. */
22429 $ac_includes_default
22435 if (sizeof (pid_t))
22441 rm -f conftest.$ac_objext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22443 (eval $ac_compile) 2>conftest.er1
22445 grep -v '^ *+' conftest.er1 >conftest.err
22447 cat conftest.err >&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); } &&
22450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452 (eval $ac_try) 2>&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); }; } &&
22456 { ac_try='test -s conftest.$ac_objext'
22457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458 (eval $ac_try) 2>&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; }; then
22462 ac_cv_type_pid_t=yes
22464 echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22467 ac_cv_type_pid_t=no
22469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22471 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22472 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22473 if test $ac_cv_type_pid_t = yes; then
22477 cat >>confdefs.h <<_ACEOF
22483 echo "$as_me:$LINENO: checking for size_t" >&5
22484 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22485 if test "${ac_cv_type_size_t+set}" = set; then
22486 echo $ECHO_N "(cached) $ECHO_C" >&6
22488 cat >conftest.$ac_ext <<_ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h. */
22494 $ac_includes_default
22500 if (sizeof (size_t))
22506 rm -f conftest.$ac_objext
22507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22508 (eval $ac_compile) 2>conftest.er1
22510 grep -v '^ *+' conftest.er1 >conftest.err
22512 cat conftest.err >&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); } &&
22515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22517 (eval $ac_try) 2>&5
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); }; } &&
22521 { ac_try='test -s conftest.$ac_objext'
22522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22523 (eval $ac_try) 2>&5
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); }; }; then
22527 ac_cv_type_size_t=yes
22529 echo "$as_me: failed program was:" >&5
22530 sed 's/^/| /' conftest.$ac_ext >&5
22532 ac_cv_type_size_t=no
22534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22536 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22537 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22538 if test $ac_cv_type_size_t = yes; then
22542 cat >>confdefs.h <<_ACEOF
22543 #define size_t unsigned
22548 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22549 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22550 if test "${ac_cv_header_time+set}" = set; then
22551 echo $ECHO_N "(cached) $ECHO_C" >&6
22553 cat >conftest.$ac_ext <<_ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22559 #include <sys/types.h>
22560 #include <sys/time.h>
22566 if ((struct tm *) 0)
22572 rm -f conftest.$ac_objext
22573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22574 (eval $ac_compile) 2>conftest.er1
22576 grep -v '^ *+' conftest.er1 >conftest.err
22578 cat conftest.err >&5
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); } &&
22581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22583 (eval $ac_try) 2>&5
22585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586 (exit $ac_status); }; } &&
22587 { ac_try='test -s conftest.$ac_objext'
22588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22589 (eval $ac_try) 2>&5
22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 (exit $ac_status); }; }; then
22593 ac_cv_header_time=yes
22595 echo "$as_me: failed program was:" >&5
22596 sed 's/^/| /' conftest.$ac_ext >&5
22598 ac_cv_header_time=no
22600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22602 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22603 echo "${ECHO_T}$ac_cv_header_time" >&6
22604 if test $ac_cv_header_time = yes; then
22606 cat >>confdefs.h <<\_ACEOF
22607 #define TIME_WITH_SYS_TIME 1
22612 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22613 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22614 if test "${ac_cv_struct_tm+set}" = set; then
22615 echo $ECHO_N "(cached) $ECHO_C" >&6
22617 cat >conftest.$ac_ext <<_ACEOF
22620 cat confdefs.h >>conftest.$ac_ext
22621 cat >>conftest.$ac_ext <<_ACEOF
22622 /* end confdefs.h. */
22623 #include <sys/types.h>
22629 struct tm *tp; tp->tm_sec;
22634 rm -f conftest.$ac_objext
22635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22636 (eval $ac_compile) 2>conftest.er1
22638 grep -v '^ *+' conftest.er1 >conftest.err
22640 cat conftest.err >&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); } &&
22643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22645 (eval $ac_try) 2>&5
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); }; } &&
22649 { ac_try='test -s conftest.$ac_objext'
22650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22651 (eval $ac_try) 2>&5
22653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); }; }; then
22655 ac_cv_struct_tm=time.h
22657 echo "$as_me: failed program was:" >&5
22658 sed 's/^/| /' conftest.$ac_ext >&5
22660 ac_cv_struct_tm=sys/time.h
22662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22664 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22665 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22666 if test $ac_cv_struct_tm = sys/time.h; then
22668 cat >>confdefs.h <<\_ACEOF
22669 #define TM_IN_SYS_TIME 1
22675 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22676 # for constant arguments. Useless!
22677 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22678 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22679 if test "${ac_cv_working_alloca_h+set}" = set; then
22680 echo $ECHO_N "(cached) $ECHO_C" >&6
22682 cat >conftest.$ac_ext <<_ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h. */
22688 #include <alloca.h>
22692 char *p = (char *) alloca (2 * sizeof (int));
22697 rm -f conftest.$ac_objext conftest$ac_exeext
22698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22699 (eval $ac_link) 2>conftest.er1
22701 grep -v '^ *+' conftest.er1 >conftest.err
22703 cat conftest.err >&5
22704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); } &&
22706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22708 (eval $ac_try) 2>&5
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); }; } &&
22712 { ac_try='test -s conftest$ac_exeext'
22713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22714 (eval $ac_try) 2>&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); }; }; then
22718 ac_cv_working_alloca_h=yes
22720 echo "$as_me: failed program was:" >&5
22721 sed 's/^/| /' conftest.$ac_ext >&5
22723 ac_cv_working_alloca_h=no
22725 rm -f conftest.err conftest.$ac_objext \
22726 conftest$ac_exeext conftest.$ac_ext
22728 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22729 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22730 if test $ac_cv_working_alloca_h = yes; then
22732 cat >>confdefs.h <<\_ACEOF
22733 #define HAVE_ALLOCA_H 1
22738 echo "$as_me:$LINENO: checking for alloca" >&5
22739 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22740 if test "${ac_cv_func_alloca_works+set}" = set; then
22741 echo $ECHO_N "(cached) $ECHO_C" >&6
22743 cat >conftest.$ac_ext <<_ACEOF
22746 cat confdefs.h >>conftest.$ac_ext
22747 cat >>conftest.$ac_ext <<_ACEOF
22748 /* end confdefs.h. */
22750 # define alloca __builtin_alloca
22753 # include <malloc.h>
22754 # define alloca _alloca
22757 # include <alloca.h>
22762 # ifndef alloca /* predefined by HP cc +Olibcalls */
22773 char *p = (char *) alloca (1);
22778 rm -f conftest.$ac_objext conftest$ac_exeext
22779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22780 (eval $ac_link) 2>conftest.er1
22782 grep -v '^ *+' conftest.er1 >conftest.err
22784 cat conftest.err >&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } &&
22787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789 (eval $ac_try) 2>&5
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); }; } &&
22793 { ac_try='test -s conftest$ac_exeext'
22794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22795 (eval $ac_try) 2>&5
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); }; }; then
22799 ac_cv_func_alloca_works=yes
22801 echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22804 ac_cv_func_alloca_works=no
22806 rm -f conftest.err conftest.$ac_objext \
22807 conftest$ac_exeext conftest.$ac_ext
22809 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22810 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22812 if test $ac_cv_func_alloca_works = yes; then
22814 cat >>confdefs.h <<\_ACEOF
22815 #define HAVE_ALLOCA 1
22819 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22820 # that cause trouble. Some versions do not even contain alloca or
22821 # contain a buggy version. If you still want to use their alloca,
22822 # use ar to extract alloca.o from them instead of compiling alloca.c.
22824 ALLOCA=alloca.$ac_objext
22826 cat >>confdefs.h <<\_ACEOF
22831 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22832 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22833 if test "${ac_cv_os_cray+set}" = set; then
22834 echo $ECHO_N "(cached) $ECHO_C" >&6
22836 cat >conftest.$ac_ext <<_ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h. */
22842 #if defined(CRAY) && ! defined(CRAY2)
22849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22850 $EGREP "webecray" >/dev/null 2>&1; then
22858 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22859 echo "${ECHO_T}$ac_cv_os_cray" >&6
22860 if test $ac_cv_os_cray = yes; then
22861 for ac_func in _getb67 GETB67 getb67; do
22862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22863 echo "$as_me:$LINENO: checking for $ac_func" >&5
22864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22865 if eval "test \"\${$as_ac_var+set}\" = set"; then
22866 echo $ECHO_N "(cached) $ECHO_C" >&6
22868 cat >conftest.$ac_ext <<_ACEOF
22871 cat confdefs.h >>conftest.$ac_ext
22872 cat >>conftest.$ac_ext <<_ACEOF
22873 /* end confdefs.h. */
22874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22876 #define $ac_func innocuous_$ac_func
22878 /* System header to define __stub macros and hopefully few prototypes,
22879 which can conflict with char $ac_func (); below.
22880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22881 <limits.h> exists even on freestanding compilers. */
22884 # include <limits.h>
22886 # include <assert.h>
22891 /* Override any gcc2 internal prototype to avoid an error. */
22896 /* We use char because int might match the return type of a gcc2
22897 builtin and then its argument prototype would still apply. */
22899 /* The GNU C library defines this for functions which it implements
22900 to always fail with ENOSYS. Some functions are actually named
22901 something starting with __ and the normal name is an alias. */
22902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22905 char (*f) () = $ac_func;
22914 return f != $ac_func;
22919 rm -f conftest.$ac_objext conftest$ac_exeext
22920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22921 (eval $ac_link) 2>conftest.er1
22923 grep -v '^ *+' conftest.er1 >conftest.err
22925 cat conftest.err >&5
22926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); } &&
22928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22930 (eval $ac_try) 2>&5
22932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933 (exit $ac_status); }; } &&
22934 { ac_try='test -s conftest$ac_exeext'
22935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22936 (eval $ac_try) 2>&5
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); }; }; then
22940 eval "$as_ac_var=yes"
22942 echo "$as_me: failed program was:" >&5
22943 sed 's/^/| /' conftest.$ac_ext >&5
22945 eval "$as_ac_var=no"
22947 rm -f conftest.err conftest.$ac_objext \
22948 conftest$ac_exeext conftest.$ac_ext
22950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22952 if test `eval echo '${'$as_ac_var'}'` = yes; then
22954 cat >>confdefs.h <<_ACEOF
22955 #define CRAY_STACKSEG_END $ac_func
22964 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22965 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22966 if test "${ac_cv_c_stack_direction+set}" = set; then
22967 echo $ECHO_N "(cached) $ECHO_C" >&6
22969 if test "$cross_compiling" = yes; then
22970 ac_cv_c_stack_direction=0
22972 cat >conftest.$ac_ext <<_ACEOF
22975 cat confdefs.h >>conftest.$ac_ext
22976 cat >>conftest.$ac_ext <<_ACEOF
22977 /* end confdefs.h. */
22979 find_stack_direction ()
22981 static char *addr = 0;
22986 return find_stack_direction ();
22989 return (&dummy > addr) ? 1 : -1;
22995 exit (find_stack_direction () < 0);
22998 rm -f conftest$ac_exeext
22999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23000 (eval $ac_link) 2>&5
23002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23005 (eval $ac_try) 2>&5
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); }; }; then
23009 ac_cv_c_stack_direction=1
23011 echo "$as_me: program exited with status $ac_status" >&5
23012 echo "$as_me: failed program was:" >&5
23013 sed 's/^/| /' conftest.$ac_ext >&5
23015 ( exit $ac_status )
23016 ac_cv_c_stack_direction=-1
23018 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23021 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23022 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23024 cat >>confdefs.h <<_ACEOF
23025 #define STACK_DIRECTION $ac_cv_c_stack_direction
23036 ac_header_dirent=no
23037 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23038 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23039 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23040 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23042 echo $ECHO_N "(cached) $ECHO_C" >&6
23044 cat >conftest.$ac_ext <<_ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h. */
23050 #include <sys/types.h>
23062 rm -f conftest.$ac_objext
23063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23064 (eval $ac_compile) 2>conftest.er1
23066 grep -v '^ *+' conftest.er1 >conftest.err
23068 cat conftest.err >&5
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); } &&
23071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23073 (eval $ac_try) 2>&5
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); }; } &&
23077 { ac_try='test -s conftest.$ac_objext'
23078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23079 (eval $ac_try) 2>&5
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); }; }; then
23083 eval "$as_ac_Header=yes"
23085 echo "$as_me: failed program was:" >&5
23086 sed 's/^/| /' conftest.$ac_ext >&5
23088 eval "$as_ac_Header=no"
23090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23095 cat >>confdefs.h <<_ACEOF
23096 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23099 ac_header_dirent=$ac_hdr; break
23103 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23104 if test $ac_header_dirent = dirent.h; then
23105 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23106 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23107 if test "${ac_cv_search_opendir+set}" = set; then
23108 echo $ECHO_N "(cached) $ECHO_C" >&6
23110 ac_func_search_save_LIBS=$LIBS
23111 ac_cv_search_opendir=no
23112 cat >conftest.$ac_ext <<_ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h. */
23119 /* Override any gcc2 internal prototype to avoid an error. */
23123 /* We use char because int might match the return type of a gcc2
23124 builtin and then its argument prototype would still apply. */
23134 rm -f conftest.$ac_objext conftest$ac_exeext
23135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23136 (eval $ac_link) 2>conftest.er1
23138 grep -v '^ *+' conftest.er1 >conftest.err
23140 cat conftest.err >&5
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); } &&
23143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23145 (eval $ac_try) 2>&5
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); }; } &&
23149 { ac_try='test -s conftest$ac_exeext'
23150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151 (eval $ac_try) 2>&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); }; }; then
23155 ac_cv_search_opendir="none required"
23157 echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23161 rm -f conftest.err conftest.$ac_objext \
23162 conftest$ac_exeext conftest.$ac_ext
23163 if test "$ac_cv_search_opendir" = no; then
23164 for ac_lib in dir; do
23165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23166 cat >conftest.$ac_ext <<_ACEOF
23169 cat confdefs.h >>conftest.$ac_ext
23170 cat >>conftest.$ac_ext <<_ACEOF
23171 /* end confdefs.h. */
23173 /* Override any gcc2 internal prototype to avoid an error. */
23177 /* We use char because int might match the return type of a gcc2
23178 builtin and then its argument prototype would still apply. */
23188 rm -f conftest.$ac_objext conftest$ac_exeext
23189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23190 (eval $ac_link) 2>conftest.er1
23192 grep -v '^ *+' conftest.er1 >conftest.err
23194 cat conftest.err >&5
23195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196 (exit $ac_status); } &&
23197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23199 (eval $ac_try) 2>&5
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); }; } &&
23203 { ac_try='test -s conftest$ac_exeext'
23204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23205 (eval $ac_try) 2>&5
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); }; }; then
23209 ac_cv_search_opendir="-l$ac_lib"
23212 echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23216 rm -f conftest.err conftest.$ac_objext \
23217 conftest$ac_exeext conftest.$ac_ext
23220 LIBS=$ac_func_search_save_LIBS
23222 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23223 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23224 if test "$ac_cv_search_opendir" != no; then
23225 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23230 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23231 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23232 if test "${ac_cv_search_opendir+set}" = set; then
23233 echo $ECHO_N "(cached) $ECHO_C" >&6
23235 ac_func_search_save_LIBS=$LIBS
23236 ac_cv_search_opendir=no
23237 cat >conftest.$ac_ext <<_ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h. */
23244 /* Override any gcc2 internal prototype to avoid an error. */
23248 /* We use char because int might match the return type of a gcc2
23249 builtin and then its argument prototype would still apply. */
23259 rm -f conftest.$ac_objext conftest$ac_exeext
23260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23261 (eval $ac_link) 2>conftest.er1
23263 grep -v '^ *+' conftest.er1 >conftest.err
23265 cat conftest.err >&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } &&
23268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23270 (eval $ac_try) 2>&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); }; } &&
23274 { ac_try='test -s conftest$ac_exeext'
23275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276 (eval $ac_try) 2>&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); }; }; then
23280 ac_cv_search_opendir="none required"
23282 echo "$as_me: failed program was:" >&5
23283 sed 's/^/| /' conftest.$ac_ext >&5
23286 rm -f conftest.err conftest.$ac_objext \
23287 conftest$ac_exeext conftest.$ac_ext
23288 if test "$ac_cv_search_opendir" = no; then
23289 for ac_lib in x; do
23290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23291 cat >conftest.$ac_ext <<_ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h. */
23298 /* Override any gcc2 internal prototype to avoid an error. */
23302 /* We use char because int might match the return type of a gcc2
23303 builtin and then its argument prototype would still apply. */
23313 rm -f conftest.$ac_objext conftest$ac_exeext
23314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23315 (eval $ac_link) 2>conftest.er1
23317 grep -v '^ *+' conftest.er1 >conftest.err
23319 cat conftest.err >&5
23320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); } &&
23322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324 (eval $ac_try) 2>&5
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); }; } &&
23328 { ac_try='test -s conftest$ac_exeext'
23329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23330 (eval $ac_try) 2>&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); }; }; then
23334 ac_cv_search_opendir="-l$ac_lib"
23337 echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23341 rm -f conftest.err conftest.$ac_objext \
23342 conftest$ac_exeext conftest.$ac_ext
23345 LIBS=$ac_func_search_save_LIBS
23347 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23348 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23349 if test "$ac_cv_search_opendir" != no; then
23350 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23356 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
23357 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
23358 if test "${ac_cv_func_closedir_void+set}" = set; then
23359 echo $ECHO_N "(cached) $ECHO_C" >&6
23361 if test "$cross_compiling" = yes; then
23362 ac_cv_func_closedir_void=yes
23364 cat >conftest.$ac_ext <<_ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h. */
23370 $ac_includes_default
23371 #include <$ac_header_dirent>
23372 #ifndef __cplusplus
23379 exit (closedir (opendir (".")) != 0);
23384 rm -f conftest$ac_exeext
23385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23386 (eval $ac_link) 2>&5
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391 (eval $ac_try) 2>&5
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); }; }; then
23395 ac_cv_func_closedir_void=no
23397 echo "$as_me: program exited with status $ac_status" >&5
23398 echo "$as_me: failed program was:" >&5
23399 sed 's/^/| /' conftest.$ac_ext >&5
23401 ( exit $ac_status )
23402 ac_cv_func_closedir_void=yes
23404 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23407 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
23408 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
23409 if test $ac_cv_func_closedir_void = yes; then
23411 cat >>confdefs.h <<\_ACEOF
23412 #define CLOSEDIR_VOID 1
23417 echo "$as_me:$LINENO: checking for error_at_line" >&5
23418 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
23419 if test "${ac_cv_lib_error_at_line+set}" = set; then
23420 echo $ECHO_N "(cached) $ECHO_C" >&6
23422 cat >conftest.$ac_ext <<_ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h. */
23428 $ac_includes_default
23432 error_at_line (0, 0, "", 0, "");
23437 rm -f conftest.$ac_objext conftest$ac_exeext
23438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23439 (eval $ac_link) 2>conftest.er1
23441 grep -v '^ *+' conftest.er1 >conftest.err
23443 cat conftest.err >&5
23444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445 (exit $ac_status); } &&
23446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23448 (eval $ac_try) 2>&5
23450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451 (exit $ac_status); }; } &&
23452 { ac_try='test -s conftest$ac_exeext'
23453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23454 (eval $ac_try) 2>&5
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); }; }; then
23458 ac_cv_lib_error_at_line=yes
23460 echo "$as_me: failed program was:" >&5
23461 sed 's/^/| /' conftest.$ac_ext >&5
23463 ac_cv_lib_error_at_line=no
23465 rm -f conftest.err conftest.$ac_objext \
23466 conftest$ac_exeext conftest.$ac_ext
23468 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
23469 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
23470 if test $ac_cv_lib_error_at_line = no; then
23472 "error.$ac_objext" | \
23473 *" error.$ac_objext" | \
23474 "error.$ac_objext "* | \
23475 *" error.$ac_objext "* ) ;;
23476 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
23483 for ac_header in unistd.h vfork.h
23485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23487 echo "$as_me:$LINENO: checking for $ac_header" >&5
23488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23490 echo $ECHO_N "(cached) $ECHO_C" >&6
23492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23495 # Is the header compilable?
23496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23498 cat >conftest.$ac_ext <<_ACEOF
23501 cat confdefs.h >>conftest.$ac_ext
23502 cat >>conftest.$ac_ext <<_ACEOF
23503 /* end confdefs.h. */
23504 $ac_includes_default
23505 #include <$ac_header>
23507 rm -f conftest.$ac_objext
23508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23509 (eval $ac_compile) 2>conftest.er1
23511 grep -v '^ *+' conftest.er1 >conftest.err
23513 cat conftest.err >&5
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); } &&
23516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518 (eval $ac_try) 2>&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; } &&
23522 { ac_try='test -s conftest.$ac_objext'
23523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524 (eval $ac_try) 2>&5
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); }; }; then
23528 ac_header_compiler=yes
23530 echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23533 ac_header_compiler=no
23535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23537 echo "${ECHO_T}$ac_header_compiler" >&6
23539 # Is the header present?
23540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23542 cat >conftest.$ac_ext <<_ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h. */
23548 #include <$ac_header>
23550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23553 grep -v '^ *+' conftest.er1 >conftest.err
23555 cat conftest.err >&5
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); } >/dev/null; then
23558 if test -s conftest.err; then
23559 ac_cpp_err=$ac_c_preproc_warn_flag
23560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23567 if test -z "$ac_cpp_err"; then
23568 ac_header_preproc=yes
23570 echo "$as_me: failed program was:" >&5
23571 sed 's/^/| /' conftest.$ac_ext >&5
23573 ac_header_preproc=no
23575 rm -f conftest.err conftest.$ac_ext
23576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23577 echo "${ECHO_T}$ac_header_preproc" >&6
23579 # So? What about this header?
23580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23586 ac_header_preproc=yes
23589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23603 ## ------------------------------- ##
23604 ## Report this to nfs@lists.sf.net ##
23605 ## ------------------------------- ##
23608 sed "s/^/$as_me: WARNING: /" >&2
23611 echo "$as_me:$LINENO: checking for $ac_header" >&5
23612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23614 echo $ECHO_N "(cached) $ECHO_C" >&6
23616 eval "$as_ac_Header=\$ac_header_preproc"
23618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23623 cat >>confdefs.h <<_ACEOF
23624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23633 for ac_func in fork vfork
23635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23636 echo "$as_me:$LINENO: checking for $ac_func" >&5
23637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23638 if eval "test \"\${$as_ac_var+set}\" = set"; then
23639 echo $ECHO_N "(cached) $ECHO_C" >&6
23641 cat >conftest.$ac_ext <<_ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h. */
23647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23649 #define $ac_func innocuous_$ac_func
23651 /* System header to define __stub macros and hopefully few prototypes,
23652 which can conflict with char $ac_func (); below.
23653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23654 <limits.h> exists even on freestanding compilers. */
23657 # include <limits.h>
23659 # include <assert.h>
23664 /* Override any gcc2 internal prototype to avoid an error. */
23669 /* We use char because int might match the return type of a gcc2
23670 builtin and then its argument prototype would still apply. */
23672 /* The GNU C library defines this for functions which it implements
23673 to always fail with ENOSYS. Some functions are actually named
23674 something starting with __ and the normal name is an alias. */
23675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23678 char (*f) () = $ac_func;
23687 return f != $ac_func;
23692 rm -f conftest.$ac_objext conftest$ac_exeext
23693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23694 (eval $ac_link) 2>conftest.er1
23696 grep -v '^ *+' conftest.er1 >conftest.err
23698 cat conftest.err >&5
23699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700 (exit $ac_status); } &&
23701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23703 (eval $ac_try) 2>&5
23705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706 (exit $ac_status); }; } &&
23707 { ac_try='test -s conftest$ac_exeext'
23708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23709 (eval $ac_try) 2>&5
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); }; }; then
23713 eval "$as_ac_var=yes"
23715 echo "$as_me: failed program was:" >&5
23716 sed 's/^/| /' conftest.$ac_ext >&5
23718 eval "$as_ac_var=no"
23720 rm -f conftest.err conftest.$ac_objext \
23721 conftest$ac_exeext conftest.$ac_ext
23723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23725 if test `eval echo '${'$as_ac_var'}'` = yes; then
23726 cat >>confdefs.h <<_ACEOF
23727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23733 if test "x$ac_cv_func_fork" = xyes; then
23734 echo "$as_me:$LINENO: checking for working fork" >&5
23735 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23736 if test "${ac_cv_func_fork_works+set}" = set; then
23737 echo $ECHO_N "(cached) $ECHO_C" >&6
23739 if test "$cross_compiling" = yes; then
23740 ac_cv_func_fork_works=cross
23742 cat >conftest.$ac_ext <<_ACEOF
23745 cat confdefs.h >>conftest.$ac_ext
23746 cat >>conftest.$ac_ext <<_ACEOF
23747 /* end confdefs.h. */
23748 $ac_includes_default
23753 /* By Ruediger Kuhlmann. */
23762 rm -f conftest$ac_exeext
23763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23764 (eval $ac_link) 2>&5
23766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23769 (eval $ac_try) 2>&5
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); }; }; then
23773 ac_cv_func_fork_works=yes
23775 echo "$as_me: program exited with status $ac_status" >&5
23776 echo "$as_me: failed program was:" >&5
23777 sed 's/^/| /' conftest.$ac_ext >&5
23779 ( exit $ac_status )
23780 ac_cv_func_fork_works=no
23782 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23785 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23786 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
23789 ac_cv_func_fork_works=$ac_cv_func_fork
23791 if test "x$ac_cv_func_fork_works" = xcross; then
23793 *-*-amigaos* | *-*-msdosdjgpp*)
23794 # Override, as these systems have only a dummy fork() stub
23795 ac_cv_func_fork_works=no
23798 ac_cv_func_fork_works=yes
23801 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23802 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23804 ac_cv_func_vfork_works=$ac_cv_func_vfork
23805 if test "x$ac_cv_func_vfork" = xyes; then
23806 echo "$as_me:$LINENO: checking for working vfork" >&5
23807 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
23808 if test "${ac_cv_func_vfork_works+set}" = set; then
23809 echo $ECHO_N "(cached) $ECHO_C" >&6
23811 if test "$cross_compiling" = yes; then
23812 ac_cv_func_vfork_works=cross
23814 cat >conftest.$ac_ext <<_ACEOF
23817 cat confdefs.h >>conftest.$ac_ext
23818 cat >>conftest.$ac_ext <<_ACEOF
23819 /* end confdefs.h. */
23820 /* Thanks to Paul Eggert for this test. */
23822 #include <stdlib.h>
23823 #include <sys/types.h>
23824 #include <sys/stat.h>
23825 #include <sys/wait.h>
23827 # include <unistd.h>
23830 # include <vfork.h>
23832 /* On some sparc systems, changes by the child to local and incoming
23833 argument registers are propagated back to the parent. The compiler
23834 is told about this with #include <vfork.h>, but some compilers
23835 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23836 static variable whose address is put into a register that is
23837 clobbered by the vfork. */
23840 sparc_address_test (int arg)
23842 sparc_address_test (arg) int arg;
23845 static pid_t child;
23863 pid_t parent = getpid ();
23866 sparc_address_test (0);
23871 /* Here is another test for sparc vfork register problems. This
23872 test uses lots of local variables, at least as many local
23873 variables as main has allocated so far including compiler
23874 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23875 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23876 reuse the register of parent for one of the local variables,
23877 since it will think that parent can't possibly be used any more
23878 in this routine. Assigning to the local variable will thus
23879 munge parent in the parent process. */
23881 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23882 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23883 /* Convince the compiler that p..p7 are live; otherwise, it might
23884 use the same hardware register for all 8 local variables. */
23885 if (p != p1 || p != p2 || p != p3 || p != p4
23886 || p != p5 || p != p6 || p != p7)
23889 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23890 from child file descriptors. If the child closes a descriptor
23891 before it execs or exits, this munges the parent's descriptor
23892 as well. Test for this by closing stdout in the child. */
23893 _exit(close(fileno(stdout)) != 0);
23898 while (wait(&status) != child)
23901 /* Was there some problem with vforking? */
23904 /* Did the child fail? (This shouldn't happen.) */
23907 /* Did the vfork/compiler bug occur? */
23908 || parent != getpid()
23910 /* Did the file descriptor bug occur? */
23911 || fstat(fileno(stdout), &st) != 0
23916 rm -f conftest$ac_exeext
23917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23918 (eval $ac_link) 2>&5
23920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23923 (eval $ac_try) 2>&5
23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926 (exit $ac_status); }; }; then
23927 ac_cv_func_vfork_works=yes
23929 echo "$as_me: program exited with status $ac_status" >&5
23930 echo "$as_me: failed program was:" >&5
23931 sed 's/^/| /' conftest.$ac_ext >&5
23933 ( exit $ac_status )
23934 ac_cv_func_vfork_works=no
23936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23939 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23940 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23943 if test "x$ac_cv_func_fork_works" = xcross; then
23944 ac_cv_func_vfork_works=$ac_cv_func_vfork
23945 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23946 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23949 if test "x$ac_cv_func_vfork_works" = xyes; then
23951 cat >>confdefs.h <<\_ACEOF
23952 #define HAVE_WORKING_VFORK 1
23957 cat >>confdefs.h <<\_ACEOF
23962 if test "x$ac_cv_func_fork_works" = xyes; then
23964 cat >>confdefs.h <<\_ACEOF
23965 #define HAVE_WORKING_FORK 1
23970 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
23971 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
23972 if test "${ac_cv_type_getgroups+set}" = set; then
23973 echo $ECHO_N "(cached) $ECHO_C" >&6
23975 if test "$cross_compiling" = yes; then
23976 ac_cv_type_getgroups=cross
23978 cat >conftest.$ac_ext <<_ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h. */
23984 /* Thanks to Mike Rendell for this test. */
23985 #include <sys/types.h>
23988 #define MAX(x, y) ((x) > (y) ? (x) : (y))
23993 gid_t gidset[NGID];
23995 union { gid_t gval; long lval; } val;
23998 for (i = 0; i < NGID; i++)
23999 gidset[i] = val.gval;
24000 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
24002 /* Exit non-zero if getgroups seems to require an array of ints. This
24003 happens when gid_t is short but getgroups modifies an array of ints. */
24004 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
24007 rm -f conftest$ac_exeext
24008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24009 (eval $ac_link) 2>&5
24011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014 (eval $ac_try) 2>&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); }; }; then
24018 ac_cv_type_getgroups=gid_t
24020 echo "$as_me: program exited with status $ac_status" >&5
24021 echo "$as_me: failed program was:" >&5
24022 sed 's/^/| /' conftest.$ac_ext >&5
24024 ( exit $ac_status )
24025 ac_cv_type_getgroups=int
24027 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24029 if test $ac_cv_type_getgroups = cross; then
24030 cat >conftest.$ac_ext <<_ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h. */
24036 #include <unistd.h>
24039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24040 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
24041 ac_cv_type_getgroups=gid_t
24043 ac_cv_type_getgroups=int
24049 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
24050 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
24052 cat >>confdefs.h <<_ACEOF
24053 #define GETGROUPS_T $ac_cv_type_getgroups
24057 echo "$as_me:$LINENO: checking for getgroups" >&5
24058 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
24059 if test "${ac_cv_func_getgroups+set}" = set; then
24060 echo $ECHO_N "(cached) $ECHO_C" >&6
24062 cat >conftest.$ac_ext <<_ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h. */
24068 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
24069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24070 #define getgroups innocuous_getgroups
24072 /* System header to define __stub macros and hopefully few prototypes,
24073 which can conflict with char getgroups (); below.
24074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24075 <limits.h> exists even on freestanding compilers. */
24078 # include <limits.h>
24080 # include <assert.h>
24085 /* Override any gcc2 internal prototype to avoid an error. */
24090 /* We use char because int might match the return type of a gcc2
24091 builtin and then its argument prototype would still apply. */
24093 /* The GNU C library defines this for functions which it implements
24094 to always fail with ENOSYS. Some functions are actually named
24095 something starting with __ and the normal name is an alias. */
24096 #if defined (__stub_getgroups) || defined (__stub___getgroups)
24099 char (*f) () = getgroups;
24108 return f != getgroups;
24113 rm -f conftest.$ac_objext conftest$ac_exeext
24114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24115 (eval $ac_link) 2>conftest.er1
24117 grep -v '^ *+' conftest.er1 >conftest.err
24119 cat conftest.err >&5
24120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24121 (exit $ac_status); } &&
24122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24124 (eval $ac_try) 2>&5
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); }; } &&
24128 { ac_try='test -s conftest$ac_exeext'
24129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130 (eval $ac_try) 2>&5
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); }; }; then
24134 ac_cv_func_getgroups=yes
24136 echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24139 ac_cv_func_getgroups=no
24141 rm -f conftest.err conftest.$ac_objext \
24142 conftest$ac_exeext conftest.$ac_ext
24144 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
24145 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
24148 # If we don't yet have getgroups, see if it's in -lbsd.
24149 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24151 if test $ac_cv_func_getgroups = no; then
24152 echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
24153 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
24154 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
24155 echo $ECHO_N "(cached) $ECHO_C" >&6
24157 ac_check_lib_save_LIBS=$LIBS
24159 cat >conftest.$ac_ext <<_ACEOF
24162 cat confdefs.h >>conftest.$ac_ext
24163 cat >>conftest.$ac_ext <<_ACEOF
24164 /* end confdefs.h. */
24166 /* Override any gcc2 internal prototype to avoid an error. */
24170 /* We use char because int might match the return type of a gcc2
24171 builtin and then its argument prototype would still apply. */
24181 rm -f conftest.$ac_objext conftest$ac_exeext
24182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24183 (eval $ac_link) 2>conftest.er1
24185 grep -v '^ *+' conftest.er1 >conftest.err
24187 cat conftest.err >&5
24188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); } &&
24190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24192 (eval $ac_try) 2>&5
24194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195 (exit $ac_status); }; } &&
24196 { ac_try='test -s conftest$ac_exeext'
24197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24198 (eval $ac_try) 2>&5
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); }; }; then
24202 ac_cv_lib_bsd_getgroups=yes
24204 echo "$as_me: failed program was:" >&5
24205 sed 's/^/| /' conftest.$ac_ext >&5
24207 ac_cv_lib_bsd_getgroups=no
24209 rm -f conftest.err conftest.$ac_objext \
24210 conftest$ac_exeext conftest.$ac_ext
24211 LIBS=$ac_check_lib_save_LIBS
24213 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
24214 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
24215 if test $ac_cv_lib_bsd_getgroups = yes; then
24216 GETGROUPS_LIB=-lbsd
24221 # Run the program to test the functionality of the system-supplied
24222 # getgroups function only if there is such a function.
24223 if test $ac_cv_func_getgroups = yes; then
24224 echo "$as_me:$LINENO: checking for working getgroups" >&5
24225 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
24226 if test "${ac_cv_func_getgroups_works+set}" = set; then
24227 echo $ECHO_N "(cached) $ECHO_C" >&6
24229 if test "$cross_compiling" = yes; then
24230 ac_cv_func_getgroups_works=no
24232 cat >conftest.$ac_ext <<_ACEOF
24235 cat confdefs.h >>conftest.$ac_ext
24236 cat >>conftest.$ac_ext <<_ACEOF
24237 /* end confdefs.h. */
24238 $ac_includes_default
24242 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24243 exit (getgroups (0, 0) == -1 ? 1 : 0);
24248 rm -f conftest$ac_exeext
24249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24250 (eval $ac_link) 2>&5
24252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24255 (eval $ac_try) 2>&5
24257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258 (exit $ac_status); }; }; then
24259 ac_cv_func_getgroups_works=yes
24261 echo "$as_me: program exited with status $ac_status" >&5
24262 echo "$as_me: failed program was:" >&5
24263 sed 's/^/| /' conftest.$ac_ext >&5
24265 ( exit $ac_status )
24266 ac_cv_func_getgroups_works=no
24268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24272 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
24273 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
24274 if test $ac_cv_func_getgroups_works = yes; then
24276 cat >>confdefs.h <<\_ACEOF
24277 #define HAVE_GETGROUPS 1
24284 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
24285 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
24286 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
24287 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
24288 echo $ECHO_N "(cached) $ECHO_C" >&6
24290 ac_check_lib_save_LIBS=$LIBS
24292 cat >conftest.$ac_ext <<_ACEOF
24295 cat confdefs.h >>conftest.$ac_ext
24296 cat >>conftest.$ac_ext <<_ACEOF
24297 /* end confdefs.h. */
24299 /* Override any gcc2 internal prototype to avoid an error. */
24303 /* We use char because int might match the return type of a gcc2
24304 builtin and then its argument prototype would still apply. */
24314 rm -f conftest.$ac_objext conftest$ac_exeext
24315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24316 (eval $ac_link) 2>conftest.er1
24318 grep -v '^ *+' conftest.er1 >conftest.err
24320 cat conftest.err >&5
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); } &&
24323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24325 (eval $ac_try) 2>&5
24327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328 (exit $ac_status); }; } &&
24329 { ac_try='test -s conftest$ac_exeext'
24330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24331 (eval $ac_try) 2>&5
24333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); }; }; then
24335 ac_cv_lib_sun_getmntent=yes
24337 echo "$as_me: failed program was:" >&5
24338 sed 's/^/| /' conftest.$ac_ext >&5
24340 ac_cv_lib_sun_getmntent=no
24342 rm -f conftest.err conftest.$ac_objext \
24343 conftest$ac_exeext conftest.$ac_ext
24344 LIBS=$ac_check_lib_save_LIBS
24346 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
24347 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
24348 if test $ac_cv_lib_sun_getmntent = yes; then
24351 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
24352 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
24353 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
24354 echo $ECHO_N "(cached) $ECHO_C" >&6
24356 ac_check_lib_save_LIBS=$LIBS
24358 cat >conftest.$ac_ext <<_ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h. */
24365 /* Override any gcc2 internal prototype to avoid an error. */
24369 /* We use char because int might match the return type of a gcc2
24370 builtin and then its argument prototype would still apply. */
24380 rm -f conftest.$ac_objext conftest$ac_exeext
24381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24382 (eval $ac_link) 2>conftest.er1
24384 grep -v '^ *+' conftest.er1 >conftest.err
24386 cat conftest.err >&5
24387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); } &&
24389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24391 (eval $ac_try) 2>&5
24393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394 (exit $ac_status); }; } &&
24395 { ac_try='test -s conftest$ac_exeext'
24396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24397 (eval $ac_try) 2>&5
24399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400 (exit $ac_status); }; }; then
24401 ac_cv_lib_seq_getmntent=yes
24403 echo "$as_me: failed program was:" >&5
24404 sed 's/^/| /' conftest.$ac_ext >&5
24406 ac_cv_lib_seq_getmntent=no
24408 rm -f conftest.err conftest.$ac_objext \
24409 conftest$ac_exeext conftest.$ac_ext
24410 LIBS=$ac_check_lib_save_LIBS
24412 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
24413 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
24414 if test $ac_cv_lib_seq_getmntent = yes; then
24417 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
24418 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
24419 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
24420 echo $ECHO_N "(cached) $ECHO_C" >&6
24422 ac_check_lib_save_LIBS=$LIBS
24424 cat >conftest.$ac_ext <<_ACEOF
24427 cat confdefs.h >>conftest.$ac_ext
24428 cat >>conftest.$ac_ext <<_ACEOF
24429 /* end confdefs.h. */
24431 /* Override any gcc2 internal prototype to avoid an error. */
24435 /* We use char because int might match the return type of a gcc2
24436 builtin and then its argument prototype would still apply. */
24446 rm -f conftest.$ac_objext conftest$ac_exeext
24447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24448 (eval $ac_link) 2>conftest.er1
24450 grep -v '^ *+' conftest.er1 >conftest.err
24452 cat conftest.err >&5
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); } &&
24455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24457 (eval $ac_try) 2>&5
24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460 (exit $ac_status); }; } &&
24461 { ac_try='test -s conftest$ac_exeext'
24462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24463 (eval $ac_try) 2>&5
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); }; }; then
24467 ac_cv_lib_gen_getmntent=yes
24469 echo "$as_me: failed program was:" >&5
24470 sed 's/^/| /' conftest.$ac_ext >&5
24472 ac_cv_lib_gen_getmntent=no
24474 rm -f conftest.err conftest.$ac_objext \
24475 conftest$ac_exeext conftest.$ac_ext
24476 LIBS=$ac_check_lib_save_LIBS
24478 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
24479 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
24480 if test $ac_cv_lib_gen_getmntent = yes; then
24489 for ac_func in getmntent
24491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24492 echo "$as_me:$LINENO: checking for $ac_func" >&5
24493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24494 if eval "test \"\${$as_ac_var+set}\" = set"; then
24495 echo $ECHO_N "(cached) $ECHO_C" >&6
24497 cat >conftest.$ac_ext <<_ACEOF
24500 cat confdefs.h >>conftest.$ac_ext
24501 cat >>conftest.$ac_ext <<_ACEOF
24502 /* end confdefs.h. */
24503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24505 #define $ac_func innocuous_$ac_func
24507 /* System header to define __stub macros and hopefully few prototypes,
24508 which can conflict with char $ac_func (); below.
24509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24510 <limits.h> exists even on freestanding compilers. */
24513 # include <limits.h>
24515 # include <assert.h>
24520 /* Override any gcc2 internal prototype to avoid an error. */
24525 /* We use char because int might match the return type of a gcc2
24526 builtin and then its argument prototype would still apply. */
24528 /* The GNU C library defines this for functions which it implements
24529 to always fail with ENOSYS. Some functions are actually named
24530 something starting with __ and the normal name is an alias. */
24531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24534 char (*f) () = $ac_func;
24543 return f != $ac_func;
24548 rm -f conftest.$ac_objext conftest$ac_exeext
24549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24550 (eval $ac_link) 2>conftest.er1
24552 grep -v '^ *+' conftest.er1 >conftest.err
24554 cat conftest.err >&5
24555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556 (exit $ac_status); } &&
24557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24559 (eval $ac_try) 2>&5
24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); }; } &&
24563 { ac_try='test -s conftest$ac_exeext'
24564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24565 (eval $ac_try) 2>&5
24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); }; }; then
24569 eval "$as_ac_var=yes"
24571 echo "$as_me: failed program was:" >&5
24572 sed 's/^/| /' conftest.$ac_ext >&5
24574 eval "$as_ac_var=no"
24576 rm -f conftest.err conftest.$ac_objext \
24577 conftest$ac_exeext conftest.$ac_ext
24579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24581 if test `eval echo '${'$as_ac_var'}'` = yes; then
24582 cat >>confdefs.h <<_ACEOF
24583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24590 if test $ac_cv_c_compiler_gnu = yes; then
24591 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
24592 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
24593 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
24594 echo $ECHO_N "(cached) $ECHO_C" >&6
24596 ac_pattern="Autoconf.*'x'"
24597 cat >conftest.$ac_ext <<_ACEOF
24600 cat confdefs.h >>conftest.$ac_ext
24601 cat >>conftest.$ac_ext <<_ACEOF
24602 /* end confdefs.h. */
24606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24607 $EGREP "$ac_pattern" >/dev/null 2>&1; then
24608 ac_cv_prog_gcc_traditional=yes
24610 ac_cv_prog_gcc_traditional=no
24615 if test $ac_cv_prog_gcc_traditional = no; then
24616 cat >conftest.$ac_ext <<_ACEOF
24619 cat confdefs.h >>conftest.$ac_ext
24620 cat >>conftest.$ac_ext <<_ACEOF
24621 /* end confdefs.h. */
24622 #include <termio.h>
24625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24626 $EGREP "$ac_pattern" >/dev/null 2>&1; then
24627 ac_cv_prog_gcc_traditional=yes
24633 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
24634 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
24635 if test $ac_cv_prog_gcc_traditional = yes; then
24636 CC="$CC -traditional"
24640 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24641 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24642 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24643 echo $ECHO_N "(cached) $ECHO_C" >&6
24645 rm -f conftest.sym conftest.file
24646 echo >conftest.file
24647 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24648 if test "$cross_compiling" = yes; then
24649 ac_cv_func_lstat_dereferences_slashed_symlink=no
24651 cat >conftest.$ac_ext <<_ACEOF
24654 cat confdefs.h >>conftest.$ac_ext
24655 cat >>conftest.$ac_ext <<_ACEOF
24656 /* end confdefs.h. */
24657 $ac_includes_default
24662 /* Linux will dereference the symlink and fail.
24663 That is better in the sense that it means we will not
24664 have to compile and use the lstat wrapper. */
24665 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24670 rm -f conftest$ac_exeext
24671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24672 (eval $ac_link) 2>&5
24674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24677 (eval $ac_try) 2>&5
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); }; }; then
24681 ac_cv_func_lstat_dereferences_slashed_symlink=yes
24683 echo "$as_me: program exited with status $ac_status" >&5
24684 echo "$as_me: failed program was:" >&5
24685 sed 's/^/| /' conftest.$ac_ext >&5
24687 ( exit $ac_status )
24688 ac_cv_func_lstat_dereferences_slashed_symlink=no
24690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24693 # If the `ln -s' command failed, then we probably don't even
24694 # have an lstat function.
24695 ac_cv_func_lstat_dereferences_slashed_symlink=no
24697 rm -f conftest.sym conftest.file
24700 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24701 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24703 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24705 cat >>confdefs.h <<_ACEOF
24706 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24710 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24712 "lstat.$ac_objext" | \
24713 *" lstat.$ac_objext" | \
24714 "lstat.$ac_objext "* | \
24715 *" lstat.$ac_objext "* ) ;;
24716 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24721 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
24722 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
24723 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
24724 echo $ECHO_N "(cached) $ECHO_C" >&6
24726 if test "$cross_compiling" = yes; then
24727 ac_cv_func_lstat_empty_string_bug=yes
24729 cat >conftest.$ac_ext <<_ACEOF
24732 cat confdefs.h >>conftest.$ac_ext
24733 cat >>conftest.$ac_ext <<_ACEOF
24734 /* end confdefs.h. */
24735 $ac_includes_default
24740 exit (lstat ("", &sbuf) ? 1 : 0);
24745 rm -f conftest$ac_exeext
24746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24747 (eval $ac_link) 2>&5
24749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24752 (eval $ac_try) 2>&5
24754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); }; }; then
24756 ac_cv_func_lstat_empty_string_bug=yes
24758 echo "$as_me: program exited with status $ac_status" >&5
24759 echo "$as_me: failed program was:" >&5
24760 sed 's/^/| /' conftest.$ac_ext >&5
24762 ( exit $ac_status )
24763 ac_cv_func_lstat_empty_string_bug=no
24765 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24768 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
24769 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
24770 if test $ac_cv_func_lstat_empty_string_bug = yes; then
24772 "lstat.$ac_objext" | \
24773 *" lstat.$ac_objext" | \
24774 "lstat.$ac_objext "* | \
24775 *" lstat.$ac_objext "* ) ;;
24776 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24780 cat >>confdefs.h <<_ACEOF
24781 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
24786 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24787 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24788 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24789 echo $ECHO_N "(cached) $ECHO_C" >&6
24791 rm -f conftest.sym conftest.file
24792 echo >conftest.file
24793 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24794 if test "$cross_compiling" = yes; then
24795 ac_cv_func_lstat_dereferences_slashed_symlink=no
24797 cat >conftest.$ac_ext <<_ACEOF
24800 cat confdefs.h >>conftest.$ac_ext
24801 cat >>conftest.$ac_ext <<_ACEOF
24802 /* end confdefs.h. */
24803 $ac_includes_default
24808 /* Linux will dereference the symlink and fail.
24809 That is better in the sense that it means we will not
24810 have to compile and use the lstat wrapper. */
24811 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24816 rm -f conftest$ac_exeext
24817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24818 (eval $ac_link) 2>&5
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24823 (eval $ac_try) 2>&5
24825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826 (exit $ac_status); }; }; then
24827 ac_cv_func_lstat_dereferences_slashed_symlink=yes
24829 echo "$as_me: program exited with status $ac_status" >&5
24830 echo "$as_me: failed program was:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24833 ( exit $ac_status )
24834 ac_cv_func_lstat_dereferences_slashed_symlink=no
24836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24839 # If the `ln -s' command failed, then we probably don't even
24840 # have an lstat function.
24841 ac_cv_func_lstat_dereferences_slashed_symlink=no
24843 rm -f conftest.sym conftest.file
24846 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24847 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24849 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24851 cat >>confdefs.h <<_ACEOF
24852 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24856 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24858 "lstat.$ac_objext" | \
24859 *" lstat.$ac_objext" | \
24860 "lstat.$ac_objext "* | \
24861 *" lstat.$ac_objext "* ) ;;
24862 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24867 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24868 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
24869 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24870 echo $ECHO_N "(cached) $ECHO_C" >&6
24872 cat >conftest.$ac_ext <<_ACEOF
24875 cat confdefs.h >>conftest.$ac_ext
24876 cat >>conftest.$ac_ext <<_ACEOF
24877 /* end confdefs.h. */
24878 #include <sys/types.h>
24882 return makedev(0, 0);
24887 rm -f conftest.$ac_objext conftest$ac_exeext
24888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24889 (eval $ac_link) 2>conftest.er1
24891 grep -v '^ *+' conftest.er1 >conftest.err
24893 cat conftest.err >&5
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); } &&
24896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24898 (eval $ac_try) 2>&5
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); }; } &&
24902 { ac_try='test -s conftest$ac_exeext'
24903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24904 (eval $ac_try) 2>&5
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); }; }; then
24908 ac_cv_header_sys_types_h_makedev=yes
24910 echo "$as_me: failed program was:" >&5
24911 sed 's/^/| /' conftest.$ac_ext >&5
24913 ac_cv_header_sys_types_h_makedev=no
24915 rm -f conftest.err conftest.$ac_objext \
24916 conftest$ac_exeext conftest.$ac_ext
24919 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24920 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
24922 if test $ac_cv_header_sys_types_h_makedev = no; then
24923 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24924 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24925 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
24926 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24927 echo $ECHO_N "(cached) $ECHO_C" >&6
24929 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24930 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
24932 # Is the header compilable?
24933 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24934 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
24935 cat >conftest.$ac_ext <<_ACEOF
24938 cat confdefs.h >>conftest.$ac_ext
24939 cat >>conftest.$ac_ext <<_ACEOF
24940 /* end confdefs.h. */
24941 $ac_includes_default
24942 #include <sys/mkdev.h>
24944 rm -f conftest.$ac_objext
24945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24946 (eval $ac_compile) 2>conftest.er1
24948 grep -v '^ *+' conftest.er1 >conftest.err
24950 cat conftest.err >&5
24951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952 (exit $ac_status); } &&
24953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24955 (eval $ac_try) 2>&5
24957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958 (exit $ac_status); }; } &&
24959 { ac_try='test -s conftest.$ac_objext'
24960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24961 (eval $ac_try) 2>&5
24963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964 (exit $ac_status); }; }; then
24965 ac_header_compiler=yes
24967 echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.$ac_ext >&5
24970 ac_header_compiler=no
24972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24974 echo "${ECHO_T}$ac_header_compiler" >&6
24976 # Is the header present?
24977 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24978 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
24979 cat >conftest.$ac_ext <<_ACEOF
24982 cat confdefs.h >>conftest.$ac_ext
24983 cat >>conftest.$ac_ext <<_ACEOF
24984 /* end confdefs.h. */
24985 #include <sys/mkdev.h>
24987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24990 grep -v '^ *+' conftest.er1 >conftest.err
24992 cat conftest.err >&5
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); } >/dev/null; then
24995 if test -s conftest.err; then
24996 ac_cpp_err=$ac_c_preproc_warn_flag
24997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25004 if test -z "$ac_cpp_err"; then
25005 ac_header_preproc=yes
25007 echo "$as_me: failed program was:" >&5
25008 sed 's/^/| /' conftest.$ac_ext >&5
25010 ac_header_preproc=no
25012 rm -f conftest.err conftest.$ac_ext
25013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25014 echo "${ECHO_T}$ac_header_preproc" >&6
25016 # So? What about this header?
25017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25019 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
25020 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25021 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
25022 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
25023 ac_header_preproc=yes
25026 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25027 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25028 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
25029 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
25030 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25031 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25032 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
25033 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
25034 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25035 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25036 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25037 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25040 ## ------------------------------- ##
25041 ## Report this to nfs@lists.sf.net ##
25042 ## ------------------------------- ##
25045 sed "s/^/$as_me: WARNING: /" >&2
25048 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25049 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
25050 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25051 echo $ECHO_N "(cached) $ECHO_C" >&6
25053 ac_cv_header_sys_mkdev_h=$ac_header_preproc
25055 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25056 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
25059 if test $ac_cv_header_sys_mkdev_h = yes; then
25061 cat >>confdefs.h <<\_ACEOF
25062 #define MAJOR_IN_MKDEV 1
25069 if test $ac_cv_header_sys_mkdev_h = no; then
25070 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25071 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25072 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
25073 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25074 echo $ECHO_N "(cached) $ECHO_C" >&6
25076 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25077 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
25079 # Is the header compilable?
25080 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
25081 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
25082 cat >conftest.$ac_ext <<_ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h. */
25088 $ac_includes_default
25089 #include <sys/sysmacros.h>
25091 rm -f conftest.$ac_objext
25092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25093 (eval $ac_compile) 2>conftest.er1
25095 grep -v '^ *+' conftest.er1 >conftest.err
25097 cat conftest.err >&5
25098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); } &&
25100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25102 (eval $ac_try) 2>&5
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); }; } &&
25106 { ac_try='test -s conftest.$ac_objext'
25107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25108 (eval $ac_try) 2>&5
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); }; }; then
25112 ac_header_compiler=yes
25114 echo "$as_me: failed program was:" >&5
25115 sed 's/^/| /' conftest.$ac_ext >&5
25117 ac_header_compiler=no
25119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25121 echo "${ECHO_T}$ac_header_compiler" >&6
25123 # Is the header present?
25124 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
25125 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
25126 cat >conftest.$ac_ext <<_ACEOF
25129 cat confdefs.h >>conftest.$ac_ext
25130 cat >>conftest.$ac_ext <<_ACEOF
25131 /* end confdefs.h. */
25132 #include <sys/sysmacros.h>
25134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25137 grep -v '^ *+' conftest.er1 >conftest.err
25139 cat conftest.err >&5
25140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); } >/dev/null; then
25142 if test -s conftest.err; then
25143 ac_cpp_err=$ac_c_preproc_warn_flag
25144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25151 if test -z "$ac_cpp_err"; then
25152 ac_header_preproc=yes
25154 echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.$ac_ext >&5
25157 ac_header_preproc=no
25159 rm -f conftest.err conftest.$ac_ext
25160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25161 echo "${ECHO_T}$ac_header_preproc" >&6
25163 # So? What about this header?
25164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25166 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25167 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25168 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25169 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25170 ac_header_preproc=yes
25173 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25174 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25175 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
25176 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
25177 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25178 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25179 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
25180 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
25181 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
25182 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
25183 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
25184 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
25187 ## ------------------------------- ##
25188 ## Report this to nfs@lists.sf.net ##
25189 ## ------------------------------- ##
25192 sed "s/^/$as_me: WARNING: /" >&2
25195 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25196 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
25197 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25198 echo $ECHO_N "(cached) $ECHO_C" >&6
25200 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
25202 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25203 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
25206 if test $ac_cv_header_sys_sysmacros_h = yes; then
25208 cat >>confdefs.h <<\_ACEOF
25209 #define MAJOR_IN_SYSMACROS 1
25219 echo "$as_me:$LINENO: checking for working memcmp" >&5
25220 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
25221 if test "${ac_cv_func_memcmp_working+set}" = set; then
25222 echo $ECHO_N "(cached) $ECHO_C" >&6
25224 if test "$cross_compiling" = yes; then
25225 ac_cv_func_memcmp_working=no
25227 cat >conftest.$ac_ext <<_ACEOF
25230 cat confdefs.h >>conftest.$ac_ext
25231 cat >>conftest.$ac_ext <<_ACEOF
25232 /* end confdefs.h. */
25233 $ac_includes_default
25238 /* Some versions of memcmp are not 8-bit clean. */
25239 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
25240 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25243 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25244 or more and with at least one buffer not starting on a 4-byte boundary.
25245 William Lewis provided this test program. */
25250 for (i = 0; i < 4; i++)
25254 strcpy (a, "--------01111111");
25255 strcpy (b, "--------10000000");
25256 if (memcmp (a, b, 16) >= 0)
25266 rm -f conftest$ac_exeext
25267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25268 (eval $ac_link) 2>&5
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273 (eval $ac_try) 2>&5
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); }; }; then
25277 ac_cv_func_memcmp_working=yes
25279 echo "$as_me: program exited with status $ac_status" >&5
25280 echo "$as_me: failed program was:" >&5
25281 sed 's/^/| /' conftest.$ac_ext >&5
25283 ( exit $ac_status )
25284 ac_cv_func_memcmp_working=no
25286 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25289 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25290 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
25291 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
25292 "memcmp.$ac_objext" | \
25293 *" memcmp.$ac_objext" | \
25294 "memcmp.$ac_objext "* | \
25295 *" memcmp.$ac_objext "* ) ;;
25296 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
25303 for ac_header in sys/select.h sys/socket.h
25305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25307 echo "$as_me:$LINENO: checking for $ac_header" >&5
25308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25310 echo $ECHO_N "(cached) $ECHO_C" >&6
25312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25315 # Is the header compilable?
25316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25318 cat >conftest.$ac_ext <<_ACEOF
25321 cat confdefs.h >>conftest.$ac_ext
25322 cat >>conftest.$ac_ext <<_ACEOF
25323 /* end confdefs.h. */
25324 $ac_includes_default
25325 #include <$ac_header>
25327 rm -f conftest.$ac_objext
25328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25329 (eval $ac_compile) 2>conftest.er1
25331 grep -v '^ *+' conftest.er1 >conftest.err
25333 cat conftest.err >&5
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); } &&
25336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25338 (eval $ac_try) 2>&5
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); }; } &&
25342 { ac_try='test -s conftest.$ac_objext'
25343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25344 (eval $ac_try) 2>&5
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); }; }; then
25348 ac_header_compiler=yes
25350 echo "$as_me: failed program was:" >&5
25351 sed 's/^/| /' conftest.$ac_ext >&5
25353 ac_header_compiler=no
25355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25357 echo "${ECHO_T}$ac_header_compiler" >&6
25359 # Is the header present?
25360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25362 cat >conftest.$ac_ext <<_ACEOF
25365 cat confdefs.h >>conftest.$ac_ext
25366 cat >>conftest.$ac_ext <<_ACEOF
25367 /* end confdefs.h. */
25368 #include <$ac_header>
25370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25373 grep -v '^ *+' conftest.er1 >conftest.err
25375 cat conftest.err >&5
25376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); } >/dev/null; then
25378 if test -s conftest.err; then
25379 ac_cpp_err=$ac_c_preproc_warn_flag
25380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25387 if test -z "$ac_cpp_err"; then
25388 ac_header_preproc=yes
25390 echo "$as_me: failed program was:" >&5
25391 sed 's/^/| /' conftest.$ac_ext >&5
25393 ac_header_preproc=no
25395 rm -f conftest.err conftest.$ac_ext
25396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25397 echo "${ECHO_T}$ac_header_preproc" >&6
25399 # So? What about this header?
25400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25406 ac_header_preproc=yes
25409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25423 ## ------------------------------- ##
25424 ## Report this to nfs@lists.sf.net ##
25425 ## ------------------------------- ##
25428 sed "s/^/$as_me: WARNING: /" >&2
25431 echo "$as_me:$LINENO: checking for $ac_header" >&5
25432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25434 echo $ECHO_N "(cached) $ECHO_C" >&6
25436 eval "$as_ac_Header=\$ac_header_preproc"
25438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25443 cat >>confdefs.h <<_ACEOF
25444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25451 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25452 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25453 if test "${ac_cv_func_select_args+set}" = set; then
25454 echo $ECHO_N "(cached) $ECHO_C" >&6
25456 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25457 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25458 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25459 cat >conftest.$ac_ext <<_ACEOF
25462 cat confdefs.h >>conftest.$ac_ext
25463 cat >>conftest.$ac_ext <<_ACEOF
25464 /* end confdefs.h. */
25465 $ac_includes_default
25466 #if HAVE_SYS_SELECT_H
25467 # include <sys/select.h>
25469 #if HAVE_SYS_SOCKET_H
25470 # include <sys/socket.h>
25476 extern int select ($ac_arg1,
25477 $ac_arg234, $ac_arg234, $ac_arg234,
25483 rm -f conftest.$ac_objext
25484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25485 (eval $ac_compile) 2>conftest.er1
25487 grep -v '^ *+' conftest.er1 >conftest.err
25489 cat conftest.err >&5
25490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25491 (exit $ac_status); } &&
25492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25494 (eval $ac_try) 2>&5
25496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497 (exit $ac_status); }; } &&
25498 { ac_try='test -s conftest.$ac_objext'
25499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25500 (eval $ac_try) 2>&5
25502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503 (exit $ac_status); }; }; then
25504 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25506 echo "$as_me: failed program was:" >&5
25507 sed 's/^/| /' conftest.$ac_ext >&5
25510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25514 # Provide a safe default value.
25515 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25518 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25519 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25520 ac_save_IFS=$IFS; IFS=','
25521 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25525 cat >>confdefs.h <<_ACEOF
25526 #define SELECT_TYPE_ARG1 $1
25530 cat >>confdefs.h <<_ACEOF
25531 #define SELECT_TYPE_ARG234 ($2)
25535 cat >>confdefs.h <<_ACEOF
25536 #define SELECT_TYPE_ARG5 ($3)
25541 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25542 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
25543 if test "${ac_cv_type_signal+set}" = set; then
25544 echo $ECHO_N "(cached) $ECHO_C" >&6
25546 cat >conftest.$ac_ext <<_ACEOF
25549 cat confdefs.h >>conftest.$ac_ext
25550 cat >>conftest.$ac_ext <<_ACEOF
25551 /* end confdefs.h. */
25552 #include <sys/types.h>
25553 #include <signal.h>
25558 extern "C" void (*signal (int, void (*)(int)))(int);
25560 void (*signal ()) ();
25571 rm -f conftest.$ac_objext
25572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25573 (eval $ac_compile) 2>conftest.er1
25575 grep -v '^ *+' conftest.er1 >conftest.err
25577 cat conftest.err >&5
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); } &&
25580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25582 (eval $ac_try) 2>&5
25584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); }; } &&
25586 { ac_try='test -s conftest.$ac_objext'
25587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25588 (eval $ac_try) 2>&5
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); }; }; then
25592 ac_cv_type_signal=void
25594 echo "$as_me: failed program was:" >&5
25595 sed 's/^/| /' conftest.$ac_ext >&5
25597 ac_cv_type_signal=int
25599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25601 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25602 echo "${ECHO_T}$ac_cv_type_signal" >&6
25604 cat >>confdefs.h <<_ACEOF
25605 #define RETSIGTYPE $ac_cv_type_signal
25609 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
25610 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
25611 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
25612 echo $ECHO_N "(cached) $ECHO_C" >&6
25614 if test "$cross_compiling" = yes; then
25615 ac_cv_func_stat_empty_string_bug=yes
25617 cat >conftest.$ac_ext <<_ACEOF
25620 cat confdefs.h >>conftest.$ac_ext
25621 cat >>conftest.$ac_ext <<_ACEOF
25622 /* end confdefs.h. */
25623 $ac_includes_default
25628 exit (stat ("", &sbuf) ? 1 : 0);
25633 rm -f conftest$ac_exeext
25634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25635 (eval $ac_link) 2>&5
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25640 (eval $ac_try) 2>&5
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); }; }; then
25644 ac_cv_func_stat_empty_string_bug=yes
25646 echo "$as_me: program exited with status $ac_status" >&5
25647 echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25650 ( exit $ac_status )
25651 ac_cv_func_stat_empty_string_bug=no
25653 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25656 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
25657 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
25658 if test $ac_cv_func_stat_empty_string_bug = yes; then
25660 "stat.$ac_objext" | \
25661 *" stat.$ac_objext" | \
25662 "stat.$ac_objext "* | \
25663 *" stat.$ac_objext "* ) ;;
25664 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
25668 cat >>confdefs.h <<_ACEOF
25669 #define HAVE_STAT_EMPTY_STRING_BUG 1
25675 for ac_func in vprintf
25677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25678 echo "$as_me:$LINENO: checking for $ac_func" >&5
25679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25680 if eval "test \"\${$as_ac_var+set}\" = set"; then
25681 echo $ECHO_N "(cached) $ECHO_C" >&6
25683 cat >conftest.$ac_ext <<_ACEOF
25686 cat confdefs.h >>conftest.$ac_ext
25687 cat >>conftest.$ac_ext <<_ACEOF
25688 /* end confdefs.h. */
25689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25691 #define $ac_func innocuous_$ac_func
25693 /* System header to define __stub macros and hopefully few prototypes,
25694 which can conflict with char $ac_func (); below.
25695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25696 <limits.h> exists even on freestanding compilers. */
25699 # include <limits.h>
25701 # include <assert.h>
25706 /* Override any gcc2 internal prototype to avoid an error. */
25711 /* We use char because int might match the return type of a gcc2
25712 builtin and then its argument prototype would still apply. */
25714 /* The GNU C library defines this for functions which it implements
25715 to always fail with ENOSYS. Some functions are actually named
25716 something starting with __ and the normal name is an alias. */
25717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25720 char (*f) () = $ac_func;
25729 return f != $ac_func;
25734 rm -f conftest.$ac_objext conftest$ac_exeext
25735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25736 (eval $ac_link) 2>conftest.er1
25738 grep -v '^ *+' conftest.er1 >conftest.err
25740 cat conftest.err >&5
25741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742 (exit $ac_status); } &&
25743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25745 (eval $ac_try) 2>&5
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); }; } &&
25749 { ac_try='test -s conftest$ac_exeext'
25750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25751 (eval $ac_try) 2>&5
25753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); }; }; then
25755 eval "$as_ac_var=yes"
25757 echo "$as_me: failed program was:" >&5
25758 sed 's/^/| /' conftest.$ac_ext >&5
25760 eval "$as_ac_var=no"
25762 rm -f conftest.err conftest.$ac_objext \
25763 conftest$ac_exeext conftest.$ac_ext
25765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25767 if test `eval echo '${'$as_ac_var'}'` = yes; then
25768 cat >>confdefs.h <<_ACEOF
25769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25772 echo "$as_me:$LINENO: checking for _doprnt" >&5
25773 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
25774 if test "${ac_cv_func__doprnt+set}" = set; then
25775 echo $ECHO_N "(cached) $ECHO_C" >&6
25777 cat >conftest.$ac_ext <<_ACEOF
25780 cat confdefs.h >>conftest.$ac_ext
25781 cat >>conftest.$ac_ext <<_ACEOF
25782 /* end confdefs.h. */
25783 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25785 #define _doprnt innocuous__doprnt
25787 /* System header to define __stub macros and hopefully few prototypes,
25788 which can conflict with char _doprnt (); below.
25789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25790 <limits.h> exists even on freestanding compilers. */
25793 # include <limits.h>
25795 # include <assert.h>
25800 /* Override any gcc2 internal prototype to avoid an error. */
25805 /* We use char because int might match the return type of a gcc2
25806 builtin and then its argument prototype would still apply. */
25808 /* The GNU C library defines this for functions which it implements
25809 to always fail with ENOSYS. Some functions are actually named
25810 something starting with __ and the normal name is an alias. */
25811 #if defined (__stub__doprnt) || defined (__stub____doprnt)
25814 char (*f) () = _doprnt;
25823 return f != _doprnt;
25828 rm -f conftest.$ac_objext conftest$ac_exeext
25829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25830 (eval $ac_link) 2>conftest.er1
25832 grep -v '^ *+' conftest.er1 >conftest.err
25834 cat conftest.err >&5
25835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836 (exit $ac_status); } &&
25837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25839 (eval $ac_try) 2>&5
25841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); }; } &&
25843 { ac_try='test -s conftest$ac_exeext'
25844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25845 (eval $ac_try) 2>&5
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); }; }; then
25849 ac_cv_func__doprnt=yes
25851 echo "$as_me: failed program was:" >&5
25852 sed 's/^/| /' conftest.$ac_ext >&5
25854 ac_cv_func__doprnt=no
25856 rm -f conftest.err conftest.$ac_objext \
25857 conftest$ac_exeext conftest.$ac_ext
25859 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25860 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
25861 if test $ac_cv_func__doprnt = yes; then
25863 cat >>confdefs.h <<\_ACEOF
25864 #define HAVE_DOPRNT 1
25901 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
25902 gethostbyaddr gethostbyname gethostname getmntent \
25903 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
25904 realpath rmdir select socket strcasecmp strchr strdup \
25905 strerror strrchr strtol strtoul
25907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25908 echo "$as_me:$LINENO: checking for $ac_func" >&5
25909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25910 if eval "test \"\${$as_ac_var+set}\" = set"; then
25911 echo $ECHO_N "(cached) $ECHO_C" >&6
25913 cat >conftest.$ac_ext <<_ACEOF
25916 cat confdefs.h >>conftest.$ac_ext
25917 cat >>conftest.$ac_ext <<_ACEOF
25918 /* end confdefs.h. */
25919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25921 #define $ac_func innocuous_$ac_func
25923 /* System header to define __stub macros and hopefully few prototypes,
25924 which can conflict with char $ac_func (); below.
25925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25926 <limits.h> exists even on freestanding compilers. */
25929 # include <limits.h>
25931 # include <assert.h>
25936 /* Override any gcc2 internal prototype to avoid an error. */
25941 /* We use char because int might match the return type of a gcc2
25942 builtin and then its argument prototype would still apply. */
25944 /* The GNU C library defines this for functions which it implements
25945 to always fail with ENOSYS. Some functions are actually named
25946 something starting with __ and the normal name is an alias. */
25947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25950 char (*f) () = $ac_func;
25959 return f != $ac_func;
25964 rm -f conftest.$ac_objext conftest$ac_exeext
25965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25966 (eval $ac_link) 2>conftest.er1
25968 grep -v '^ *+' conftest.er1 >conftest.err
25970 cat conftest.err >&5
25971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972 (exit $ac_status); } &&
25973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25975 (eval $ac_try) 2>&5
25977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978 (exit $ac_status); }; } &&
25979 { ac_try='test -s conftest$ac_exeext'
25980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25981 (eval $ac_try) 2>&5
25983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); }; }; then
25985 eval "$as_ac_var=yes"
25987 echo "$as_me: failed program was:" >&5
25988 sed 's/^/| /' conftest.$ac_ext >&5
25990 eval "$as_ac_var=no"
25992 rm -f conftest.err conftest.$ac_objext \
25993 conftest$ac_exeext conftest.$ac_ext
25995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25997 if test `eval echo '${'$as_ac_var'}'` = yes; then
25998 cat >>confdefs.h <<_ACEOF
25999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26007 echo "$as_me:$LINENO: checking for short" >&5
26008 echo $ECHO_N "checking for short... $ECHO_C" >&6
26009 if test "${ac_cv_type_short+set}" = set; then
26010 echo $ECHO_N "(cached) $ECHO_C" >&6
26012 cat >conftest.$ac_ext <<_ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h. */
26018 $ac_includes_default
26024 if (sizeof (short))
26030 rm -f conftest.$ac_objext
26031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26032 (eval $ac_compile) 2>conftest.er1
26034 grep -v '^ *+' conftest.er1 >conftest.err
26036 cat conftest.err >&5
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); } &&
26039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26041 (eval $ac_try) 2>&5
26043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044 (exit $ac_status); }; } &&
26045 { ac_try='test -s conftest.$ac_objext'
26046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26047 (eval $ac_try) 2>&5
26049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); }; }; then
26051 ac_cv_type_short=yes
26053 echo "$as_me: failed program was:" >&5
26054 sed 's/^/| /' conftest.$ac_ext >&5
26056 ac_cv_type_short=no
26058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26060 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26061 echo "${ECHO_T}$ac_cv_type_short" >&6
26063 echo "$as_me:$LINENO: checking size of short" >&5
26064 echo $ECHO_N "checking size of short... $ECHO_C" >&6
26065 if test "${ac_cv_sizeof_short+set}" = set; then
26066 echo $ECHO_N "(cached) $ECHO_C" >&6
26068 if test "$ac_cv_type_short" = yes; then
26069 # The cast to unsigned long works around a bug in the HP C Compiler
26070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26072 # This bug is HP SR number 8606223364.
26073 if test "$cross_compiling" = yes; then
26074 # Depending upon the size, compute the lo and hi bounds.
26075 cat >conftest.$ac_ext <<_ACEOF
26078 cat confdefs.h >>conftest.$ac_ext
26079 cat >>conftest.$ac_ext <<_ACEOF
26080 /* end confdefs.h. */
26081 $ac_includes_default
26085 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
26092 rm -f conftest.$ac_objext
26093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26094 (eval $ac_compile) 2>conftest.er1
26096 grep -v '^ *+' conftest.er1 >conftest.err
26098 cat conftest.err >&5
26099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100 (exit $ac_status); } &&
26101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26103 (eval $ac_try) 2>&5
26105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106 (exit $ac_status); }; } &&
26107 { ac_try='test -s conftest.$ac_objext'
26108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26109 (eval $ac_try) 2>&5
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); }; }; then
26115 cat >conftest.$ac_ext <<_ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h. */
26121 $ac_includes_default
26125 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
26132 rm -f conftest.$ac_objext
26133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26134 (eval $ac_compile) 2>conftest.er1
26136 grep -v '^ *+' conftest.er1 >conftest.err
26138 cat conftest.err >&5
26139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140 (exit $ac_status); } &&
26141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26143 (eval $ac_try) 2>&5
26145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146 (exit $ac_status); }; } &&
26147 { ac_try='test -s conftest.$ac_objext'
26148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26149 (eval $ac_try) 2>&5
26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152 (exit $ac_status); }; }; then
26153 ac_hi=$ac_mid; break
26155 echo "$as_me: failed program was:" >&5
26156 sed 's/^/| /' conftest.$ac_ext >&5
26158 ac_lo=`expr $ac_mid + 1`
26159 if test $ac_lo -le $ac_mid; then
26163 ac_mid=`expr 2 '*' $ac_mid + 1`
26165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26168 echo "$as_me: failed program was:" >&5
26169 sed 's/^/| /' conftest.$ac_ext >&5
26171 cat >conftest.$ac_ext <<_ACEOF
26174 cat confdefs.h >>conftest.$ac_ext
26175 cat >>conftest.$ac_ext <<_ACEOF
26176 /* end confdefs.h. */
26177 $ac_includes_default
26181 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
26188 rm -f conftest.$ac_objext
26189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26190 (eval $ac_compile) 2>conftest.er1
26192 grep -v '^ *+' conftest.er1 >conftest.err
26194 cat conftest.err >&5
26195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196 (exit $ac_status); } &&
26197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26199 (eval $ac_try) 2>&5
26201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202 (exit $ac_status); }; } &&
26203 { ac_try='test -s conftest.$ac_objext'
26204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26205 (eval $ac_try) 2>&5
26207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); }; }; then
26211 cat >conftest.$ac_ext <<_ACEOF
26214 cat confdefs.h >>conftest.$ac_ext
26215 cat >>conftest.$ac_ext <<_ACEOF
26216 /* end confdefs.h. */
26217 $ac_includes_default
26221 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
26228 rm -f conftest.$ac_objext
26229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26230 (eval $ac_compile) 2>conftest.er1
26232 grep -v '^ *+' conftest.er1 >conftest.err
26234 cat conftest.err >&5
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); } &&
26237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26239 (eval $ac_try) 2>&5
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); }; } &&
26243 { ac_try='test -s conftest.$ac_objext'
26244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26245 (eval $ac_try) 2>&5
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); }; }; then
26249 ac_lo=$ac_mid; break
26251 echo "$as_me: failed program was:" >&5
26252 sed 's/^/| /' conftest.$ac_ext >&5
26254 ac_hi=`expr '(' $ac_mid ')' - 1`
26255 if test $ac_mid -le $ac_hi; then
26259 ac_mid=`expr 2 '*' $ac_mid`
26261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26264 echo "$as_me: failed program was:" >&5
26265 sed 's/^/| /' conftest.$ac_ext >&5
26269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26272 # Binary search between lo and hi bounds.
26273 while test "x$ac_lo" != "x$ac_hi"; do
26274 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26275 cat >conftest.$ac_ext <<_ACEOF
26278 cat confdefs.h >>conftest.$ac_ext
26279 cat >>conftest.$ac_ext <<_ACEOF
26280 /* end confdefs.h. */
26281 $ac_includes_default
26285 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
26292 rm -f conftest.$ac_objext
26293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26294 (eval $ac_compile) 2>conftest.er1
26296 grep -v '^ *+' conftest.er1 >conftest.err
26298 cat conftest.err >&5
26299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); } &&
26301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26303 (eval $ac_try) 2>&5
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); }; } &&
26307 { ac_try='test -s conftest.$ac_objext'
26308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26309 (eval $ac_try) 2>&5
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); }; }; then
26315 echo "$as_me: failed program was:" >&5
26316 sed 's/^/| /' conftest.$ac_ext >&5
26318 ac_lo=`expr '(' $ac_mid ')' + 1`
26320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26323 ?*) ac_cv_sizeof_short=$ac_lo;;
26324 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
26325 See \`config.log' for more details." >&5
26326 echo "$as_me: error: cannot compute sizeof (short), 77
26327 See \`config.log' for more details." >&2;}
26328 { (exit 1); exit 1; }; } ;;
26331 if test "$cross_compiling" = yes; then
26332 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26333 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26334 { (exit 1); exit 1; }; }
26336 cat >conftest.$ac_ext <<_ACEOF
26339 cat confdefs.h >>conftest.$ac_ext
26340 cat >>conftest.$ac_ext <<_ACEOF
26341 /* end confdefs.h. */
26342 $ac_includes_default
26343 long longval () { return (long) (sizeof (short)); }
26344 unsigned long ulongval () { return (long) (sizeof (short)); }
26346 #include <stdlib.h>
26351 FILE *f = fopen ("conftest.val", "w");
26354 if (((long) (sizeof (short))) < 0)
26356 long i = longval ();
26357 if (i != ((long) (sizeof (short))))
26359 fprintf (f, "%ld\n", i);
26363 unsigned long i = ulongval ();
26364 if (i != ((long) (sizeof (short))))
26366 fprintf (f, "%lu\n", i);
26368 exit (ferror (f) || fclose (f) != 0);
26374 rm -f conftest$ac_exeext
26375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26376 (eval $ac_link) 2>&5
26378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26381 (eval $ac_try) 2>&5
26383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384 (exit $ac_status); }; }; then
26385 ac_cv_sizeof_short=`cat conftest.val`
26387 echo "$as_me: program exited with status $ac_status" >&5
26388 echo "$as_me: failed program was:" >&5
26389 sed 's/^/| /' conftest.$ac_ext >&5
26391 ( exit $ac_status )
26392 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
26393 See \`config.log' for more details." >&5
26394 echo "$as_me: error: cannot compute sizeof (short), 77
26395 See \`config.log' for more details." >&2;}
26396 { (exit 1); exit 1; }; }
26398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26403 ac_cv_sizeof_short=0
26406 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26407 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
26408 cat >>confdefs.h <<_ACEOF
26409 #define SIZEOF_SHORT $ac_cv_sizeof_short
26413 echo "$as_me:$LINENO: checking for int" >&5
26414 echo $ECHO_N "checking for int... $ECHO_C" >&6
26415 if test "${ac_cv_type_int+set}" = set; then
26416 echo $ECHO_N "(cached) $ECHO_C" >&6
26418 cat >conftest.$ac_ext <<_ACEOF
26421 cat confdefs.h >>conftest.$ac_ext
26422 cat >>conftest.$ac_ext <<_ACEOF
26423 /* end confdefs.h. */
26424 $ac_includes_default
26436 rm -f conftest.$ac_objext
26437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26438 (eval $ac_compile) 2>conftest.er1
26440 grep -v '^ *+' conftest.er1 >conftest.err
26442 cat conftest.err >&5
26443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444 (exit $ac_status); } &&
26445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26447 (eval $ac_try) 2>&5
26449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450 (exit $ac_status); }; } &&
26451 { ac_try='test -s conftest.$ac_objext'
26452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26453 (eval $ac_try) 2>&5
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); }; }; then
26459 echo "$as_me: failed program was:" >&5
26460 sed 's/^/| /' conftest.$ac_ext >&5
26464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26466 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26467 echo "${ECHO_T}$ac_cv_type_int" >&6
26469 echo "$as_me:$LINENO: checking size of int" >&5
26470 echo $ECHO_N "checking size of int... $ECHO_C" >&6
26471 if test "${ac_cv_sizeof_int+set}" = set; then
26472 echo $ECHO_N "(cached) $ECHO_C" >&6
26474 if test "$ac_cv_type_int" = yes; then
26475 # The cast to unsigned long works around a bug in the HP C Compiler
26476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26478 # This bug is HP SR number 8606223364.
26479 if test "$cross_compiling" = yes; then
26480 # Depending upon the size, compute the lo and hi bounds.
26481 cat >conftest.$ac_ext <<_ACEOF
26484 cat confdefs.h >>conftest.$ac_ext
26485 cat >>conftest.$ac_ext <<_ACEOF
26486 /* end confdefs.h. */
26487 $ac_includes_default
26491 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
26498 rm -f conftest.$ac_objext
26499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26500 (eval $ac_compile) 2>conftest.er1
26502 grep -v '^ *+' conftest.er1 >conftest.err
26504 cat conftest.err >&5
26505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506 (exit $ac_status); } &&
26507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26509 (eval $ac_try) 2>&5
26511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26512 (exit $ac_status); }; } &&
26513 { ac_try='test -s conftest.$ac_objext'
26514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26515 (eval $ac_try) 2>&5
26517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518 (exit $ac_status); }; }; then
26521 cat >conftest.$ac_ext <<_ACEOF
26524 cat confdefs.h >>conftest.$ac_ext
26525 cat >>conftest.$ac_ext <<_ACEOF
26526 /* end confdefs.h. */
26527 $ac_includes_default
26531 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26538 rm -f conftest.$ac_objext
26539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26540 (eval $ac_compile) 2>conftest.er1
26542 grep -v '^ *+' conftest.er1 >conftest.err
26544 cat conftest.err >&5
26545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); } &&
26547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549 (eval $ac_try) 2>&5
26551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); }; } &&
26553 { ac_try='test -s conftest.$ac_objext'
26554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26555 (eval $ac_try) 2>&5
26557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558 (exit $ac_status); }; }; then
26559 ac_hi=$ac_mid; break
26561 echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26564 ac_lo=`expr $ac_mid + 1`
26565 if test $ac_lo -le $ac_mid; then
26569 ac_mid=`expr 2 '*' $ac_mid + 1`
26571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26574 echo "$as_me: failed program was:" >&5
26575 sed 's/^/| /' conftest.$ac_ext >&5
26577 cat >conftest.$ac_ext <<_ACEOF
26580 cat confdefs.h >>conftest.$ac_ext
26581 cat >>conftest.$ac_ext <<_ACEOF
26582 /* end confdefs.h. */
26583 $ac_includes_default
26587 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
26594 rm -f conftest.$ac_objext
26595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26596 (eval $ac_compile) 2>conftest.er1
26598 grep -v '^ *+' conftest.er1 >conftest.err
26600 cat conftest.err >&5
26601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602 (exit $ac_status); } &&
26603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26605 (eval $ac_try) 2>&5
26607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); }; } &&
26609 { ac_try='test -s conftest.$ac_objext'
26610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26611 (eval $ac_try) 2>&5
26613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614 (exit $ac_status); }; }; then
26617 cat >conftest.$ac_ext <<_ACEOF
26620 cat confdefs.h >>conftest.$ac_ext
26621 cat >>conftest.$ac_ext <<_ACEOF
26622 /* end confdefs.h. */
26623 $ac_includes_default
26627 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
26634 rm -f conftest.$ac_objext
26635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26636 (eval $ac_compile) 2>conftest.er1
26638 grep -v '^ *+' conftest.er1 >conftest.err
26640 cat conftest.err >&5
26641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642 (exit $ac_status); } &&
26643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26645 (eval $ac_try) 2>&5
26647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648 (exit $ac_status); }; } &&
26649 { ac_try='test -s conftest.$ac_objext'
26650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26651 (eval $ac_try) 2>&5
26653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 (exit $ac_status); }; }; then
26655 ac_lo=$ac_mid; break
26657 echo "$as_me: failed program was:" >&5
26658 sed 's/^/| /' conftest.$ac_ext >&5
26660 ac_hi=`expr '(' $ac_mid ')' - 1`
26661 if test $ac_mid -le $ac_hi; then
26665 ac_mid=`expr 2 '*' $ac_mid`
26667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26670 echo "$as_me: failed program was:" >&5
26671 sed 's/^/| /' conftest.$ac_ext >&5
26675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26678 # Binary search between lo and hi bounds.
26679 while test "x$ac_lo" != "x$ac_hi"; do
26680 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26681 cat >conftest.$ac_ext <<_ACEOF
26684 cat confdefs.h >>conftest.$ac_ext
26685 cat >>conftest.$ac_ext <<_ACEOF
26686 /* end confdefs.h. */
26687 $ac_includes_default
26691 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26698 rm -f conftest.$ac_objext
26699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26700 (eval $ac_compile) 2>conftest.er1
26702 grep -v '^ *+' conftest.er1 >conftest.err
26704 cat conftest.err >&5
26705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706 (exit $ac_status); } &&
26707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26709 (eval $ac_try) 2>&5
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); }; } &&
26713 { ac_try='test -s conftest.$ac_objext'
26714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26715 (eval $ac_try) 2>&5
26717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718 (exit $ac_status); }; }; then
26721 echo "$as_me: failed program was:" >&5
26722 sed 's/^/| /' conftest.$ac_ext >&5
26724 ac_lo=`expr '(' $ac_mid ')' + 1`
26726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26729 ?*) ac_cv_sizeof_int=$ac_lo;;
26730 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26731 See \`config.log' for more details." >&5
26732 echo "$as_me: error: cannot compute sizeof (int), 77
26733 See \`config.log' for more details." >&2;}
26734 { (exit 1); exit 1; }; } ;;
26737 if test "$cross_compiling" = yes; then
26738 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26739 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26740 { (exit 1); exit 1; }; }
26742 cat >conftest.$ac_ext <<_ACEOF
26745 cat confdefs.h >>conftest.$ac_ext
26746 cat >>conftest.$ac_ext <<_ACEOF
26747 /* end confdefs.h. */
26748 $ac_includes_default
26749 long longval () { return (long) (sizeof (int)); }
26750 unsigned long ulongval () { return (long) (sizeof (int)); }
26752 #include <stdlib.h>
26757 FILE *f = fopen ("conftest.val", "w");
26760 if (((long) (sizeof (int))) < 0)
26762 long i = longval ();
26763 if (i != ((long) (sizeof (int))))
26765 fprintf (f, "%ld\n", i);
26769 unsigned long i = ulongval ();
26770 if (i != ((long) (sizeof (int))))
26772 fprintf (f, "%lu\n", i);
26774 exit (ferror (f) || fclose (f) != 0);
26780 rm -f conftest$ac_exeext
26781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26782 (eval $ac_link) 2>&5
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26787 (eval $ac_try) 2>&5
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); }; }; then
26791 ac_cv_sizeof_int=`cat conftest.val`
26793 echo "$as_me: program exited with status $ac_status" >&5
26794 echo "$as_me: failed program was:" >&5
26795 sed 's/^/| /' conftest.$ac_ext >&5
26797 ( exit $ac_status )
26798 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26799 See \`config.log' for more details." >&5
26800 echo "$as_me: error: cannot compute sizeof (int), 77
26801 See \`config.log' for more details." >&2;}
26802 { (exit 1); exit 1; }; }
26804 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26812 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
26813 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
26814 cat >>confdefs.h <<_ACEOF
26815 #define SIZEOF_INT $ac_cv_sizeof_int
26819 echo "$as_me:$LINENO: checking for long" >&5
26820 echo $ECHO_N "checking for long... $ECHO_C" >&6
26821 if test "${ac_cv_type_long+set}" = set; then
26822 echo $ECHO_N "(cached) $ECHO_C" >&6
26824 cat >conftest.$ac_ext <<_ACEOF
26827 cat confdefs.h >>conftest.$ac_ext
26828 cat >>conftest.$ac_ext <<_ACEOF
26829 /* end confdefs.h. */
26830 $ac_includes_default
26842 rm -f conftest.$ac_objext
26843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26844 (eval $ac_compile) 2>conftest.er1
26846 grep -v '^ *+' conftest.er1 >conftest.err
26848 cat conftest.err >&5
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); } &&
26851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853 (eval $ac_try) 2>&5
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; } &&
26857 { ac_try='test -s conftest.$ac_objext'
26858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859 (eval $ac_try) 2>&5
26861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862 (exit $ac_status); }; }; then
26863 ac_cv_type_long=yes
26865 echo "$as_me: failed program was:" >&5
26866 sed 's/^/| /' conftest.$ac_ext >&5
26870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26872 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
26873 echo "${ECHO_T}$ac_cv_type_long" >&6
26875 echo "$as_me:$LINENO: checking size of long" >&5
26876 echo $ECHO_N "checking size of long... $ECHO_C" >&6
26877 if test "${ac_cv_sizeof_long+set}" = set; then
26878 echo $ECHO_N "(cached) $ECHO_C" >&6
26880 if test "$ac_cv_type_long" = yes; then
26881 # The cast to unsigned long works around a bug in the HP C Compiler
26882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26884 # This bug is HP SR number 8606223364.
26885 if test "$cross_compiling" = yes; then
26886 # Depending upon the size, compute the lo and hi bounds.
26887 cat >conftest.$ac_ext <<_ACEOF
26890 cat confdefs.h >>conftest.$ac_ext
26891 cat >>conftest.$ac_ext <<_ACEOF
26892 /* end confdefs.h. */
26893 $ac_includes_default
26897 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
26904 rm -f conftest.$ac_objext
26905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26906 (eval $ac_compile) 2>conftest.er1
26908 grep -v '^ *+' conftest.er1 >conftest.err
26910 cat conftest.err >&5
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); } &&
26913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26915 (eval $ac_try) 2>&5
26917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918 (exit $ac_status); }; } &&
26919 { ac_try='test -s conftest.$ac_objext'
26920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921 (eval $ac_try) 2>&5
26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); }; }; then
26927 cat >conftest.$ac_ext <<_ACEOF
26930 cat confdefs.h >>conftest.$ac_ext
26931 cat >>conftest.$ac_ext <<_ACEOF
26932 /* end confdefs.h. */
26933 $ac_includes_default
26937 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26944 rm -f conftest.$ac_objext
26945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26946 (eval $ac_compile) 2>conftest.er1
26948 grep -v '^ *+' conftest.er1 >conftest.err
26950 cat conftest.err >&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); } &&
26953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26955 (eval $ac_try) 2>&5
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); }; } &&
26959 { ac_try='test -s conftest.$ac_objext'
26960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26961 (eval $ac_try) 2>&5
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); }; }; then
26965 ac_hi=$ac_mid; break
26967 echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26970 ac_lo=`expr $ac_mid + 1`
26971 if test $ac_lo -le $ac_mid; then
26975 ac_mid=`expr 2 '*' $ac_mid + 1`
26977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26980 echo "$as_me: failed program was:" >&5
26981 sed 's/^/| /' conftest.$ac_ext >&5
26983 cat >conftest.$ac_ext <<_ACEOF
26986 cat confdefs.h >>conftest.$ac_ext
26987 cat >>conftest.$ac_ext <<_ACEOF
26988 /* end confdefs.h. */
26989 $ac_includes_default
26993 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
27000 rm -f conftest.$ac_objext
27001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27002 (eval $ac_compile) 2>conftest.er1
27004 grep -v '^ *+' conftest.er1 >conftest.err
27006 cat conftest.err >&5
27007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27008 (exit $ac_status); } &&
27009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27011 (eval $ac_try) 2>&5
27013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014 (exit $ac_status); }; } &&
27015 { ac_try='test -s conftest.$ac_objext'
27016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27017 (eval $ac_try) 2>&5
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); }; }; then
27023 cat >conftest.$ac_ext <<_ACEOF
27026 cat confdefs.h >>conftest.$ac_ext
27027 cat >>conftest.$ac_ext <<_ACEOF
27028 /* end confdefs.h. */
27029 $ac_includes_default
27033 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
27040 rm -f conftest.$ac_objext
27041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27042 (eval $ac_compile) 2>conftest.er1
27044 grep -v '^ *+' conftest.er1 >conftest.err
27046 cat conftest.err >&5
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); } &&
27049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27051 (eval $ac_try) 2>&5
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); }; } &&
27055 { ac_try='test -s conftest.$ac_objext'
27056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27057 (eval $ac_try) 2>&5
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); }; }; then
27061 ac_lo=$ac_mid; break
27063 echo "$as_me: failed program was:" >&5
27064 sed 's/^/| /' conftest.$ac_ext >&5
27066 ac_hi=`expr '(' $ac_mid ')' - 1`
27067 if test $ac_mid -le $ac_hi; then
27071 ac_mid=`expr 2 '*' $ac_mid`
27073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27076 echo "$as_me: failed program was:" >&5
27077 sed 's/^/| /' conftest.$ac_ext >&5
27081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27084 # Binary search between lo and hi bounds.
27085 while test "x$ac_lo" != "x$ac_hi"; do
27086 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27087 cat >conftest.$ac_ext <<_ACEOF
27090 cat confdefs.h >>conftest.$ac_ext
27091 cat >>conftest.$ac_ext <<_ACEOF
27092 /* end confdefs.h. */
27093 $ac_includes_default
27097 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
27104 rm -f conftest.$ac_objext
27105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27106 (eval $ac_compile) 2>conftest.er1
27108 grep -v '^ *+' conftest.er1 >conftest.err
27110 cat conftest.err >&5
27111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112 (exit $ac_status); } &&
27113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27115 (eval $ac_try) 2>&5
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); }; } &&
27119 { ac_try='test -s conftest.$ac_objext'
27120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27121 (eval $ac_try) 2>&5
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); }; }; then
27127 echo "$as_me: failed program was:" >&5
27128 sed 's/^/| /' conftest.$ac_ext >&5
27130 ac_lo=`expr '(' $ac_mid ')' + 1`
27132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27135 ?*) ac_cv_sizeof_long=$ac_lo;;
27136 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27137 See \`config.log' for more details." >&5
27138 echo "$as_me: error: cannot compute sizeof (long), 77
27139 See \`config.log' for more details." >&2;}
27140 { (exit 1); exit 1; }; } ;;
27143 if test "$cross_compiling" = yes; then
27144 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27145 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27146 { (exit 1); exit 1; }; }
27148 cat >conftest.$ac_ext <<_ACEOF
27151 cat confdefs.h >>conftest.$ac_ext
27152 cat >>conftest.$ac_ext <<_ACEOF
27153 /* end confdefs.h. */
27154 $ac_includes_default
27155 long longval () { return (long) (sizeof (long)); }
27156 unsigned long ulongval () { return (long) (sizeof (long)); }
27158 #include <stdlib.h>
27163 FILE *f = fopen ("conftest.val", "w");
27166 if (((long) (sizeof (long))) < 0)
27168 long i = longval ();
27169 if (i != ((long) (sizeof (long))))
27171 fprintf (f, "%ld\n", i);
27175 unsigned long i = ulongval ();
27176 if (i != ((long) (sizeof (long))))
27178 fprintf (f, "%lu\n", i);
27180 exit (ferror (f) || fclose (f) != 0);
27186 rm -f conftest$ac_exeext
27187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27188 (eval $ac_link) 2>&5
27190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27193 (eval $ac_try) 2>&5
27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); }; }; then
27197 ac_cv_sizeof_long=`cat conftest.val`
27199 echo "$as_me: program exited with status $ac_status" >&5
27200 echo "$as_me: failed program was:" >&5
27201 sed 's/^/| /' conftest.$ac_ext >&5
27203 ( exit $ac_status )
27204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27205 See \`config.log' for more details." >&5
27206 echo "$as_me: error: cannot compute sizeof (long), 77
27207 See \`config.log' for more details." >&2;}
27208 { (exit 1); exit 1; }; }
27210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27215 ac_cv_sizeof_long=0
27218 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27219 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
27220 cat >>confdefs.h <<_ACEOF
27221 #define SIZEOF_LONG $ac_cv_sizeof_long
27225 echo "$as_me:$LINENO: checking for size_t" >&5
27226 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27227 if test "${ac_cv_type_size_t+set}" = set; then
27228 echo $ECHO_N "(cached) $ECHO_C" >&6
27230 cat >conftest.$ac_ext <<_ACEOF
27233 cat confdefs.h >>conftest.$ac_ext
27234 cat >>conftest.$ac_ext <<_ACEOF
27235 /* end confdefs.h. */
27236 $ac_includes_default
27242 if (sizeof (size_t))
27248 rm -f conftest.$ac_objext
27249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27250 (eval $ac_compile) 2>conftest.er1
27252 grep -v '^ *+' conftest.er1 >conftest.err
27254 cat conftest.err >&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); } &&
27257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27259 (eval $ac_try) 2>&5
27261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262 (exit $ac_status); }; } &&
27263 { ac_try='test -s conftest.$ac_objext'
27264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27265 (eval $ac_try) 2>&5
27267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268 (exit $ac_status); }; }; then
27269 ac_cv_type_size_t=yes
27271 echo "$as_me: failed program was:" >&5
27272 sed 's/^/| /' conftest.$ac_ext >&5
27274 ac_cv_type_size_t=no
27276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27278 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27279 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27281 echo "$as_me:$LINENO: checking size of size_t" >&5
27282 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
27283 if test "${ac_cv_sizeof_size_t+set}" = set; then
27284 echo $ECHO_N "(cached) $ECHO_C" >&6
27286 if test "$ac_cv_type_size_t" = yes; then
27287 # The cast to unsigned long works around a bug in the HP C Compiler
27288 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27289 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27290 # This bug is HP SR number 8606223364.
27291 if test "$cross_compiling" = yes; then
27292 # Depending upon the size, compute the lo and hi bounds.
27293 cat >conftest.$ac_ext <<_ACEOF
27296 cat confdefs.h >>conftest.$ac_ext
27297 cat >>conftest.$ac_ext <<_ACEOF
27298 /* end confdefs.h. */
27299 $ac_includes_default
27303 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
27310 rm -f conftest.$ac_objext
27311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27312 (eval $ac_compile) 2>conftest.er1
27314 grep -v '^ *+' conftest.er1 >conftest.err
27316 cat conftest.err >&5
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); } &&
27319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27321 (eval $ac_try) 2>&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); }; } &&
27325 { ac_try='test -s conftest.$ac_objext'
27326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327 (eval $ac_try) 2>&5
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); }; }; then
27333 cat >conftest.$ac_ext <<_ACEOF
27336 cat confdefs.h >>conftest.$ac_ext
27337 cat >>conftest.$ac_ext <<_ACEOF
27338 /* end confdefs.h. */
27339 $ac_includes_default
27343 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27350 rm -f conftest.$ac_objext
27351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27352 (eval $ac_compile) 2>conftest.er1
27354 grep -v '^ *+' conftest.er1 >conftest.err
27356 cat conftest.err >&5
27357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); } &&
27359 { ac_try='test -z "$ac_c_werror_flag" || 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_hi=$ac_mid; break
27373 echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.$ac_ext >&5
27376 ac_lo=`expr $ac_mid + 1`
27377 if test $ac_lo -le $ac_mid; then
27381 ac_mid=`expr 2 '*' $ac_mid + 1`
27383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27386 echo "$as_me: failed program was:" >&5
27387 sed 's/^/| /' conftest.$ac_ext >&5
27389 cat >conftest.$ac_ext <<_ACEOF
27392 cat confdefs.h >>conftest.$ac_ext
27393 cat >>conftest.$ac_ext <<_ACEOF
27394 /* end confdefs.h. */
27395 $ac_includes_default
27399 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
27406 rm -f conftest.$ac_objext
27407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27408 (eval $ac_compile) 2>conftest.er1
27410 grep -v '^ *+' conftest.er1 >conftest.err
27412 cat conftest.err >&5
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); } &&
27415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27417 (eval $ac_try) 2>&5
27419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420 (exit $ac_status); }; } &&
27421 { ac_try='test -s conftest.$ac_objext'
27422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27423 (eval $ac_try) 2>&5
27425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426 (exit $ac_status); }; }; then
27429 cat >conftest.$ac_ext <<_ACEOF
27432 cat confdefs.h >>conftest.$ac_ext
27433 cat >>conftest.$ac_ext <<_ACEOF
27434 /* end confdefs.h. */
27435 $ac_includes_default
27439 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
27446 rm -f conftest.$ac_objext
27447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27448 (eval $ac_compile) 2>conftest.er1
27450 grep -v '^ *+' conftest.er1 >conftest.err
27452 cat conftest.err >&5
27453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); } &&
27455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27457 (eval $ac_try) 2>&5
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); }; } &&
27461 { ac_try='test -s conftest.$ac_objext'
27462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463 (eval $ac_try) 2>&5
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); }; }; then
27467 ac_lo=$ac_mid; break
27469 echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.$ac_ext >&5
27472 ac_hi=`expr '(' $ac_mid ')' - 1`
27473 if test $ac_mid -le $ac_hi; then
27477 ac_mid=`expr 2 '*' $ac_mid`
27479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27482 echo "$as_me: failed program was:" >&5
27483 sed 's/^/| /' conftest.$ac_ext >&5
27487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27490 # Binary search between lo and hi bounds.
27491 while test "x$ac_lo" != "x$ac_hi"; do
27492 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27493 cat >conftest.$ac_ext <<_ACEOF
27496 cat confdefs.h >>conftest.$ac_ext
27497 cat >>conftest.$ac_ext <<_ACEOF
27498 /* end confdefs.h. */
27499 $ac_includes_default
27503 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27510 rm -f conftest.$ac_objext
27511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27512 (eval $ac_compile) 2>conftest.er1
27514 grep -v '^ *+' conftest.er1 >conftest.err
27516 cat conftest.err >&5
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); } &&
27519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27521 (eval $ac_try) 2>&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); }; } &&
27525 { ac_try='test -s conftest.$ac_objext'
27526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527 (eval $ac_try) 2>&5
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); }; }; then
27533 echo "$as_me: failed program was:" >&5
27534 sed 's/^/| /' conftest.$ac_ext >&5
27536 ac_lo=`expr '(' $ac_mid ')' + 1`
27538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27541 ?*) ac_cv_sizeof_size_t=$ac_lo;;
27542 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27543 See \`config.log' for more details." >&5
27544 echo "$as_me: error: cannot compute sizeof (size_t), 77
27545 See \`config.log' for more details." >&2;}
27546 { (exit 1); exit 1; }; } ;;
27549 if test "$cross_compiling" = yes; then
27550 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27551 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27552 { (exit 1); exit 1; }; }
27554 cat >conftest.$ac_ext <<_ACEOF
27557 cat confdefs.h >>conftest.$ac_ext
27558 cat >>conftest.$ac_ext <<_ACEOF
27559 /* end confdefs.h. */
27560 $ac_includes_default
27561 long longval () { return (long) (sizeof (size_t)); }
27562 unsigned long ulongval () { return (long) (sizeof (size_t)); }
27564 #include <stdlib.h>
27569 FILE *f = fopen ("conftest.val", "w");
27572 if (((long) (sizeof (size_t))) < 0)
27574 long i = longval ();
27575 if (i != ((long) (sizeof (size_t))))
27577 fprintf (f, "%ld\n", i);
27581 unsigned long i = ulongval ();
27582 if (i != ((long) (sizeof (size_t))))
27584 fprintf (f, "%lu\n", i);
27586 exit (ferror (f) || fclose (f) != 0);
27592 rm -f conftest$ac_exeext
27593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27594 (eval $ac_link) 2>&5
27596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27599 (eval $ac_try) 2>&5
27601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602 (exit $ac_status); }; }; then
27603 ac_cv_sizeof_size_t=`cat conftest.val`
27605 echo "$as_me: program exited with status $ac_status" >&5
27606 echo "$as_me: failed program was:" >&5
27607 sed 's/^/| /' conftest.$ac_ext >&5
27609 ( exit $ac_status )
27610 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27611 See \`config.log' for more details." >&5
27612 echo "$as_me: error: cannot compute sizeof (size_t), 77
27613 See \`config.log' for more details." >&2;}
27614 { (exit 1); exit 1; }; }
27616 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27621 ac_cv_sizeof_size_t=0
27624 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27625 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
27626 cat >>confdefs.h <<_ACEOF
27627 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27633 cat >>confdefs.h <<_ACEOF
27634 #define NFS_STATEDIR "$statedir"
27638 if test "x$cross_compiling" = "xno"; then
27639 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
27640 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
27641 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
27642 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
27644 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
27645 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
27646 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
27647 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
27662 ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
27667 my_am_cflags="-Wall $ARCHFLAGS -pipe"
27669 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
27671 AM_CFLAGS="$my_am_cflags"
27674 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
27675 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
27678 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/getiversion/Makefile tools/getkversion/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/lockd/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/nhfsstone/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
27680 cat >confcache <<\_ACEOF
27681 # This file is a shell script that caches the results of configure
27682 # tests run on this system so they can be shared between configure
27683 # scripts and configure runs, see configure's option --config-cache.
27684 # It is not useful on other systems. If it contains results you don't
27685 # want to keep, you may remove or edit it.
27687 # config.status only pays attention to the cache file if you give it
27688 # the --recheck option to rerun configure.
27690 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27691 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27692 # following values.
27696 # The following way of writing the cache mishandles newlines in values,
27697 # but we know of no workaround that is simple, portable, and efficient.
27698 # So, don't put newlines in cache variables' values.
27699 # Ultrix sh set writes to stderr and can't be redirected directly,
27700 # and sets the high bit in the cache file unless we assign to the vars.
27703 case `(ac_space=' '; set | grep ac_space) 2>&1` in
27705 # `set' does not quote correctly, so add quotes (double-quote
27706 # substitution turns \\\\ into \\, and sed turns \\ into \).
27709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27712 # `set' quotes correctly as required by POSIX, so do not add quotes.
27714 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27721 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27723 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27725 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27726 if test -w $cache_file; then
27727 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27728 cat confcache >$cache_file
27730 echo "not updating unwritable cache $cache_file"
27735 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27736 # Let make expand exec_prefix.
27737 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27739 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27740 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27741 # trailing colons and then remove the whole line if VPATH becomes empty
27742 # (actually we leave an empty line to preserve line numbers).
27743 if test "x$srcdir" = x.; then
27744 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27745 s/:*\$(srcdir):*/:/;
27746 s/:*\${srcdir}:*/:/;
27748 s/^\([^=]*=[ ]*\):*/\1/;
27754 DEFS=-DHAVE_CONFIG_H
27758 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27759 # 1. Remove the extension, and $U if already installed.
27760 ac_i=`echo "$ac_i" |
27761 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27763 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27764 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27766 LIBOBJS=$ac_libobjs
27768 LTLIBOBJS=$ac_ltlibobjs
27771 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
27772 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
27773 Usually this means the macro was only invoked conditionally." >&5
27774 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
27775 Usually this means the macro was only invoked conditionally." >&2;}
27776 { (exit 1); exit 1; }; }
27778 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
27779 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
27780 Usually this means the macro was only invoked conditionally." >&5
27781 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
27782 Usually this means the macro was only invoked conditionally." >&2;}
27783 { (exit 1); exit 1; }; }
27785 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
27786 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
27787 Usually this means the macro was only invoked conditionally." >&5
27788 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
27789 Usually this means the macro was only invoked conditionally." >&2;}
27790 { (exit 1); exit 1; }; }
27792 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27793 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27794 Usually this means the macro was only invoked conditionally." >&5
27795 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27796 Usually this means the macro was only invoked conditionally." >&2;}
27797 { (exit 1); exit 1; }; }
27799 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27800 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27801 Usually this means the macro was only invoked conditionally." >&5
27802 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27803 Usually this means the macro was only invoked conditionally." >&2;}
27804 { (exit 1); exit 1; }; }
27806 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27807 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27808 Usually this means the macro was only invoked conditionally." >&5
27809 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27810 Usually this means the macro was only invoked conditionally." >&2;}
27811 { (exit 1); exit 1; }; }
27813 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27814 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27815 Usually this means the macro was only invoked conditionally." >&5
27816 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27817 Usually this means the macro was only invoked conditionally." >&2;}
27818 { (exit 1); exit 1; }; }
27821 : ${CONFIG_STATUS=./config.status}
27822 ac_clean_files_save=$ac_clean_files
27823 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27824 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27825 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27826 cat >$CONFIG_STATUS <<_ACEOF
27828 # Generated by $as_me.
27829 # Run this file to recreate the current configuration.
27830 # Compiler output produced by configure, useful for debugging
27831 # configure, is in config.log if it exists.
27834 ac_cs_recheck=false
27836 SHELL=\${CONFIG_SHELL-$SHELL}
27839 cat >>$CONFIG_STATUS <<\_ACEOF
27840 ## --------------------- ##
27841 ## M4sh Initialization. ##
27842 ## --------------------- ##
27844 # Be Bourne compatible
27845 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27848 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27849 # is contrary to our usage. Disable this feature.
27850 alias -g '${1+"$@"}'='"$@"'
27851 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27854 DUALCASE=1; export DUALCASE # for MKS sh
27856 # Support unset when possible.
27857 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27864 # Work around bugs in pre-3.0 UWIN ksh.
27865 $as_unset ENV MAIL MAILPATH
27872 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27873 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27874 LC_TELEPHONE LC_TIME
27876 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27877 eval $as_var=C; export $as_var
27883 # Required to use basename.
27884 if expr a : '\(a\)' >/dev/null 2>&1; then
27890 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27891 as_basename=basename
27897 # Name of the executable.
27898 as_me=`$as_basename "$0" ||
27899 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27900 X"$0" : 'X\(//\)$' \| \
27901 X"$0" : 'X\(/\)$' \| \
27902 . : '\(.\)' 2>/dev/null ||
27904 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27905 /^X\/\(\/\/\)$/{ s//\1/; q; }
27906 /^X\/\(\/\).*/{ s//\1/; q; }
27910 # PATH needs CR, and LINENO needs CR and PATH.
27911 # Avoid depending upon Character Ranges.
27912 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27913 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27914 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27915 as_cr_digits='0123456789'
27916 as_cr_alnum=$as_cr_Letters$as_cr_digits
27918 # The user is always right.
27919 if test "${PATH_SEPARATOR+set}" != set; then
27920 echo "#! /bin/sh" >conf$$.sh
27921 echo "exit 0" >>conf$$.sh
27923 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27932 as_lineno_1=$LINENO
27933 as_lineno_2=$LINENO
27934 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27935 test "x$as_lineno_1" != "x$as_lineno_2" &&
27936 test "x$as_lineno_3" = "x$as_lineno_2" || {
27937 # Find who we are. Look in the path if we contain no path at all
27940 *[\\/]* ) as_myself=$0 ;;
27941 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27942 for as_dir in $PATH
27945 test -z "$as_dir" && as_dir=.
27946 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27951 # We did not find ourselves, most probably we were run as `sh COMMAND'
27952 # in which case we are not to be found in the path.
27953 if test "x$as_myself" = x; then
27956 if test ! -f "$as_myself"; then
27957 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27958 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27959 { (exit 1); exit 1; }; }
27961 case $CONFIG_SHELL in
27963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27964 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27967 test -z "$as_dir" && as_dir=.
27968 for as_base in sh bash ksh sh5; do
27971 if ("$as_dir/$as_base" -c '
27972 as_lineno_1=$LINENO
27973 as_lineno_2=$LINENO
27974 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27975 test "x$as_lineno_1" != "x$as_lineno_2" &&
27976 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
27977 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27978 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27979 CONFIG_SHELL=$as_dir/$as_base
27980 export CONFIG_SHELL
27981 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27989 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27990 # uniformly replaced by the line number. The first 'sed' inserts a
27991 # line-number line before each line; the second 'sed' does the real
27992 # work. The second script uses 'N' to pair each line-number line
27993 # with the numbered line, and appends trailing '-' during
27994 # substitution so that $LINENO is not a special case at line end.
27995 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27996 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
27997 sed '=' <$as_myself |
28002 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28005 s,^['$as_cr_digits']*\n,,
28006 ' >$as_me.lineno &&
28007 chmod +x $as_me.lineno ||
28008 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28009 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28010 { (exit 1); exit 1; }; }
28012 # Don't try to exec as it changes $[0], causing all sort of problems
28013 # (the dirname of $[0] is not the place where we might find the
28014 # original and so on. Autoconf is especially sensible to this).
28016 # Exit status is that of the last command.
28021 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28022 *c*,-n*) ECHO_N= ECHO_C='
28024 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28025 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
28028 if expr a : '\(a\)' >/dev/null 2>&1; then
28034 rm -f conf$$ conf$$.exe conf$$.file
28036 if ln -s conf$$.file conf$$ 2>/dev/null; then
28037 # We could just check for DJGPP; but this test a) works b) is more generic
28038 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28039 if test -f conf$$.exe; then
28040 # Don't use ln at all; we don't have any links
28045 elif ln conf$$.file conf$$ 2>/dev/null; then
28050 rm -f conf$$ conf$$.exe conf$$.file
28052 if mkdir -p . 2>/dev/null; then
28055 test -d ./-p && rmdir ./-p
28059 as_executable_p="test -f"
28061 # Sed expression to map a string onto a valid CPP name.
28062 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28064 # Sed expression to map a string onto a valid variable name.
28065 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28069 # We need space, tab and new line, in precisely that order.
28079 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28080 # report actual input values of CONFIG_FILES etc. instead of their
28081 # values after options handling. Logging --version etc. is OK.
28085 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28086 ## Running $as_me. ##
28091 This file was extended by linux nfs-utils $as_me 1.0.8, which was
28092 generated by GNU Autoconf 2.59. Invocation command line was
28094 CONFIG_FILES = $CONFIG_FILES
28095 CONFIG_HEADERS = $CONFIG_HEADERS
28096 CONFIG_LINKS = $CONFIG_LINKS
28097 CONFIG_COMMANDS = $CONFIG_COMMANDS
28101 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28105 # Files that config.status was made for.
28106 if test -n "$ac_config_files"; then
28107 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28110 if test -n "$ac_config_headers"; then
28111 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28114 if test -n "$ac_config_links"; then
28115 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28118 if test -n "$ac_config_commands"; then
28119 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28122 cat >>$CONFIG_STATUS <<\_ACEOF
28125 \`$as_me' instantiates files from templates according to the
28126 current configuration.
28128 Usage: $0 [OPTIONS] [FILE]...
28130 -h, --help print this help, then exit
28131 -V, --version print version number, then exit
28132 -q, --quiet do not print progress messages
28133 -d, --debug don't remove temporary files
28134 --recheck update $as_me by reconfiguring in the same conditions
28135 --file=FILE[:TEMPLATE]
28136 instantiate the configuration file FILE
28137 --header=FILE[:TEMPLATE]
28138 instantiate the configuration header FILE
28140 Configuration files:
28143 Configuration headers:
28146 Configuration commands:
28149 Report bugs to <bug-autoconf@gnu.org>."
28152 cat >>$CONFIG_STATUS <<_ACEOF
28154 linux nfs-utils config.status 1.0.8
28155 configured by $0, generated by GNU Autoconf 2.59,
28156 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28158 Copyright (C) 2003 Free Software Foundation, Inc.
28159 This config.status script is free software; the Free Software Foundation
28160 gives unlimited permission to copy, distribute and modify it."
28165 cat >>$CONFIG_STATUS <<\_ACEOF
28166 # If no file are specified by the user, then we need to provide default
28167 # value. By we need to know if files were specified by the user.
28173 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28174 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28182 *) # This is not an option, so the user has probably given explicit
28185 ac_need_defaults=false;;
28189 # Handling of the options.
28191 cat >>$CONFIG_STATUS <<\_ACEOF
28192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28194 --version | --vers* | -V )
28195 echo "$ac_cs_version"; exit 0 ;;
28197 # Conflict between --help and --header
28198 { { echo "$as_me:$LINENO: error: ambiguous option: $1
28199 Try \`$0 --help' for more information." >&5
28200 echo "$as_me: error: ambiguous option: $1
28201 Try \`$0 --help' for more information." >&2;}
28202 { (exit 1); exit 1; }; };;
28203 --help | --hel | -h )
28204 echo "$ac_cs_usage"; exit 0 ;;
28205 --debug | --d* | -d )
28207 --file | --fil | --fi | --f )
28209 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28210 ac_need_defaults=false;;
28211 --header | --heade | --head | --hea )
28213 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28214 ac_need_defaults=false;;
28215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28216 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28219 # This is an error.
28220 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28221 Try \`$0 --help' for more information." >&5
28222 echo "$as_me: error: unrecognized option: $1
28223 Try \`$0 --help' for more information." >&2;}
28224 { (exit 1); exit 1; }; } ;;
28226 *) ac_config_targets="$ac_config_targets $1" ;;
28232 ac_configure_extra_args=
28234 if $ac_cs_silent; then
28236 ac_configure_extra_args="$ac_configure_extra_args --silent"
28240 cat >>$CONFIG_STATUS <<_ACEOF
28241 if \$ac_cs_recheck; then
28242 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28243 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28248 cat >>$CONFIG_STATUS <<_ACEOF
28250 # INIT-COMMANDS section.
28253 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28259 cat >>$CONFIG_STATUS <<\_ACEOF
28260 for ac_config_target in $ac_config_targets
28262 case "$ac_config_target" in
28263 # Handling of arguments.
28264 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28265 "linux-nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
28266 "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
28267 "support/export/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
28268 "support/include/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
28269 "support/include/rpcsvc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
28270 "support/include/sys/fs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
28271 "support/include/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
28272 "support/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
28273 "support/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
28274 "support/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
28275 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28276 "tools/getiversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
28277 "tools/getkversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
28278 "tools/locktest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
28279 "tools/nlmtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
28280 "tools/rpcdebug/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
28281 "tools/rpcgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
28282 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
28283 "utils/exportfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
28284 "utils/gssd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
28285 "utils/idmapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
28286 "utils/lockd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
28287 "utils/mountd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
28288 "utils/nfsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
28289 "utils/nfsstat/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
28290 "utils/nhfsstone/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
28291 "utils/rquotad/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
28292 "utils/showmount/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
28293 "utils/statd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
28294 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28295 "support/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
28296 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28297 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28298 { (exit 1); exit 1; }; };;
28302 # If the user did not use the arguments to specify the items to instantiate,
28303 # then the envvar interface is used. Set only those that are not.
28304 # We use the long form for the default assignment because of an extremely
28305 # bizarre bug on SunOS 4.1.3.
28306 if $ac_need_defaults; then
28307 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28308 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28309 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28312 # Have a temporary directory for convenience. Make it in the build tree
28313 # simply because there is no reason to put it here, and in addition,
28314 # creating and moving files from /tmp can sometimes cause problems.
28315 # Create a temporary directory, and hook for its removal unless debugging.
28318 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28319 trap '{ (exit 1); exit 1; }' 1 2 13 15
28322 # Create a (secure) tmp directory for tmp files.
28325 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
28326 test -n "$tmp" && test -d "$tmp"
28329 tmp=./confstat$$-$RANDOM
28330 (umask 077 && mkdir $tmp)
28333 echo "$me: cannot create a temporary directory in ." >&2
28334 { (exit 1); exit 1; }
28339 cat >>$CONFIG_STATUS <<_ACEOF
28342 # CONFIG_FILES section.
28345 # No need to generate the scripts if there are no CONFIG_FILES.
28346 # This happens for instance when ./config.status config.h
28347 if test -n "\$CONFIG_FILES"; then
28348 # Protect against being on the right side of a sed subst in config.status.
28349 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28350 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28351 s,@SHELL@,$SHELL,;t t
28352 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28353 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28354 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28355 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28356 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28357 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28358 s,@exec_prefix@,$exec_prefix,;t t
28359 s,@prefix@,$prefix,;t t
28360 s,@program_transform_name@,$program_transform_name,;t t
28361 s,@bindir@,$bindir,;t t
28362 s,@sbindir@,$sbindir,;t t
28363 s,@libexecdir@,$libexecdir,;t t
28364 s,@datadir@,$datadir,;t t
28365 s,@sysconfdir@,$sysconfdir,;t t
28366 s,@sharedstatedir@,$sharedstatedir,;t t
28367 s,@localstatedir@,$localstatedir,;t t
28368 s,@libdir@,$libdir,;t t
28369 s,@includedir@,$includedir,;t t
28370 s,@oldincludedir@,$oldincludedir,;t t
28371 s,@infodir@,$infodir,;t t
28372 s,@mandir@,$mandir,;t t
28373 s,@build_alias@,$build_alias,;t t
28374 s,@host_alias@,$host_alias,;t t
28375 s,@target_alias@,$target_alias,;t t
28376 s,@DEFS@,$DEFS,;t t
28377 s,@ECHO_C@,$ECHO_C,;t t
28378 s,@ECHO_N@,$ECHO_N,;t t
28379 s,@ECHO_T@,$ECHO_T,;t t
28380 s,@LIBS@,$LIBS,;t t
28381 s,@build@,$build,;t t
28382 s,@build_cpu@,$build_cpu,;t t
28383 s,@build_vendor@,$build_vendor,;t t
28384 s,@build_os@,$build_os,;t t
28385 s,@host@,$host,;t t
28386 s,@host_cpu@,$host_cpu,;t t
28387 s,@host_vendor@,$host_vendor,;t t
28388 s,@host_os@,$host_os,;t t
28389 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28390 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28391 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28392 s,@CYGPATH_W@,$CYGPATH_W,;t t
28393 s,@PACKAGE@,$PACKAGE,;t t
28394 s,@VERSION@,$VERSION,;t t
28395 s,@ACLOCAL@,$ACLOCAL,;t t
28396 s,@AUTOCONF@,$AUTOCONF,;t t
28397 s,@AUTOMAKE@,$AUTOMAKE,;t t
28398 s,@AUTOHEADER@,$AUTOHEADER,;t t
28399 s,@MAKEINFO@,$MAKEINFO,;t t
28400 s,@install_sh@,$install_sh,;t t
28401 s,@STRIP@,$STRIP,;t t
28402 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28403 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28404 s,@mkdir_p@,$mkdir_p,;t t
28406 s,@SET_MAKE@,$SET_MAKE,;t t
28407 s,@am__leading_dot@,$am__leading_dot,;t t
28408 s,@AMTAR@,$AMTAR,;t t
28409 s,@am__tar@,$am__tar,;t t
28410 s,@am__untar@,$am__untar,;t t
28411 s,@RELEASE@,$RELEASE,;t t
28412 s,@statedir@,$statedir,;t t
28413 s,@statduser@,$statduser,;t t
28414 s,@enable_nfsv3@,$enable_nfsv3,;t t
28415 s,@IDMAPD@,$IDMAPD,;t t
28416 s,@enable_nfsv4@,$enable_nfsv4,;t t
28417 s,@CONFIG_NFSV4_TRUE@,$CONFIG_NFSV4_TRUE,;t t
28418 s,@CONFIG_NFSV4_FALSE@,$CONFIG_NFSV4_FALSE,;t t
28419 s,@GSSD@,$GSSD,;t t
28420 s,@SVCGSSD@,$SVCGSSD,;t t
28421 s,@enable_gss@,$enable_gss,;t t
28422 s,@CONFIG_GSS_TRUE@,$CONFIG_GSS_TRUE,;t t
28423 s,@CONFIG_GSS_FALSE@,$CONFIG_GSS_FALSE,;t t
28424 s,@kprefix@,$kprefix,;t t
28425 s,@secure_statd@,$secure_statd,;t t
28426 s,@CONFIG_RQUOTAD_TRUE@,$CONFIG_RQUOTAD_TRUE,;t t
28427 s,@CONFIG_RQUOTAD_FALSE@,$CONFIG_RQUOTAD_FALSE,;t t
28429 s,@CFLAGS@,$CFLAGS,;t t
28430 s,@LDFLAGS@,$LDFLAGS,;t t
28431 s,@CPPFLAGS@,$CPPFLAGS,;t t
28432 s,@ac_ct_CC@,$ac_ct_CC,;t t
28433 s,@EXEEXT@,$EXEEXT,;t t
28434 s,@OBJEXT@,$OBJEXT,;t t
28435 s,@DEPDIR@,$DEPDIR,;t t
28436 s,@am__include@,$am__include,;t t
28437 s,@am__quote@,$am__quote,;t t
28438 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28439 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28440 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28441 s,@CCDEPMODE@,$CCDEPMODE,;t t
28442 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28443 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28444 s,@LIBWRAP@,$LIBWRAP,;t t
28445 s,@HAVE_LIBWRAP@,$HAVE_LIBWRAP,;t t
28446 s,@HAVE_TCP_WRAPPER@,$HAVE_TCP_WRAPPER,;t t
28448 s,@CXXFLAGS@,$CXXFLAGS,;t t
28449 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28450 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28451 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28452 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28454 s,@LN_S@,$LN_S,;t t
28455 s,@EGREP@,$EGREP,;t t
28456 s,@ECHO@,$ECHO,;t t
28458 s,@ac_ct_AR@,$ac_ct_AR,;t t
28459 s,@RANLIB@,$RANLIB,;t t
28460 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28461 s,@CXXCPP@,$CXXCPP,;t t
28463 s,@FFLAGS@,$FFLAGS,;t t
28464 s,@ac_ct_F77@,$ac_ct_F77,;t t
28465 s,@LIBTOOL@,$LIBTOOL,;t t
28466 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
28468 s,@ac_ct_LD@,$ac_ct_LD,;t t
28469 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
28470 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
28471 s,@RPCSECGSS_CFLAGS@,$RPCSECGSS_CFLAGS,;t t
28472 s,@RPCSECGSS_LIBS@,$RPCSECGSS_LIBS,;t t
28473 s,@GSSAPI_CFLAGS@,$GSSAPI_CFLAGS,;t t
28474 s,@GSSAPI_LIBS@,$GSSAPI_LIBS,;t t
28475 s,@LIBSOCKET@,$LIBSOCKET,;t t
28476 s,@LIBNSL@,$LIBNSL,;t t
28477 s,@LIBCRYPT@,$LIBCRYPT,;t t
28478 s,@LIBBSD@,$LIBBSD,;t t
28479 s,@KRBDIR@,$KRBDIR,;t t
28480 s,@KRBLIBS@,$KRBLIBS,;t t
28481 s,@KRBCFLAGS@,$KRBCFLAGS,;t t
28482 s,@K5VERS@,$K5VERS,;t t
28483 s,@ALLOCA@,$ALLOCA,;t t
28484 s,@LIBOBJS@,$LIBOBJS,;t t
28485 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
28486 s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
28487 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
28488 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
28489 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
28490 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
28491 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
28492 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28497 cat >>$CONFIG_STATUS <<\_ACEOF
28498 # Split the substitutions into bite-sized pieces for seds with
28499 # small command number limits, like on Digital OSF/1 and HP-UX.
28500 ac_max_sed_lines=48
28501 ac_sed_frag=1 # Number of current file.
28502 ac_beg=1 # First line for current file.
28503 ac_end=$ac_max_sed_lines # Line after last line for current file.
28506 while $ac_more_lines; do
28507 if test $ac_beg -gt 1; then
28508 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28510 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28512 if test ! -s $tmp/subs.frag; then
28513 ac_more_lines=false
28515 # The purpose of the label and of the branching condition is to
28516 # speed up the sed processing (if there are no `@' at all, there
28517 # is no need to browse any of the substitutions).
28518 # These are the two extra sed commands mentioned above.
28520 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28521 if test -z "$ac_sed_cmds"; then
28522 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28524 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28526 ac_sed_frag=`expr $ac_sed_frag + 1`
28528 ac_end=`expr $ac_end + $ac_max_sed_lines`
28531 if test -z "$ac_sed_cmds"; then
28534 fi # test -n "$CONFIG_FILES"
28537 cat >>$CONFIG_STATUS <<\_ACEOF
28538 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28539 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28541 - | *:- | *:-:* ) # input from stdin
28543 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28544 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28545 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28546 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28547 * ) ac_file_in=$ac_file.in ;;
28550 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28551 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28552 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28553 X"$ac_file" : 'X\(//\)[^/]' \| \
28554 X"$ac_file" : 'X\(//\)$' \| \
28555 X"$ac_file" : 'X\(/\)' \| \
28556 . : '\(.\)' 2>/dev/null ||
28558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28559 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28560 /^X\(\/\/\)$/{ s//\1/; q; }
28561 /^X\(\/\).*/{ s//\1/; q; }
28563 { if $as_mkdir_p; then
28568 while test ! -d "$as_dir"; do
28569 as_dirs="$as_dir $as_dirs"
28570 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28571 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28572 X"$as_dir" : 'X\(//\)[^/]' \| \
28573 X"$as_dir" : 'X\(//\)$' \| \
28574 X"$as_dir" : 'X\(/\)' \| \
28575 . : '\(.\)' 2>/dev/null ||
28577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28578 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28579 /^X\(\/\/\)$/{ s//\1/; q; }
28580 /^X\(\/\).*/{ s//\1/; q; }
28583 test ! -n "$as_dirs" || mkdir $as_dirs
28584 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28585 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28586 { (exit 1); exit 1; }; }; }
28590 if test "$ac_dir" != .; then
28591 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28592 # A "../" for each directory in $ac_dir_suffix.
28593 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28595 ac_dir_suffix= ac_top_builddir=
28599 .) # No --srcdir option. We are building in place.
28601 if test -z "$ac_top_builddir"; then
28604 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28606 [\\/]* | ?:[\\/]* ) # Absolute path.
28607 ac_srcdir=$srcdir$ac_dir_suffix;
28608 ac_top_srcdir=$srcdir ;;
28609 *) # Relative path.
28610 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28611 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28614 # Do not use `cd foo && pwd` to compute absolute paths, because
28615 # the directories may not exist.
28617 .) ac_abs_builddir="$ac_dir";;
28620 .) ac_abs_builddir=`pwd`;;
28621 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28622 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28625 case $ac_abs_builddir in
28626 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28628 case ${ac_top_builddir}. in
28629 .) ac_abs_top_builddir=$ac_abs_builddir;;
28630 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28631 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28634 case $ac_abs_builddir in
28635 .) ac_abs_srcdir=$ac_srcdir;;
28638 .) ac_abs_srcdir=$ac_abs_builddir;;
28639 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28640 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28643 case $ac_abs_builddir in
28644 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28646 case $ac_top_srcdir in
28647 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28648 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28649 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28655 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28656 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28659 # Let's still pretend it is `configure' which instantiates (i.e., don't
28660 # use $as_me), people would be surprised to read:
28661 # /* config.h. Generated by config.status. */
28662 if test x"$ac_file" = x-; then
28665 configure_input="$ac_file. "
28667 configure_input=$configure_input"Generated from `echo $ac_file_in |
28668 sed 's,.*/,,'` by configure."
28670 # First look for the input files in the build tree, otherwise in the
28672 ac_file_inputs=`IFS=:
28673 for f in $ac_file_in; do
28675 -) echo $tmp/stdin ;;
28677 # Absolute (can't be DOS-style, as IFS=:)
28678 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28679 echo "$as_me: error: cannot find input file: $f" >&2;}
28680 { (exit 1); exit 1; }; }
28683 if test -f "$f"; then
28686 elif test -f "$srcdir/$f"; then
28691 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28692 echo "$as_me: error: cannot find input file: $f" >&2;}
28693 { (exit 1); exit 1; }; }
28696 done` || { (exit 1); exit 1; }
28698 if test x"$ac_file" != x-; then
28699 { echo "$as_me:$LINENO: creating $ac_file" >&5
28700 echo "$as_me: creating $ac_file" >&6;}
28704 cat >>$CONFIG_STATUS <<_ACEOF
28708 cat >>$CONFIG_STATUS <<\_ACEOF
28710 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28711 s,@configure_input@,$configure_input,;t t
28712 s,@srcdir@,$ac_srcdir,;t t
28713 s,@abs_srcdir@,$ac_abs_srcdir,;t t
28714 s,@top_srcdir@,$ac_top_srcdir,;t t
28715 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28716 s,@builddir@,$ac_builddir,;t t
28717 s,@abs_builddir@,$ac_abs_builddir,;t t
28718 s,@top_builddir@,$ac_top_builddir,;t t
28719 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28720 s,@INSTALL@,$ac_INSTALL,;t t
28721 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28723 if test x"$ac_file" != x-; then
28724 mv $tmp/out $ac_file
28732 cat >>$CONFIG_STATUS <<\_ACEOF
28735 # CONFIG_HEADER section.
28738 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28739 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28741 # ac_d sets the value in "#define NAME VALUE" lines.
28742 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
28743 ac_dB='[ ].*$,\1#\2'
28746 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28747 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
28748 ac_uB='$,\1#\2define\3'
28752 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28753 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28755 - | *:- | *:-:* ) # input from stdin
28757 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28758 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28759 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28760 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28761 * ) ac_file_in=$ac_file.in ;;
28764 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28765 echo "$as_me: creating $ac_file" >&6;}
28767 # First look for the input files in the build tree, otherwise in the
28769 ac_file_inputs=`IFS=:
28770 for f in $ac_file_in; do
28772 -) echo $tmp/stdin ;;
28774 # Absolute (can't be DOS-style, as IFS=:)
28775 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28776 echo "$as_me: error: cannot find input file: $f" >&2;}
28777 { (exit 1); exit 1; }; }
28778 # Do quote $f, to prevent DOS paths from being IFS'd.
28781 if test -f "$f"; then
28784 elif test -f "$srcdir/$f"; then
28789 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28790 echo "$as_me: error: cannot find input file: $f" >&2;}
28791 { (exit 1); exit 1; }; }
28794 done` || { (exit 1); exit 1; }
28795 # Remove the trailing spaces.
28796 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
28800 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28801 # `conftest.undefs', that substitutes the proper values into
28802 # config.h.in to produce config.h. The first handles `#define'
28803 # templates, and the second `#undef' templates.
28804 # And first: Protect against being on the right side of a sed subst in
28805 # config.status. Protect against being in an unquoted here document
28806 # in config.status.
28807 rm -f conftest.defines conftest.undefs
28808 # Using a here document instead of a string reduces the quoting nightmare.
28809 # Putting comments in sed scripts is not portable.
28811 # `end' is used to avoid that the second main sed command (meant for
28812 # 0-ary CPP macros) applies to n-ary macro definitions.
28813 # See the Autoconf documentation for `clear'.
28814 cat >confdef2sed.sed <<\_ACEOF
28819 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28821 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28824 # If some macros were called several times there might be several times
28825 # the same #defines, which is useless. Nevertheless, we may not want to
28826 # sort them, since we want the *last* AC-DEFINE to be honored.
28827 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28828 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28829 rm -f confdef2sed.sed
28831 # This sed command replaces #undef with comments. This is necessary, for
28832 # example, in the case of _POSIX_SOURCE, which is predefined and required
28833 # on some systems where configure will not decide to define it.
28834 cat >>conftest.undefs <<\_ACEOF
28835 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28838 # Break up conftest.defines because some shells have a limit on the size
28839 # of here documents, and old seds have small limits too (100 cmds).
28840 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28841 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28842 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28843 echo ' :' >>$CONFIG_STATUS
28844 rm -f conftest.tail
28845 while grep . conftest.defines >/dev/null
28847 # Write a limited-size here document to $tmp/defines.sed.
28848 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28849 # Speed up: don't consider the non `#define' lines.
28850 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
28851 # Work around the forget-to-reset-the-flag bug.
28852 echo 't clr' >>$CONFIG_STATUS
28853 echo ': clr' >>$CONFIG_STATUS
28854 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28856 sed -f $tmp/defines.sed $tmp/in >$tmp/out
28858 mv $tmp/out $tmp/in
28860 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28861 rm -f conftest.defines
28862 mv conftest.tail conftest.defines
28864 rm -f conftest.defines
28865 echo ' fi # grep' >>$CONFIG_STATUS
28866 echo >>$CONFIG_STATUS
28868 # Break up conftest.undefs because some shells have a limit on the size
28869 # of here documents, and old seds have small limits too (100 cmds).
28870 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
28871 rm -f conftest.tail
28872 while grep . conftest.undefs >/dev/null
28874 # Write a limited-size here document to $tmp/undefs.sed.
28875 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28876 # Speed up: don't consider the non `#undef'
28877 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
28878 # Work around the forget-to-reset-the-flag bug.
28879 echo 't clr' >>$CONFIG_STATUS
28880 echo ': clr' >>$CONFIG_STATUS
28881 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28883 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28885 mv $tmp/out $tmp/in
28887 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28888 rm -f conftest.undefs
28889 mv conftest.tail conftest.undefs
28891 rm -f conftest.undefs
28893 cat >>$CONFIG_STATUS <<\_ACEOF
28894 # Let's still pretend it is `configure' which instantiates (i.e., don't
28895 # use $as_me), people would be surprised to read:
28896 # /* config.h. Generated by config.status. */
28897 if test x"$ac_file" = x-; then
28898 echo "/* Generated by configure. */" >$tmp/config.h
28900 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
28902 cat $tmp/in >>$tmp/config.h
28904 if test x"$ac_file" != x-; then
28905 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28906 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28907 echo "$as_me: $ac_file is unchanged" >&6;}
28909 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28910 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28911 X"$ac_file" : 'X\(//\)[^/]' \| \
28912 X"$ac_file" : 'X\(//\)$' \| \
28913 X"$ac_file" : 'X\(/\)' \| \
28914 . : '\(.\)' 2>/dev/null ||
28916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28917 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28918 /^X\(\/\/\)$/{ s//\1/; q; }
28919 /^X\(\/\).*/{ s//\1/; q; }
28921 { if $as_mkdir_p; then
28926 while test ! -d "$as_dir"; do
28927 as_dirs="$as_dir $as_dirs"
28928 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28929 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28930 X"$as_dir" : 'X\(//\)[^/]' \| \
28931 X"$as_dir" : 'X\(//\)$' \| \
28932 X"$as_dir" : 'X\(/\)' \| \
28933 . : '\(.\)' 2>/dev/null ||
28935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28936 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28937 /^X\(\/\/\)$/{ s//\1/; q; }
28938 /^X\(\/\).*/{ s//\1/; q; }
28941 test ! -n "$as_dirs" || mkdir $as_dirs
28942 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28943 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28944 { (exit 1); exit 1; }; }; }
28947 mv $tmp/config.h $ac_file
28951 rm -f $tmp/config.h
28953 # Compute $ac_file's index in $config_headers.
28955 for _am_header in $config_headers :; do
28956 case $_am_header in
28957 $ac_file | $ac_file:* )
28960 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28963 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28964 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28965 X$ac_file : 'X\(//\)[^/]' \| \
28966 X$ac_file : 'X\(//\)$' \| \
28967 X$ac_file : 'X\(/\)' \| \
28968 . : '\(.\)' 2>/dev/null ||
28970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28971 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28972 /^X\(\/\/\)$/{ s//\1/; q; }
28973 /^X\(\/\).*/{ s//\1/; q; }
28974 s/.*/./; q'`/stamp-h$_am_stamp_count
28977 cat >>$CONFIG_STATUS <<\_ACEOF
28980 # CONFIG_COMMANDS section.
28982 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28983 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28984 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28985 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28986 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28987 X"$ac_dest" : 'X\(//\)[^/]' \| \
28988 X"$ac_dest" : 'X\(//\)$' \| \
28989 X"$ac_dest" : 'X\(/\)' \| \
28990 . : '\(.\)' 2>/dev/null ||
28992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28993 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28994 /^X\(\/\/\)$/{ s//\1/; q; }
28995 /^X\(\/\).*/{ s//\1/; q; }
28997 { if $as_mkdir_p; then
29002 while test ! -d "$as_dir"; do
29003 as_dirs="$as_dir $as_dirs"
29004 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29006 X"$as_dir" : 'X\(//\)[^/]' \| \
29007 X"$as_dir" : 'X\(//\)$' \| \
29008 X"$as_dir" : 'X\(/\)' \| \
29009 . : '\(.\)' 2>/dev/null ||
29011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29012 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29013 /^X\(\/\/\)$/{ s//\1/; q; }
29014 /^X\(\/\).*/{ s//\1/; q; }
29017 test ! -n "$as_dirs" || mkdir $as_dirs
29018 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29019 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29020 { (exit 1); exit 1; }; }; }
29024 if test "$ac_dir" != .; then
29025 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29026 # A "../" for each directory in $ac_dir_suffix.
29027 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29029 ac_dir_suffix= ac_top_builddir=
29033 .) # No --srcdir option. We are building in place.
29035 if test -z "$ac_top_builddir"; then
29038 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29040 [\\/]* | ?:[\\/]* ) # Absolute path.
29041 ac_srcdir=$srcdir$ac_dir_suffix;
29042 ac_top_srcdir=$srcdir ;;
29043 *) # Relative path.
29044 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29045 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29048 # Do not use `cd foo && pwd` to compute absolute paths, because
29049 # the directories may not exist.
29051 .) ac_abs_builddir="$ac_dir";;
29054 .) ac_abs_builddir=`pwd`;;
29055 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29056 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29059 case $ac_abs_builddir in
29060 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29062 case ${ac_top_builddir}. in
29063 .) ac_abs_top_builddir=$ac_abs_builddir;;
29064 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29065 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29068 case $ac_abs_builddir in
29069 .) ac_abs_srcdir=$ac_srcdir;;
29072 .) ac_abs_srcdir=$ac_abs_builddir;;
29073 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29074 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29077 case $ac_abs_builddir in
29078 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29080 case $ac_top_srcdir in
29081 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29082 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29083 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29088 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
29089 echo "$as_me: executing $ac_dest commands" >&6;}
29091 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29092 # Strip MF so we end up with the name of the file.
29093 mf=`echo "$mf" | sed -e 's/:.*$//'`
29094 # Check whether this is an Automake generated Makefile or not.
29095 # We used to match only the files named `Makefile.in', but
29096 # some people rename them; so instead we look at the file content.
29097 # Grep'ing the first line is not enough: some people post-process
29098 # each Makefile.in and add a new line on top of each file to say so.
29099 # So let's grep whole file.
29100 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29101 dirpart=`(dirname "$mf") 2>/dev/null ||
29102 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29103 X"$mf" : 'X\(//\)[^/]' \| \
29104 X"$mf" : 'X\(//\)$' \| \
29105 X"$mf" : 'X\(/\)' \| \
29106 . : '\(.\)' 2>/dev/null ||
29108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29109 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29110 /^X\(\/\/\)$/{ s//\1/; q; }
29111 /^X\(\/\).*/{ s//\1/; q; }
29116 # Extract the definition of DEPDIR, am__include, and am__quote
29117 # from the Makefile without running `make'.
29118 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29119 test -z "$DEPDIR" && continue
29120 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29121 test -z "am__include" && continue
29122 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29123 # When using ansi2knr, U may be empty or an underscore; expand it
29124 U=`sed -n 's/^U = //p' < "$mf"`
29125 # Find all dependency output files, they are included files with
29126 # $(DEPDIR) in their names. We invoke sed twice because it is the
29127 # simplest approach to changing $(DEPDIR) to its actual value in the
29129 for file in `sed -n "
29130 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29131 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29132 # Make sure the directory exists.
29133 test -f "$dirpart/$file" && continue
29134 fdir=`(dirname "$file") 2>/dev/null ||
29135 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29136 X"$file" : 'X\(//\)[^/]' \| \
29137 X"$file" : 'X\(//\)$' \| \
29138 X"$file" : 'X\(/\)' \| \
29139 . : '\(.\)' 2>/dev/null ||
29141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29142 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29143 /^X\(\/\/\)$/{ s//\1/; q; }
29144 /^X\(\/\).*/{ s//\1/; q; }
29146 { if $as_mkdir_p; then
29147 mkdir -p $dirpart/$fdir
29149 as_dir=$dirpart/$fdir
29151 while test ! -d "$as_dir"; do
29152 as_dirs="$as_dir $as_dirs"
29153 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29155 X"$as_dir" : 'X\(//\)[^/]' \| \
29156 X"$as_dir" : 'X\(//\)$' \| \
29157 X"$as_dir" : 'X\(/\)' \| \
29158 . : '\(.\)' 2>/dev/null ||
29160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29162 /^X\(\/\/\)$/{ s//\1/; q; }
29163 /^X\(\/\).*/{ s//\1/; q; }
29166 test ! -n "$as_dirs" || mkdir $as_dirs
29167 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29168 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
29169 { (exit 1); exit 1; }; }; }
29171 # echo "creating $dirpart/$file"
29172 echo '# dummy' > "$dirpart/$file"
29180 cat >>$CONFIG_STATUS <<\_ACEOF
29182 { (exit 0); exit 0; }
29184 chmod +x $CONFIG_STATUS
29185 ac_clean_files=$ac_clean_files_save
29188 # configure is writing to config.log, and then calls config.status.
29189 # config.status does its own redirection, appending to config.log.
29190 # Unfortunately, on DOS this fails, as config.log is still kept open
29191 # by configure, so config.status won't be able to write to it; its
29192 # output is simply discarded. So we exec the FD to /dev/null,
29193 # effectively closing config.log, so it can be properly (re)opened and
29194 # appended to by config.status. When coming back to configure, we
29195 # need to make the FD available again.
29196 if test "$no_create" != yes; then
29198 ac_config_status_args=
29199 test "$silent" = yes &&
29200 ac_config_status_args="$ac_config_status_args --quiet"
29202 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29204 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29205 # would make configure fail if this is the last instruction.
29206 $ac_cs_success || { (exit 1); exit 1; }