2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for linux nfs-utils 1.2.6.
5 # Report bugs to <linux-nfs@vger.kernel.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: linux-nfs@vger.kernel.org about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='linux nfs-utils'
572 PACKAGE_TARNAME='nfs-utils'
573 PACKAGE_VERSION='1.2.6'
574 PACKAGE_STRING='linux nfs-utils 1.2.6'
575 PACKAGE_BUGREPORT='linux-nfs@vger.kernel.org'
578 ac_default_prefix=/usr
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_unique_file="support/include/config.h.in"
616 ac_subst_vars='am__EXEEXT_FALSE
633 CONFIG_LIBMOUNT_FALSE
640 CONFIG_NFSIDMAP_FALSE
741 MAINTAINER_MODE_FALSE
751 INSTALL_STRIP_PROGRAM
801 program_transform_name
814 enable_option_checking
815 enable_maintainer_mode
828 enable_libmount_mount
835 enable_dependency_tracking
848 ac_precious_vars='build_alias
870 # Initialize some variables set by options.
872 ac_init_version=false
873 ac_unrecognized_opts=
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
884 program_transform_name=s,x,x,
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 includedir='${prefix}/include'
907 oldincludedir='/usr/include'
908 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
909 infodir='${datarootdir}/info'
914 libdir='${exec_prefix}/lib'
915 localedir='${datarootdir}/locale'
916 mandir='${datarootdir}/man'
922 # If the previous option needs an argument, assign it.
923 if test -n "$ac_prev"; then
924 eval $ac_prev=\$ac_option
930 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935 # Accept the important Cygnus configure options, so we can diagnose typos.
937 case $ac_dashdash$ac_option in
941 -bindir | --bindir | --bindi | --bind | --bin | --bi)
943 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
946 -build | --build | --buil | --bui | --bu)
947 ac_prev=build_alias ;;
948 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949 build_alias=$ac_optarg ;;
951 -cache-file | --cache-file | --cache-fil | --cache-fi \
952 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953 ac_prev=cache_file ;;
954 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956 cache_file=$ac_optarg ;;
959 cache_file=config.cache ;;
961 -datadir | --datadir | --datadi | --datad)
963 -datadir=* | --datadir=* | --datadi=* | --datad=*)
964 datadir=$ac_optarg ;;
966 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967 | --dataroo | --dataro | --datar)
968 ac_prev=datarootdir ;;
969 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971 datarootdir=$ac_optarg ;;
973 -disable-* | --disable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error $? "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
987 eval enable_$ac_useropt=no ;;
989 -docdir | --docdir | --docdi | --doc | --do)
991 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999 -enable-* | --enable-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error $? "invalid feature name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1008 "enable_$ac_useropt"
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1013 eval enable_$ac_useropt=\$ac_optarg ;;
1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017 | --exec | --exe | --ex)
1018 ac_prev=exec_prefix ;;
1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021 | --exec=* | --exe=* | --ex=*)
1022 exec_prefix=$ac_optarg ;;
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1028 -help | --help | --hel | --he | -h)
1029 ac_init_help=long ;;
1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031 ac_init_help=recursive ;;
1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033 ac_init_help=short ;;
1035 -host | --host | --hos | --ho)
1036 ac_prev=host_alias ;;
1037 -host=* | --host=* | --hos=* | --ho=*)
1038 host_alias=$ac_optarg ;;
1040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1044 htmldir=$ac_optarg ;;
1046 -includedir | --includedir | --includedi | --included | --include \
1047 | --includ | --inclu | --incl | --inc)
1048 ac_prev=includedir ;;
1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050 | --includ=* | --inclu=* | --incl=* | --inc=*)
1051 includedir=$ac_optarg ;;
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056 infodir=$ac_optarg ;;
1058 -libdir | --libdir | --libdi | --libd)
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061 libdir=$ac_optarg ;;
1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064 | --libexe | --libex | --libe)
1065 ac_prev=libexecdir ;;
1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067 | --libexe=* | --libex=* | --libe=*)
1068 libexecdir=$ac_optarg ;;
1070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1075 -localstatedir | --localstatedir | --localstatedi | --localstated \
1076 | --localstate | --localstat | --localsta | --localst | --locals)
1077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080 localstatedir=$ac_optarg ;;
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085 mandir=$ac_optarg ;;
1087 -nfp | --nfp | --nf)
1088 # Obsolete; use --without-fp.
1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092 | --no-cr | --no-c | -n)
1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101 | --oldin | --oldi | --old | --ol | --o)
1102 ac_prev=oldincludedir ;;
1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106 oldincludedir=$ac_optarg ;;
1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111 prefix=$ac_optarg ;;
1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114 | --program-pre | --program-pr | --program-p)
1115 ac_prev=program_prefix ;;
1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118 program_prefix=$ac_optarg ;;
1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121 | --program-suf | --program-su | --program-s)
1122 ac_prev=program_suffix ;;
1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125 program_suffix=$ac_optarg ;;
1127 -program-transform-name | --program-transform-name \
1128 | --program-transform-nam | --program-transform-na \
1129 | --program-transform-n | --program-transform- \
1130 | --program-transform | --program-transfor \
1131 | --program-transfo | --program-transf \
1132 | --program-trans | --program-tran \
1133 | --progr-tra | --program-tr | --program-t)
1134 ac_prev=program_transform_name ;;
1135 -program-transform-name=* | --program-transform-name=* \
1136 | --program-transform-nam=* | --program-transform-na=* \
1137 | --program-transform-n=* | --program-transform-=* \
1138 | --program-transform=* | --program-transfor=* \
1139 | --program-transfo=* | --program-transf=* \
1140 | --program-trans=* | --program-tran=* \
1141 | --progr-tra=* | --program-tr=* | --program-t=*)
1142 program_transform_name=$ac_optarg ;;
1144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147 pdfdir=$ac_optarg ;;
1149 -psdir | --psdir | --psdi | --psd | --ps)
1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1162 sbindir=$ac_optarg ;;
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1173 sharedstatedir=$ac_optarg ;;
1175 -site | --site | --sit)
1177 -site=* | --site=* | --sit=*)
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183 srcdir=$ac_optarg ;;
1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190 sysconfdir=$ac_optarg ;;
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
1193 ac_prev=target_alias ;;
1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195 target_alias=$ac_optarg ;;
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1217 eval with_$ac_useropt=\$ac_optarg ;;
1219 -without-* | --without-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error $? "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1233 eval with_$ac_useropt=no ;;
1236 # Obsolete; use --with-x.
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244 x_includes=$ac_optarg ;;
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251 x_libraries=$ac_optarg ;;
1253 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1254 Try \`$0 --help' for more information"
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 case $ac_envvar in #(
1261 '' | [0-9]* | *[!_$as_cr_alnum]* )
1262 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1264 eval $ac_envvar=\$ac_optarg
1265 export $ac_envvar ;;
1268 # FIXME: should be removed in autoconf 3.0.
1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1278 if test -n "$ac_prev"; then
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280 as_fn_error $? "missing argument to $ac_option"
1283 if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1286 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 # Check all directory arguments for consistency.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1297 eval ac_val=\$$ac_var
1298 # Remove trailing slashes.
1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\$ac_val;;
1304 # Be sure to have absolute directory names.
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1317 target=$target_alias
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1324 If a cross compiler is detected then cross compile mode will be used" >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333 test "$silent" = yes && exec 6>/dev/null
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 as_fn_error $? "working directory cannot be determined"
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 as_fn_error $? "pwd does not report name of working directory"
1344 # Find the source files, if location was not specified.
1345 if test -z "$srcdir"; then
1346 ac_srcdir_defaulted=yes
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir=`$as_dirname -- "$as_myself" ||
1349 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353 $as_echo X"$as_myself" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1376 ac_srcdir_defaulted=no
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 for ac_var in $ac_precious_vars; do
1397 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_env_${ac_var}_value=\$${ac_var}
1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 # Report the --help message.
1406 if test "$ac_init_help" = "long"; then
1407 # Omit some internal or obsolete options to make the list less imposing.
1408 # This message is too long to be a string in the A/UX 3.1 sh.
1410 \`configure' configures linux nfs-utils 1.2.6 to adapt to many kinds of systems.
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE. See below for descriptions of some of the useful variables.
1417 Defaults for the options are specified in brackets.
1420 -h, --help display this help and exit
1421 --help=short display options specific to this package
1422 --help=recursive display the short help of all the included packages
1423 -V, --version display version information and exit
1424 -q, --quiet, --silent do not print \`checking ...' messages
1425 --cache-file=FILE cache test results in FILE [disabled]
1426 -C, --config-cache alias for \`--cache-file=config.cache'
1427 -n, --no-create do not create output files
1428 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430 Installation directories:
1431 --prefix=PREFIX install architecture-independent files in PREFIX
1432 [$ac_default_prefix]
1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1441 For better control, use the options below.
1443 Fine tuning of the installation directories:
1444 --bindir=DIR user executables [EPREFIX/bin]
1445 --sbindir=DIR system admin executables [EPREFIX/sbin]
1446 --libexecdir=DIR program executables [EPREFIX/libexec]
1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs-utils]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1468 --program-prefix=PREFIX prepend PREFIX to installed program names
1469 --program-suffix=SUFFIX append SUFFIX to installed program names
1470 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 if test -n "$ac_init_help"; then
1479 case $ac_init_help in
1480 short | recursive ) echo "Configuration of linux nfs-utils 1.2.6:";;
1485 --disable-option-checking ignore unrecognized --enable/--with options
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --enable-maintainer-mode enable make rules and dependencies not useful
1489 (and sometimes confusing) to the casual installer
1490 --enable-nfsv4 enable support for NFSv4 [default=yes]
1491 --enable-nfsv41 enable support for NFSv41 [default=yes]
1492 --enable-gss enable support for rpcsec_gss [default=yes]
1493 --enable-kprefix install progs as rpc.knfsd etc
1494 --disable-uuid Exclude uuid support to avoid buggy libblkid
1495 --enable-mount Create mount.nfs and do not use the util-linux
1496 mount(8) functionality. [default=yes]
1497 --enable-libmount-mount Link mount.nfs with libmount (EXPERIMENTAL)
1498 --enable-tirpc enable use of TI-RPC [default=yes]
1499 --enable-ipv6 enable support for IPv6 [default=no]
1500 --enable-mountconfig enable mount to use a configuration file
1501 --enable-nfsdcld Create nfsdcld NFSv4 clientid tracking daemon.
1503 --disable-dependency-tracking speeds up one-time build
1504 --enable-dependency-tracking do not reject slow dependency extractors
1505 --disable-caps Disable capabilities support
1506 --disable-largefile omit support for large files
1507 --enable-shared[=PKGS] build shared libraries [default=yes]
1508 --enable-static[=PKGS] build static libraries [default=yes]
1509 --enable-fast-install[=PKGS]
1510 optimize for fast installation [default=yes]
1511 --disable-libtool-lock avoid locking (might break parallel builds)
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-release=XXX set release to XXX [1]
1517 --with-statedir=/foo use state dir /foo [default=/var/lib/nfs]
1518 --with-statdpath=/foo define the statd state dir as /foo instead of the
1519 NFS statedir [default=/var/lib/nfs]
1520 --with-statduser=rpcuser
1521 statd to run under [rpcuser or nobody]
1522 --with-start-statd=scriptname
1523 When an nfs filesystems is mounted with locking, run
1525 --with-rpcgen=internal use internal rpcgen instead of system one
1526 --with-mountfile=filename
1527 Using filename as the NFS mount options file
1528 [/etc/nfsmounts.conf]
1529 --with-tirpcinclude=DIR use TI-RPC headers in DIR
1530 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1531 (optionally in PATH)
1532 --with-pic try to use only PIC/non-PIC objects [default=use
1534 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1535 --with-sysroot=DIR Search for dependent libraries within DIR
1536 (or the compiler's sysroot if not specified).
1537 --with-krb5=DIR use Kerberos v5 installation in DIR
1539 Some influential environment variables:
1540 CC C compiler command
1541 CFLAGS C compiler flags
1542 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1543 nonstandard directory <lib dir>
1544 LIBS libraries to pass to the linker, e.g. -l<library>
1545 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1546 you have headers in a nonstandard directory <include dir>
1548 CXX C++ compiler command
1549 CXXFLAGS C++ compiler flags
1550 CXXCPP C++ preprocessor
1551 PKG_CONFIG path to pkg-config utility
1553 directories to add to pkg-config's search path
1555 path overriding pkg-config's built-in search path
1557 C compiler flags for GSSGLUE, overriding pkg-config
1559 linker flags for GSSGLUE, overriding pkg-config
1561 C compiler flags for RPCSECGSS, overriding pkg-config
1563 linker flags for RPCSECGSS, overriding pkg-config
1565 Use these variables to override the choices made by `configure' or to help
1566 it to find libraries and programs with nonstandard names/locations.
1568 Report bugs to <linux-nfs@vger.kernel.org>.
1573 if test "$ac_init_help" = "recursive"; then
1574 # If there are subdirs, report their specific --help.
1575 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1576 test -d "$ac_dir" ||
1577 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1598 .) # We are building in place.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1622 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1631 linux nfs-utils configure 1.2.6
1632 generated by GNU Autoconf 2.68
1634 Copyright (C) 2010 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1641 ## ------------------------ ##
1642 ## Autoconf initialization. ##
1643 ## ------------------------ ##
1645 # ac_fn_c_try_compile LINENO
1646 # --------------------------
1647 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_compile ()
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 rm -f conftest.$ac_objext
1652 if { { ac_try="$ac_compile"
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_compile") 2>conftest.err
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && {
1668 test -z "$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 } && test -s conftest.$ac_objext; then :
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1681 } # ac_fn_c_try_compile
1683 # ac_fn_c_try_link LINENO
1684 # -----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded.
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 rm -f conftest.$ac_objext conftest$ac_exeext
1690 if { { ac_try="$ac_link"
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>conftest.err
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && {
1706 test -z "$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 } && test -s conftest$ac_exeext && {
1709 test "$cross_compiling" = yes ||
1710 $as_test_x conftest$ac_exeext
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1719 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721 # interfere with the next link command; also delete a directory that is
1722 # left behind by Apple's compiler. We do this before executing the actions.
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1727 } # ac_fn_c_try_link
1729 # ac_fn_c_try_cpp LINENO
1730 # ----------------------
1731 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { { ac_try="$ac_cpp conftest.$ac_ext"
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1744 if test -s conftest.err; then
1745 grep -v '^ *+' conftest.err >conftest.er1
1746 cat conftest.er1 >&5
1747 mv -f conftest.er1 conftest.err
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } > conftest.i && {
1751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1752 test ! -s conftest.err
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1766 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1767 # -------------------------------------------------------
1768 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1769 # the include files in INCLUDES and setting the cache variable VAR
1771 ac_fn_c_check_header_mongrel ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 if eval \${$3+:} false; then :
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1784 # Is the header compilable?
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1786 $as_echo_n "checking $2 usability... " >&6; }
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1792 if ac_fn_c_try_compile "$LINENO"; then :
1793 ac_header_compiler=yes
1795 ac_header_compiler=no
1797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1799 $as_echo "$ac_header_compiler" >&6; }
1801 # Is the header present?
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1803 $as_echo_n "checking $2 presence... " >&6; }
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1808 if ac_fn_c_try_cpp "$LINENO"; then :
1809 ac_header_preproc=yes
1811 ac_header_preproc=no
1813 rm -f conftest.err conftest.i conftest.$ac_ext
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1815 $as_echo "$ac_header_preproc" >&6; }
1817 # So? What about this header?
1818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1821 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1827 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1829 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1831 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1833 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836 ( $as_echo "## ---------------------------------------- ##
1837 ## Report this to linux-nfs@vger.kernel.org ##
1838 ## ---------------------------------------- ##"
1839 ) | sed "s/^/$as_me: WARNING: /" >&2
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval \${$3+:} false; then :
1845 $as_echo_n "(cached) " >&6
1847 eval "$3=\$ac_header_compiler"
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 } # ac_fn_c_check_header_mongrel
1857 # ac_fn_c_try_run LINENO
1858 # ----------------------
1859 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1860 # that executables *can* be run.
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { { ac_try="$ac_link"
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_link") 2>&5
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1875 { { case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_try") 2>&5
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; }; }; then :
1887 $as_echo "$as_me: program exited with status $ac_status" >&5
1888 $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1891 ac_retval=$ac_status
1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1899 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1900 # -------------------------------------------------------
1901 # Tests whether HEADER exists and can be compiled using the include files in
1902 # INCLUDES, setting the cache variable VAR accordingly.
1903 ac_fn_c_check_header_compile ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if eval \${$3+:} false; then :
1909 $as_echo_n "(cached) " >&6
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1916 if ac_fn_c_try_compile "$LINENO"; then :
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 } # ac_fn_c_check_header_compile
1930 # ac_fn_c_check_func LINENO FUNC VAR
1931 # ----------------------------------
1932 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1933 ac_fn_c_check_func ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if eval \${$3+:} false; then :
1939 $as_echo_n "(cached) " >&6
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1943 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1945 #define $2 innocuous_$2
1947 /* System header to define __stub macros and hopefully few prototypes,
1948 which can conflict with char $2 (); below.
1949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1950 <limits.h> exists even on freestanding compilers. */
1953 # include <limits.h>
1955 # include <assert.h>
1960 /* Override any GCC internal prototype to avoid an error.
1961 Use char because int might match the return type of a GCC
1962 builtin and then its argument prototype would still apply. */
1967 /* The GNU C library defines this for functions which it implements
1968 to always fail with ENOSYS. Some functions are actually named
1969 something starting with __ and the normal name is an alias. */
1970 #if defined __stub_$2 || defined __stub___$2
1982 if ac_fn_c_try_link "$LINENO"; then :
1987 rm -f core conftest.err conftest.$ac_objext \
1988 conftest$ac_exeext conftest.$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 } # ac_fn_c_check_func
1997 # ac_fn_cxx_try_compile LINENO
1998 # ----------------------------
1999 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2000 ac_fn_cxx_try_compile ()
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 rm -f conftest.$ac_objext
2004 if { { ac_try="$ac_compile"
2006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007 *) ac_try_echo=$ac_try;;
2009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_compile") 2>conftest.err
2013 if test -s conftest.err; then
2014 grep -v '^ *+' conftest.err >conftest.er1
2015 cat conftest.er1 >&5
2016 mv -f conftest.er1 conftest.err
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } && {
2020 test -z "$ac_cxx_werror_flag" ||
2021 test ! -s conftest.err
2022 } && test -s conftest.$ac_objext; then :
2025 $as_echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 as_fn_set_status $ac_retval
2033 } # ac_fn_cxx_try_compile
2035 # ac_fn_cxx_try_cpp LINENO
2036 # ------------------------
2037 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2038 ac_fn_cxx_try_cpp ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 if { { ac_try="$ac_cpp conftest.$ac_ext"
2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2050 if test -s conftest.err; then
2051 grep -v '^ *+' conftest.err >conftest.er1
2052 cat conftest.er1 >&5
2053 mv -f conftest.er1 conftest.err
2055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056 test $ac_status = 0; } > conftest.i && {
2057 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2058 test ! -s conftest.err
2062 $as_echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068 as_fn_set_status $ac_retval
2070 } # ac_fn_cxx_try_cpp
2072 # ac_fn_cxx_try_link LINENO
2073 # -------------------------
2074 # Try to link conftest.$ac_ext, and return whether this succeeded.
2075 ac_fn_cxx_try_link ()
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 rm -f conftest.$ac_objext conftest$ac_exeext
2079 if { { ac_try="$ac_link"
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_link") 2>conftest.err
2088 if test -s conftest.err; then
2089 grep -v '^ *+' conftest.err >conftest.er1
2090 cat conftest.er1 >&5
2091 mv -f conftest.er1 conftest.err
2093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2094 test $ac_status = 0; } && {
2095 test -z "$ac_cxx_werror_flag" ||
2096 test ! -s conftest.err
2097 } && test -s conftest$ac_exeext && {
2098 test "$cross_compiling" = yes ||
2099 $as_test_x conftest$ac_exeext
2103 $as_echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2108 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2109 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2110 # interfere with the next link command; also delete a directory that is
2111 # left behind by Apple's compiler. We do this before executing the actions.
2112 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 as_fn_set_status $ac_retval
2116 } # ac_fn_cxx_try_link
2118 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2119 # -------------------------------------------
2120 # Tests whether TYPE exists after having included INCLUDES, setting cache
2121 # variable VAR accordingly.
2122 ac_fn_c_check_type ()
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126 $as_echo_n "checking for $2... " >&6; }
2127 if eval \${$3+:} false; then :
2128 $as_echo_n "(cached) " >&6
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2156 if ac_fn_c_try_compile "$LINENO"; then :
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170 } # ac_fn_c_check_type
2172 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2173 # --------------------------------------------
2174 # Tries to find the compile-time value of EXPR in a program that includes
2175 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2177 ac_fn_c_compute_int ()
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180 if test "$cross_compiling" = yes; then
2181 # Depending upon the size, compute the lo and hi bounds.
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2188 static int test_array [1 - 2 * !(($2) >= 0)];
2195 if ac_fn_c_try_compile "$LINENO"; then :
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2204 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2211 if ac_fn_c_try_compile "$LINENO"; then :
2212 ac_hi=$ac_mid; break
2214 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2215 if test $ac_lo -le $ac_mid; then
2219 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2230 static int test_array [1 - 2 * !(($2) < 0)];
2237 if ac_fn_c_try_compile "$LINENO"; then :
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2246 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2253 if ac_fn_c_try_compile "$LINENO"; then :
2254 ac_lo=$ac_mid; break
2256 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2257 if test $ac_mid -le $ac_hi; then
2261 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 # Binary search between lo and hi bounds.
2272 while test "x$ac_lo" != "x$ac_hi"; do
2273 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2280 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2287 if ac_fn_c_try_compile "$LINENO"; then :
2290 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2302 static long int longval () { return $2; }
2303 static unsigned long int ulongval () { return $2; }
2310 FILE *f = fopen ("conftest.val", "w");
2315 long int i = longval ();
2318 fprintf (f, "%ld", i);
2322 unsigned long int i = ulongval ();
2325 fprintf (f, "%lu", i);
2327 /* Do not output a trailing newline, as this causes \r\n confusion
2328 on some platforms. */
2329 return ferror (f) || fclose (f) != 0;
2335 if ac_fn_c_try_run "$LINENO"; then :
2336 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2341 conftest.$ac_objext conftest.beam conftest.$ac_ext
2345 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2346 as_fn_set_status $ac_retval
2348 } # ac_fn_c_compute_int
2349 cat >config.log <<_ACEOF
2350 This file contains any messages produced by compilers while
2351 running configure, to aid debugging if configure makes a mistake.
2353 It was created by linux nfs-utils $as_me 1.2.6, which was
2354 generated by GNU Autoconf 2.68. Invocation command line was
2366 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2367 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2368 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2369 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2370 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2372 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2373 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2375 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2376 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2377 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2378 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2379 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2380 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2381 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 test -z "$as_dir" && as_dir=.
2390 $as_echo "PATH: $as_dir"
2406 # Keep a trace of the command line.
2407 # Strip out --no-create and --no-recursion so they do not pile up.
2408 # Strip out --silent because we don't want to record it for future runs.
2409 # Also quote any args containing shell meta-characters.
2410 # Make two passes to allow for proper duplicate-argument suppression.
2414 ac_must_keep_next=false
2420 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2422 | -silent | --silent | --silen | --sile | --sil)
2425 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2428 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2430 as_fn_append ac_configure_args1 " '$ac_arg'"
2431 if test $ac_must_keep_next = true; then
2432 ac_must_keep_next=false # Got value, back to normal.
2435 *=* | --config-cache | -C | -disable-* | --disable-* \
2436 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2437 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2438 | -with-* | --with-* | -without-* | --without-* | --x)
2439 case "$ac_configure_args0 " in
2440 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2443 -* ) ac_must_keep_next=true ;;
2446 as_fn_append ac_configure_args " '$ac_arg'"
2451 { ac_configure_args0=; unset ac_configure_args0;}
2452 { ac_configure_args1=; unset ac_configure_args1;}
2454 # When interrupted or exit'd, cleanup temporary files, and complete
2455 # config.log. We remove comments because anyway the quotes in there
2456 # would cause problems or look ugly.
2457 # WARNING: Use '\'' to represent an apostrophe within the trap.
2458 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2459 trap 'exit_status=$?
2460 # Save into config.log some information that might help in debugging.
2464 $as_echo "## ---------------- ##
2465 ## Cache variables. ##
2466 ## ---------------- ##"
2468 # The following way of writing the cache mishandles newlines in values,
2470 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2471 eval ac_val=\$$ac_var
2475 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2476 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2479 _ | IFS | as_nl) ;; #(
2480 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2481 *) { eval $ac_var=; unset $ac_var;} ;;
2486 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2487 *${as_nl}ac_space=\ *)
2489 "s/'\''/'\''\\\\'\'''\''/g;
2490 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2493 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2500 $as_echo "## ----------------- ##
2501 ## Output variables. ##
2502 ## ----------------- ##"
2504 for ac_var in $ac_subst_vars
2506 eval ac_val=\$$ac_var
2508 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2510 $as_echo "$ac_var='\''$ac_val'\''"
2514 if test -n "$ac_subst_files"; then
2515 $as_echo "## ------------------- ##
2516 ## File substitutions. ##
2517 ## ------------------- ##"
2519 for ac_var in $ac_subst_files
2521 eval ac_val=\$$ac_var
2523 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2525 $as_echo "$ac_var='\''$ac_val'\''"
2530 if test -s confdefs.h; then
2531 $as_echo "## ----------- ##
2538 test "$ac_signal" != 0 &&
2539 $as_echo "$as_me: caught signal $ac_signal"
2540 $as_echo "$as_me: exit $exit_status"
2542 rm -f core *.core core.conftest.* &&
2543 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2546 for ac_signal in 1 2 13 15; do
2547 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2551 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2552 rm -f -r conftest* confdefs.h
2554 $as_echo "/* confdefs.h */" > confdefs.h
2556 # Predefined preprocessor variables.
2558 cat >>confdefs.h <<_ACEOF
2559 #define PACKAGE_NAME "$PACKAGE_NAME"
2562 cat >>confdefs.h <<_ACEOF
2563 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_STRING "$PACKAGE_STRING"
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_URL "$PACKAGE_URL"
2583 # Let the site file select an alternate cache file if it wants to.
2584 # Prefer an explicitly selected file to automatically selected ones.
2587 if test -n "$CONFIG_SITE"; then
2588 # We do not want a PATH search for config.site.
2589 case $CONFIG_SITE in #((
2590 -*) ac_site_file1=./$CONFIG_SITE;;
2591 */*) ac_site_file1=$CONFIG_SITE;;
2592 *) ac_site_file1=./$CONFIG_SITE;;
2594 elif test "x$prefix" != xNONE; then
2595 ac_site_file1=$prefix/share/config.site
2596 ac_site_file2=$prefix/etc/config.site
2598 ac_site_file1=$ac_default_prefix/share/config.site
2599 ac_site_file2=$ac_default_prefix/etc/config.site
2601 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2603 test "x$ac_site_file" = xNONE && continue
2604 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2606 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2607 sed 's/^/| /' "$ac_site_file" >&5
2609 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2611 as_fn_error $? "failed to load site script $ac_site_file
2612 See \`config.log' for more details" "$LINENO" 5; }
2616 if test -r "$cache_file"; then
2617 # Some versions of bash will fail to source /dev/null (special files
2618 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2619 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2621 $as_echo "$as_me: loading cache $cache_file" >&6;}
2623 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2624 *) . "./$cache_file";;
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2629 $as_echo "$as_me: creating cache $cache_file" >&6;}
2633 # Check that the precious variables saved in the cache have kept the same
2635 ac_cache_corrupted=false
2636 for ac_var in $ac_precious_vars; do
2637 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2638 eval ac_new_set=\$ac_env_${ac_var}_set
2639 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2640 eval ac_new_val=\$ac_env_${ac_var}_value
2641 case $ac_old_set,$ac_new_set in
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2644 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2645 ac_cache_corrupted=: ;;
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2648 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2649 ac_cache_corrupted=: ;;
2652 if test "x$ac_old_val" != "x$ac_new_val"; then
2653 # differences in whitespace do not lead to failure.
2654 ac_old_val_w=`echo x $ac_old_val`
2655 ac_new_val_w=`echo x $ac_new_val`
2656 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2658 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2659 ac_cache_corrupted=:
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2662 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2663 eval $ac_var=\$ac_old_val
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2666 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2668 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2671 # Pass precious variables to config.status.
2672 if test "$ac_new_set" = set; then
2674 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2675 *) ac_arg=$ac_var=$ac_new_val ;;
2677 case " $ac_configure_args " in
2678 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2679 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2683 if $ac_cache_corrupted; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2687 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2688 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2690 ## -------------------- ##
2691 ## Main body of script. ##
2692 ## -------------------- ##
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2702 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2703 if test -f "$ac_dir/install-sh"; then
2705 ac_install_sh="$ac_aux_dir/install-sh -c"
2707 elif test -f "$ac_dir/install.sh"; then
2709 ac_install_sh="$ac_aux_dir/install.sh -c"
2711 elif test -f "$ac_dir/shtool"; then
2713 ac_install_sh="$ac_aux_dir/shtool install -c"
2717 if test -z "$ac_aux_dir"; then
2718 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2721 # These three variables are undocumented and unsupported,
2722 # and are intended to be withdrawn in a future Autoconf release.
2723 # They can cause serious problems if a builder's source tree is in a directory
2724 # whose full name contains unusual characters.
2725 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2726 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2727 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2730 # Make sure we can run config.sub.
2731 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2732 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2735 $as_echo_n "checking build system type... " >&6; }
2736 if ${ac_cv_build+:} false; then :
2737 $as_echo_n "(cached) " >&6
2739 ac_build_alias=$build_alias
2740 test "x$ac_build_alias" = x &&
2741 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2742 test "x$ac_build_alias" = x &&
2743 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2744 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2745 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2749 $as_echo "$ac_cv_build" >&6; }
2750 case $ac_cv_build in
2752 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2755 ac_save_IFS=$IFS; IFS='-'
2761 # Remember, the first character of IFS is used to create $*,
2762 # except with old shells:
2765 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2769 $as_echo_n "checking host system type... " >&6; }
2770 if ${ac_cv_host+:} false; then :
2771 $as_echo_n "(cached) " >&6
2773 if test "x$host_alias" = x; then
2774 ac_cv_host=$ac_cv_build
2776 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2782 $as_echo "$ac_cv_host" >&6; }
2785 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2788 ac_save_IFS=$IFS; IFS='-'
2794 # Remember, the first character of IFS is used to create $*,
2795 # except with old shells:
2798 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2802 am__api_version='1.11'
2804 # Find a good install program. We prefer a C program (faster),
2805 # so one script is as good as another. But avoid the broken or
2806 # incompatible versions:
2807 # SysV /etc/install, /usr/sbin/install
2808 # SunOS /usr/etc/install
2809 # IRIX /sbin/install
2811 # AmigaOS /C/install, which installs bootblocks on floppy discs
2812 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2813 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2814 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2815 # OS/2's system install, which has a completely different semantic
2816 # ./install, which can be erroneously created by make from ./install.sh.
2817 # Reject install programs that cannot install multiple files.
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2819 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2820 if test -z "$INSTALL"; then
2821 if ${ac_cv_path_install+:} false; then :
2822 $as_echo_n "(cached) " >&6
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 # Account for people who put trailing slashes in PATH elements.
2830 case $as_dir/ in #((
2831 ./ | .// | /[cC]/* | \
2832 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2833 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2836 # OSF1 and SCO ODT 3.0 have their own names for install.
2837 # Don't use installbsd from OSF since it installs stuff as root
2839 for ac_prog in ginstall scoinst install; do
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2842 if test $ac_prog = install &&
2843 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2844 # AIX install. It has an incompatible calling convention.
2846 elif test $ac_prog = install &&
2847 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2848 # program-specific install script used by HP pwplus--don't use.
2851 rm -rf conftest.one conftest.two conftest.dir
2852 echo one > conftest.one
2853 echo two > conftest.two
2855 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2856 test -s conftest.one && test -s conftest.two &&
2857 test -s conftest.dir/conftest.one &&
2858 test -s conftest.dir/conftest.two
2860 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2873 rm -rf conftest.one conftest.two conftest.dir
2876 if test "${ac_cv_path_install+set}" = set; then
2877 INSTALL=$ac_cv_path_install
2879 # As a last resort, use the slow shell script. Don't cache a
2880 # value for INSTALL within a source directory, because that will
2881 # break other packages using the cache if that directory is
2882 # removed, or if the value is a relative name.
2883 INSTALL=$ac_install_sh
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2887 $as_echo "$INSTALL" >&6; }
2889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2890 # It thinks the first close brace ends the variable substitution.
2891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2895 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2898 $as_echo_n "checking whether build environment is sane... " >&6; }
2901 echo timestamp > conftest.file
2902 # Reject unsafe characters in $srcdir or the absolute working directory
2903 # name. Accept space and tab only in the latter.
2907 *[\\\"\#\$\&\'\`$am_lf]*)
2908 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2911 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2912 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2915 # Do `set' in a subshell so we don't clobber the current shell's
2916 # arguments. Must try -L first in case configure is actually a
2917 # symlink; some systems play weird games with the mod time of symlinks
2918 # (eg FreeBSD returns the mod time of the symlink's containing
2921 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2922 if test "$*" = "X"; then
2924 set X `ls -t "$srcdir/configure" conftest.file`
2927 if test "$*" != "X $srcdir/configure conftest.file" \
2928 && test "$*" != "X conftest.file $srcdir/configure"; then
2930 # If neither matched, then we have a broken ls. This can happen
2931 # if, for instance, CONFIG_SHELL is bash and it inherits a
2932 # broken ls alias from the environment. This has actually
2933 # happened. Such a system could not be considered "sane".
2934 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2935 alias in your environment" "$LINENO" 5
2938 test "$2" = conftest.file
2944 as_fn_error $? "newly created file is older than distributed files!
2945 Check your system clock" "$LINENO" 5
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2948 $as_echo "yes" >&6; }
2949 test "$program_prefix" != NONE &&
2950 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2951 # Use a double $ so make ignores it.
2952 test "$program_suffix" != NONE &&
2953 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2954 # Double any \ or $.
2955 # By default was `s,x,x', remove it if useless.
2956 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2957 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2959 # expand $ac_aux_dir to an absolute path
2960 am_aux_dir=`cd $ac_aux_dir && pwd`
2962 if test x"${MISSING+set}" != xset; then
2965 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2967 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2970 # Use eval to expand $SHELL
2971 if eval "$MISSING --run true"; then
2972 am_missing_run="$MISSING --run "
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2976 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2979 if test x"${install_sh}" != xset; then
2982 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2984 install_sh="\${SHELL} $am_aux_dir/install-sh"
2988 # Installed binaries are usually stripped using `strip' when the user
2989 # run `make install-strip'. However `strip' might not be the right
2990 # tool to use in cross-compilation environments, therefore Automake
2991 # will honor the `STRIP' environment variable to overrule this program.
2992 if test "$cross_compiling" != no; then
2993 if test -n "$ac_tool_prefix"; then
2994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2995 set dummy ${ac_tool_prefix}strip; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_STRIP+:} false; then :
2999 $as_echo_n "(cached) " >&6
3001 if test -n "$STRIP"; then
3002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 STRIP=$ac_cv_prog_STRIP
3022 if test -n "$STRIP"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3024 $as_echo "$STRIP" >&6; }
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3032 if test -z "$ac_cv_prog_STRIP"; then
3034 # Extract the first word of "strip", so it can be a program name with args.
3035 set dummy strip; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3039 $as_echo_n "(cached) " >&6
3041 if test -n "$ac_ct_STRIP"; then
3042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051 ac_cv_prog_ac_ct_STRIP="strip"
3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3062 if test -n "$ac_ct_STRIP"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3064 $as_echo "$ac_ct_STRIP" >&6; }
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3070 if test "x$ac_ct_STRIP" = x; then
3073 case $cross_compiling:$ac_tool_warned in
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3077 ac_tool_warned=yes ;;
3082 STRIP="$ac_cv_prog_STRIP"
3086 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3089 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3090 if test -z "$MKDIR_P"; then
3091 if ${ac_cv_path_mkdir+:} false; then :
3092 $as_echo_n "(cached) " >&6
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3098 test -z "$as_dir" && as_dir=.
3099 for ac_prog in mkdir gmkdir; do
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3102 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3103 'mkdir (GNU coreutils) '* | \
3104 'mkdir (coreutils) '* | \
3105 'mkdir (fileutils) '4.1*)
3106 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3116 test -d ./--version && rmdir ./--version
3117 if test "${ac_cv_path_mkdir+set}" = set; then
3118 MKDIR_P="$ac_cv_path_mkdir -p"
3120 # As a last resort, use the slow shell script. Don't cache a
3121 # value for MKDIR_P within a source directory, because that will
3122 # break other packages using the cache if that directory is
3123 # removed, or if the value is a relative name.
3124 MKDIR_P="$ac_install_sh -d"
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3128 $as_echo "$MKDIR_P" >&6; }
3132 [\\/$]* | ?:[\\/]*) ;;
3133 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3136 for ac_prog in gawk mawk nawk awk
3138 # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_AWK+:} false; then :
3143 $as_echo_n "(cached) " >&6
3145 if test -n "$AWK"; then
3146 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 ac_cv_prog_AWK="$ac_prog"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 if test -n "$AWK"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3168 $as_echo "$AWK" >&6; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3175 test -n "$AWK" && break
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3179 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3181 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3182 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3183 $as_echo_n "(cached) " >&6
3185 cat >conftest.make <<\_ACEOF
3188 @echo '@@@%%%=$(MAKE)=@@@%%%'
3190 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3191 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3193 eval ac_cv_prog_make_${ac_make}_set=yes;;
3195 eval ac_cv_prog_make_${ac_make}_set=no;;
3199 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206 SET_MAKE="MAKE=${MAKE-make}"
3209 rm -rf .tst 2>/dev/null
3210 mkdir .tst 2>/dev/null
3211 if test -d .tst; then
3216 rmdir .tst 2>/dev/null
3218 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3219 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3220 # is not polluted with repeated "-I."
3221 am__isrc=' -I$(srcdir)'
3222 # test to see if srcdir already configured
3223 if test -f $srcdir/config.status; then
3224 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3228 # test whether we have cygpath
3229 if test -z "$CYGPATH_W"; then
3230 if (cygpath --version) >/dev/null 2>/dev/null; then
3231 CYGPATH_W='cygpath -w'
3238 # Define the identity of the package.
3243 cat >>confdefs.h <<_ACEOF
3244 #define PACKAGE "$PACKAGE"
3248 cat >>confdefs.h <<_ACEOF
3249 #define VERSION "$VERSION"
3252 # Some tools Automake needs.
3254 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3257 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3260 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3263 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3266 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3268 # We need awk for the "check" target. The system "awk" is bad on
3270 # Always define AMTAR for backward compatibility.
3272 AMTAR=${AMTAR-"${am_missing_run}tar"}
3274 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3284 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3285 # Check whether --enable-maintainer-mode was given.
3286 if test "${enable_maintainer_mode+set}" = set; then :
3287 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3289 USE_MAINTAINER_MODE=no
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3293 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3294 if test $USE_MAINTAINER_MODE = yes; then
3295 MAINTAINER_MODE_TRUE=
3296 MAINTAINER_MODE_FALSE='#'
3298 MAINTAINER_MODE_TRUE='#'
3299 MAINTAINER_MODE_FALSE=
3302 MAINT=$MAINTAINER_MODE_TRUE
3307 # Check whether --with-release was given.
3308 if test "${with_release+set}" = set; then :
3309 withval=$with_release; RELEASE=$withval
3316 # Check whether --with-statedir was given.
3317 if test "${with_statedir+set}" = set; then :
3318 withval=$with_statedir; statedir=$withval
3320 statedir=/var/lib/nfs
3325 # Check whether --with-statdpath was given.
3326 if test "${with_statdpath+set}" = set; then :
3327 withval=$with_statdpath; statdpath=$withval
3335 # Check whether --with-statduser was given.
3336 if test "${with_statduser+set}" = set; then :
3337 withval=$with_statduser; statduser=$withval
3339 if test "x$cross_compiling" = "xno"; then
3340 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
3352 # Check whether --with-start-statd was given.
3353 if test "${with_start_statd+set}" = set; then :
3354 withval=$with_start_statd; startstatd=$withval
3356 startstatd=/usr/sbin/start-statd
3362 cat >>confdefs.h <<_ACEOF
3363 #define START_STATD "$startstatd"
3366 # Check whether --enable-nfsv4 was given.
3367 if test "${enable_nfsv4+set}" = set; then :
3368 enableval=$enable_nfsv4; enable_nfsv4=$enableval
3373 if test "$enable_nfsv4" = yes; then
3381 if test "$enable_nfsv4" = "yes"; then
3383 CONFIG_NFSV4_FALSE='#'
3385 CONFIG_NFSV4_TRUE='#'
3390 # Check whether --enable-nfsv41 was given.
3391 if test "${enable_nfsv41+set}" = set; then :
3392 enableval=$enable_nfsv41; enable_nfsv41=$enableval
3397 if test "$enable_nfsv41" = yes; then
3398 if test "$enable_nfsv4" != yes; then
3399 as_fn_error $? "NFS v4.1 is enabled but NFS v4 is not. Use --disable-nfsv41" "$LINENO" 5
3407 if test "$enable_nfsv41" = "yes"; then
3409 CONFIG_NFSV41_FALSE='#'
3411 CONFIG_NFSV41_TRUE='#'
3412 CONFIG_NFSV41_FALSE=
3416 # Check whether --enable-gss was given.
3417 if test "${enable_gss+set}" = set; then :
3418 enableval=$enable_gss; enable_gss=$enableval
3423 if test "$enable_gss" = yes; then
3434 if test "$enable_gss" = "yes"; then
3436 CONFIG_GSS_FALSE='#'
3442 # Check whether --enable-kprefix was given.
3443 if test "${enable_kprefix+set}" = set; then :
3444 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
3451 # Check whether --with-rpcgen was given.
3452 if test "${with_rpcgen+set}" = set; then :
3453 withval=$with_rpcgen; rpcgen_path=$withval
3459 if test "$rpcgen_path" = "yes"; then
3460 for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
3461 do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
3462 elif test "$rpcgen_path" != "internal"; then
3463 RPCGEN_PATH=$rpcgen_path
3466 if test "$RPCGEN_PATH" = ""; then
3468 CONFIG_RPCGEN_FALSE='#'
3470 CONFIG_RPCGEN_TRUE='#'
3471 CONFIG_RPCGEN_FALSE=
3474 # Check whether --enable-uuid was given.
3475 if test "${enable_uuid+set}" = set; then :
3476 enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
3478 choose_blkid=default
3481 # Check whether --enable-mount was given.
3482 if test "${enable_mount+set}" = set; then :
3483 enableval=$enable_mount; enable_mount=$enableval
3488 if test "$enable_mount" = "yes"; then
3490 CONFIG_MOUNT_FALSE='#'
3492 CONFIG_MOUNT_TRUE='#'
3497 if test "$enable_mount" = yes; then
3498 # Check whether --enable-libmount-mount was given.
3499 if test "${enable_libmount_mount+set}" = set; then :
3500 enableval=$enable_libmount_mount; enable_libmount=$enableval
3507 # Check whether --enable-tirpc was given.
3508 if test "${enable_tirpc+set}" = set; then :
3509 enableval=$enable_tirpc; enable_tirpc=$enableval
3514 # Check whether --enable-ipv6 was given.
3515 if test "${enable_ipv6+set}" = set; then :
3516 enableval=$enable_ipv6; enable_ipv6=$enableval
3521 if test "$enable_ipv6" = yes; then
3523 $as_echo "#define IPV6_SUPPORTED 1" >>confdefs.h
3529 if test "$enable_ipv6" = "yes"; then
3531 CONFIG_IPV6_FALSE='#'
3533 CONFIG_IPV6_TRUE='#'
3538 if test "$enable_mount" = yes; then
3539 # Check whether --enable-mountconfig was given.
3540 if test "${enable_mountconfig+set}" = set; then :
3541 enableval=$enable_mountconfig; mountconfig=$enableval
3546 if test "$enable_mountconfig" = yes; then
3548 $as_echo "#define MOUNT_CONFIG 1" >>confdefs.h
3551 # Check whether --with-mountfile was given.
3552 if test "${with_mountfile+set}" = set; then :
3553 withval=$with_mountfile; mountfile=$withval
3555 mountfile=/etc/nfsmount.conf
3560 cat >>confdefs.h <<_ACEOF
3561 #define MOUNTOPTS_CONFFILE "$mountfile"
3568 if test "$enable_mountconfig" = "yes"; then
3570 MOUNT_CONFIG_FALSE='#'
3572 MOUNT_CONFIG_TRUE='#'
3577 if test "$enable_mount" = "yes"; then
3579 MOUNT_CONFIG_FALSE='#'
3581 MOUNT_CONFIG_TRUE='#'
3587 # Check whether --enable-nfsdcld was given.
3588 if test "${enable_nfsdcld+set}" = set; then :
3589 enableval=$enable_nfsdcld; enable_nfsdcld=$enableval
3595 DEPDIR="${am__leading_dot}deps"
3597 ac_config_commands="$ac_config_commands depfiles"
3600 am_make=${MAKE-make}
3601 cat > confinc << 'END'
3603 @echo this is the am__doit target
3606 # If we don't find an include directive, just comment out the code.
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3608 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3612 # First try GNU make style include.
3613 echo "include confinc" > confmf
3614 # Ignore all kinds of additional output from `make'.
3615 case `$am_make -s -f confmf 2> /dev/null` in #(
3616 *the\ am__doit\ target*)
3622 # Now try BSD make style include.
3623 if test "$am__include" = "#"; then
3624 echo '.include "confinc"' > confmf
3625 case `$am_make -s -f confmf 2> /dev/null` in #(
3626 *the\ am__doit\ target*)
3627 am__include=.include
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3636 $as_echo "$_am_result" >&6; }
3637 rm -f confinc confmf
3639 # Check whether --enable-dependency-tracking was given.
3640 if test "${enable_dependency_tracking+set}" = set; then :
3641 enableval=$enable_dependency_tracking;
3644 if test "x$enable_dependency_tracking" != xno; then
3645 am_depcomp="$ac_aux_dir/depcomp"
3648 if test "x$enable_dependency_tracking" != xno; then
3658 ac_cpp='$CPP $CPPFLAGS'
3659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3662 if test -n "$ac_tool_prefix"; then
3663 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3664 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3666 $as_echo_n "checking for $ac_word... " >&6; }
3667 if ${ac_cv_prog_CC+:} false; then :
3668 $as_echo_n "(cached) " >&6
3670 if test -n "$CC"; then
3671 ac_cv_prog_CC="$CC" # Let the user override the test.
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 test -z "$as_dir" && as_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3680 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 if test -n "$CC"; then
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3693 $as_echo "$CC" >&6; }
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696 $as_echo "no" >&6; }
3701 if test -z "$ac_cv_prog_CC"; then
3703 # Extract the first word of "gcc", so it can be a program name with args.
3704 set dummy gcc; ac_word=$2
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 $as_echo_n "checking for $ac_word... " >&6; }
3707 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3708 $as_echo_n "(cached) " >&6
3710 if test -n "$ac_ct_CC"; then
3711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 test -z "$as_dir" && as_dir=.
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3720 ac_cv_prog_ac_ct_CC="gcc"
3721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3731 if test -n "$ac_ct_CC"; then
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3733 $as_echo "$ac_ct_CC" >&6; }
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3739 if test "x$ac_ct_CC" = x; then
3742 case $cross_compiling:$ac_tool_warned in
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3746 ac_tool_warned=yes ;;
3754 if test -z "$CC"; then
3755 if test -n "$ac_tool_prefix"; then
3756 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3757 set dummy ${ac_tool_prefix}cc; ac_word=$2
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if ${ac_cv_prog_CC+:} false; then :
3761 $as_echo_n "(cached) " >&6
3763 if test -n "$CC"; then
3764 ac_cv_prog_CC="$CC" # Let the user override the test.
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3773 ac_cv_prog_CC="${ac_tool_prefix}cc"
3774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3784 if test -n "$CC"; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3786 $as_echo "$CC" >&6; }
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3795 if test -z "$CC"; then
3796 # Extract the first word of "cc", so it can be a program name with args.
3797 set dummy cc; ac_word=$2
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799 $as_echo_n "checking for $ac_word... " >&6; }
3800 if ${ac_cv_prog_CC+:} false; then :
3801 $as_echo_n "(cached) " >&6
3803 if test -n "$CC"; then
3804 ac_cv_prog_CC="$CC" # Let the user override the test.
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3814 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3815 ac_prog_rejected=yes
3819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 if test $ac_prog_rejected = yes; then
3827 # We found a bogon in the path, so make sure we never use it.
3828 set dummy $ac_cv_prog_CC
3830 if test $# != 0; then
3831 # We chose a different compiler from the bogus one.
3832 # However, it has the same basename, so the bogon will be chosen
3833 # first if we set CC to just the basename; use the full file name.
3835 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3841 if test -n "$CC"; then
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3843 $as_echo "$CC" >&6; }
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846 $as_echo "no" >&6; }
3851 if test -z "$CC"; then
3852 if test -n "$ac_tool_prefix"; then
3853 for ac_prog in cl.exe
3855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858 $as_echo_n "checking for $ac_word... " >&6; }
3859 if ${ac_cv_prog_CC+:} false; then :
3860 $as_echo_n "(cached) " >&6
3862 if test -n "$CC"; then
3863 ac_cv_prog_CC="$CC" # Let the user override the test.
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 test -z "$as_dir" && as_dir=.
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3872 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 if test -n "$CC"; then
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3885 $as_echo "$CC" >&6; }
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888 $as_echo "no" >&6; }
3892 test -n "$CC" && break
3895 if test -z "$CC"; then
3897 for ac_prog in cl.exe
3899 # Extract the first word of "$ac_prog", so it can be a program name with args.
3900 set dummy $ac_prog; ac_word=$2
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902 $as_echo_n "checking for $ac_word... " >&6; }
3903 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3904 $as_echo_n "(cached) " >&6
3906 if test -n "$ac_ct_CC"; then
3907 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3916 ac_cv_prog_ac_ct_CC="$ac_prog"
3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3927 if test -n "$ac_ct_CC"; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3929 $as_echo "$ac_ct_CC" >&6; }
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3936 test -n "$ac_ct_CC" && break
3939 if test "x$ac_ct_CC" = x; then
3942 case $cross_compiling:$ac_tool_warned in
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3946 ac_tool_warned=yes ;;
3955 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error $? "no acceptable C compiler found in \$PATH
3958 See \`config.log' for more details" "$LINENO" 5; }
3960 # Provide some information about the compiler.
3961 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3964 for ac_option in --version -v -V -qversion; do
3965 { { ac_try="$ac_compiler $ac_option >&5"
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3974 if test -s conftest.err; then
3976 ... rest of stderr output deleted ...
3977 10q' conftest.err >conftest.er1
3978 cat conftest.er1 >&5
3980 rm -f conftest.er1 conftest.err
3981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3982 test $ac_status = 0; }
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3996 ac_clean_files_save=$ac_clean_files
3997 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3998 # Try to create an executable without -o first, disregard a.out.
3999 # It will help us diagnose broken compilers, and finding out an intuition
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4002 $as_echo_n "checking whether the C compiler works... " >&6; }
4003 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4005 # The possible output files:
4006 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4009 for ac_file in $ac_files
4012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4013 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4018 if { { ac_try="$ac_link_default"
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4024 $as_echo "$ac_try_echo"; } >&5
4025 (eval "$ac_link_default") 2>&5
4027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4028 test $ac_status = 0; }; then :
4029 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4030 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4031 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4032 # so that the user can short-circuit this test for compilers unknown to
4034 for ac_file in $ac_files ''
4036 test -f "$ac_file" || continue
4038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4041 # We found the default executable, but exeext='' is most
4045 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4047 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4049 # We set ac_cv_exeext here because the later test for it is not
4050 # safe: cross compilers may not add the suffix if given an `-o'
4051 # argument, so we may need to know it at that point already.
4052 # Even if this section looks crufty: it has the advantage of
4059 test "$ac_cv_exeext" = no && ac_cv_exeext=
4064 if test -z "$ac_file"; then :
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 $as_echo "no" >&6; }
4067 $as_echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error 77 "C compiler cannot create executables
4073 See \`config.log' for more details" "$LINENO" 5; }
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4076 $as_echo "yes" >&6; }
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4079 $as_echo_n "checking for C compiler default output file name... " >&6; }
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4081 $as_echo "$ac_file" >&6; }
4082 ac_exeext=$ac_cv_exeext
4084 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4085 ac_clean_files=$ac_clean_files_save
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4087 $as_echo_n "checking for suffix of executables... " >&6; }
4088 if { { ac_try="$ac_link"
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094 $as_echo "$ac_try_echo"; } >&5
4095 (eval "$ac_link") 2>&5
4097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098 test $ac_status = 0; }; then :
4099 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4100 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4101 # work properly (i.e., refer to `conftest.exe'), while it won't with
4103 for ac_file in conftest.exe conftest conftest.*; do
4104 test -f "$ac_file" || continue
4106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4107 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4115 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4116 See \`config.log' for more details" "$LINENO" 5; }
4118 rm -f conftest conftest$ac_cv_exeext
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4120 $as_echo "$ac_cv_exeext" >&6; }
4122 rm -f conftest.$ac_ext
4123 EXEEXT=$ac_cv_exeext
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4131 FILE *f = fopen ("conftest.out", "w");
4132 return ferror (f) || fclose (f) != 0;
4138 ac_clean_files="$ac_clean_files conftest.out"
4139 # Check that the compiler produces executables we can run. If not, either
4140 # the compiler is broken, or we cross compile.
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4142 $as_echo_n "checking whether we are cross compiling... " >&6; }
4143 if test "$cross_compiling" != yes; then
4144 { { ac_try="$ac_link"
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4150 $as_echo "$ac_try_echo"; } >&5
4151 (eval "$ac_link") 2>&5
4153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4154 test $ac_status = 0; }
4155 if { ac_try='./conftest$ac_cv_exeext'
4156 { { case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4161 $as_echo "$ac_try_echo"; } >&5
4162 (eval "$ac_try") 2>&5
4164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4165 test $ac_status = 0; }; }; then
4168 if test "$cross_compiling" = maybe; then
4171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4173 as_fn_error $? "cannot run C compiled programs.
4174 If you meant to cross compile, use \`--host'.
4175 See \`config.log' for more details" "$LINENO" 5; }
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4180 $as_echo "$cross_compiling" >&6; }
4182 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4183 ac_clean_files=$ac_clean_files_save
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4185 $as_echo_n "checking for suffix of object files... " >&6; }
4186 if ${ac_cv_objext+:} false; then :
4187 $as_echo_n "(cached) " >&6
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4200 rm -f conftest.o conftest.obj
4201 if { { ac_try="$ac_compile"
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4207 $as_echo "$ac_try_echo"; } >&5
4208 (eval "$ac_compile") 2>&5
4210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4211 test $ac_status = 0; }; then :
4212 for ac_file in conftest.o conftest.obj conftest.*; do
4213 test -f "$ac_file" || continue;
4215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4216 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4221 $as_echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4226 as_fn_error $? "cannot compute suffix of object files: cannot compile
4227 See \`config.log' for more details" "$LINENO" 5; }
4229 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4232 $as_echo "$ac_cv_objext" >&6; }
4233 OBJEXT=$ac_cv_objext
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4236 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4237 if ${ac_cv_c_compiler_gnu+:} false; then :
4238 $as_echo_n "(cached) " >&6
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4254 if ac_fn_c_try_compile "$LINENO"; then :
4259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4264 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4265 if test $ac_compiler_gnu = yes; then
4270 ac_test_CFLAGS=${CFLAGS+set}
4271 ac_save_CFLAGS=$CFLAGS
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4273 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4274 if ${ac_cv_prog_cc_g+:} false; then :
4275 $as_echo_n "(cached) " >&6
4277 ac_save_c_werror_flag=$ac_c_werror_flag
4278 ac_c_werror_flag=yes
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4292 if ac_fn_c_try_compile "$LINENO"; then :
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4307 if ac_fn_c_try_compile "$LINENO"; then :
4310 ac_c_werror_flag=$ac_save_c_werror_flag
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4323 if ac_fn_c_try_compile "$LINENO"; then :
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331 ac_c_werror_flag=$ac_save_c_werror_flag
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4334 $as_echo "$ac_cv_prog_cc_g" >&6; }
4335 if test "$ac_test_CFLAGS" = set; then
4336 CFLAGS=$ac_save_CFLAGS
4337 elif test $ac_cv_prog_cc_g = yes; then
4338 if test "$GCC" = yes; then
4344 if test "$GCC" = yes; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4351 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4352 if ${ac_cv_prog_cc_c89+:} false; then :
4353 $as_echo_n "(cached) " >&6
4355 ac_cv_prog_cc_c89=no
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4361 #include <sys/types.h>
4362 #include <sys/stat.h>
4363 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4364 struct buf { int x; };
4365 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4366 static char *e (p, i)
4372 static char *f (char * (*g) (char **, int), char **p, ...)
4377 s = g (p, va_arg (v,int));
4382 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4383 function prototypes and stuff, but not '\xHH' hex character constants.
4384 These don't provoke an error unfortunately, instead are silently treated
4385 as 'x'. The following induces an error, until -std is added to get
4386 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4387 array size at least. It's necessary to write '\x00'==0 to get something
4388 that's true only with -std. */
4389 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4391 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4392 inside strings and character constants. */
4394 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4396 int test (int i, double x);
4397 struct s1 {int (*f) (int a);};
4398 struct s2 {int (*f) (double a);};
4399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4410 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4411 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4413 CC="$ac_save_CC $ac_arg"
4414 if ac_fn_c_try_compile "$LINENO"; then :
4415 ac_cv_prog_cc_c89=$ac_arg
4417 rm -f core conftest.err conftest.$ac_objext
4418 test "x$ac_cv_prog_cc_c89" != "xno" && break
4420 rm -f conftest.$ac_ext
4425 case "x$ac_cv_prog_cc_c89" in
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4428 $as_echo "none needed" >&6; } ;;
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4431 $as_echo "unsupported" >&6; } ;;
4433 CC="$CC $ac_cv_prog_cc_c89"
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4435 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4437 if test "x$ac_cv_prog_cc_c89" != xno; then :
4442 ac_cpp='$CPP $CPPFLAGS'
4443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4447 depcc="$CC" am_compiler_list=
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4450 $as_echo_n "checking dependency style of $depcc... " >&6; }
4451 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4452 $as_echo_n "(cached) " >&6
4454 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4455 # We make a subdir and do the tests there. Otherwise we can end up
4456 # making bogus files that we don't know about and never remove. For
4457 # instance it was reported that on HP-UX the gcc test will end up
4458 # making a dummy file named `D' -- because `-MD' means `put the output
4461 # Copy depcomp to subdir because otherwise we won't find it if we're
4462 # using a relative directory.
4463 cp "$am_depcomp" conftest.dir
4465 # We will build objects and dependencies in a subdirectory because
4466 # it helps to detect inapplicable dependency modes. For instance
4467 # both Tru64's cc and ICC support -MD to output dependencies as a
4468 # side effect of compilation, but ICC will put the dependencies in
4469 # the current directory while Tru64 will put them in the object
4473 am_cv_CC_dependencies_compiler_type=none
4474 if test "$am_compiler_list" = ""; then
4475 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4478 case " $depcc " in #(
4479 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4482 for depmode in $am_compiler_list; do
4483 # Setup a source with many dependencies, because some compilers
4484 # like to wrap large dependency lists on column 80 (with \), and
4485 # we should not choose a depcomp mode which is confused by this.
4487 # We need to recreate these files for each test, as the compiler may
4488 # overwrite some of them when testing with obscure command lines.
4489 # This happens at least with the AIX C compiler.
4491 for i in 1 2 3 4 5 6; do
4492 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4493 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4494 # Solaris 8's {/usr,}/bin/sh.
4495 touch sub/conftst$i.h
4497 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4499 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4500 # mode. It turns out that the SunPro C++ compiler does not properly
4501 # handle `-M -o', and we need to detect this. Also, some Intel
4502 # versions had trouble with output in subdirs
4503 am__obj=sub/conftest.${OBJEXT-o}
4504 am__minus_obj="-o $am__obj"
4507 # This depmode causes a compiler race in universal mode.
4508 test "$am__universal" = false || continue
4511 # after this tag, mechanisms are not by side-effect, so they'll
4512 # only be used when explicitly requested
4513 if test "x$enable_dependency_tracking" = xyes; then
4519 msvisualcpp | msvcmsys)
4520 # This compiler won't grok `-c -o', but also, the minuso test has
4521 # not run yet. These depmodes are late enough in the game, and
4522 # so weak that their functioning should not be impacted.
4523 am__obj=conftest.${OBJEXT-o}
4528 if depmode=$depmode \
4529 source=sub/conftest.c object=$am__obj \
4530 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4531 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4532 >/dev/null 2>conftest.err &&
4533 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4534 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4535 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4536 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4537 # icc doesn't choke on unknown options, it will just issue warnings
4538 # or remarks (even with -Werror). So we grep stderr for any message
4539 # that says an option was ignored or not supported.
4540 # When given -MP, icc 7.0 and 7.1 complain thusly:
4541 # icc: Command line warning: ignoring option '-M'; no argument required
4542 # The diagnosis changed in icc 8.0:
4543 # icc: Command line remark: option '-MP' not supported
4544 if (grep 'ignoring option' conftest.err ||
4545 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4546 am_cv_CC_dependencies_compiler_type=$depmode
4555 am_cv_CC_dependencies_compiler_type=none
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4560 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4561 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4564 test "x$enable_dependency_tracking" != xno \
4565 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4567 am__fastdepCC_FALSE='#'
4569 am__fastdepCC_TRUE='#'
4570 am__fastdepCC_FALSE=
4576 ac_cpp='$CPP $CPPFLAGS'
4577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4581 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4582 # On Suns, sometimes $CPP names a directory.
4583 if test -n "$CPP" && test -d "$CPP"; then
4586 if test -z "$CPP"; then
4587 if ${ac_cv_prog_CPP+:} false; then :
4588 $as_echo_n "(cached) " >&6
4590 # Double quotes because CPP needs to be expanded
4591 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4594 for ac_c_preproc_warn_flag in '' yes
4596 # Use a header file that comes with gcc, so configuring glibc
4597 # with a fresh cross-compiler works.
4598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4599 # <limits.h> exists even on freestanding compilers.
4600 # On the NeXT, cc -E runs the code through the compiler's parser,
4601 # not just through cpp. "Syntax error" is here to catch this case.
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4605 # include <limits.h>
4607 # include <assert.h>
4611 if ac_fn_c_try_cpp "$LINENO"; then :
4614 # Broken: fails on valid input.
4617 rm -f conftest.err conftest.i conftest.$ac_ext
4619 # OK, works on sane cases. Now check whether nonexistent headers
4620 # can be detected and how.
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4623 #include <ac_nonexistent.h>
4625 if ac_fn_c_try_cpp "$LINENO"; then :
4626 # Broken: success on invalid input.
4629 # Passes both tests.
4633 rm -f conftest.err conftest.i conftest.$ac_ext
4636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4637 rm -f conftest.i conftest.err conftest.$ac_ext
4638 if $ac_preproc_ok; then :
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4651 $as_echo "$CPP" >&6; }
4653 for ac_c_preproc_warn_flag in '' yes
4655 # Use a header file that comes with gcc, so configuring glibc
4656 # with a fresh cross-compiler works.
4657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4658 # <limits.h> exists even on freestanding compilers.
4659 # On the NeXT, cc -E runs the code through the compiler's parser,
4660 # not just through cpp. "Syntax error" is here to catch this case.
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4664 # include <limits.h>
4666 # include <assert.h>
4670 if ac_fn_c_try_cpp "$LINENO"; then :
4673 # Broken: fails on valid input.
4676 rm -f conftest.err conftest.i conftest.$ac_ext
4678 # OK, works on sane cases. Now check whether nonexistent headers
4679 # can be detected and how.
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4682 #include <ac_nonexistent.h>
4684 if ac_fn_c_try_cpp "$LINENO"; then :
4685 # Broken: success on invalid input.
4688 # Passes both tests.
4692 rm -f conftest.err conftest.i conftest.$ac_ext
4695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4696 rm -f conftest.i conftest.err conftest.$ac_ext
4697 if $ac_preproc_ok; then :
4700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4702 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4703 See \`config.log' for more details" "$LINENO" 5; }
4707 ac_cpp='$CPP $CPPFLAGS'
4708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4714 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4715 if ${ac_cv_path_GREP+:} false; then :
4716 $as_echo_n "(cached) " >&6
4718 if test -z "$GREP"; then
4719 ac_path_GREP_found=false
4720 # Loop through the user's path and test for each of PROGNAME-LIST
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4725 test -z "$as_dir" && as_dir=.
4726 for ac_prog in grep ggrep; do
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4729 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4730 # Check for GNU ac_path_GREP and select it if it is found.
4731 # Check for GNU $ac_path_GREP
4732 case `"$ac_path_GREP" --version 2>&1` in
4734 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4737 $as_echo_n 0123456789 >"conftest.in"
4740 cat "conftest.in" "conftest.in" >"conftest.tmp"
4741 mv "conftest.tmp" "conftest.in"
4742 cp "conftest.in" "conftest.nl"
4743 $as_echo 'GREP' >> "conftest.nl"
4744 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4745 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4746 as_fn_arith $ac_count + 1 && ac_count=$as_val
4747 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4748 # Best one so far, save it but keep looking for a better one
4749 ac_cv_path_GREP="$ac_path_GREP"
4750 ac_path_GREP_max=$ac_count
4752 # 10*(2^10) chars as input seems more than enough
4753 test $ac_count -gt 10 && break
4755 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4758 $ac_path_GREP_found && break 3
4763 if test -z "$ac_cv_path_GREP"; then
4764 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4767 ac_cv_path_GREP=$GREP
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4772 $as_echo "$ac_cv_path_GREP" >&6; }
4773 GREP="$ac_cv_path_GREP"
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4777 $as_echo_n "checking for egrep... " >&6; }
4778 if ${ac_cv_path_EGREP+:} false; then :
4779 $as_echo_n "(cached) " >&6
4781 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4782 then ac_cv_path_EGREP="$GREP -E"
4784 if test -z "$EGREP"; then
4785 ac_path_EGREP_found=false
4786 # Loop through the user's path and test for each of PROGNAME-LIST
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4791 test -z "$as_dir" && as_dir=.
4792 for ac_prog in egrep; do
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4795 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4796 # Check for GNU ac_path_EGREP and select it if it is found.
4797 # Check for GNU $ac_path_EGREP
4798 case `"$ac_path_EGREP" --version 2>&1` in
4800 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4803 $as_echo_n 0123456789 >"conftest.in"
4806 cat "conftest.in" "conftest.in" >"conftest.tmp"
4807 mv "conftest.tmp" "conftest.in"
4808 cp "conftest.in" "conftest.nl"
4809 $as_echo 'EGREP' >> "conftest.nl"
4810 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4812 as_fn_arith $ac_count + 1 && ac_count=$as_val
4813 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4814 # Best one so far, save it but keep looking for a better one
4815 ac_cv_path_EGREP="$ac_path_EGREP"
4816 ac_path_EGREP_max=$ac_count
4818 # 10*(2^10) chars as input seems more than enough
4819 test $ac_count -gt 10 && break
4821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4824 $ac_path_EGREP_found && break 3
4829 if test -z "$ac_cv_path_EGREP"; then
4830 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4833 ac_cv_path_EGREP=$EGREP
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4839 $as_echo "$ac_cv_path_EGREP" >&6; }
4840 EGREP="$ac_cv_path_EGREP"
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4844 $as_echo_n "checking for ANSI C header files... " >&6; }
4845 if ${ac_cv_header_stdc+:} false; then :
4846 $as_echo_n "(cached) " >&6
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4863 if ac_fn_c_try_compile "$LINENO"; then :
4864 ac_cv_header_stdc=yes
4866 ac_cv_header_stdc=no
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 if test $ac_cv_header_stdc = yes; then
4871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4878 $EGREP "memchr" >/dev/null 2>&1; then :
4881 ac_cv_header_stdc=no
4887 if test $ac_cv_header_stdc = yes; then
4888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4895 $EGREP "free" >/dev/null 2>&1; then :
4898 ac_cv_header_stdc=no
4904 if test $ac_cv_header_stdc = yes; then
4905 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4906 if test "$cross_compiling" = yes; then :
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4913 #if ((' ' & 0x0FF) == 0x020)
4914 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4915 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4917 # define ISLOWER(c) \
4918 (('a' <= (c) && (c) <= 'i') \
4919 || ('j' <= (c) && (c) <= 'r') \
4920 || ('s' <= (c) && (c) <= 'z'))
4921 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4924 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4929 for (i = 0; i < 256; i++)
4930 if (XOR (islower (i), ISLOWER (i))
4931 || toupper (i) != TOUPPER (i))
4936 if ac_fn_c_try_run "$LINENO"; then :
4939 ac_cv_header_stdc=no
4941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4942 conftest.$ac_objext conftest.beam conftest.$ac_ext
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4948 $as_echo "$ac_cv_header_stdc" >&6; }
4949 if test $ac_cv_header_stdc = yes; then
4951 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4955 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4956 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4957 inttypes.h stdint.h unistd.h
4959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4960 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4962 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4963 cat >>confdefs.h <<_ACEOF
4964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4975 # Check whether --with-tirpcinclude was given.
4976 if test "${with_tirpcinclude+set}" = set; then :
4977 withval=$with_tirpcinclude; tirpc_header_dir=$withval
4979 tirpc_header_dir=/usr/include/tirpc
4984 if test "$enable_tirpc" != "no"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clnt_tli_create in -ltirpc" >&5
4987 $as_echo_n "checking for clnt_tli_create in -ltirpc... " >&6; }
4988 if ${ac_cv_lib_tirpc_clnt_tli_create+:} false; then :
4989 $as_echo_n "(cached) " >&6
4991 ac_check_lib_save_LIBS=$LIBS
4992 LIBS="-ltirpc $LIBS"
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4996 /* Override any GCC internal prototype to avoid an error.
4997 Use char because int might match the return type of a GCC
4998 builtin and then its argument prototype would still apply. */
5002 char clnt_tli_create ();
5006 return clnt_tli_create ();
5011 if ac_fn_c_try_link "$LINENO"; then :
5012 ac_cv_lib_tirpc_clnt_tli_create=yes
5014 ac_cv_lib_tirpc_clnt_tli_create=no
5016 rm -f core conftest.err conftest.$ac_objext \
5017 conftest$ac_exeext conftest.$ac_ext
5018 LIBS=$ac_check_lib_save_LIBS
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
5021 $as_echo "$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
5022 if test "x$ac_cv_lib_tirpc_clnt_tli_create" = xyes; then :
5025 if test "$enable_tirpc" = "yes"; then
5026 as_fn_error $? "libtirpc not found." "$LINENO" 5
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtirpc not found. TIRPC disabled!" >&5
5029 $as_echo "$as_me: WARNING: libtirpc not found. TIRPC disabled!" >&2;}
5036 if test "$enable_tirpc" != "no"; then
5037 for ac_header in ${tirpc_header_dir}/netconfig.h
5039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5040 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5041 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5042 cat >>confdefs.h <<_ACEOF
5043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5045 AM_CPPFLAGS="-I${tirpc_header_dir}"
5048 if test "$enable_tirpc" = "yes"; then
5049 as_fn_error $? "libtirpc headers not found." "$LINENO" 5
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtirpc headers not found. TIRPC disabled!" >&5
5052 $as_echo "$as_me: WARNING: libtirpc headers not found. TIRPC disabled!" >&2;}
5062 if test "$enable_tirpc" != "no"; then
5064 $as_echo "#define HAVE_LIBTIRPC 1" >>confdefs.h
5077 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
5078 if test "x$ac_cv_func_prctl" = xyes; then :
5083 # Check whether --enable-caps was given.
5084 if test "${enable_caps+set}" = set; then :
5085 enableval=$enable_caps;
5091 if test "x$enable_caps" != "xno" ; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
5093 $as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
5094 if ${ac_cv_lib_cap_cap_get_proc+:} false; then :
5095 $as_echo_n "(cached) " >&6
5097 ac_check_lib_save_LIBS=$LIBS
5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h. */
5102 /* Override any GCC internal prototype to avoid an error.
5103 Use char because int might match the return type of a GCC
5104 builtin and then its argument prototype would still apply. */
5108 char cap_get_proc ();
5112 return cap_get_proc ();
5117 if ac_fn_c_try_link "$LINENO"; then :
5118 ac_cv_lib_cap_cap_get_proc=yes
5120 ac_cv_lib_cap_cap_get_proc=no
5122 rm -f core conftest.err conftest.$ac_objext \
5123 conftest$ac_exeext conftest.$ac_ext
5124 LIBS=$ac_check_lib_save_LIBS
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_get_proc" >&5
5127 $as_echo "$ac_cv_lib_cap_cap_get_proc" >&6; }
5128 if test "x$ac_cv_lib_cap_cap_get_proc" = xyes; then :
5133 for ac_header in sys/capability.h
5135 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
5136 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
5137 cat >>confdefs.h <<_ACEOF
5138 #define HAVE_SYS_CAPABILITY_H 1
5142 test "x$enable_caps" = "xyes" && as_fn_error $? "libcap headers not found." "$LINENO" 5
5153 # Check whether user wants TCP wrappers support
5157 # Check whether --with-tcp-wrappers was given.
5158 if test "${with_tcp_wrappers+set}" = set; then :
5159 withval=$with_tcp_wrappers; with_tcpw=$withval
5164 if test "x$with_tcpw" != "xno" ; then
5166 saved_LDFLAGS="$LDFLAGS"
5167 saved_CPPFLAGS="$CPPFLAGS"
5168 if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
5169 if test -d "${with_tcpw}/lib"; then
5170 if test -n "${need_dash_r}"; then
5171 LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
5173 LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
5176 if test -n "${need_dash_r}"; then
5177 LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
5179 LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
5182 if test -d "${with_tcpw}/include"; then
5183 CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
5185 CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
5189 LIBS="$LIBWRAP $LIBS"
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
5191 $as_echo_n "checking for libwrap... " >&6; }
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5196 int deny_severity = 0, allow_severity = 0;
5206 if ac_fn_c_try_link "$LINENO"; then :
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5209 $as_echo "yes" >&6; }
5212 $as_echo "#define LIBWRAP 1" >>confdefs.h
5215 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
5218 $as_echo "#define HAVE_TCP_WRAPPER 1" >>confdefs.h
5224 as_fn_error $? "*** libwrap missing" "$LINENO" 5
5228 rm -f core conftest.err conftest.$ac_objext \
5229 conftest$ac_exeext conftest.$ac_ext
5237 # Arrange for large-file support
5238 # Check whether --enable-largefile was given.
5239 if test "${enable_largefile+set}" = set; then :
5240 enableval=$enable_largefile;
5243 if test "$enable_largefile" != no; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5246 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5247 if ${ac_cv_sys_largefile_CC+:} false; then :
5248 $as_echo_n "(cached) " >&6
5250 ac_cv_sys_largefile_CC=no
5251 if test "$GCC" != yes; then
5254 # IRIX 6.2 and later do not support large files by default,
5255 # so use the C compiler's -n32 option if that helps.
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5258 #include <sys/types.h>
5259 /* Check that off_t can represent 2**63 - 1 correctly.
5260 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5261 since some C++ compilers masquerading as C compilers
5262 incorrectly reject 9223372036854775807. */
5263 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5264 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5265 && LARGE_OFF_T % 2147483647 == 1)
5275 if ac_fn_c_try_compile "$LINENO"; then :
5278 rm -f core conftest.err conftest.$ac_objext
5280 if ac_fn_c_try_compile "$LINENO"; then :
5281 ac_cv_sys_largefile_CC=' -n32'; break
5283 rm -f core conftest.err conftest.$ac_objext
5287 rm -f conftest.$ac_ext
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5291 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5292 if test "$ac_cv_sys_largefile_CC" != no; then
5293 CC=$CC$ac_cv_sys_largefile_CC
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5297 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5298 if ${ac_cv_sys_file_offset_bits+:} false; then :
5299 $as_echo_n "(cached) " >&6
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304 #include <sys/types.h>
5305 /* Check that off_t can represent 2**63 - 1 correctly.
5306 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5307 since some C++ compilers masquerading as C compilers
5308 incorrectly reject 9223372036854775807. */
5309 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5311 && LARGE_OFF_T % 2147483647 == 1)
5321 if ac_fn_c_try_compile "$LINENO"; then :
5322 ac_cv_sys_file_offset_bits=no; break
5324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5327 #define _FILE_OFFSET_BITS 64
5328 #include <sys/types.h>
5329 /* Check that off_t can represent 2**63 - 1 correctly.
5330 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5331 since some C++ compilers masquerading as C compilers
5332 incorrectly reject 9223372036854775807. */
5333 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5334 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5335 && LARGE_OFF_T % 2147483647 == 1)
5345 if ac_fn_c_try_compile "$LINENO"; then :
5346 ac_cv_sys_file_offset_bits=64; break
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349 ac_cv_sys_file_offset_bits=unknown
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5354 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5355 case $ac_cv_sys_file_offset_bits in #(
5358 cat >>confdefs.h <<_ACEOF
5359 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5364 if test $ac_cv_sys_file_offset_bits = unknown; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5366 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5367 if ${ac_cv_sys_large_files+:} false; then :
5368 $as_echo_n "(cached) " >&6
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373 #include <sys/types.h>
5374 /* Check that off_t can represent 2**63 - 1 correctly.
5375 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5376 since some C++ compilers masquerading as C compilers
5377 incorrectly reject 9223372036854775807. */
5378 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5380 && LARGE_OFF_T % 2147483647 == 1)
5390 if ac_fn_c_try_compile "$LINENO"; then :
5391 ac_cv_sys_large_files=no; break
5393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396 #define _LARGE_FILES 1
5397 #include <sys/types.h>
5398 /* Check that off_t can represent 2**63 - 1 correctly.
5399 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5400 since some C++ compilers masquerading as C compilers
5401 incorrectly reject 9223372036854775807. */
5402 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5403 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5404 && LARGE_OFF_T % 2147483647 == 1)
5414 if ac_fn_c_try_compile "$LINENO"; then :
5415 ac_cv_sys_large_files=1; break
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 ac_cv_sys_large_files=unknown
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5423 $as_echo "$ac_cv_sys_large_files" >&6; }
5424 case $ac_cv_sys_large_files in #(
5427 cat >>confdefs.h <<_ACEOF
5428 #define _LARGE_FILES $ac_cv_sys_large_files
5438 ac_config_headers="$ac_config_headers support/include/config.h"
5441 # Checks for programs.
5443 ac_cpp='$CXXCPP $CPPFLAGS'
5444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5447 if test -z "$CXX"; then
5448 if test -n "$CCC"; then
5451 if test -n "$ac_tool_prefix"; then
5452 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if ${ac_cv_prog_CXX+:} false; then :
5459 $as_echo_n "(cached) " >&6
5461 if test -n "$CXX"; then
5462 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 if test -n "$CXX"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5484 $as_echo "$CXX" >&6; }
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5491 test -n "$CXX" && break
5494 if test -z "$CXX"; then
5496 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5498 # Extract the first word of "$ac_prog", so it can be a program name with args.
5499 set dummy $ac_prog; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5503 $as_echo_n "(cached) " >&6
5505 if test -n "$ac_ct_CXX"; then
5506 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515 ac_cv_prog_ac_ct_CXX="$ac_prog"
5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5526 if test -n "$ac_ct_CXX"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5528 $as_echo "$ac_ct_CXX" >&6; }
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5535 test -n "$ac_ct_CXX" && break
5538 if test "x$ac_ct_CXX" = x; then
5541 case $cross_compiling:$ac_tool_warned in
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545 ac_tool_warned=yes ;;
5553 # Provide some information about the compiler.
5554 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5557 for ac_option in --version -v -V -qversion; do
5558 { { ac_try="$ac_compiler $ac_option >&5"
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5564 $as_echo "$ac_try_echo"; } >&5
5565 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5567 if test -s conftest.err; then
5569 ... rest of stderr output deleted ...
5570 10q' conftest.err >conftest.er1
5571 cat conftest.er1 >&5
5573 rm -f conftest.er1 conftest.err
5574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5575 test $ac_status = 0; }
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5579 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5580 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5581 $as_echo_n "(cached) " >&6
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5597 if ac_fn_cxx_try_compile "$LINENO"; then :
5602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5607 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5608 if test $ac_compiler_gnu = yes; then
5613 ac_test_CXXFLAGS=${CXXFLAGS+set}
5614 ac_save_CXXFLAGS=$CXXFLAGS
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5616 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5617 if ${ac_cv_prog_cxx_g+:} false; then :
5618 $as_echo_n "(cached) " >&6
5620 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5621 ac_cxx_werror_flag=yes
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5635 if ac_fn_cxx_try_compile "$LINENO"; then :
5636 ac_cv_prog_cxx_g=yes
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5650 if ac_fn_cxx_try_compile "$LINENO"; then :
5653 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5666 if ac_fn_cxx_try_compile "$LINENO"; then :
5667 ac_cv_prog_cxx_g=yes
5669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5677 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5678 if test "$ac_test_CXXFLAGS" = set; then
5679 CXXFLAGS=$ac_save_CXXFLAGS
5680 elif test $ac_cv_prog_cxx_g = yes; then
5681 if test "$GXX" = yes; then
5687 if test "$GXX" = yes; then
5694 ac_cpp='$CPP $CPPFLAGS'
5695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699 depcc="$CXX" am_compiler_list=
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5702 $as_echo_n "checking dependency style of $depcc... " >&6; }
5703 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5704 $as_echo_n "(cached) " >&6
5706 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5707 # We make a subdir and do the tests there. Otherwise we can end up
5708 # making bogus files that we don't know about and never remove. For
5709 # instance it was reported that on HP-UX the gcc test will end up
5710 # making a dummy file named `D' -- because `-MD' means `put the output
5713 # Copy depcomp to subdir because otherwise we won't find it if we're
5714 # using a relative directory.
5715 cp "$am_depcomp" conftest.dir
5717 # We will build objects and dependencies in a subdirectory because
5718 # it helps to detect inapplicable dependency modes. For instance
5719 # both Tru64's cc and ICC support -MD to output dependencies as a
5720 # side effect of compilation, but ICC will put the dependencies in
5721 # the current directory while Tru64 will put them in the object
5725 am_cv_CXX_dependencies_compiler_type=none
5726 if test "$am_compiler_list" = ""; then
5727 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5730 case " $depcc " in #(
5731 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5734 for depmode in $am_compiler_list; do
5735 # Setup a source with many dependencies, because some compilers
5736 # like to wrap large dependency lists on column 80 (with \), and
5737 # we should not choose a depcomp mode which is confused by this.
5739 # We need to recreate these files for each test, as the compiler may
5740 # overwrite some of them when testing with obscure command lines.
5741 # This happens at least with the AIX C compiler.
5743 for i in 1 2 3 4 5 6; do
5744 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5745 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5746 # Solaris 8's {/usr,}/bin/sh.
5747 touch sub/conftst$i.h
5749 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5751 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5752 # mode. It turns out that the SunPro C++ compiler does not properly
5753 # handle `-M -o', and we need to detect this. Also, some Intel
5754 # versions had trouble with output in subdirs
5755 am__obj=sub/conftest.${OBJEXT-o}
5756 am__minus_obj="-o $am__obj"
5759 # This depmode causes a compiler race in universal mode.
5760 test "$am__universal" = false || continue
5763 # after this tag, mechanisms are not by side-effect, so they'll
5764 # only be used when explicitly requested
5765 if test "x$enable_dependency_tracking" = xyes; then
5771 msvisualcpp | msvcmsys)
5772 # This compiler won't grok `-c -o', but also, the minuso test has
5773 # not run yet. These depmodes are late enough in the game, and
5774 # so weak that their functioning should not be impacted.
5775 am__obj=conftest.${OBJEXT-o}
5780 if depmode=$depmode \
5781 source=sub/conftest.c object=$am__obj \
5782 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5783 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5784 >/dev/null 2>conftest.err &&
5785 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5786 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5787 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5788 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5789 # icc doesn't choke on unknown options, it will just issue warnings
5790 # or remarks (even with -Werror). So we grep stderr for any message
5791 # that says an option was ignored or not supported.
5792 # When given -MP, icc 7.0 and 7.1 complain thusly:
5793 # icc: Command line warning: ignoring option '-M'; no argument required
5794 # The diagnosis changed in icc 8.0:
5795 # icc: Command line remark: option '-MP' not supported
5796 if (grep 'ignoring option' conftest.err ||
5797 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5798 am_cv_CXX_dependencies_compiler_type=$depmode
5807 am_cv_CXX_dependencies_compiler_type=none
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5812 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5813 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5816 test "x$enable_dependency_tracking" != xno \
5817 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5818 am__fastdepCXX_TRUE=
5819 am__fastdepCXX_FALSE='#'
5821 am__fastdepCXX_TRUE='#'
5822 am__fastdepCXX_FALSE=
5827 ac_cpp='$CPP $CPPFLAGS'
5828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5831 if test -n "$ac_tool_prefix"; then
5832 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5833 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835 $as_echo_n "checking for $ac_word... " >&6; }
5836 if ${ac_cv_prog_CC+:} false; then :
5837 $as_echo_n "(cached) " >&6
5839 if test -n "$CC"; then
5840 ac_cv_prog_CC="$CC" # Let the user override the test.
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5849 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 if test -n "$CC"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5862 $as_echo "$CC" >&6; }
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5870 if test -z "$ac_cv_prog_CC"; then
5872 # Extract the first word of "gcc", so it can be a program name with args.
5873 set dummy gcc; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5877 $as_echo_n "(cached) " >&6
5879 if test -n "$ac_ct_CC"; then
5880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5889 ac_cv_prog_ac_ct_CC="gcc"
5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5900 if test -n "$ac_ct_CC"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5902 $as_echo "$ac_ct_CC" >&6; }
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5908 if test "x$ac_ct_CC" = x; then
5911 case $cross_compiling:$ac_tool_warned in
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5915 ac_tool_warned=yes ;;
5923 if test -z "$CC"; then
5924 if test -n "$ac_tool_prefix"; then
5925 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5926 set dummy ${ac_tool_prefix}cc; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if ${ac_cv_prog_CC+:} false; then :
5930 $as_echo_n "(cached) " >&6
5932 if test -n "$CC"; then
5933 ac_cv_prog_CC="$CC" # Let the user override the test.
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_prog_CC="${ac_tool_prefix}cc"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 if test -n "$CC"; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5955 $as_echo "$CC" >&6; }
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5964 if test -z "$CC"; then
5965 # Extract the first word of "cc", so it can be a program name with args.
5966 set dummy cc; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if ${ac_cv_prog_CC+:} false; then :
5970 $as_echo_n "(cached) " >&6
5972 if test -n "$CC"; then
5973 ac_cv_prog_CC="$CC" # Let the user override the test.
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5983 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5984 ac_prog_rejected=yes
5988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 if test $ac_prog_rejected = yes; then
5996 # We found a bogon in the path, so make sure we never use it.
5997 set dummy $ac_cv_prog_CC
5999 if test $# != 0; then
6000 # We chose a different compiler from the bogus one.
6001 # However, it has the same basename, so the bogon will be chosen
6002 # first if we set CC to just the basename; use the full file name.
6004 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6010 if test -n "$CC"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6012 $as_echo "$CC" >&6; }
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6020 if test -z "$CC"; then
6021 if test -n "$ac_tool_prefix"; then
6022 for ac_prog in cl.exe
6024 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6025 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 $as_echo_n "checking for $ac_word... " >&6; }
6028 if ${ac_cv_prog_CC+:} false; then :
6029 $as_echo_n "(cached) " >&6
6031 if test -n "$CC"; then
6032 ac_cv_prog_CC="$CC" # Let the user override the test.
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 if test -n "$CC"; then
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6054 $as_echo "$CC" >&6; }
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6061 test -n "$CC" && break
6064 if test -z "$CC"; then
6066 for ac_prog in cl.exe
6068 # Extract the first word of "$ac_prog", so it can be a program name with args.
6069 set dummy $ac_prog; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6073 $as_echo_n "(cached) " >&6
6075 if test -n "$ac_ct_CC"; then
6076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_prog_ac_ct_CC="$ac_prog"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6096 if test -n "$ac_ct_CC"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6098 $as_echo "$ac_ct_CC" >&6; }
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6105 test -n "$ac_ct_CC" && break
6108 if test "x$ac_ct_CC" = x; then
6111 case $cross_compiling:$ac_tool_warned in
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115 ac_tool_warned=yes ;;
6124 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6126 as_fn_error $? "no acceptable C compiler found in \$PATH
6127 See \`config.log' for more details" "$LINENO" 5; }
6129 # Provide some information about the compiler.
6130 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6133 for ac_option in --version -v -V -qversion; do
6134 { { ac_try="$ac_compiler $ac_option >&5"
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6140 $as_echo "$ac_try_echo"; } >&5
6141 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6143 if test -s conftest.err; then
6145 ... rest of stderr output deleted ...
6146 10q' conftest.err >conftest.er1
6147 cat conftest.er1 >&5
6149 rm -f conftest.er1 conftest.err
6150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6151 test $ac_status = 0; }
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6155 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6156 if ${ac_cv_c_compiler_gnu+:} false; then :
6157 $as_echo_n "(cached) " >&6
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6173 if ac_fn_c_try_compile "$LINENO"; then :
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6183 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6184 if test $ac_compiler_gnu = yes; then
6189 ac_test_CFLAGS=${CFLAGS+set}
6190 ac_save_CFLAGS=$CFLAGS
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6192 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6193 if ${ac_cv_prog_cc_g+:} false; then :
6194 $as_echo_n "(cached) " >&6
6196 ac_save_c_werror_flag=$ac_c_werror_flag
6197 ac_c_werror_flag=yes
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6211 if ac_fn_c_try_compile "$LINENO"; then :
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6226 if ac_fn_c_try_compile "$LINENO"; then :
6229 ac_c_werror_flag=$ac_save_c_werror_flag
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6242 if ac_fn_c_try_compile "$LINENO"; then :
6245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250 ac_c_werror_flag=$ac_save_c_werror_flag
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6253 $as_echo "$ac_cv_prog_cc_g" >&6; }
6254 if test "$ac_test_CFLAGS" = set; then
6255 CFLAGS=$ac_save_CFLAGS
6256 elif test $ac_cv_prog_cc_g = yes; then
6257 if test "$GCC" = yes; then
6263 if test "$GCC" = yes; then
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6270 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6271 if ${ac_cv_prog_cc_c89+:} false; then :
6272 $as_echo_n "(cached) " >&6
6274 ac_cv_prog_cc_c89=no
6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6280 #include <sys/types.h>
6281 #include <sys/stat.h>
6282 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6283 struct buf { int x; };
6284 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6285 static char *e (p, i)
6291 static char *f (char * (*g) (char **, int), char **p, ...)
6296 s = g (p, va_arg (v,int));
6301 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6302 function prototypes and stuff, but not '\xHH' hex character constants.
6303 These don't provoke an error unfortunately, instead are silently treated
6304 as 'x'. The following induces an error, until -std is added to get
6305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6306 array size at least. It's necessary to write '\x00'==0 to get something
6307 that's true only with -std. */
6308 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6310 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6311 inside strings and character constants. */
6313 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6315 int test (int i, double x);
6316 struct s1 {int (*f) (int a);};
6317 struct s2 {int (*f) (double a);};
6318 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6324 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6329 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6330 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6332 CC="$ac_save_CC $ac_arg"
6333 if ac_fn_c_try_compile "$LINENO"; then :
6334 ac_cv_prog_cc_c89=$ac_arg
6336 rm -f core conftest.err conftest.$ac_objext
6337 test "x$ac_cv_prog_cc_c89" != "xno" && break
6339 rm -f conftest.$ac_ext
6344 case "x$ac_cv_prog_cc_c89" in
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6347 $as_echo "none needed" >&6; } ;;
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6350 $as_echo "unsupported" >&6; } ;;
6352 CC="$CC $ac_cv_prog_cc_c89"
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6354 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6356 if test "x$ac_cv_prog_cc_c89" != xno; then :
6361 ac_cpp='$CPP $CPPFLAGS'
6362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6366 depcc="$CC" am_compiler_list=
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6369 $as_echo_n "checking dependency style of $depcc... " >&6; }
6370 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6371 $as_echo_n "(cached) " >&6
6373 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6374 # We make a subdir and do the tests there. Otherwise we can end up
6375 # making bogus files that we don't know about and never remove. For
6376 # instance it was reported that on HP-UX the gcc test will end up
6377 # making a dummy file named `D' -- because `-MD' means `put the output
6380 # Copy depcomp to subdir because otherwise we won't find it if we're
6381 # using a relative directory.
6382 cp "$am_depcomp" conftest.dir
6384 # We will build objects and dependencies in a subdirectory because
6385 # it helps to detect inapplicable dependency modes. For instance
6386 # both Tru64's cc and ICC support -MD to output dependencies as a
6387 # side effect of compilation, but ICC will put the dependencies in
6388 # the current directory while Tru64 will put them in the object
6392 am_cv_CC_dependencies_compiler_type=none
6393 if test "$am_compiler_list" = ""; then
6394 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6397 case " $depcc " in #(
6398 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6401 for depmode in $am_compiler_list; do
6402 # Setup a source with many dependencies, because some compilers
6403 # like to wrap large dependency lists on column 80 (with \), and
6404 # we should not choose a depcomp mode which is confused by this.
6406 # We need to recreate these files for each test, as the compiler may
6407 # overwrite some of them when testing with obscure command lines.
6408 # This happens at least with the AIX C compiler.
6410 for i in 1 2 3 4 5 6; do
6411 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6412 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6413 # Solaris 8's {/usr,}/bin/sh.
6414 touch sub/conftst$i.h
6416 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6418 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6419 # mode. It turns out that the SunPro C++ compiler does not properly
6420 # handle `-M -o', and we need to detect this. Also, some Intel
6421 # versions had trouble with output in subdirs
6422 am__obj=sub/conftest.${OBJEXT-o}
6423 am__minus_obj="-o $am__obj"
6426 # This depmode causes a compiler race in universal mode.
6427 test "$am__universal" = false || continue
6430 # after this tag, mechanisms are not by side-effect, so they'll
6431 # only be used when explicitly requested
6432 if test "x$enable_dependency_tracking" = xyes; then
6438 msvisualcpp | msvcmsys)
6439 # This compiler won't grok `-c -o', but also, the minuso test has
6440 # not run yet. These depmodes are late enough in the game, and
6441 # so weak that their functioning should not be impacted.
6442 am__obj=conftest.${OBJEXT-o}
6447 if depmode=$depmode \
6448 source=sub/conftest.c object=$am__obj \
6449 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6450 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6451 >/dev/null 2>conftest.err &&
6452 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6453 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6454 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6455 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6456 # icc doesn't choke on unknown options, it will just issue warnings
6457 # or remarks (even with -Werror). So we grep stderr for any message
6458 # that says an option was ignored or not supported.
6459 # When given -MP, icc 7.0 and 7.1 complain thusly:
6460 # icc: Command line warning: ignoring option '-M'; no argument required
6461 # The diagnosis changed in icc 8.0:
6462 # icc: Command line remark: option '-MP' not supported
6463 if (grep 'ignoring option' conftest.err ||
6464 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6465 am_cv_CC_dependencies_compiler_type=$depmode
6474 am_cv_CC_dependencies_compiler_type=none
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6479 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6480 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6483 test "x$enable_dependency_tracking" != xno \
6484 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6486 am__fastdepCC_FALSE='#'
6488 am__fastdepCC_TRUE='#'
6489 am__fastdepCC_FALSE=
6494 ac_cpp='$CPP $CPPFLAGS'
6495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6499 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6500 # On Suns, sometimes $CPP names a directory.
6501 if test -n "$CPP" && test -d "$CPP"; then
6504 if test -z "$CPP"; then
6505 if ${ac_cv_prog_CPP+:} false; then :
6506 $as_echo_n "(cached) " >&6
6508 # Double quotes because CPP needs to be expanded
6509 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6512 for ac_c_preproc_warn_flag in '' yes
6514 # Use a header file that comes with gcc, so configuring glibc
6515 # with a fresh cross-compiler works.
6516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6517 # <limits.h> exists even on freestanding compilers.
6518 # On the NeXT, cc -E runs the code through the compiler's parser,
6519 # not just through cpp. "Syntax error" is here to catch this case.
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6523 # include <limits.h>
6525 # include <assert.h>
6529 if ac_fn_c_try_cpp "$LINENO"; then :
6532 # Broken: fails on valid input.
6535 rm -f conftest.err conftest.i conftest.$ac_ext
6537 # OK, works on sane cases. Now check whether nonexistent headers
6538 # can be detected and how.
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541 #include <ac_nonexistent.h>
6543 if ac_fn_c_try_cpp "$LINENO"; then :
6544 # Broken: success on invalid input.
6547 # Passes both tests.
6551 rm -f conftest.err conftest.i conftest.$ac_ext
6554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6555 rm -f conftest.i conftest.err conftest.$ac_ext
6556 if $ac_preproc_ok; then :
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6569 $as_echo "$CPP" >&6; }
6571 for ac_c_preproc_warn_flag in '' yes
6573 # Use a header file that comes with gcc, so configuring glibc
6574 # with a fresh cross-compiler works.
6575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6576 # <limits.h> exists even on freestanding compilers.
6577 # On the NeXT, cc -E runs the code through the compiler's parser,
6578 # not just through cpp. "Syntax error" is here to catch this case.
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6582 # include <limits.h>
6584 # include <assert.h>
6588 if ac_fn_c_try_cpp "$LINENO"; then :
6591 # Broken: fails on valid input.
6594 rm -f conftest.err conftest.i conftest.$ac_ext
6596 # OK, works on sane cases. Now check whether nonexistent headers
6597 # can be detected and how.
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6600 #include <ac_nonexistent.h>
6602 if ac_fn_c_try_cpp "$LINENO"; then :
6603 # Broken: success on invalid input.
6606 # Passes both tests.
6610 rm -f conftest.err conftest.i conftest.$ac_ext
6613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6614 rm -f conftest.i conftest.err conftest.$ac_ext
6615 if $ac_preproc_ok; then :
6618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6620 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6621 See \`config.log' for more details" "$LINENO" 5; }
6625 ac_cpp='$CPP $CPPFLAGS'
6626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6632 $as_echo_n "checking whether ln -s works... " >&6; }
6634 if test "$LN_S" = "ln -s"; then
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6636 $as_echo "yes" >&6; }
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6639 $as_echo "no, using $LN_S" >&6; }
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6643 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6645 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6646 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6647 $as_echo_n "(cached) " >&6
6649 cat >conftest.make <<\_ACEOF
6652 @echo '@@@%%%=$(MAKE)=@@@%%%'
6654 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6655 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6657 eval ac_cv_prog_make_${ac_make}_set=yes;;
6659 eval ac_cv_prog_make_${ac_make}_set=no;;
6663 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6665 $as_echo "yes" >&6; }
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6670 SET_MAKE="MAKE=${MAKE-make}"
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6676 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6682 macro_revision='1.3293'
6696 ltmain="$ac_aux_dir/ltmain.sh"
6698 # Backslashify metacharacters that are still active within
6699 # double-quoted strings.
6700 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6702 # Same as above, but do not quote variable references.
6703 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6705 # Sed substitution to delay expansion of an escaped shell variable in a
6706 # double_quote_subst'ed string.
6707 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6709 # Sed substitution to delay expansion of an escaped single quote.
6710 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6712 # Sed substitution to avoid accidental globbing in evaled expressions
6713 no_glob_subst='s/\*/\\\*/g'
6715 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6716 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6717 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6720 $as_echo_n "checking how to print strings... " >&6; }
6721 # Test print first, because it will be a builtin if present.
6722 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6723 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6725 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6728 # Use this function as a fallback that always works.
6729 func_fallback_echo ()
6731 eval 'cat <<_LTECHO_EOF
6735 ECHO='func_fallback_echo'
6738 # func_echo_all arg...
6739 # Invoke $ECHO with all args, space-separated.
6746 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6747 $as_echo "printf" >&6; } ;;
6748 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6749 $as_echo "print -r" >&6; } ;;
6750 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6751 $as_echo "cat" >&6; } ;;
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6768 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6769 if ${ac_cv_path_SED+:} false; then :
6770 $as_echo_n "(cached) " >&6
6772 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6773 for ac_i in 1 2 3 4 5 6 7; do
6774 ac_script="$ac_script$as_nl$ac_script"
6776 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6777 { ac_script=; unset ac_script;}
6778 if test -z "$SED"; then
6779 ac_path_SED_found=false
6780 # Loop through the user's path and test for each of PROGNAME-LIST
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 test -z "$as_dir" && as_dir=.
6786 for ac_prog in sed gsed; do
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6789 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6790 # Check for GNU ac_path_SED and select it if it is found.
6791 # Check for GNU $ac_path_SED
6792 case `"$ac_path_SED" --version 2>&1` in
6794 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6797 $as_echo_n 0123456789 >"conftest.in"
6800 cat "conftest.in" "conftest.in" >"conftest.tmp"
6801 mv "conftest.tmp" "conftest.in"
6802 cp "conftest.in" "conftest.nl"
6803 $as_echo '' >> "conftest.nl"
6804 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6806 as_fn_arith $ac_count + 1 && ac_count=$as_val
6807 if test $ac_count -gt ${ac_path_SED_max-0}; then
6808 # Best one so far, save it but keep looking for a better one
6809 ac_cv_path_SED="$ac_path_SED"
6810 ac_path_SED_max=$ac_count
6812 # 10*(2^10) chars as input seems more than enough
6813 test $ac_count -gt 10 && break
6815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6818 $ac_path_SED_found && break 3
6823 if test -z "$ac_cv_path_SED"; then
6824 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6832 $as_echo "$ac_cv_path_SED" >&6; }
6833 SED="$ac_cv_path_SED"
6836 test -z "$SED" && SED=sed
6837 Xsed="$SED -e 1s/^X//"
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6850 $as_echo_n "checking for fgrep... " >&6; }
6851 if ${ac_cv_path_FGREP+:} false; then :
6852 $as_echo_n "(cached) " >&6
6854 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6855 then ac_cv_path_FGREP="$GREP -F"
6857 if test -z "$FGREP"; then
6858 ac_path_FGREP_found=false
6859 # Loop through the user's path and test for each of PROGNAME-LIST
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6864 test -z "$as_dir" && as_dir=.
6865 for ac_prog in fgrep; do
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6868 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6869 # Check for GNU ac_path_FGREP and select it if it is found.
6870 # Check for GNU $ac_path_FGREP
6871 case `"$ac_path_FGREP" --version 2>&1` in
6873 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6876 $as_echo_n 0123456789 >"conftest.in"
6879 cat "conftest.in" "conftest.in" >"conftest.tmp"
6880 mv "conftest.tmp" "conftest.in"
6881 cp "conftest.in" "conftest.nl"
6882 $as_echo 'FGREP' >> "conftest.nl"
6883 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6884 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6885 as_fn_arith $ac_count + 1 && ac_count=$as_val
6886 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6887 # Best one so far, save it but keep looking for a better one
6888 ac_cv_path_FGREP="$ac_path_FGREP"
6889 ac_path_FGREP_max=$ac_count
6891 # 10*(2^10) chars as input seems more than enough
6892 test $ac_count -gt 10 && break
6894 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6897 $ac_path_FGREP_found && break 3
6902 if test -z "$ac_cv_path_FGREP"; then
6903 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6906 ac_cv_path_FGREP=$FGREP
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6912 $as_echo "$ac_cv_path_FGREP" >&6; }
6913 FGREP="$ac_cv_path_FGREP"
6916 test -z "$GREP" && GREP=grep
6936 # Check whether --with-gnu-ld was given.
6937 if test "${with_gnu_ld+set}" = set; then :
6938 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6944 if test "$GCC" = yes; then
6945 # Check if gcc -print-prog-name=ld gives a path.
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6947 $as_echo_n "checking for ld used by $CC... " >&6; }
6950 # gcc leaves a trailing carriage return which upsets mingw
6951 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6953 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6956 # Accept absolute paths.
6958 re_direlt='/[^/][^/]*/\.\./'
6959 # Canonicalize the pathname of ld
6960 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6961 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6962 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6964 test -z "$LD" && LD="$ac_prog"
6967 # If it fails, then pretend we aren't using GCC.
6971 # If it is relative, then search for the first ld in PATH.
6975 elif test "$with_gnu_ld" = yes; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6977 $as_echo_n "checking for GNU ld... " >&6; }
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6980 $as_echo_n "checking for non-GNU ld... " >&6; }
6982 if ${lt_cv_path_LD+:} false; then :
6983 $as_echo_n "(cached) " >&6
6985 if test -z "$LD"; then
6986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6987 for ac_dir in $PATH; do
6989 test -z "$ac_dir" && ac_dir=.
6990 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6991 lt_cv_path_LD="$ac_dir/$ac_prog"
6992 # Check to see if the program is GNU ld. I'd rather use --version,
6993 # but apparently some variants of GNU ld only accept -v.
6994 # Break only if it was the GNU/non-GNU ld that we prefer.
6995 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6996 *GNU* | *'with BFD'*)
6997 test "$with_gnu_ld" != no && break
7000 test "$with_gnu_ld" != yes && break
7007 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7012 if test -n "$LD"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7014 $as_echo "$LD" >&6; }
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7019 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7021 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7022 if ${lt_cv_prog_gnu_ld+:} false; then :
7023 $as_echo_n "(cached) " >&6
7025 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7026 case `$LD -v 2>&1 </dev/null` in
7027 *GNU* | *'with BFD'*)
7028 lt_cv_prog_gnu_ld=yes
7031 lt_cv_prog_gnu_ld=no
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7036 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7037 with_gnu_ld=$lt_cv_prog_gnu_ld
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7048 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7049 if ${lt_cv_path_NM+:} false; then :
7050 $as_echo_n "(cached) " >&6
7052 if test -n "$NM"; then
7053 # Let the user override the test.
7056 lt_nm_to_check="${ac_tool_prefix}nm"
7057 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7058 lt_nm_to_check="$lt_nm_to_check nm"
7060 for lt_tmp_nm in $lt_nm_to_check; do
7061 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7062 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7064 test -z "$ac_dir" && ac_dir=.
7065 tmp_nm="$ac_dir/$lt_tmp_nm"
7066 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7067 # Check to see if the nm accepts a BSD-compat flag.
7068 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7069 # nm: unknown option "B" ignored
7070 # Tru64's nm complains that /dev/null is an invalid object file
7071 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7072 */dev/null* | *'Invalid file or object type'*)
7073 lt_cv_path_NM="$tmp_nm -B"
7077 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7079 lt_cv_path_NM="$tmp_nm -p"
7083 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7084 continue # so that we can try to find one that supports BSD flags
7093 : ${lt_cv_path_NM=no}
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7097 $as_echo "$lt_cv_path_NM" >&6; }
7098 if test "$lt_cv_path_NM" != "no"; then
7101 # Didn't find any BSD compatible name lister, look for dumpbin.
7102 if test -n "$DUMPBIN"; then :
7103 # Let the user override the test.
7105 if test -n "$ac_tool_prefix"; then
7106 for ac_prog in dumpbin "link -dump"
7108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if ${ac_cv_prog_DUMPBIN+:} false; then :
7113 $as_echo_n "(cached) " >&6
7115 if test -n "$DUMPBIN"; then
7116 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7125 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 DUMPBIN=$ac_cv_prog_DUMPBIN
7136 if test -n "$DUMPBIN"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7138 $as_echo "$DUMPBIN" >&6; }
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7145 test -n "$DUMPBIN" && break
7148 if test -z "$DUMPBIN"; then
7149 ac_ct_DUMPBIN=$DUMPBIN
7150 for ac_prog in dumpbin "link -dump"
7152 # Extract the first word of "$ac_prog", so it can be a program name with args.
7153 set dummy $ac_prog; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7157 $as_echo_n "(cached) " >&6
7159 if test -n "$ac_ct_DUMPBIN"; then
7160 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7180 if test -n "$ac_ct_DUMPBIN"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7182 $as_echo "$ac_ct_DUMPBIN" >&6; }
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7189 test -n "$ac_ct_DUMPBIN" && break
7192 if test "x$ac_ct_DUMPBIN" = x; then
7195 case $cross_compiling:$ac_tool_warned in
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7199 ac_tool_warned=yes ;;
7201 DUMPBIN=$ac_ct_DUMPBIN
7205 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7207 DUMPBIN="$DUMPBIN -symbols"
7215 if test "$DUMPBIN" != ":"; then
7219 test -z "$NM" && NM=nm
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7227 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7228 if ${lt_cv_nm_interface+:} false; then :
7229 $as_echo_n "(cached) " >&6
7231 lt_cv_nm_interface="BSD nm"
7232 echo "int some_variable = 0;" > conftest.$ac_ext
7233 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7234 (eval "$ac_compile" 2>conftest.err)
7235 cat conftest.err >&5
7236 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7237 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7238 cat conftest.err >&5
7239 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7240 cat conftest.out >&5
7241 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7242 lt_cv_nm_interface="MS dumpbin"
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7247 $as_echo "$lt_cv_nm_interface" >&6; }
7249 # find the maximum length of command line arguments
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7251 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7252 if ${lt_cv_sys_max_cmd_len+:} false; then :
7253 $as_echo_n "(cached) " >&6
7260 # On DJGPP, this test can blow up pretty badly due to problems in libc
7261 # (any single argument exceeding 2000 bytes causes a buffer overrun
7262 # during glob expansion). Even if it were fixed, the result of this
7263 # check would be larger than it should be.
7264 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7268 # Under GNU Hurd, this test is not required because there is
7269 # no limit to the length of command line arguments.
7270 # Libtool will interpret -1 as no limit whatsoever
7271 lt_cv_sys_max_cmd_len=-1;
7274 cygwin* | mingw* | cegcc*)
7275 # On Win9x/ME, this test blows up -- it succeeds, but takes
7276 # about 5 minutes as the teststring grows exponentially.
7277 # Worse, since 9x/ME are not pre-emptively multitasking,
7278 # you end up with a "frozen" computer, even though with patience
7279 # the test eventually succeeds (with a max line length of 256k).
7280 # Instead, let's just punt: use the minimum linelength reported by
7281 # all of the supported platforms: 8192 (on NT/2K/XP).
7282 lt_cv_sys_max_cmd_len=8192;
7286 # On MiNT this can take a long time and run out of memory.
7287 lt_cv_sys_max_cmd_len=8192;
7291 # On AmigaOS with pdksh, this test takes hours, literally.
7292 # So we just punt and use a minimum line length of 8192.
7293 lt_cv_sys_max_cmd_len=8192;
7296 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7297 # This has been around since 386BSD, at least. Likely further.
7298 if test -x /sbin/sysctl; then
7299 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7300 elif test -x /usr/sbin/sysctl; then
7301 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7303 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7305 # And add a safety zone
7306 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7307 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7311 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7312 lt_cv_sys_max_cmd_len=196608
7316 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7317 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7318 # nice to cause kernel panics so lets avoid the loop below.
7319 # First set a reasonable default.
7320 lt_cv_sys_max_cmd_len=16384
7322 if test -x /sbin/sysconfig; then
7323 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7324 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7329 lt_cv_sys_max_cmd_len=102400
7331 sysv5* | sco5v6* | sysv4.2uw2*)
7332 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7333 if test -n "$kargmax"; then
7334 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7336 lt_cv_sys_max_cmd_len=32768
7340 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7341 if test -n "$lt_cv_sys_max_cmd_len"; then
7342 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7343 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7345 # Make teststring a little bigger before we do anything with it.
7346 # a 1K string should be a reasonable start.
7347 for i in 1 2 3 4 5 6 7 8 ; do
7348 teststring=$teststring$teststring
7350 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7351 # If test is not a shell built-in, we'll probably end up computing a
7352 # maximum length that is only half of the actual maximum length, but
7354 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7355 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7356 test $i != 17 # 1/2 MB should be enough
7359 teststring=$teststring$teststring
7361 # Only check the string length outside the loop.
7362 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7364 # Add a significant safety factor because C++ compilers can tack on
7365 # massive amounts of additional arguments before passing them to the
7366 # linker. It appears as though 1/2 is a usable value.
7367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7374 if test -n $lt_cv_sys_max_cmd_len ; then
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7376 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7379 $as_echo "none" >&6; }
7381 max_cmd_len=$lt_cv_sys_max_cmd_len
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7393 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7394 # Try some XSI features
7397 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7399 && eval 'test $(( 1 + 1 )) -eq 2 \
7400 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7403 $as_echo "$xsi_shell" >&6; }
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7407 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7409 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7411 && lt_shell_append=yes
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7413 $as_echo "$lt_shell_append" >&6; }
7416 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7426 # test EBCDIC or ASCII
7427 case `echo X|tr X '\101'` in
7428 A) # ASCII based system
7429 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7430 lt_SP2NL='tr \040 \012'
7431 lt_NL2SP='tr \015\012 \040\040'
7433 *) # EBCDIC based system
7434 lt_SP2NL='tr \100 \n'
7435 lt_NL2SP='tr \r\n \100\100'
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7448 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7449 if ${lt_cv_to_host_file_cmd+:} false; then :
7450 $as_echo_n "(cached) " >&6
7455 *-*-mingw* ) # actually msys
7456 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7459 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7461 * ) # otherwise, assume *nix
7462 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7468 *-*-mingw* ) # actually msys
7469 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7472 lt_cv_to_host_file_cmd=func_convert_file_noop
7474 * ) # otherwise, assume *nix
7475 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7479 * ) # unhandled hosts (and "normal" native builds)
7480 lt_cv_to_host_file_cmd=func_convert_file_noop
7486 to_host_file_cmd=$lt_cv_to_host_file_cmd
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7488 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7495 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7496 if ${lt_cv_to_tool_file_cmd+:} false; then :
7497 $as_echo_n "(cached) " >&6
7499 #assume ordinary cross tools, or native build.
7500 lt_cv_to_tool_file_cmd=func_convert_file_noop
7504 *-*-mingw* ) # actually msys
7505 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7513 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7515 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7522 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7523 if ${lt_cv_ld_reload_flag+:} false; then :
7524 $as_echo_n "(cached) " >&6
7526 lt_cv_ld_reload_flag='-r'
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7529 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7530 reload_flag=$lt_cv_ld_reload_flag
7531 case $reload_flag in
7533 *) reload_flag=" $reload_flag" ;;
7535 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7537 cygwin* | mingw* | pw32* | cegcc*)
7538 if test "$GCC" != yes; then
7543 if test "$GCC" = yes; then
7544 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7546 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7559 if test -n "$ac_tool_prefix"; then
7560 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7561 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563 $as_echo_n "checking for $ac_word... " >&6; }
7564 if ${ac_cv_prog_OBJDUMP+:} false; then :
7565 $as_echo_n "(cached) " >&6
7567 if test -n "$OBJDUMP"; then
7568 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 test -z "$as_dir" && as_dir=.
7575 for ac_exec_ext in '' $ac_executable_extensions; do
7576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7577 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587 OBJDUMP=$ac_cv_prog_OBJDUMP
7588 if test -n "$OBJDUMP"; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7590 $as_echo "$OBJDUMP" >&6; }
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }
7598 if test -z "$ac_cv_prog_OBJDUMP"; then
7599 ac_ct_OBJDUMP=$OBJDUMP
7600 # Extract the first word of "objdump", so it can be a program name with args.
7601 set dummy objdump; ac_word=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7605 $as_echo_n "(cached) " >&6
7607 if test -n "$ac_ct_OBJDUMP"; then
7608 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7617 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7628 if test -n "$ac_ct_OBJDUMP"; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7630 $as_echo "$ac_ct_OBJDUMP" >&6; }
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7636 if test "x$ac_ct_OBJDUMP" = x; then
7639 case $cross_compiling:$ac_tool_warned in
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7643 ac_tool_warned=yes ;;
7645 OBJDUMP=$ac_ct_OBJDUMP
7648 OBJDUMP="$ac_cv_prog_OBJDUMP"
7651 test -z "$OBJDUMP" && OBJDUMP=objdump
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7662 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7663 if ${lt_cv_deplibs_check_method+:} false; then :
7664 $as_echo_n "(cached) " >&6
7666 lt_cv_file_magic_cmd='$MAGIC_CMD'
7667 lt_cv_file_magic_test_file=
7668 lt_cv_deplibs_check_method='unknown'
7669 # Need to set the preceding variable on all platforms that support
7670 # interlibrary dependencies.
7671 # 'none' -- dependencies not supported.
7672 # `unknown' -- same as none, but documents that we really don't know.
7673 # 'pass_all' -- all dependencies passed with no checks.
7674 # 'test_compile' -- check by making test program.
7675 # 'file_magic [[regex]]' -- check by looking for files in library path
7676 # which responds to the $file_magic_cmd with a given extended regex.
7677 # If you have `file' or equivalent on your system and you're not sure
7678 # whether `pass_all' will *always* work, you probably want this one.
7682 lt_cv_deplibs_check_method=pass_all
7686 lt_cv_deplibs_check_method=pass_all
7690 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7691 lt_cv_file_magic_cmd='/usr/bin/file -L'
7692 lt_cv_file_magic_test_file=/shlib/libc.so
7696 # func_win32_libid is a shell function defined in ltmain.sh
7697 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7698 lt_cv_file_magic_cmd='func_win32_libid'
7702 # Base MSYS/MinGW do not provide the 'file' command needed by
7703 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7704 # unless we find 'file', for example because we are cross-compiling.
7705 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7706 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7707 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7708 lt_cv_file_magic_cmd='func_win32_libid'
7710 # Keep this pattern in sync with the one in func_win32_libid.
7711 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7712 lt_cv_file_magic_cmd='$OBJDUMP -f'
7717 # use the weaker test based on 'objdump'. See mingw*.
7718 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7719 lt_cv_file_magic_cmd='$OBJDUMP -f'
7722 darwin* | rhapsody*)
7723 lt_cv_deplibs_check_method=pass_all
7726 freebsd* | dragonfly*)
7727 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7730 # Not sure whether the presence of OpenBSD here was a mistake.
7731 # Let's accept both of them until this is cleared up.
7732 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7733 lt_cv_file_magic_cmd=/usr/bin/file
7734 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7738 lt_cv_deplibs_check_method=pass_all
7743 lt_cv_deplibs_check_method=pass_all
7747 lt_cv_deplibs_check_method=pass_all
7750 hpux10.20* | hpux11*)
7751 lt_cv_file_magic_cmd=/usr/bin/file
7754 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7755 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7758 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7759 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7762 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7763 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7769 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7770 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7773 irix5* | irix6* | nonstopux*)
7775 *-32|*"-32 ") libmagic=32-bit;;
7776 *-n32|*"-n32 ") libmagic=N32;;
7777 *-64|*"-64 ") libmagic=64-bit;;
7778 *) libmagic=never-match;;
7780 lt_cv_deplibs_check_method=pass_all
7783 # This must be Linux ELF.
7784 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7785 lt_cv_deplibs_check_method=pass_all
7789 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7790 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7797 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7798 lt_cv_file_magic_cmd=/usr/bin/file
7799 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7803 lt_cv_deplibs_check_method=pass_all
7807 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7808 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7814 osf3* | osf4* | osf5*)
7815 lt_cv_deplibs_check_method=pass_all
7819 lt_cv_deplibs_check_method=pass_all
7823 lt_cv_deplibs_check_method=pass_all
7826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7827 lt_cv_deplibs_check_method=pass_all
7831 case $host_vendor in
7833 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]'
7834 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7837 lt_cv_deplibs_check_method=pass_all
7840 lt_cv_file_magic_cmd='/bin/file'
7841 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7844 lt_cv_file_magic_cmd='/bin/file'
7845 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7846 lt_cv_file_magic_test_file=/lib/libc.so
7849 lt_cv_deplibs_check_method=pass_all
7852 lt_cv_deplibs_check_method=pass_all
7858 lt_cv_deplibs_check_method=pass_all
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7864 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7868 if test "$build" = "$host"; then
7871 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7874 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7880 file_magic_cmd=$lt_cv_file_magic_cmd
7881 deplibs_check_method=$lt_cv_deplibs_check_method
7882 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7905 if test -n "$ac_tool_prefix"; then
7906 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7907 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if ${ac_cv_prog_DLLTOOL+:} false; then :
7911 $as_echo_n "(cached) " >&6
7913 if test -n "$DLLTOOL"; then
7914 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7923 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 DLLTOOL=$ac_cv_prog_DLLTOOL
7934 if test -n "$DLLTOOL"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7936 $as_echo "$DLLTOOL" >&6; }
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7944 if test -z "$ac_cv_prog_DLLTOOL"; then
7945 ac_ct_DLLTOOL=$DLLTOOL
7946 # Extract the first word of "dlltool", so it can be a program name with args.
7947 set dummy dlltool; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7951 $as_echo_n "(cached) " >&6
7953 if test -n "$ac_ct_DLLTOOL"; then
7954 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7974 if test -n "$ac_ct_DLLTOOL"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7976 $as_echo "$ac_ct_DLLTOOL" >&6; }
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7982 if test "x$ac_ct_DLLTOOL" = x; then
7985 case $cross_compiling:$ac_tool_warned in
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7989 ac_tool_warned=yes ;;
7991 DLLTOOL=$ac_ct_DLLTOOL
7994 DLLTOOL="$ac_cv_prog_DLLTOOL"
7997 test -z "$DLLTOOL" && DLLTOOL=dlltool
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8009 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8010 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8011 $as_echo_n "(cached) " >&6
8013 lt_cv_sharedlib_from_linklib_cmd='unknown'
8016 cygwin* | mingw* | pw32* | cegcc*)
8017 # two different shell functions defined in ltmain.sh
8018 # decide which to use based on capabilities of $DLLTOOL
8019 case `$DLLTOOL --help 2>&1` in
8020 *--identify-strict*)
8021 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8024 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8029 # fallback: assume linklib IS sharedlib
8030 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8036 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8037 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8038 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8046 if test -n "$ac_tool_prefix"; then
8049 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8050 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if ${ac_cv_prog_AR+:} false; then :
8054 $as_echo_n "(cached) " >&6
8056 if test -n "$AR"; then
8057 ac_cv_prog_AR="$AR" # Let the user override the test.
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 if test -n "$AR"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8079 $as_echo "$AR" >&6; }
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8086 test -n "$AR" && break
8089 if test -z "$AR"; then
8093 # Extract the first word of "$ac_prog", so it can be a program name with args.
8094 set dummy $ac_prog; ac_word=$2
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096 $as_echo_n "checking for $ac_word... " >&6; }
8097 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8098 $as_echo_n "(cached) " >&6
8100 if test -n "$ac_ct_AR"; then
8101 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 test -z "$as_dir" && as_dir=.
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8110 ac_cv_prog_ac_ct_AR="$ac_prog"
8111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8121 if test -n "$ac_ct_AR"; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8123 $as_echo "$ac_ct_AR" >&6; }
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126 $as_echo "no" >&6; }
8130 test -n "$ac_ct_AR" && break
8133 if test "x$ac_ct_AR" = x; then
8136 case $cross_compiling:$ac_tool_warned in
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8140 ac_tool_warned=yes ;;
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8160 $as_echo_n "checking for archiver @FILE support... " >&6; }
8161 if ${lt_cv_ar_at_file+:} false; then :
8162 $as_echo_n "(cached) " >&6
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8176 if ac_fn_c_try_compile "$LINENO"; then :
8177 echo conftest.$ac_objext > conftest.lst
8178 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8180 (eval $lt_ar_try) 2>&5
8182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8183 test $ac_status = 0; }
8184 if test "$ac_status" -eq 0; then
8185 # Ensure the archiver fails upon bogus file names.
8186 rm -f conftest.$ac_objext libconftest.a
8187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8188 (eval $lt_ar_try) 2>&5
8190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8191 test $ac_status = 0; }
8192 if test "$ac_status" -ne 0; then
8196 rm -f conftest.* libconftest.a
8199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8203 $as_echo "$lt_cv_ar_at_file" >&6; }
8205 if test "x$lt_cv_ar_at_file" = xno; then
8208 archiver_list_spec=$lt_cv_ar_at_file
8217 if test -n "$ac_tool_prefix"; then
8218 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8219 set dummy ${ac_tool_prefix}strip; ac_word=$2
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8221 $as_echo_n "checking for $ac_word... " >&6; }
8222 if ${ac_cv_prog_STRIP+:} false; then :
8223 $as_echo_n "(cached) " >&6
8225 if test -n "$STRIP"; then
8226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232 test -z "$as_dir" && as_dir=.
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8235 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 STRIP=$ac_cv_prog_STRIP
8246 if test -n "$STRIP"; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8248 $as_echo "$STRIP" >&6; }
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 $as_echo "no" >&6; }
8256 if test -z "$ac_cv_prog_STRIP"; then
8258 # Extract the first word of "strip", so it can be a program name with args.
8259 set dummy strip; ac_word=$2
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 $as_echo_n "checking for $ac_word... " >&6; }
8262 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8263 $as_echo_n "(cached) " >&6
8265 if test -n "$ac_ct_STRIP"; then
8266 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 test -z "$as_dir" && as_dir=.
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8275 ac_cv_prog_ac_ct_STRIP="strip"
8276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8286 if test -n "$ac_ct_STRIP"; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8288 $as_echo "$ac_ct_STRIP" >&6; }
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8294 if test "x$ac_ct_STRIP" = x; then
8297 case $cross_compiling:$ac_tool_warned in
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8301 ac_tool_warned=yes ;;
8306 STRIP="$ac_cv_prog_STRIP"
8309 test -z "$STRIP" && STRIP=:
8316 if test -n "$ac_tool_prefix"; then
8317 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8318 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320 $as_echo_n "checking for $ac_word... " >&6; }
8321 if ${ac_cv_prog_RANLIB+:} false; then :
8322 $as_echo_n "(cached) " >&6
8324 if test -n "$RANLIB"; then
8325 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 test -z "$as_dir" && as_dir=.
8332 for ac_exec_ext in '' $ac_executable_extensions; do
8333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8334 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 RANLIB=$ac_cv_prog_RANLIB
8345 if test -n "$RANLIB"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8347 $as_echo "$RANLIB" >&6; }
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8355 if test -z "$ac_cv_prog_RANLIB"; then
8356 ac_ct_RANLIB=$RANLIB
8357 # Extract the first word of "ranlib", so it can be a program name with args.
8358 set dummy ranlib; ac_word=$2
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8360 $as_echo_n "checking for $ac_word... " >&6; }
8361 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8362 $as_echo_n "(cached) " >&6
8364 if test -n "$ac_ct_RANLIB"; then
8365 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374 ac_cv_prog_ac_ct_RANLIB="ranlib"
8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8384 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8385 if test -n "$ac_ct_RANLIB"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8387 $as_echo "$ac_ct_RANLIB" >&6; }
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8393 if test "x$ac_ct_RANLIB" = x; then
8396 case $cross_compiling:$ac_tool_warned in
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8400 ac_tool_warned=yes ;;
8402 RANLIB=$ac_ct_RANLIB
8405 RANLIB="$ac_cv_prog_RANLIB"
8408 test -z "$RANLIB" && RANLIB=:
8415 # Determine commands to create old-style static archives.
8416 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8417 old_postinstall_cmds='chmod 644 $oldlib'
8418 old_postuninstall_cmds=
8420 if test -n "$RANLIB"; then
8423 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8426 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8429 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8434 lock_old_archive_extraction=yes ;;
8436 lock_old_archive_extraction=no ;;
8477 # If no C compiler was specified, use CC.
8480 # If no C compiler flags were specified, use CFLAGS.
8481 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8483 # Allow CC to be a program name with arguments.
8487 # Check for command to grab the raw symbol name followed by C symbol from nm.
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8489 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8490 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8491 $as_echo_n "(cached) " >&6
8494 # These are sane defaults that work on at least a few old systems.
8495 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8497 # Character class describing NM global symbol codes.
8498 symcode='[BCDEGRST]'
8500 # Regexp to match symbols that can be accessed directly from C.
8501 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8503 # Define system-specific variables.
8508 cygwin* | mingw* | pw32* | cegcc*)
8509 symcode='[ABCDGISTW]'
8512 if test "$host_cpu" = ia64; then
8513 symcode='[ABCDEGRST]'
8517 symcode='[BCDEGRST]'
8520 symcode='[BCDEGQRST]'
8531 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8539 # If we're using GNU nm, then use its standard symbol codes.
8540 case `$NM -V 2>&1` in
8541 *GNU* | *'with BFD'*)
8542 symcode='[ABCDGIRSTW]' ;;
8545 # Transform an extracted symbol line into a proper C declaration.
8546 # Some systems (esp. on ia64) link data and code symbols differently,
8547 # so use this general approach.
8548 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8550 # Transform an extracted symbol line into symbol name and symbol address
8551 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8552 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8554 # Handle CRLF in mingw tool chain
8558 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8562 # Try without a prefix underscore, then with it.
8563 for ac_symprfx in "" "_"; do
8565 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8566 symxfrm="\\1 $ac_symprfx\\2 \\2"
8568 # Write the raw and C identifiers.
8569 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8570 # Fake it for dumpbin and say T for any non-static function
8571 # and D for any global variable.
8572 # Also find C++ and __fastcall symbols from MSVC++,
8573 # which start with @ or ?.
8574 lt_cv_sys_global_symbol_pipe="$AWK '"\
8575 " {last_section=section; section=\$ 3};"\
8576 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8577 " \$ 0!~/External *\|/{next};"\
8578 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8579 " {if(hide[section]) next};"\
8580 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8581 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8582 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8583 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8584 " ' prfx=^$ac_symprfx"
8586 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8588 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8590 # Check to see that the pipe works correctly.
8594 cat > conftest.$ac_ext <<_LT_EOF
8599 void nm_test_func(void);
8600 void nm_test_func(void){}
8604 int main(){nm_test_var='a';nm_test_func();return(0);}
8607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8608 (eval $ac_compile) 2>&5
8610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8611 test $ac_status = 0; }; then
8612 # Now try to grab the symbols.
8614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8615 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8618 test $ac_status = 0; } && test -s "$nlist"; then
8619 # Try sorting and uniquifying the output.
8620 if sort "$nlist" | uniq > "$nlist"T; then
8621 mv -f "$nlist"T "$nlist"
8626 # Make sure that we snagged all the symbols we need.
8627 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8628 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8629 cat <<_LT_EOF > conftest.$ac_ext
8630 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8631 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8632 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8633 relocations are performed -- see ld's documentation on pseudo-relocs. */
8634 # define LT_DLSYM_CONST
8635 #elif defined(__osf__)
8636 /* This system does not cope well with relocations in const data. */
8637 # define LT_DLSYM_CONST
8639 # define LT_DLSYM_CONST const
8647 # Now generate the symbol file.
8648 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8650 cat <<_LT_EOF >> conftest.$ac_ext
8652 /* The mapping between symbol names and symbols. */
8653 LT_DLSYM_CONST struct {
8657 lt__PROGRAM__LTX_preloaded_symbols[] =
8659 { "@PROGRAM@", (void *) 0 },
8661 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8662 cat <<\_LT_EOF >> conftest.$ac_ext
8666 /* This works around a problem in FreeBSD linker */
8667 #ifdef FREEBSD_WORKAROUND
8668 static const void *lt_preloaded_setup() {
8669 return lt__PROGRAM__LTX_preloaded_symbols;
8677 # Now try linking the two files.
8678 mv conftest.$ac_objext conftstm.$ac_objext
8679 lt_globsym_save_LIBS=$LIBS
8680 lt_globsym_save_CFLAGS=$CFLAGS
8681 LIBS="conftstm.$ac_objext"
8682 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8684 (eval $ac_link) 2>&5
8686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8687 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8690 LIBS=$lt_globsym_save_LIBS
8691 CFLAGS=$lt_globsym_save_CFLAGS
8693 echo "cannot find nm_test_func in $nlist" >&5
8696 echo "cannot find nm_test_var in $nlist" >&5
8699 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8702 echo "$progname: failed program was:" >&5
8703 cat conftest.$ac_ext >&5
8705 rm -rf conftest* conftst*
8707 # Do not use the global_symbol_pipe unless it works.
8708 if test "$pipe_works" = yes; then
8711 lt_cv_sys_global_symbol_pipe=
8717 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8718 lt_cv_sys_global_symbol_to_cdecl=
8720 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8722 $as_echo "failed" >&6; }
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8725 $as_echo "ok" >&6; }
8728 # Response file support.
8729 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8730 nm_file_list_spec='@'
8731 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8732 nm_file_list_spec='@'
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8762 $as_echo_n "checking for sysroot... " >&6; }
8764 # Check whether --with-sysroot was given.
8765 if test "${with_sysroot+set}" = set; then :
8766 withval=$with_sysroot;
8773 case ${with_sysroot} in #(
8775 if test "$GCC" = yes; then
8776 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8780 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8786 $as_echo "${with_sysroot}" >&6; }
8787 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8792 $as_echo "${lt_sysroot:-no}" >&6; }
8798 # Check whether --enable-libtool-lock was given.
8799 if test "${enable_libtool_lock+set}" = set; then :
8800 enableval=$enable_libtool_lock;
8803 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8805 # Some flags need to be propagated to the compiler or linker for good
8809 # Find out which ABI we are using.
8810 echo 'int i;' > conftest.$ac_ext
8811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8812 (eval $ac_compile) 2>&5
8814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8815 test $ac_status = 0; }; then
8816 case `/usr/bin/file conftest.$ac_objext` in
8828 # Find out which ABI we are using.
8829 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8831 (eval $ac_compile) 2>&5
8833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8834 test $ac_status = 0; }; then
8835 if test "$lt_cv_prog_gnu_ld" = yes; then
8836 case `/usr/bin/file conftest.$ac_objext` in
8838 LD="${LD-ld} -melf32bsmip"
8841 LD="${LD-ld} -melf32bmipn32"
8844 LD="${LD-ld} -melf64bmip"
8848 case `/usr/bin/file conftest.$ac_objext` in
8864 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8865 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8866 # Find out which ABI we are using.
8867 echo 'int i;' > conftest.$ac_ext
8868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8869 (eval $ac_compile) 2>&5
8871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8872 test $ac_status = 0; }; then
8873 case `/usr/bin/file conftest.o` in
8876 x86_64-*kfreebsd*-gnu)
8877 LD="${LD-ld} -m elf_i386_fbsd"
8880 LD="${LD-ld} -m elf_i386"
8882 ppc64-*linux*|powerpc64-*linux*)
8883 LD="${LD-ld} -m elf32ppclinux"
8886 LD="${LD-ld} -m elf_s390"
8889 LD="${LD-ld} -m elf32_sparc"
8895 x86_64-*kfreebsd*-gnu)
8896 LD="${LD-ld} -m elf_x86_64_fbsd"
8899 LD="${LD-ld} -m elf_x86_64"
8901 ppc*-*linux*|powerpc*-*linux*)
8902 LD="${LD-ld} -m elf64ppc"
8904 s390*-*linux*|s390*-*tpf*)
8905 LD="${LD-ld} -m elf64_s390"
8908 LD="${LD-ld} -m elf64_sparc"
8918 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8919 SAVE_CFLAGS="$CFLAGS"
8920 CFLAGS="$CFLAGS -belf"
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8922 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8923 if ${lt_cv_cc_needs_belf+:} false; then :
8924 $as_echo_n "(cached) " >&6
8927 ac_cpp='$CPP $CPPFLAGS'
8928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8943 if ac_fn_c_try_link "$LINENO"; then :
8944 lt_cv_cc_needs_belf=yes
8946 lt_cv_cc_needs_belf=no
8948 rm -f core conftest.err conftest.$ac_objext \
8949 conftest$ac_exeext conftest.$ac_ext
8951 ac_cpp='$CPP $CPPFLAGS'
8952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8958 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8959 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8960 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8961 CFLAGS="$SAVE_CFLAGS"
8965 # Find out which ABI we are using.
8966 echo 'int i;' > conftest.$ac_ext
8967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8968 (eval $ac_compile) 2>&5
8970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8971 test $ac_status = 0; }; then
8972 case `/usr/bin/file conftest.o` in
8974 case $lt_cv_prog_gnu_ld in
8975 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8977 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8989 need_locks="$enable_libtool_lock"
8991 if test -n "$ac_tool_prefix"; then
8992 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8993 set dummy ${ac_tool_prefix}mt; ac_word=$2
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8995 $as_echo_n "checking for $ac_word... " >&6; }
8996 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8997 $as_echo_n "(cached) " >&6
8999 if test -n "$MANIFEST_TOOL"; then
9000 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9006 test -z "$as_dir" && as_dir=.
9007 for ac_exec_ext in '' $ac_executable_extensions; do
9008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9009 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9019 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9020 if test -n "$MANIFEST_TOOL"; then
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9022 $as_echo "$MANIFEST_TOOL" >&6; }
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025 $as_echo "no" >&6; }
9030 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9031 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9032 # Extract the first word of "mt", so it can be a program name with args.
9033 set dummy mt; ac_word=$2
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9035 $as_echo_n "checking for $ac_word... " >&6; }
9036 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9037 $as_echo_n "(cached) " >&6
9039 if test -n "$ac_ct_MANIFEST_TOOL"; then
9040 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046 test -z "$as_dir" && as_dir=.
9047 for ac_exec_ext in '' $ac_executable_extensions; do
9048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9049 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9059 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9060 if test -n "$ac_ct_MANIFEST_TOOL"; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9062 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 $as_echo "no" >&6; }
9068 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9071 case $cross_compiling:$ac_tool_warned in
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9075 ac_tool_warned=yes ;;
9077 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9080 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9083 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9085 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9086 if ${lt_cv_path_mainfest_tool+:} false; then :
9087 $as_echo_n "(cached) " >&6
9089 lt_cv_path_mainfest_tool=no
9090 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9091 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9092 cat conftest.err >&5
9093 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9094 lt_cv_path_mainfest_tool=yes
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9099 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9100 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9110 rhapsody* | darwin*)
9111 if test -n "$ac_tool_prefix"; then
9112 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9113 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9115 $as_echo_n "checking for $ac_word... " >&6; }
9116 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9117 $as_echo_n "(cached) " >&6
9119 if test -n "$DSYMUTIL"; then
9120 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126 test -z "$as_dir" && as_dir=.
9127 for ac_exec_ext in '' $ac_executable_extensions; do
9128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9129 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9139 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9140 if test -n "$DSYMUTIL"; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9142 $as_echo "$DSYMUTIL" >&6; }
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145 $as_echo "no" >&6; }
9150 if test -z "$ac_cv_prog_DSYMUTIL"; then
9151 ac_ct_DSYMUTIL=$DSYMUTIL
9152 # Extract the first word of "dsymutil", so it can be a program name with args.
9153 set dummy dsymutil; ac_word=$2
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9155 $as_echo_n "checking for $ac_word... " >&6; }
9156 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9157 $as_echo_n "(cached) " >&6
9159 if test -n "$ac_ct_DSYMUTIL"; then
9160 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 test -z "$as_dir" && as_dir=.
9167 for ac_exec_ext in '' $ac_executable_extensions; do
9168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9169 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9179 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9180 if test -n "$ac_ct_DSYMUTIL"; then
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9182 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9185 $as_echo "no" >&6; }
9188 if test "x$ac_ct_DSYMUTIL" = x; then
9191 case $cross_compiling:$ac_tool_warned in
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9195 ac_tool_warned=yes ;;
9197 DSYMUTIL=$ac_ct_DSYMUTIL
9200 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9203 if test -n "$ac_tool_prefix"; then
9204 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9205 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9207 $as_echo_n "checking for $ac_word... " >&6; }
9208 if ${ac_cv_prog_NMEDIT+:} false; then :
9209 $as_echo_n "(cached) " >&6
9211 if test -n "$NMEDIT"; then
9212 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218 test -z "$as_dir" && as_dir=.
9219 for ac_exec_ext in '' $ac_executable_extensions; do
9220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9221 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9231 NMEDIT=$ac_cv_prog_NMEDIT
9232 if test -n "$NMEDIT"; then
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9234 $as_echo "$NMEDIT" >&6; }
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9237 $as_echo "no" >&6; }
9242 if test -z "$ac_cv_prog_NMEDIT"; then
9243 ac_ct_NMEDIT=$NMEDIT
9244 # Extract the first word of "nmedit", so it can be a program name with args.
9245 set dummy nmedit; ac_word=$2
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9247 $as_echo_n "checking for $ac_word... " >&6; }
9248 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9249 $as_echo_n "(cached) " >&6
9251 if test -n "$ac_ct_NMEDIT"; then
9252 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258 test -z "$as_dir" && as_dir=.
9259 for ac_exec_ext in '' $ac_executable_extensions; do
9260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9261 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9271 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9272 if test -n "$ac_ct_NMEDIT"; then
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9274 $as_echo "$ac_ct_NMEDIT" >&6; }
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9277 $as_echo "no" >&6; }
9280 if test "x$ac_ct_NMEDIT" = x; then
9283 case $cross_compiling:$ac_tool_warned in
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9287 ac_tool_warned=yes ;;
9289 NMEDIT=$ac_ct_NMEDIT
9292 NMEDIT="$ac_cv_prog_NMEDIT"
9295 if test -n "$ac_tool_prefix"; then
9296 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9297 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9299 $as_echo_n "checking for $ac_word... " >&6; }
9300 if ${ac_cv_prog_LIPO+:} false; then :
9301 $as_echo_n "(cached) " >&6
9303 if test -n "$LIPO"; then
9304 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9310 test -z "$as_dir" && as_dir=.
9311 for ac_exec_ext in '' $ac_executable_extensions; do
9312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9313 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9323 LIPO=$ac_cv_prog_LIPO
9324 if test -n "$LIPO"; then
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9326 $as_echo "$LIPO" >&6; }
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329 $as_echo "no" >&6; }
9334 if test -z "$ac_cv_prog_LIPO"; then
9336 # Extract the first word of "lipo", so it can be a program name with args.
9337 set dummy lipo; ac_word=$2
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9339 $as_echo_n "checking for $ac_word... " >&6; }
9340 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9341 $as_echo_n "(cached) " >&6
9343 if test -n "$ac_ct_LIPO"; then
9344 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350 test -z "$as_dir" && as_dir=.
9351 for ac_exec_ext in '' $ac_executable_extensions; do
9352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9353 ac_cv_prog_ac_ct_LIPO="lipo"
9354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9363 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9364 if test -n "$ac_ct_LIPO"; then
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9366 $as_echo "$ac_ct_LIPO" >&6; }
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9369 $as_echo "no" >&6; }
9372 if test "x$ac_ct_LIPO" = x; then
9375 case $cross_compiling:$ac_tool_warned in
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9379 ac_tool_warned=yes ;;
9384 LIPO="$ac_cv_prog_LIPO"
9387 if test -n "$ac_tool_prefix"; then
9388 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9389 set dummy ${ac_tool_prefix}otool; ac_word=$2
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9391 $as_echo_n "checking for $ac_word... " >&6; }
9392 if ${ac_cv_prog_OTOOL+:} false; then :
9393 $as_echo_n "(cached) " >&6
9395 if test -n "$OTOOL"; then
9396 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9402 test -z "$as_dir" && as_dir=.
9403 for ac_exec_ext in '' $ac_executable_extensions; do
9404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9405 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9415 OTOOL=$ac_cv_prog_OTOOL
9416 if test -n "$OTOOL"; then
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9418 $as_echo "$OTOOL" >&6; }
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9421 $as_echo "no" >&6; }
9426 if test -z "$ac_cv_prog_OTOOL"; then
9428 # Extract the first word of "otool", so it can be a program name with args.
9429 set dummy otool; ac_word=$2
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431 $as_echo_n "checking for $ac_word... " >&6; }
9432 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9433 $as_echo_n "(cached) " >&6
9435 if test -n "$ac_ct_OTOOL"; then
9436 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9442 test -z "$as_dir" && as_dir=.
9443 for ac_exec_ext in '' $ac_executable_extensions; do
9444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9445 ac_cv_prog_ac_ct_OTOOL="otool"
9446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9455 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9456 if test -n "$ac_ct_OTOOL"; then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9458 $as_echo "$ac_ct_OTOOL" >&6; }
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9464 if test "x$ac_ct_OTOOL" = x; then
9467 case $cross_compiling:$ac_tool_warned in
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9471 ac_tool_warned=yes ;;
9476 OTOOL="$ac_cv_prog_OTOOL"
9479 if test -n "$ac_tool_prefix"; then
9480 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9481 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483 $as_echo_n "checking for $ac_word... " >&6; }
9484 if ${ac_cv_prog_OTOOL64+:} false; then :
9485 $as_echo_n "(cached) " >&6
9487 if test -n "$OTOOL64"; then
9488 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9494 test -z "$as_dir" && as_dir=.
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9497 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9507 OTOOL64=$ac_cv_prog_OTOOL64
9508 if test -n "$OTOOL64"; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9510 $as_echo "$OTOOL64" >&6; }
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513 $as_echo "no" >&6; }
9518 if test -z "$ac_cv_prog_OTOOL64"; then
9519 ac_ct_OTOOL64=$OTOOL64
9520 # Extract the first word of "otool64", so it can be a program name with args.
9521 set dummy otool64; ac_word=$2
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523 $as_echo_n "checking for $ac_word... " >&6; }
9524 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9525 $as_echo_n "(cached) " >&6
9527 if test -n "$ac_ct_OTOOL64"; then
9528 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 test -z "$as_dir" && as_dir=.
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9537 ac_cv_prog_ac_ct_OTOOL64="otool64"
9538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9547 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9548 if test -n "$ac_ct_OTOOL64"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9550 $as_echo "$ac_ct_OTOOL64" >&6; }
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9556 if test "x$ac_ct_OTOOL64" = x; then
9559 case $cross_compiling:$ac_tool_warned in
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9563 ac_tool_warned=yes ;;
9565 OTOOL64=$ac_ct_OTOOL64
9568 OTOOL64="$ac_cv_prog_OTOOL64"
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9598 $as_echo_n "checking for -single_module linker flag... " >&6; }
9599 if ${lt_cv_apple_cc_single_mod+:} false; then :
9600 $as_echo_n "(cached) " >&6
9602 lt_cv_apple_cc_single_mod=no
9603 if test -z "${LT_MULTI_MODULE}"; then
9604 # By default we will add the -single_module flag. You can override
9605 # by either setting the environment variable LT_MULTI_MODULE
9606 # non-empty at configure time, or by adding -multi_module to the
9608 rm -rf libconftest.dylib*
9609 echo "int foo(void){return 1;}" > conftest.c
9610 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9611 -dynamiclib -Wl,-single_module conftest.c" >&5
9612 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9613 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9615 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9616 lt_cv_apple_cc_single_mod=yes
9618 cat conftest.err >&5
9620 rm -rf libconftest.dylib*
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9625 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9627 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9628 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9629 $as_echo_n "(cached) " >&6
9631 lt_cv_ld_exported_symbols_list=no
9632 save_LDFLAGS=$LDFLAGS
9633 echo "_main" > conftest.sym
9634 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9646 if ac_fn_c_try_link "$LINENO"; then :
9647 lt_cv_ld_exported_symbols_list=yes
9649 lt_cv_ld_exported_symbols_list=no
9651 rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9653 LDFLAGS="$save_LDFLAGS"
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9657 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9659 $as_echo_n "checking for -force_load linker flag... " >&6; }
9660 if ${lt_cv_ld_force_load+:} false; then :
9661 $as_echo_n "(cached) " >&6
9663 lt_cv_ld_force_load=no
9664 cat > conftest.c << _LT_EOF
9665 int forced_loaded() { return 2;}
9667 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9668 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9669 echo "$AR cru libconftest.a conftest.o" >&5
9670 $AR cru libconftest.a conftest.o 2>&5
9671 echo "$RANLIB libconftest.a" >&5
9672 $RANLIB libconftest.a 2>&5
9673 cat > conftest.c << _LT_EOF
9674 int main() { return 0;}
9676 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9677 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9679 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9680 lt_cv_ld_force_load=yes
9682 cat conftest.err >&5
9684 rm -f conftest.err libconftest.a conftest conftest.c
9685 rm -rf conftest.dSYM
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9689 $as_echo "$lt_cv_ld_force_load" >&6; }
9691 rhapsody* | darwin1.[012])
9692 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9694 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9695 darwin*) # darwin 5.x on
9696 # if running on 10.5 or later, the deployment target defaults
9697 # to the OS version, if on x86, and 10.4, the deployment
9698 # target defaults to 10.4. Don't you love it?
9699 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9700 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9701 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9703 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9705 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9709 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9710 _lt_dar_single_mod='$single_module'
9712 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9713 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9715 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9717 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9718 _lt_dsymutil='~$DSYMUTIL $lib || :'
9725 for ac_header in dlfcn.h
9727 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9729 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9730 cat >>confdefs.h <<_ACEOF
9731 #define HAVE_DLFCN_H 1
9741 func_stripname_cnf ()
9744 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9745 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9747 } # func_stripname_cnf
9763 # Check whether --enable-shared was given.
9764 if test "${enable_shared+set}" = set; then :
9765 enableval=$enable_shared; p=${PACKAGE-default}
9767 yes) enable_shared=yes ;;
9768 no) enable_shared=no ;;
9771 # Look at the argument we got. We use all the common list separators.
9772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9773 for pkg in $enableval; do
9775 if test "X$pkg" = "X$p"; then
9794 # Check whether --enable-static was given.
9795 if test "${enable_static+set}" = set; then :
9796 enableval=$enable_static; p=${PACKAGE-default}
9798 yes) enable_static=yes ;;
9799 no) enable_static=no ;;
9802 # Look at the argument we got. We use all the common list separators.
9803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9804 for pkg in $enableval; do
9806 if test "X$pkg" = "X$p"; then
9826 # Check whether --with-pic was given.
9827 if test "${with_pic+set}" = set; then :
9828 withval=$with_pic; pic_mode="$withval"
9834 test -z "$pic_mode" && pic_mode=default
9842 # Check whether --enable-fast-install was given.
9843 if test "${enable_fast_install+set}" = set; then :
9844 enableval=$enable_fast_install; p=${PACKAGE-default}
9846 yes) enable_fast_install=yes ;;
9847 no) enable_fast_install=no ;;
9849 enable_fast_install=no
9850 # Look at the argument we got. We use all the common list separators.
9851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9852 for pkg in $enableval; do
9854 if test "X$pkg" = "X$p"; then
9855 enable_fast_install=yes
9862 enable_fast_install=yes
9875 # This can be used to rebuild libtool when needed
9876 LIBTOOL_DEPS="$ltmain"
9878 # Always use our own libtool.
9879 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9906 test -z "$LN_S" && LN_S="ln -s"
9921 if test -n "${ZSH_VERSION+set}" ; then
9922 setopt NO_GLOB_SUBST
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9926 $as_echo_n "checking for objdir... " >&6; }
9927 if ${lt_cv_objdir+:} false; then :
9928 $as_echo_n "(cached) " >&6
9930 rm -f .libs 2>/dev/null
9931 mkdir .libs 2>/dev/null
9932 if test -d .libs; then
9935 # MS-DOS does not allow filenames that begin with a dot.
9938 rmdir .libs 2>/dev/null
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9941 $as_echo "$lt_cv_objdir" >&6; }
9942 objdir=$lt_cv_objdir
9948 cat >>confdefs.h <<_ACEOF
9949 #define LT_OBJDIR "$lt_cv_objdir/"
9957 # AIX sometimes has problems with the GCC collect2 program. For some
9958 # reason, if we set the COLLECT_NAMES environment variable, the problems
9959 # vanish in a puff of smoke.
9960 if test "X${COLLECT_NAMES+set}" != Xset; then
9962 export COLLECT_NAMES
9969 can_build_shared=yes
9971 # All known linkers require a `.a' archive for static linking (except MSVC,
9972 # which needs '.lib').
9975 with_gnu_ld="$lt_cv_prog_gnu_ld"
9978 old_CFLAGS="$CFLAGS"
9980 # Set sane defaults for various variables
9981 test -z "$CC" && CC=cc
9982 test -z "$LTCC" && LTCC=$CC
9983 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9984 test -z "$LD" && LD=ld
9985 test -z "$ac_objext" && ac_objext=o
9987 for cc_temp in $compiler""; do
9989 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9990 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9995 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9998 # Only perform the check for file, if the check method requires it
9999 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10000 case $deplibs_check_method in
10002 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10004 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10005 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10006 $as_echo_n "(cached) " >&6
10010 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10013 lt_save_MAGIC_CMD="$MAGIC_CMD"
10014 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10015 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10016 for ac_dir in $ac_dummy; do
10018 test -z "$ac_dir" && ac_dir=.
10019 if test -f $ac_dir/${ac_tool_prefix}file; then
10020 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10021 if test -n "$file_magic_test_file"; then
10022 case $deplibs_check_method in
10024 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10026 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10027 $EGREP "$file_magic_regex" > /dev/null; then
10032 *** Warning: the command libtool uses to detect shared libraries,
10033 *** $file_magic_cmd, produces output that libtool cannot recognize.
10034 *** The result is that libtool may fail to recognize shared libraries
10035 *** as such. This will affect the creation of libtool libraries that
10036 *** depend on shared libraries, but programs linked with such libtool
10037 *** libraries will work regardless of this problem. Nevertheless, you
10038 *** may want to report the problem to your system manager and/or to
10039 *** bug-libtool@gnu.org
10049 MAGIC_CMD="$lt_save_MAGIC_CMD"
10054 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10055 if test -n "$MAGIC_CMD"; then
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10057 $as_echo "$MAGIC_CMD" >&6; }
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060 $as_echo "no" >&6; }
10067 if test -z "$lt_cv_path_MAGIC_CMD"; then
10068 if test -n "$ac_tool_prefix"; then
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10070 $as_echo_n "checking for file... " >&6; }
10071 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10072 $as_echo_n "(cached) " >&6
10076 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10079 lt_save_MAGIC_CMD="$MAGIC_CMD"
10080 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10081 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10082 for ac_dir in $ac_dummy; do
10084 test -z "$ac_dir" && ac_dir=.
10085 if test -f $ac_dir/file; then
10086 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10087 if test -n "$file_magic_test_file"; then
10088 case $deplibs_check_method in
10090 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10091 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10092 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10093 $EGREP "$file_magic_regex" > /dev/null; then
10098 *** Warning: the command libtool uses to detect shared libraries,
10099 *** $file_magic_cmd, produces output that libtool cannot recognize.
10100 *** The result is that libtool may fail to recognize shared libraries
10101 *** as such. This will affect the creation of libtool libraries that
10102 *** depend on shared libraries, but programs linked with such libtool
10103 *** libraries will work regardless of this problem. Nevertheless, you
10104 *** may want to report the problem to your system manager and/or to
10105 *** bug-libtool@gnu.org
10115 MAGIC_CMD="$lt_save_MAGIC_CMD"
10120 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10121 if test -n "$MAGIC_CMD"; then
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10123 $as_echo "$MAGIC_CMD" >&6; }
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126 $as_echo "no" >&6; }
10139 # Use C for the default configuration in the libtool script
10143 ac_cpp='$CPP $CPPFLAGS'
10144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10149 # Source file extension for C test sources.
10152 # Object file extension for compiled C test sources.
10156 # Code to be used in simple compile tests
10157 lt_simple_compile_test_code="int some_variable = 0;"
10159 # Code to be used in simple link tests
10160 lt_simple_link_test_code='int main(){return(0);}'
10168 # If no C compiler was specified, use CC.
10171 # If no C compiler flags were specified, use CFLAGS.
10172 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10174 # Allow CC to be a program name with arguments.
10177 # Save the default compiler, since it gets overwritten when the other
10178 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10179 compiler_DEFAULT=$CC
10181 # save warnings/boilerplate of simple test code
10182 ac_outfile=conftest.$ac_objext
10183 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10184 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10185 _lt_compiler_boilerplate=`cat conftest.err`
10188 ac_outfile=conftest.$ac_objext
10189 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10190 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10191 _lt_linker_boilerplate=`cat conftest.err`
10195 if test -n "$compiler"; then
10197 lt_prog_compiler_no_builtin_flag=
10199 if test "$GCC" = yes; then
10200 case $cc_basename in
10202 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10204 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10208 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10209 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10210 $as_echo_n "(cached) " >&6
10212 lt_cv_prog_compiler_rtti_exceptions=no
10213 ac_outfile=conftest.$ac_objext
10214 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10215 lt_compiler_flag="-fno-rtti -fno-exceptions"
10216 # Insert the option either (1) after the last *FLAGS variable, or
10217 # (2) before a word containing "conftest.", or (3) at the end.
10218 # Note that $ac_compile itself does not contain backslashes and begins
10219 # with a dollar sign (not a hyphen), so the echo should work correctly.
10220 # The option is referenced via a variable to avoid confusing sed.
10221 lt_compile=`echo "$ac_compile" | $SED \
10222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10224 -e 's:$: $lt_compiler_flag:'`
10225 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10226 (eval "$lt_compile" 2>conftest.err)
10228 cat conftest.err >&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 if (exit $ac_status) && test -s "$ac_outfile"; then
10231 # The compiler can only warn and ignore the option if not recognized
10232 # So say no if there are warnings other than the usual output.
10233 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10234 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10235 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10236 lt_cv_prog_compiler_rtti_exceptions=yes
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10243 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10245 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10246 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10258 lt_prog_compiler_wl=
10259 lt_prog_compiler_pic=
10260 lt_prog_compiler_static=
10263 if test "$GCC" = yes; then
10264 lt_prog_compiler_wl='-Wl,'
10265 lt_prog_compiler_static='-static'
10269 # All AIX code is PIC.
10270 if test "$host_cpu" = ia64; then
10271 # AIX 5 now supports IA64 processor
10272 lt_prog_compiler_static='-Bstatic'
10279 # see comment about AmigaOS4 .so support
10280 lt_prog_compiler_pic='-fPIC'
10283 # FIXME: we need at least 68020 code to build shared libraries, but
10284 # adding the `-m68020' flag to GCC prevents building anything better,
10286 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10291 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10292 # PIC is the default for these OSes.
10295 mingw* | cygwin* | pw32* | os2* | cegcc*)
10296 # This hack is so that the source file can tell whether it is being
10297 # built for inclusion in a dll (and should export symbols for example).
10298 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10299 # (--disable-auto-import) libraries
10300 lt_prog_compiler_pic='-DDLL_EXPORT'
10303 darwin* | rhapsody*)
10304 # PIC is the default on this platform
10305 # Common symbols not allowed in MH_DYLIB files
10306 lt_prog_compiler_pic='-fno-common'
10310 # PIC is the default for Haiku.
10311 # The "-static" flag exists, but is broken.
10312 lt_prog_compiler_static=
10316 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10317 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10318 # sets the default TLS model and affects inlining.
10324 lt_prog_compiler_pic='-fPIC'
10330 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10331 # Instead, we relocate shared libraries at runtime.
10335 # Just because we use GCC doesn't mean we suddenly get shared libraries
10336 # on systems that don't support them.
10337 lt_prog_compiler_can_build_shared=no
10342 # QNX uses GNU C++, but need to define -shared option too, otherwise
10343 # it will coredump.
10344 lt_prog_compiler_pic='-fPIC -shared'
10348 if test -d /usr/nec; then
10349 lt_prog_compiler_pic=-Kconform_pic
10354 lt_prog_compiler_pic='-fPIC'
10358 case $cc_basename in
10359 nvcc*) # Cuda Compiler Driver 2.2
10360 lt_prog_compiler_wl='-Xlinker '
10361 lt_prog_compiler_pic='-Xcompiler -fPIC'
10365 # PORTME Check for flag to pass linker flags through the system compiler.
10368 lt_prog_compiler_wl='-Wl,'
10369 if test "$host_cpu" = ia64; then
10370 # AIX 5 now supports IA64 processor
10371 lt_prog_compiler_static='-Bstatic'
10373 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10377 mingw* | cygwin* | pw32* | os2* | cegcc*)
10378 # This hack is so that the source file can tell whether it is being
10379 # built for inclusion in a dll (and should export symbols for example).
10380 lt_prog_compiler_pic='-DDLL_EXPORT'
10383 hpux9* | hpux10* | hpux11*)
10384 lt_prog_compiler_wl='-Wl,'
10385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10386 # not for PA HP-UX.
10392 lt_prog_compiler_pic='+Z'
10395 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10396 lt_prog_compiler_static='${wl}-a ${wl}archive'
10399 irix5* | irix6* | nonstopux*)
10400 lt_prog_compiler_wl='-Wl,'
10401 # PIC (with -KPIC) is the default.
10402 lt_prog_compiler_static='-non_shared'
10405 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10406 case $cc_basename in
10407 # old Intel for x86_64 which still supported -KPIC.
10409 lt_prog_compiler_wl='-Wl,'
10410 lt_prog_compiler_pic='-KPIC'
10411 lt_prog_compiler_static='-static'
10413 # icc used to be incompatible with GCC.
10414 # ICC 10 doesn't accept -KPIC any more.
10416 lt_prog_compiler_wl='-Wl,'
10417 lt_prog_compiler_pic='-fPIC'
10418 lt_prog_compiler_static='-static'
10420 # Lahey Fortran 8.1.
10422 lt_prog_compiler_wl='-Wl,'
10423 lt_prog_compiler_pic='--shared'
10424 lt_prog_compiler_static='--static'
10427 # NAG Fortran compiler
10428 lt_prog_compiler_wl='-Wl,-Wl,,'
10429 lt_prog_compiler_pic='-PIC'
10430 lt_prog_compiler_static='-Bstatic'
10432 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10433 # Portland Group compilers (*not* the Pentium gcc compiler,
10434 # which looks to be a dead project)
10435 lt_prog_compiler_wl='-Wl,'
10436 lt_prog_compiler_pic='-fpic'
10437 lt_prog_compiler_static='-Bstatic'
10440 lt_prog_compiler_wl='-Wl,'
10441 # All Alpha code is PIC.
10442 lt_prog_compiler_static='-non_shared'
10444 xl* | bgxl* | bgf* | mpixl*)
10445 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10446 lt_prog_compiler_wl='-Wl,'
10447 lt_prog_compiler_pic='-qpic'
10448 lt_prog_compiler_static='-qstaticlink'
10451 case `$CC -V 2>&1 | sed 5q` in
10452 *Sun\ F* | *Sun*Fortran*)
10453 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10454 lt_prog_compiler_pic='-KPIC'
10455 lt_prog_compiler_static='-Bstatic'
10456 lt_prog_compiler_wl=''
10460 lt_prog_compiler_pic='-KPIC'
10461 lt_prog_compiler_static='-Bstatic'
10462 lt_prog_compiler_wl='-Wl,'
10470 lt_prog_compiler_pic='-KPIC'
10471 lt_prog_compiler_static='-Bstatic'
10475 # QNX uses GNU C++, but need to define -shared option too, otherwise
10476 # it will coredump.
10477 lt_prog_compiler_pic='-fPIC -shared'
10480 osf3* | osf4* | osf5*)
10481 lt_prog_compiler_wl='-Wl,'
10482 # All OSF/1 code is PIC.
10483 lt_prog_compiler_static='-non_shared'
10487 lt_prog_compiler_static='-non_shared'
10491 lt_prog_compiler_pic='-KPIC'
10492 lt_prog_compiler_static='-Bstatic'
10493 case $cc_basename in
10494 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10495 lt_prog_compiler_wl='-Qoption ld ';;
10497 lt_prog_compiler_wl='-Wl,';;
10502 lt_prog_compiler_wl='-Qoption ld '
10503 lt_prog_compiler_pic='-PIC'
10504 lt_prog_compiler_static='-Bstatic'
10507 sysv4 | sysv4.2uw2* | sysv4.3*)
10508 lt_prog_compiler_wl='-Wl,'
10509 lt_prog_compiler_pic='-KPIC'
10510 lt_prog_compiler_static='-Bstatic'
10514 if test -d /usr/nec ;then
10515 lt_prog_compiler_pic='-Kconform_pic'
10516 lt_prog_compiler_static='-Bstatic'
10520 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10521 lt_prog_compiler_wl='-Wl,'
10522 lt_prog_compiler_pic='-KPIC'
10523 lt_prog_compiler_static='-Bstatic'
10527 lt_prog_compiler_wl='-Wl,'
10528 lt_prog_compiler_can_build_shared=no
10532 lt_prog_compiler_pic='-pic'
10533 lt_prog_compiler_static='-Bstatic'
10537 lt_prog_compiler_can_build_shared=no
10543 # For platforms which do not support PIC, -DPIC is meaningless:
10545 lt_prog_compiler_pic=
10548 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10553 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10554 if ${lt_cv_prog_compiler_pic+:} false; then :
10555 $as_echo_n "(cached) " >&6
10557 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10560 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10561 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10564 # Check to make sure the PIC flag actually works.
10566 if test -n "$lt_prog_compiler_pic"; then
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10568 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10569 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10570 $as_echo_n "(cached) " >&6
10572 lt_cv_prog_compiler_pic_works=no
10573 ac_outfile=conftest.$ac_objext
10574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10575 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10576 # Insert the option either (1) after the last *FLAGS variable, or
10577 # (2) before a word containing "conftest.", or (3) at the end.
10578 # Note that $ac_compile itself does not contain backslashes and begins
10579 # with a dollar sign (not a hyphen), so the echo should work correctly.
10580 # The option is referenced via a variable to avoid confusing sed.
10581 lt_compile=`echo "$ac_compile" | $SED \
10582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10584 -e 's:$: $lt_compiler_flag:'`
10585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10586 (eval "$lt_compile" 2>conftest.err)
10588 cat conftest.err >&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 if (exit $ac_status) && test -s "$ac_outfile"; then
10591 # The compiler can only warn and ignore the option if not recognized
10592 # So say no if there are warnings other than the usual output.
10593 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10595 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10596 lt_cv_prog_compiler_pic_works=yes
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10603 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10605 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10606 case $lt_prog_compiler_pic in
10608 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10611 lt_prog_compiler_pic=
10612 lt_prog_compiler_can_build_shared=no
10628 # Check to make sure the static flag actually works.
10630 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10632 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10633 if ${lt_cv_prog_compiler_static_works+:} false; then :
10634 $as_echo_n "(cached) " >&6
10636 lt_cv_prog_compiler_static_works=no
10637 save_LDFLAGS="$LDFLAGS"
10638 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10639 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10640 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10641 # The linker can only warn and ignore the option if not recognized
10642 # So say no if there are warnings
10643 if test -s conftest.err; then
10644 # Append any errors to the config.log.
10645 cat conftest.err 1>&5
10646 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10647 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10648 if diff conftest.exp conftest.er2 >/dev/null; then
10649 lt_cv_prog_compiler_static_works=yes
10652 lt_cv_prog_compiler_static_works=yes
10656 LDFLAGS="$save_LDFLAGS"
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10660 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10662 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10665 lt_prog_compiler_static=
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10675 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10676 if ${lt_cv_prog_compiler_c_o+:} false; then :
10677 $as_echo_n "(cached) " >&6
10679 lt_cv_prog_compiler_c_o=no
10680 $RM -r conftest 2>/dev/null
10684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10686 lt_compiler_flag="-o out/conftest2.$ac_objext"
10687 # Insert the option either (1) after the last *FLAGS variable, or
10688 # (2) before a word containing "conftest.", or (3) at the end.
10689 # Note that $ac_compile itself does not contain backslashes and begins
10690 # with a dollar sign (not a hyphen), so the echo should work correctly.
10691 lt_compile=`echo "$ac_compile" | $SED \
10692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10694 -e 's:$: $lt_compiler_flag:'`
10695 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10696 (eval "$lt_compile" 2>out/conftest.err)
10698 cat out/conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10702 # The compiler can only warn and ignore the option if not recognized
10703 # So say no if there are warnings
10704 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10705 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10706 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10707 lt_cv_prog_compiler_c_o=yes
10712 # SGI C++ compiler will create directory out/ii_files/ for
10713 # template instantiation
10714 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10715 $RM out/* && rmdir out
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10722 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10730 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10731 if ${lt_cv_prog_compiler_c_o+:} false; then :
10732 $as_echo_n "(cached) " >&6
10734 lt_cv_prog_compiler_c_o=no
10735 $RM -r conftest 2>/dev/null
10739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10741 lt_compiler_flag="-o out/conftest2.$ac_objext"
10742 # Insert the option either (1) after the last *FLAGS variable, or
10743 # (2) before a word containing "conftest.", or (3) at the end.
10744 # Note that $ac_compile itself does not contain backslashes and begins
10745 # with a dollar sign (not a hyphen), so the echo should work correctly.
10746 lt_compile=`echo "$ac_compile" | $SED \
10747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10749 -e 's:$: $lt_compiler_flag:'`
10750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10751 (eval "$lt_compile" 2>out/conftest.err)
10753 cat out/conftest.err >&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10757 # The compiler can only warn and ignore the option if not recognized
10758 # So say no if there are warnings
10759 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10760 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10761 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10762 lt_cv_prog_compiler_c_o=yes
10767 # SGI C++ compiler will create directory out/ii_files/ for
10768 # template instantiation
10769 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10770 $RM out/* && rmdir out
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10777 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10782 hard_links="nottested"
10783 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10784 # do not overwrite the value of need_locks provided by the user
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10786 $as_echo_n "checking if we can lock with hard links... " >&6; }
10789 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10791 ln conftest.a conftest.b 2>&5 || hard_links=no
10792 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10794 $as_echo "$hard_links" >&6; }
10795 if test "$hard_links" = no; then
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10797 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10810 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10813 allow_undefined_flag=
10814 always_export_symbols=no
10816 archive_expsym_cmds=
10817 compiler_needs_object=no
10818 enable_shared_with_static_runtimes=no
10819 export_dynamic_flag_spec=
10820 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10821 hardcode_automatic=no
10823 hardcode_direct_absolute=no
10824 hardcode_libdir_flag_spec=
10825 hardcode_libdir_flag_spec_ld=
10826 hardcode_libdir_separator=
10827 hardcode_minus_L=no
10828 hardcode_shlibpath_var=unsupported
10830 link_all_deplibs=unknown
10832 module_expsym_cmds=
10833 old_archive_from_new_cmds=
10834 old_archive_from_expsyms_cmds=
10835 thread_safe_flag_spec=
10836 whole_archive_flag_spec=
10837 # include_expsyms should be a list of space-separated symbols to be *always*
10838 # included in the symbol list
10840 # exclude_expsyms can be an extended regexp of symbols to exclude
10841 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10842 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10843 # as well as any symbol that contains `d'.
10844 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10845 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10846 # platforms (ab)use it in PIC code, but their linkers get confused if
10847 # the symbol is explicitly referenced. Since portable code cannot
10848 # rely on this symbol name, it's probably fine to never include it in
10849 # preloaded symbol tables.
10850 # Exclude shared library initialization/finalization symbols.
10851 extract_expsyms_cmds=
10854 cygwin* | mingw* | pw32* | cegcc*)
10855 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10856 # When not using gcc, we currently assume that we are using
10857 # Microsoft Visual C++.
10858 if test "$GCC" != yes; then
10863 # we just hope/assume this is gcc and not c89 (= MSVC++)
10873 # On some targets, GNU ld is compatible enough with the native linker
10874 # that we're better off using the native interface for both.
10875 lt_use_gnu_ld_interface=no
10876 if test "$with_gnu_ld" = yes; then
10879 # The AIX port of GNU ld has always aspired to compatibility
10880 # with the native linker. However, as the warning in the GNU ld
10881 # block says, versions before 2.19.5* couldn't really create working
10882 # shared libraries, regardless of the interface used.
10883 case `$LD -v 2>&1` in
10884 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10885 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10886 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10888 lt_use_gnu_ld_interface=yes
10893 lt_use_gnu_ld_interface=yes
10898 if test "$lt_use_gnu_ld_interface" = yes; then
10899 # If archive_cmds runs LD, not CC, wlarc should be empty
10902 # Set some defaults for GNU ld with shared library support. These
10903 # are reset later if shared libraries are not supported. Putting them
10904 # here allows them to be overridden if necessary.
10905 runpath_var=LD_RUN_PATH
10906 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10907 export_dynamic_flag_spec='${wl}--export-dynamic'
10908 # ancient GNU ld didn't support --whole-archive et. al.
10909 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10910 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10912 whole_archive_flag_spec=
10914 supports_anon_versioning=no
10915 case `$LD -v 2>&1` in
10916 *GNU\ gold*) supports_anon_versioning=yes ;;
10917 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10918 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10919 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10920 *\ 2.11.*) ;; # other 2.11 versions
10921 *) supports_anon_versioning=yes ;;
10924 # See if GNU ld supports shared libraries.
10927 # On AIX/PPC, the GNU linker is very broken
10928 if test "$host_cpu" != ia64; then
10932 *** Warning: the GNU linker, at least up to release 2.19, is reported
10933 *** to be unable to reliably create shared libraries on AIX.
10934 *** Therefore, libtool is disabling shared libraries support. If you
10935 *** really care for shared libraries, you may want to install binutils
10936 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10937 *** You will then need to restart the configuration process.
10946 # see comment about AmigaOS4 .so support
10947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10948 archive_expsym_cmds=''
10951 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)'
10952 hardcode_libdir_flag_spec='-L$libdir'
10953 hardcode_minus_L=yes
10959 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10960 allow_undefined_flag=unsupported
10961 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10962 # support --undefined. This deserves some investigation. FIXME
10963 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10969 cygwin* | mingw* | pw32* | cegcc*)
10970 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10971 # as there is no search path for DLLs.
10972 hardcode_libdir_flag_spec='-L$libdir'
10973 export_dynamic_flag_spec='${wl}--export-all-symbols'
10974 allow_undefined_flag=unsupported
10975 always_export_symbols=no
10976 enable_shared_with_static_runtimes=yes
10977 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10978 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10980 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10982 # If the export-symbols file already is a .def file (1st line
10983 # is EXPORTS), use it as is; otherwise, prepend...
10984 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10985 cp $export_symbols $output_objdir/$soname.def;
10987 echo EXPORTS > $output_objdir/$soname.def;
10988 cat $export_symbols >> $output_objdir/$soname.def;
10990 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10998 link_all_deplibs=yes
11003 hardcode_shlibpath_var=no
11004 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11005 export_dynamic_flag_spec='${wl}-E'
11006 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11007 # Instead, shared libraries are loaded at an image base (0x10000000 by
11008 # default) and relocated if they conflict, which is a slow very memory
11009 # consuming and fragmenting process. To avoid this, we pick a random,
11010 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11011 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11012 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11013 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'
11016 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11018 if test "$host_os" = linux-dietlibc; then
11019 case $cc_basename in
11020 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11023 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11024 && test "$tmp_diet" = no
11026 tmp_addflag=' $pic_flag'
11027 tmp_sharedflag='-shared'
11028 case $cc_basename,$host_cpu in
11029 pgcc*) # Portland Group C compiler
11030 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11031 tmp_addflag=' $pic_flag'
11033 pgf77* | pgf90* | pgf95* | pgfortran*)
11034 # Portland Group f77 and f90 compilers
11035 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11036 tmp_addflag=' $pic_flag -Mnomain' ;;
11037 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11038 tmp_addflag=' -i_dynamic' ;;
11039 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11040 tmp_addflag=' -i_dynamic -nofor_main' ;;
11041 ifc* | ifort*) # Intel Fortran compiler
11042 tmp_addflag=' -nofor_main' ;;
11043 lf95*) # Lahey Fortran 8.1
11044 whole_archive_flag_spec=
11045 tmp_sharedflag='--shared' ;;
11046 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11047 tmp_sharedflag='-qmkshrobj'
11049 nvcc*) # Cuda Compiler Driver 2.2
11050 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11051 compiler_needs_object=yes
11054 case `$CC -V 2>&1 | sed 5q` in
11055 *Sun\ C*) # Sun C 5.9
11056 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11057 compiler_needs_object=yes
11058 tmp_sharedflag='-G' ;;
11059 *Sun\ F*) # Sun Fortran 8.3
11060 tmp_sharedflag='-G' ;;
11062 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11064 if test "x$supports_anon_versioning" = xyes; then
11065 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11066 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11067 echo "local: *; };" >> $output_objdir/$libname.ver~
11068 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11071 case $cc_basename in
11072 xlf* | bgf* | bgxlf* | mpixlf*)
11073 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11074 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11075 hardcode_libdir_flag_spec=
11076 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11077 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11078 if test "x$supports_anon_versioning" = xyes; then
11079 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11080 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11081 echo "local: *; };" >> $output_objdir/$libname.ver~
11082 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11092 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11093 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11096 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11097 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11102 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11106 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11107 *** create shared libraries on Solaris systems. Therefore, libtool
11108 *** is disabling shared libraries support. We urge you to upgrade GNU
11109 *** binutils to release 2.9.1 or newer. Another option is to modify
11110 *** your PATH or compiler configuration so that the native linker is
11111 *** used, and then restart.
11114 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11115 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11116 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11122 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11123 case `$LD -v 2>&1` in
11124 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11128 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11129 *** reliably create shared libraries on SCO systems. Therefore, libtool
11130 *** is disabling shared libraries support. We urge you to upgrade GNU
11131 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11132 *** your PATH or compiler configuration so that the native linker is
11133 *** used, and then restart.
11138 # For security reasons, it is highly recommended that you always
11139 # use absolute paths for naming shared libraries, and exclude the
11140 # DT_RUNPATH tag from executables and libraries. But doing so
11141 # requires that you compile everything twice, which is a pain.
11142 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11145 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11154 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11156 hardcode_direct=yes
11157 hardcode_shlibpath_var=no
11161 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11162 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11163 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11170 if test "$ld_shlibs" = no; then
11172 hardcode_libdir_flag_spec=
11173 export_dynamic_flag_spec=
11174 whole_archive_flag_spec=
11177 # PORTME fill in a description of your system's linker (not GNU ld)
11180 allow_undefined_flag=unsupported
11181 always_export_symbols=yes
11182 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'
11183 # Note: this linker hardcodes the directories in LIBPATH if there
11184 # are no directories specified by -L.
11185 hardcode_minus_L=yes
11186 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11187 # Neither direct hardcoding nor static linking is supported with a
11189 hardcode_direct=unsupported
11194 if test "$host_cpu" = ia64; then
11195 # On IA64, the linker does run time linking by default, so we don't
11196 # have to do anything special.
11197 aix_use_runtimelinking=no
11198 exp_sym_flag='-Bexport'
11201 # If we're using GNU nm, then we don't want the "-C" option.
11202 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11203 # Also, AIX nm treats weak defined symbols like other global
11204 # defined symbols, whereas GNU nm marks them as "W".
11205 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11206 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11208 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'
11210 aix_use_runtimelinking=no
11212 # Test if we are trying to use run time linking or normal
11213 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11214 # need to do runtime linking.
11215 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11216 for ld_flag in $LDFLAGS; do
11217 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11218 aix_use_runtimelinking=yes
11225 exp_sym_flag='-bexport'
11226 no_entry_flag='-bnoentry'
11229 # When large executables or shared objects are built, AIX ld can
11230 # have problems creating the table of contents. If linking a library
11231 # or program results in "error TOC overflow" add -mminimal-toc to
11232 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11233 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11236 hardcode_direct=yes
11237 hardcode_direct_absolute=yes
11238 hardcode_libdir_separator=':'
11239 link_all_deplibs=yes
11240 file_list_spec='${wl}-f,'
11242 if test "$GCC" = yes; then
11243 case $host_os in aix4.[012]|aix4.[012].*)
11244 # We only want to do this on AIX 4.2 and lower, the check
11245 # below for broken collect2 doesn't work under 4.3+
11246 collect2name=`${CC} -print-prog-name=collect2`
11247 if test -f "$collect2name" &&
11248 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11250 # We have reworked collect2
11253 # We have old collect2
11254 hardcode_direct=unsupported
11255 # It fails to find uninstalled libraries when the uninstalled
11256 # path is not listed in the libpath. Setting hardcode_minus_L
11257 # to unsupported forces relinking
11258 hardcode_minus_L=yes
11259 hardcode_libdir_flag_spec='-L$libdir'
11260 hardcode_libdir_separator=
11264 shared_flag='-shared'
11265 if test "$aix_use_runtimelinking" = yes; then
11266 shared_flag="$shared_flag "'${wl}-G'
11270 if test "$host_cpu" = ia64; then
11271 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11272 # chokes on -Wl,-G. The following line is correct:
11275 if test "$aix_use_runtimelinking" = yes; then
11276 shared_flag='${wl}-G'
11278 shared_flag='${wl}-bM:SRE'
11283 export_dynamic_flag_spec='${wl}-bexpall'
11284 # It seems that -bexpall does not export symbols beginning with
11285 # underscore (_), so it is better to generate a list of symbols to export.
11286 always_export_symbols=yes
11287 if test "$aix_use_runtimelinking" = yes; then
11288 # Warning - without using the other runtime loading flags (-brtl),
11289 # -berok will link without error, but may produce a broken library.
11290 allow_undefined_flag='-berok'
11291 # Determine the default libpath from the value encoded in an
11292 # empty executable.
11293 if test "${lt_cv_aix_libpath+set}" = set; then
11294 aix_libpath=$lt_cv_aix_libpath
11296 if ${lt_cv_aix_libpath_+:} false; then :
11297 $as_echo_n "(cached) " >&6
11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11310 if ac_fn_c_try_link "$LINENO"; then :
11312 lt_aix_libpath_sed='
11313 /Import File Strings/,/^$/ {
11315 s/^0 *\([^ ]*\) *$/\1/
11319 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11320 # Check for a 64-bit object if we didn't find anything.
11321 if test -z "$lt_cv_aix_libpath_"; then
11322 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11325 rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327 if test -z "$lt_cv_aix_libpath_"; then
11328 lt_cv_aix_libpath_="/usr/lib:/lib"
11333 aix_libpath=$lt_cv_aix_libpath_
11336 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11337 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11339 if test "$host_cpu" = ia64; then
11340 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11341 allow_undefined_flag="-z nodefs"
11342 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"
11344 # Determine the default libpath from the value encoded in an
11345 # empty executable.
11346 if test "${lt_cv_aix_libpath+set}" = set; then
11347 aix_libpath=$lt_cv_aix_libpath
11349 if ${lt_cv_aix_libpath_+:} false; then :
11350 $as_echo_n "(cached) " >&6
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11363 if ac_fn_c_try_link "$LINENO"; then :
11365 lt_aix_libpath_sed='
11366 /Import File Strings/,/^$/ {
11368 s/^0 *\([^ ]*\) *$/\1/
11372 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11373 # Check for a 64-bit object if we didn't find anything.
11374 if test -z "$lt_cv_aix_libpath_"; then
11375 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11378 rm -f core conftest.err conftest.$ac_objext \
11379 conftest$ac_exeext conftest.$ac_ext
11380 if test -z "$lt_cv_aix_libpath_"; then
11381 lt_cv_aix_libpath_="/usr/lib:/lib"
11386 aix_libpath=$lt_cv_aix_libpath_
11389 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11390 # Warning - without using the other run time loading flags,
11391 # -berok will link without error, but may produce a broken library.
11392 no_undefined_flag=' ${wl}-bernotok'
11393 allow_undefined_flag=' ${wl}-berok'
11394 if test "$with_gnu_ld" = yes; then
11395 # We only use this code for GNU lds that support --whole-archive.
11396 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11398 # Exported symbols can be pulled into shared objects from archives
11399 whole_archive_flag_spec='$convenience'
11401 archive_cmds_need_lc=yes
11402 # This is similar to how AIX traditionally builds its shared libraries.
11403 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'
11411 # see comment about AmigaOS4 .so support
11412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11413 archive_expsym_cmds=''
11416 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)'
11417 hardcode_libdir_flag_spec='-L$libdir'
11418 hardcode_minus_L=yes
11424 export_dynamic_flag_spec=-rdynamic
11427 cygwin* | mingw* | pw32* | cegcc*)
11428 # When not using gcc, we currently assume that we are using
11429 # Microsoft Visual C++.
11430 # hardcode_libdir_flag_spec is actually meaningless, as there is
11431 # no search path for DLLs.
11432 case $cc_basename in
11435 hardcode_libdir_flag_spec=' '
11436 allow_undefined_flag=unsupported
11437 always_export_symbols=yes
11439 # Tell ltmain to make .lib files, not .a files.
11441 # Tell ltmain to make .dll files, not .so files.
11443 # FIXME: Setting linknames here is a bad hack.
11444 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11445 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11446 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11448 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11450 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11452 # The linker will not automatically build a static lib if we build a DLL.
11453 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11454 enable_shared_with_static_runtimes=yes
11455 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11457 old_postinstall_cmds='chmod 644 $oldlib'
11458 postlink_cmds='lt_outputfile="@OUTPUT@"~
11459 lt_tool_outputfile="@TOOL_OUTPUT@"~
11460 case $lt_outputfile in
11463 lt_outputfile="$lt_outputfile.exe"
11464 lt_tool_outputfile="$lt_tool_outputfile.exe"
11467 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11468 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11469 $RM "$lt_outputfile.manifest";
11473 # Assume MSVC wrapper
11474 hardcode_libdir_flag_spec=' '
11475 allow_undefined_flag=unsupported
11476 # Tell ltmain to make .lib files, not .a files.
11478 # Tell ltmain to make .dll files, not .so files.
11480 # FIXME: Setting linknames here is a bad hack.
11481 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11482 # The linker will automatically build a .lib file if we build a DLL.
11483 old_archive_from_new_cmds='true'
11484 # FIXME: Should let the user specify the lib program.
11485 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11486 enable_shared_with_static_runtimes=yes
11491 darwin* | rhapsody*)
11494 archive_cmds_need_lc=no
11496 hardcode_automatic=yes
11497 hardcode_shlibpath_var=unsupported
11498 if test "$lt_cv_ld_force_load" = "yes"; then
11499 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11501 whole_archive_flag_spec=''
11503 link_all_deplibs=yes
11504 allow_undefined_flag="$_lt_dar_allow_undefined"
11505 case $cc_basename in
11506 ifort*) _lt_dar_can_shared=yes ;;
11507 *) _lt_dar_can_shared=$GCC ;;
11509 if test "$_lt_dar_can_shared" = "yes"; then
11510 output_verbose_link_cmd=func_echo_all
11511 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11512 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11513 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11514 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11524 hardcode_libdir_flag_spec='-L$libdir'
11525 hardcode_shlibpath_var=no
11532 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11533 # support. Future versions do this automatically, but an explicit c++rt0.o
11534 # does not break anything, and helps significantly (at the cost of a little
11537 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11538 hardcode_libdir_flag_spec='-R$libdir'
11539 hardcode_direct=yes
11540 hardcode_shlibpath_var=no
11543 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11546 hardcode_direct=yes
11547 hardcode_minus_L=yes
11548 hardcode_shlibpath_var=no
11551 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11552 freebsd* | dragonfly*)
11553 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11554 hardcode_libdir_flag_spec='-R$libdir'
11555 hardcode_direct=yes
11556 hardcode_shlibpath_var=no
11560 if test "$GCC" = yes; then
11561 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11563 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'
11565 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11566 hardcode_libdir_separator=:
11567 hardcode_direct=yes
11569 # hardcode_minus_L: Not really in the search PATH,
11570 # but as the default location of the library.
11571 hardcode_minus_L=yes
11572 export_dynamic_flag_spec='${wl}-E'
11576 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11577 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11579 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11581 if test "$with_gnu_ld" = no; then
11582 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11583 hardcode_libdir_flag_spec_ld='+b $libdir'
11584 hardcode_libdir_separator=:
11585 hardcode_direct=yes
11586 hardcode_direct_absolute=yes
11587 export_dynamic_flag_spec='${wl}-E'
11588 # hardcode_minus_L: Not really in the search PATH,
11589 # but as the default location of the library.
11590 hardcode_minus_L=yes
11595 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11598 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11601 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11604 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11610 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11613 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11617 # Older versions of the 11.00 compiler do not understand -b yet
11618 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11620 $as_echo_n "checking if $CC understands -b... " >&6; }
11621 if ${lt_cv_prog_compiler__b+:} false; then :
11622 $as_echo_n "(cached) " >&6
11624 lt_cv_prog_compiler__b=no
11625 save_LDFLAGS="$LDFLAGS"
11626 LDFLAGS="$LDFLAGS -b"
11627 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11628 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11629 # The linker can only warn and ignore the option if not recognized
11630 # So say no if there are warnings
11631 if test -s conftest.err; then
11632 # Append any errors to the config.log.
11633 cat conftest.err 1>&5
11634 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11635 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11636 if diff conftest.exp conftest.er2 >/dev/null; then
11637 lt_cv_prog_compiler__b=yes
11640 lt_cv_prog_compiler__b=yes
11644 LDFLAGS="$save_LDFLAGS"
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11648 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11650 if test x"$lt_cv_prog_compiler__b" = xyes; then
11651 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11653 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11659 if test "$with_gnu_ld" = no; then
11660 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11661 hardcode_libdir_separator=:
11666 hardcode_shlibpath_var=no
11669 hardcode_direct=yes
11670 hardcode_direct_absolute=yes
11671 export_dynamic_flag_spec='${wl}-E'
11673 # hardcode_minus_L: Not really in the search PATH,
11674 # but as the default location of the library.
11675 hardcode_minus_L=yes
11681 irix5* | irix6* | nonstopux*)
11682 if test "$GCC" = yes; then
11683 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11684 # Try to use the -exported_symbol ld option, if it does not
11685 # work, assume that -exports_file does not work either and
11686 # implicitly export all symbols.
11687 # This should be the same for all languages, so no per-tag cache variable.
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11689 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11690 if ${lt_cv_irix_exported_symbol+:} false; then :
11691 $as_echo_n "(cached) " >&6
11693 save_LDFLAGS="$LDFLAGS"
11694 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11696 /* end confdefs.h. */
11697 int foo (void) { return 0; }
11699 if ac_fn_c_try_link "$LINENO"; then :
11700 lt_cv_irix_exported_symbol=yes
11702 lt_cv_irix_exported_symbol=no
11704 rm -f core conftest.err conftest.$ac_objext \
11705 conftest$ac_exeext conftest.$ac_ext
11706 LDFLAGS="$save_LDFLAGS"
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11709 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11710 if test "$lt_cv_irix_exported_symbol" = yes; then
11711 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11715 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11717 archive_cmds_need_lc='no'
11718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11719 hardcode_libdir_separator=:
11721 link_all_deplibs=yes
11725 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11728 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11730 hardcode_libdir_flag_spec='-R$libdir'
11731 hardcode_direct=yes
11732 hardcode_shlibpath_var=no
11736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11737 hardcode_direct=yes
11738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11739 hardcode_libdir_separator=:
11740 hardcode_shlibpath_var=no
11747 if test -f /usr/libexec/ld.so; then
11748 hardcode_direct=yes
11749 hardcode_shlibpath_var=no
11750 hardcode_direct_absolute=yes
11751 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11752 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11753 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11754 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11755 export_dynamic_flag_spec='${wl}-E'
11758 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11760 hardcode_libdir_flag_spec='-R$libdir'
11763 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11764 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11774 hardcode_libdir_flag_spec='-L$libdir'
11775 hardcode_minus_L=yes
11776 allow_undefined_flag=unsupported
11777 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'
11778 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11782 if test "$GCC" = yes; then
11783 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11784 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11786 allow_undefined_flag=' -expect_unresolved \*'
11787 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11789 archive_cmds_need_lc='no'
11790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11791 hardcode_libdir_separator=:
11794 osf4* | osf5*) # as osf3* with the addition of -msym flag
11795 if test "$GCC" = yes; then
11796 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11797 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11800 allow_undefined_flag=' -expect_unresolved \*'
11801 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11802 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11803 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11805 # Both c and cxx compiler support -rpath directly
11806 hardcode_libdir_flag_spec='-rpath $libdir'
11808 archive_cmds_need_lc='no'
11809 hardcode_libdir_separator=:
11813 no_undefined_flag=' -z defs'
11814 if test "$GCC" = yes; then
11816 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11817 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11818 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11820 case `$CC -V 2>&1` in
11823 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11824 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11825 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11829 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11830 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11831 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11835 hardcode_libdir_flag_spec='-R$libdir'
11836 hardcode_shlibpath_var=no
11838 solaris2.[0-5] | solaris2.[0-5].*) ;;
11840 # The compiler driver will combine and reorder linker options,
11841 # but understands `-z linker_flag'. GCC discards it without `$wl',
11842 # but is careful enough not to reorder.
11843 # Supported since Solaris 2.6 (maybe 2.5.1?)
11844 if test "$GCC" = yes; then
11845 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11847 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11851 link_all_deplibs=yes
11855 if test "x$host_vendor" = xsequent; then
11856 # Use $CC to link under sequent, because it throws in some extra .o
11857 # files that make .init and .fini sections work.
11858 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11860 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11862 hardcode_libdir_flag_spec='-L$libdir'
11863 hardcode_direct=yes
11864 hardcode_minus_L=yes
11865 hardcode_shlibpath_var=no
11869 case $host_vendor in
11871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11872 hardcode_direct=yes # is this really true???
11875 ## LD is ld it makes a PLAMLIB
11876 ## CC just makes a GrossModule.
11877 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11878 reload_cmds='$CC -r -o $output$reload_objs'
11882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11883 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11886 runpath_var='LD_RUN_PATH'
11887 hardcode_shlibpath_var=no
11891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11892 hardcode_shlibpath_var=no
11893 export_dynamic_flag_spec='-Bexport'
11897 if test -d /usr/nec; then
11898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11899 hardcode_shlibpath_var=no
11900 runpath_var=LD_RUN_PATH
11901 hardcode_runpath_var=yes
11906 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11907 no_undefined_flag='${wl}-z,text'
11908 archive_cmds_need_lc=no
11909 hardcode_shlibpath_var=no
11910 runpath_var='LD_RUN_PATH'
11912 if test "$GCC" = yes; then
11913 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11914 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11916 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11917 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11921 sysv5* | sco3.2v5* | sco5v6*)
11922 # Note: We can NOT use -z defs as we might desire, because we do not
11923 # link with -lc, and that would cause any symbols used from libc to
11924 # always be unresolved, which means just about no library would
11925 # ever link correctly. If we're not using GNU ld we use -z text
11926 # though, which does catch some bad symbols but isn't as heavy-handed
11928 no_undefined_flag='${wl}-z,text'
11929 allow_undefined_flag='${wl}-z,nodefs'
11930 archive_cmds_need_lc=no
11931 hardcode_shlibpath_var=no
11932 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11933 hardcode_libdir_separator=':'
11934 link_all_deplibs=yes
11935 export_dynamic_flag_spec='${wl}-Bexport'
11936 runpath_var='LD_RUN_PATH'
11938 if test "$GCC" = yes; then
11939 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11940 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11942 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11943 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11949 hardcode_libdir_flag_spec='-L$libdir'
11950 hardcode_shlibpath_var=no
11958 if test x$host_vendor = xsni; then
11960 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11961 export_dynamic_flag_spec='${wl}-Blargedynsym'
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11968 $as_echo "$ld_shlibs" >&6; }
11969 test "$ld_shlibs" = no && can_build_shared=no
11971 with_gnu_ld=$with_gnu_ld
11988 # Do we need to explicitly link libc?
11990 case "x$archive_cmds_need_lc" in
11992 # Assume -lc should be added
11993 archive_cmds_need_lc=yes
11995 if test "$enable_shared" = yes && test "$GCC" = yes; then
11996 case $archive_cmds in
11998 # FIXME: we may have to deal with multi-command sequences.
12001 # Test whether the compiler implicitly links with -lc since on some
12002 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12003 # to ld, don't add -lc before -lgcc.
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12005 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12006 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12007 $as_echo_n "(cached) " >&6
12010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12013 (eval $ac_compile) 2>&5
12015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12016 test $ac_status = 0; } 2>conftest.err; then
12019 libobjs=conftest.$ac_objext
12021 wl=$lt_prog_compiler_wl
12022 pic_flag=$lt_prog_compiler_pic
12028 lt_save_allow_undefined_flag=$allow_undefined_flag
12029 allow_undefined_flag=
12030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12031 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12034 test $ac_status = 0; }
12036 lt_cv_archive_cmds_need_lc=no
12038 lt_cv_archive_cmds_need_lc=yes
12040 allow_undefined_flag=$lt_save_allow_undefined_flag
12042 cat conftest.err 1>&5
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12048 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12049 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12213 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12215 if test "$GCC" = yes; then
12217 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12218 *) lt_awk_arg="/^libraries:/" ;;
12221 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12222 *) lt_sed_strip_eq="s,=/,/,g" ;;
12224 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12225 case $lt_search_path_spec in
12227 # if the path contains ";" then we assume it to be the separator
12228 # otherwise default to the standard path separator (i.e. ":") - it is
12229 # assumed that no part of a normal pathname contains ";" but that should
12230 # okay in the real world where ";" in dirpaths is itself problematic.
12231 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12234 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12237 # Ok, now we have the path, separated by spaces, we can step through it
12238 # and add multilib dir if necessary.
12239 lt_tmp_lt_search_path_spec=
12240 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12241 for lt_sys_path in $lt_search_path_spec; do
12242 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12243 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12245 test -d "$lt_sys_path" && \
12246 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12249 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12250 BEGIN {RS=" "; FS="/|\n";} {
12253 for (lt_i = NF; lt_i > 0; lt_i--) {
12254 if ($lt_i != "" && $lt_i != ".") {
12255 if ($lt_i == "..") {
12258 if (lt_count == 0) {
12259 lt_foo="/" $lt_i lt_foo;
12266 if (lt_foo != "") { lt_freq[lt_foo]++; }
12267 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12269 # AWK program above erroneously prepends '/' to C:/dos/paths
12272 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12273 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12275 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12277 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12279 library_names_spec=
12280 libname_spec='lib$name'
12284 postuninstall_cmds=
12288 shlibpath_overrides_runpath=unknown
12290 dynamic_linker="$host_os ld.so"
12291 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12292 need_lib_prefix=unknown
12293 hardcode_into_libs=no
12295 # when you set need_version to no, make sure it does not cause -set_version
12296 # flags to be left without arguments
12297 need_version=unknown
12302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12303 shlibpath_var=LIBPATH
12305 # AIX 3 has no versioning support, so we append a major version to the name.
12306 soname_spec='${libname}${release}${shared_ext}$major'
12313 hardcode_into_libs=yes
12314 if test "$host_cpu" = ia64; then
12315 # AIX 5 supports IA64
12316 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12317 shlibpath_var=LD_LIBRARY_PATH
12319 # With GCC up to 2.95.x, collect2 would create an import file
12320 # for dependence libraries. The import file would start with
12321 # the line `#! .'. This would cause the generated library to
12322 # depend on `.', always an invalid library. This was fixed in
12323 # development snapshots of GCC prior to 3.0.
12325 aix4 | aix4.[01] | aix4.[01].*)
12326 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12328 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12331 can_build_shared=no
12335 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12336 # soname into executable. Probably we can add versioning support to
12337 # collect2, so additional links can be useful in future.
12338 if test "$aix_use_runtimelinking" = yes; then
12339 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12340 # instead of lib<name>.a to let people know that these are not
12341 # typical AIX shared libraries.
12342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12344 # We preserve .a as extension for shared libraries through AIX4.2
12345 # and later when we are not doing run time linking.
12346 library_names_spec='${libname}${release}.a $libname.a'
12347 soname_spec='${libname}${release}${shared_ext}$major'
12349 shlibpath_var=LIBPATH
12356 # Since July 2007 AmigaOS4 officially supports .so libraries.
12357 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12361 library_names_spec='$libname.ixlibrary $libname.a'
12362 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12363 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
12369 library_names_spec='${libname}${shared_ext}'
12370 dynamic_linker="$host_os ld.so"
12371 shlibpath_var=LIBRARY_PATH
12377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12378 soname_spec='${libname}${release}${shared_ext}$major'
12379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12380 shlibpath_var=LD_LIBRARY_PATH
12381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12383 # the default ld.so.conf also contains /usr/contrib/lib and
12384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12385 # libtool to hard-code these into programs
12388 cygwin* | mingw* | pw32* | cegcc*)
12389 version_type=windows
12394 case $GCC,$cc_basename in
12397 library_names_spec='$libname.dll.a'
12398 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12399 postinstall_cmds='base_file=`basename \${file}`~
12400 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12401 dldir=$destdir/`dirname \$dlpath`~
12402 test -d \$dldir || mkdir -p \$dldir~
12403 $install_prog $dir/$dlname \$dldir/$dlname~
12404 chmod a+x \$dldir/$dlname~
12405 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12406 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12408 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12409 dlpath=$dir/\$dldll~
12411 shlibpath_overrides_runpath=yes
12415 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12416 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12418 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12421 # MinGW DLLs use traditional 'lib' prefix
12422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12425 # pw32 DLLs use 'pw' prefix rather than 'lib'
12426 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12429 dynamic_linker='Win32 ld.exe'
12434 libname_spec='$name'
12435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12436 library_names_spec='${libname}.dll.lib'
12440 sys_lib_search_path_spec=
12443 for lt_path in $LIB
12446 # Let DOS variable expansion print the short 8.3 style file name.
12447 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12448 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12451 # Convert to MSYS style.
12452 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12455 # Convert to unix form, then to dos form, then back to unix form
12456 # but this time dos style (no spaces!) so that the unix form looks
12457 # like /cygdrive/c/PROGRA~1:/cygdr...
12458 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12459 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12460 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12463 sys_lib_search_path_spec="$LIB"
12464 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12465 # It is most probably a Windows format PATH.
12466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12470 # FIXME: find the short name or the path components, as spaces are
12471 # common. (e.g. "Program Files" -> "PROGRA~1")
12475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12476 postinstall_cmds='base_file=`basename \${file}`~
12477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12478 dldir=$destdir/`dirname \$dlpath`~
12479 test -d \$dldir || mkdir -p \$dldir~
12480 $install_prog $dir/$dlname \$dldir/$dlname'
12481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12482 dlpath=$dir/\$dldll~
12484 shlibpath_overrides_runpath=yes
12485 dynamic_linker='Win32 link.exe'
12489 # Assume MSVC wrapper
12490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12491 dynamic_linker='Win32 ld.exe'
12494 # FIXME: first we should search . and the directory the executable is in
12498 darwin* | rhapsody*)
12499 dynamic_linker="$host_os dyld"
12500 version_type=darwin
12503 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12504 soname_spec='${libname}${release}${major}$shared_ext'
12505 shlibpath_overrides_runpath=yes
12506 shlibpath_var=DYLD_LIBRARY_PATH
12507 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12509 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12510 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12518 soname_spec='${libname}${release}${shared_ext}$major'
12519 shlibpath_var=LD_LIBRARY_PATH
12526 freebsd* | dragonfly*)
12527 # DragonFly does not have aout. When/if they implement a new
12528 # versioning mechanism, adjust this.
12529 if test -x /usr/bin/objformat; then
12530 objformat=`/usr/bin/objformat`
12533 freebsd[123]*) objformat=aout ;;
12534 *) objformat=elf ;;
12537 version_type=freebsd-$objformat
12538 case $version_type in
12540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12549 shlibpath_var=LD_LIBRARY_PATH
12552 shlibpath_overrides_runpath=yes
12554 freebsd3.[01]* | freebsdelf3.[01]*)
12555 shlibpath_overrides_runpath=yes
12556 hardcode_into_libs=yes
12558 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12559 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12560 shlibpath_overrides_runpath=no
12561 hardcode_into_libs=yes
12563 *) # from 4.6 on, and DragonFly
12564 shlibpath_overrides_runpath=yes
12565 hardcode_into_libs=yes
12574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12575 soname_spec='${libname}${release}${shared_ext}$major'
12576 shlibpath_var=LD_LIBRARY_PATH
12577 hardcode_into_libs=yes
12584 dynamic_linker="$host_os runtime_loader"
12585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12586 soname_spec='${libname}${release}${shared_ext}$major'
12587 shlibpath_var=LIBRARY_PATH
12588 shlibpath_overrides_runpath=yes
12589 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12590 hardcode_into_libs=yes
12593 hpux9* | hpux10* | hpux11*)
12594 # Give a soname corresponding to the major version so that dld.sl refuses to
12595 # link against other versions.
12602 hardcode_into_libs=yes
12603 dynamic_linker="$host_os dld.so"
12604 shlibpath_var=LD_LIBRARY_PATH
12605 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12607 soname_spec='${libname}${release}${shared_ext}$major'
12608 if test "X$HPUX_IA64_MODE" = X32; then
12609 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12611 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12617 hardcode_into_libs=yes
12618 dynamic_linker="$host_os dld.sl"
12619 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12622 soname_spec='${libname}${release}${shared_ext}$major'
12623 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12628 dynamic_linker="$host_os dld.sl"
12629 shlibpath_var=SHLIB_PATH
12630 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12632 soname_spec='${libname}${release}${shared_ext}$major'
12635 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12636 postinstall_cmds='chmod 555 $lib'
12637 # or fails outright, so override atomically:
12638 install_override_mode=555
12645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12646 soname_spec='${libname}${release}${shared_ext}$major'
12647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12648 shlibpath_var=LD_LIBRARY_PATH
12649 shlibpath_overrides_runpath=no
12650 hardcode_into_libs=yes
12653 irix5* | irix6* | nonstopux*)
12655 nonstopux*) version_type=nonstopux ;;
12657 if test "$lt_cv_prog_gnu_ld" = yes; then
12665 soname_spec='${libname}${release}${shared_ext}$major'
12666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12668 irix5* | nonstopux*)
12669 libsuff= shlibsuff=
12672 case $LD in # libtool.m4 will add one of these switches to LD
12673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12674 libsuff= shlibsuff= libmagic=32-bit;;
12675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12676 libsuff=32 shlibsuff=N32 libmagic=N32;;
12677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12678 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12679 *) libsuff= shlibsuff= libmagic=never-match;;
12683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12684 shlibpath_overrides_runpath=no
12685 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12686 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12687 hardcode_into_libs=yes
12690 # No shared lib support for Linux oldld, aout, or coff.
12691 linux*oldld* | linux*aout* | linux*coff*)
12695 # This must be Linux ELF.
12696 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12701 soname_spec='${libname}${release}${shared_ext}$major'
12702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12703 shlibpath_var=LD_LIBRARY_PATH
12704 shlibpath_overrides_runpath=no
12706 # Some binutils ld are patched to set DT_RUNPATH
12707 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12708 $as_echo_n "(cached) " >&6
12710 lt_cv_shlibpath_overrides_runpath=no
12711 save_LDFLAGS=$LDFLAGS
12712 save_libdir=$libdir
12713 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12714 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h. */
12726 if ac_fn_c_try_link "$LINENO"; then :
12727 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12728 lt_cv_shlibpath_overrides_runpath=yes
12731 rm -f core conftest.err conftest.$ac_objext \
12732 conftest$ac_exeext conftest.$ac_ext
12733 LDFLAGS=$save_LDFLAGS
12734 libdir=$save_libdir
12738 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12740 # This implies no fast_install, which is unacceptable.
12741 # Some rework will be needed to allow for fast_install
12742 # before this can be enabled.
12743 hardcode_into_libs=yes
12745 # Add ABI-specific directories to the system library path.
12746 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12748 # Append ld.so.conf contents to the search path
12749 if test -f /etc/ld.so.conf; then
12750 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12751 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12755 # We used to test for /lib/ld.so.1 and disable shared libraries on
12756 # powerpc, because MkLinux only supported shared libraries with the
12757 # GNU dynamic linker. Since this was broken with cross compilers,
12758 # most powerpc-linux boxes support dynamic linking these days and
12759 # people can always --disable-shared, the test was removed, and we
12760 # assume the GNU/Linux dynamic linker is in use.
12761 dynamic_linker='GNU/Linux ld.so'
12768 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12771 dynamic_linker='NetBSD (a.out) ld.so'
12773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12774 soname_spec='${libname}${release}${shared_ext}$major'
12775 dynamic_linker='NetBSD ld.elf_so'
12777 shlibpath_var=LD_LIBRARY_PATH
12778 shlibpath_overrides_runpath=yes
12779 hardcode_into_libs=yes
12784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12785 shlibpath_var=LD_LIBRARY_PATH
12786 shlibpath_overrides_runpath=yes
12793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12794 soname_spec='${libname}${release}${shared_ext}$major'
12795 shlibpath_var=LD_LIBRARY_PATH
12796 shlibpath_overrides_runpath=no
12797 hardcode_into_libs=yes
12798 dynamic_linker='ldqnx.so'
12803 sys_lib_dlsearch_path_spec="/usr/lib"
12805 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12807 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12808 *) need_version=no ;;
12810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12812 shlibpath_var=LD_LIBRARY_PATH
12813 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12815 openbsd2.[89] | openbsd2.[89].*)
12816 shlibpath_overrides_runpath=no
12819 shlibpath_overrides_runpath=yes
12823 shlibpath_overrides_runpath=yes
12828 libname_spec='$name'
12831 library_names_spec='$libname${shared_ext} $libname.a'
12832 dynamic_linker='OS/2 ld.exe'
12833 shlibpath_var=LIBPATH
12836 osf3* | osf4* | osf5*)
12840 soname_spec='${libname}${release}${shared_ext}$major'
12841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12842 shlibpath_var=LD_LIBRARY_PATH
12843 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12844 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12856 soname_spec='${libname}${release}${shared_ext}$major'
12857 shlibpath_var=LD_LIBRARY_PATH
12858 shlibpath_overrides_runpath=yes
12859 hardcode_into_libs=yes
12860 # ldd complains unless libraries are executable
12861 postinstall_cmds='chmod +x $lib'
12866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12867 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12868 shlibpath_var=LD_LIBRARY_PATH
12869 shlibpath_overrides_runpath=yes
12870 if test "$with_gnu_ld" = yes; then
12878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12879 soname_spec='${libname}${release}${shared_ext}$major'
12880 shlibpath_var=LD_LIBRARY_PATH
12881 case $host_vendor in
12883 shlibpath_overrides_runpath=no
12885 runpath_var=LD_RUN_PATH
12893 shlibpath_overrides_runpath=no
12894 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12900 if test -d /usr/nec ;then
12902 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12903 soname_spec='$libname${shared_ext}.$major'
12904 shlibpath_var=LD_LIBRARY_PATH
12908 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12909 version_type=freebsd-elf
12912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12913 soname_spec='${libname}${release}${shared_ext}$major'
12914 shlibpath_var=LD_LIBRARY_PATH
12915 shlibpath_overrides_runpath=yes
12916 hardcode_into_libs=yes
12917 if test "$with_gnu_ld" = yes; then
12918 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12920 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12923 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12927 sys_lib_dlsearch_path_spec='/usr/lib'
12931 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936 shlibpath_var=LD_LIBRARY_PATH
12937 shlibpath_overrides_runpath=no
12938 hardcode_into_libs=yes
12943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12944 soname_spec='${libname}${release}${shared_ext}$major'
12945 shlibpath_var=LD_LIBRARY_PATH
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12953 $as_echo "$dynamic_linker" >&6; }
12954 test "$dynamic_linker" = no && can_build_shared=no
12956 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12957 if test "$GCC" = yes; then
12958 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12961 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12962 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12964 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12965 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13060 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13062 if test -n "$hardcode_libdir_flag_spec" ||
13063 test -n "$runpath_var" ||
13064 test "X$hardcode_automatic" = "Xyes" ; then
13066 # We can hardcode non-existent directories.
13067 if test "$hardcode_direct" != no &&
13068 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13069 # have to relink, otherwise we might link with an installed library
13070 # when we should be linking with a yet-to-be-installed one
13071 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13072 test "$hardcode_minus_L" != no; then
13073 # Linking always hardcodes the temporary library directory.
13074 hardcode_action=relink
13076 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13077 hardcode_action=immediate
13080 # We cannot hardcode anything, or else we can only hardcode existing
13082 hardcode_action=unsupported
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13085 $as_echo "$hardcode_action" >&6; }
13087 if test "$hardcode_action" = relink ||
13088 test "$inherit_rpath" = yes; then
13089 # Fast installation is not supported
13090 enable_fast_install=no
13091 elif test "$shlibpath_overrides_runpath" = yes ||
13092 test "$enable_shared" = no; then
13093 # Fast installation is not necessary
13094 enable_fast_install=needless
13102 if test "x$enable_dlopen" != xyes; then
13103 enable_dlopen=unknown
13104 enable_dlopen_self=unknown
13105 enable_dlopen_self_static=unknown
13112 lt_cv_dlopen="load_add_on"
13114 lt_cv_dlopen_self=yes
13117 mingw* | pw32* | cegcc*)
13118 lt_cv_dlopen="LoadLibrary"
13123 lt_cv_dlopen="dlopen"
13128 # if libdl is installed we need to link against it
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13130 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13131 if ${ac_cv_lib_dl_dlopen+:} false; then :
13132 $as_echo_n "(cached) " >&6
13134 ac_check_lib_save_LIBS=$LIBS
13136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h. */
13139 /* Override any GCC internal prototype to avoid an error.
13140 Use char because int might match the return type of a GCC
13141 builtin and then its argument prototype would still apply. */
13154 if ac_fn_c_try_link "$LINENO"; then :
13155 ac_cv_lib_dl_dlopen=yes
13157 ac_cv_lib_dl_dlopen=no
13159 rm -f core conftest.err conftest.$ac_objext \
13160 conftest$ac_exeext conftest.$ac_ext
13161 LIBS=$ac_check_lib_save_LIBS
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13164 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13165 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13166 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13169 lt_cv_dlopen="dyld"
13171 lt_cv_dlopen_self=yes
13178 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13179 if test "x$ac_cv_func_shl_load" = xyes; then :
13180 lt_cv_dlopen="shl_load"
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13183 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13184 if ${ac_cv_lib_dld_shl_load+:} false; then :
13185 $as_echo_n "(cached) " >&6
13187 ac_check_lib_save_LIBS=$LIBS
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13192 /* Override any GCC internal prototype to avoid an error.
13193 Use char because int might match the return type of a GCC
13194 builtin and then its argument prototype would still apply. */
13202 return shl_load ();
13207 if ac_fn_c_try_link "$LINENO"; then :
13208 ac_cv_lib_dld_shl_load=yes
13210 ac_cv_lib_dld_shl_load=no
13212 rm -f core conftest.err conftest.$ac_objext \
13213 conftest$ac_exeext conftest.$ac_ext
13214 LIBS=$ac_check_lib_save_LIBS
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13217 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13218 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13219 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13221 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13222 if test "x$ac_cv_func_dlopen" = xyes; then :
13223 lt_cv_dlopen="dlopen"
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13226 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13227 if ${ac_cv_lib_dl_dlopen+:} false; then :
13228 $as_echo_n "(cached) " >&6
13230 ac_check_lib_save_LIBS=$LIBS
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13235 /* Override any GCC internal prototype to avoid an error.
13236 Use char because int might match the return type of a GCC
13237 builtin and then its argument prototype would still apply. */
13250 if ac_fn_c_try_link "$LINENO"; then :
13251 ac_cv_lib_dl_dlopen=yes
13253 ac_cv_lib_dl_dlopen=no
13255 rm -f core conftest.err conftest.$ac_objext \
13256 conftest$ac_exeext conftest.$ac_ext
13257 LIBS=$ac_check_lib_save_LIBS
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13260 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13261 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13262 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13265 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13266 if ${ac_cv_lib_svld_dlopen+:} false; then :
13267 $as_echo_n "(cached) " >&6
13269 ac_check_lib_save_LIBS=$LIBS
13270 LIBS="-lsvld $LIBS"
13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13274 /* Override any GCC internal prototype to avoid an error.
13275 Use char because int might match the return type of a GCC
13276 builtin and then its argument prototype would still apply. */
13289 if ac_fn_c_try_link "$LINENO"; then :
13290 ac_cv_lib_svld_dlopen=yes
13292 ac_cv_lib_svld_dlopen=no
13294 rm -f core conftest.err conftest.$ac_objext \
13295 conftest$ac_exeext conftest.$ac_ext
13296 LIBS=$ac_check_lib_save_LIBS
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13299 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13300 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13301 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13304 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13305 if ${ac_cv_lib_dld_dld_link+:} false; then :
13306 $as_echo_n "(cached) " >&6
13308 ac_check_lib_save_LIBS=$LIBS
13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13311 /* end confdefs.h. */
13313 /* Override any GCC internal prototype to avoid an error.
13314 Use char because int might match the return type of a GCC
13315 builtin and then its argument prototype would still apply. */
13323 return dld_link ();
13328 if ac_fn_c_try_link "$LINENO"; then :
13329 ac_cv_lib_dld_dld_link=yes
13331 ac_cv_lib_dld_dld_link=no
13333 rm -f core conftest.err conftest.$ac_objext \
13334 conftest$ac_exeext conftest.$ac_ext
13335 LIBS=$ac_check_lib_save_LIBS
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13338 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13339 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13340 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13361 if test "x$lt_cv_dlopen" != xno; then
13367 case $lt_cv_dlopen in
13369 save_CPPFLAGS="$CPPFLAGS"
13370 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13372 save_LDFLAGS="$LDFLAGS"
13373 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13376 LIBS="$lt_cv_dlopen_libs $LIBS"
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13379 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13380 if ${lt_cv_dlopen_self+:} false; then :
13381 $as_echo_n "(cached) " >&6
13383 if test "$cross_compiling" = yes; then :
13384 lt_cv_dlopen_self=cross
13386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13387 lt_status=$lt_dlunknown
13388 cat > conftest.$ac_ext <<_LT_EOF
13389 #line $LINENO "configure"
13390 #include "confdefs.h"
13399 # define LT_DLGLOBAL RTLD_GLOBAL
13402 # define LT_DLGLOBAL DL_GLOBAL
13404 # define LT_DLGLOBAL 0
13408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13409 find out it does not work in some platform. */
13410 #ifndef LT_DLLAZY_OR_NOW
13412 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13415 # define LT_DLLAZY_OR_NOW DL_LAZY
13418 # define LT_DLLAZY_OR_NOW RTLD_NOW
13421 # define LT_DLLAZY_OR_NOW DL_NOW
13423 # define LT_DLLAZY_OR_NOW 0
13430 /* When -fvisbility=hidden is used, assume the code has been annotated
13431 correspondingly for the symbols needed. */
13432 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13433 int fnord () __attribute__((visibility("default")));
13436 int fnord () { return 42; }
13439 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13440 int status = $lt_dlunknown;
13444 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13447 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13448 else puts (dlerror ());
13450 /* dlclose (self); */
13458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13459 (eval $ac_link) 2>&5
13461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13462 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13463 (./conftest; exit; ) >&5 2>/dev/null
13465 case x$lt_status in
13466 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13467 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13468 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13471 # compilation failed
13472 lt_cv_dlopen_self=no
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13480 $as_echo "$lt_cv_dlopen_self" >&6; }
13482 if test "x$lt_cv_dlopen_self" = xyes; then
13483 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13485 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13486 if ${lt_cv_dlopen_self_static+:} false; then :
13487 $as_echo_n "(cached) " >&6
13489 if test "$cross_compiling" = yes; then :
13490 lt_cv_dlopen_self_static=cross
13492 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13493 lt_status=$lt_dlunknown
13494 cat > conftest.$ac_ext <<_LT_EOF
13495 #line $LINENO "configure"
13496 #include "confdefs.h"
13505 # define LT_DLGLOBAL RTLD_GLOBAL
13508 # define LT_DLGLOBAL DL_GLOBAL
13510 # define LT_DLGLOBAL 0
13514 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13515 find out it does not work in some platform. */
13516 #ifndef LT_DLLAZY_OR_NOW
13518 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13521 # define LT_DLLAZY_OR_NOW DL_LAZY
13524 # define LT_DLLAZY_OR_NOW RTLD_NOW
13527 # define LT_DLLAZY_OR_NOW DL_NOW
13529 # define LT_DLLAZY_OR_NOW 0
13536 /* When -fvisbility=hidden is used, assume the code has been annotated
13537 correspondingly for the symbols needed. */
13538 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13539 int fnord () __attribute__((visibility("default")));
13542 int fnord () { return 42; }
13545 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13546 int status = $lt_dlunknown;
13550 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13553 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13554 else puts (dlerror ());
13556 /* dlclose (self); */
13564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13565 (eval $ac_link) 2>&5
13567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13568 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13569 (./conftest; exit; ) >&5 2>/dev/null
13571 case x$lt_status in
13572 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13573 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13574 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13577 # compilation failed
13578 lt_cv_dlopen_self_static=no
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13586 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13589 CPPFLAGS="$save_CPPFLAGS"
13590 LDFLAGS="$save_LDFLAGS"
13595 case $lt_cv_dlopen_self in
13596 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13597 *) enable_dlopen_self=unknown ;;
13600 case $lt_cv_dlopen_self_static in
13601 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13602 *) enable_dlopen_self_static=unknown ;;
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13625 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13626 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13627 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13628 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13630 $as_echo "yes" >&6; }
13632 # FIXME - insert some real tests, host_os isn't really good enough
13635 if test -n "$STRIP" ; then
13636 striplib="$STRIP -x"
13637 old_striplib="$STRIP -S"
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13639 $as_echo "yes" >&6; }
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13642 $as_echo "no" >&6; }
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13663 # Report which library types will actually be built
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13665 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13667 $as_echo "$can_build_shared" >&6; }
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13670 $as_echo_n "checking whether to build shared libraries... " >&6; }
13671 test "$can_build_shared" = "no" && enable_shared=no
13673 # On AIX, shared libraries and static libraries use the same namespace, and
13674 # are all built from PIC.
13677 test "$enable_shared" = yes && enable_static=no
13678 if test -n "$RANLIB"; then
13679 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13680 postinstall_cmds='$RANLIB $lib'
13685 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13686 test "$enable_shared" = yes && enable_static=no
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13691 $as_echo "$enable_shared" >&6; }
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13694 $as_echo_n "checking whether to build static libraries... " >&6; }
13695 # Make sure either enable_shared or enable_static is yes.
13696 test "$enable_shared" = yes || enable_static=yes
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13698 $as_echo "$enable_static" >&6; }
13705 ac_cpp='$CPP $CPPFLAGS'
13706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13712 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13713 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13714 (test "X$CXX" != "Xg++"))) ; then
13716 ac_cpp='$CXXCPP $CPPFLAGS'
13717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13721 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13722 if test -z "$CXXCPP"; then
13723 if ${ac_cv_prog_CXXCPP+:} false; then :
13724 $as_echo_n "(cached) " >&6
13726 # Double quotes because CXXCPP needs to be expanded
13727 for CXXCPP in "$CXX -E" "/lib/cpp"
13729 ac_preproc_ok=false
13730 for ac_cxx_preproc_warn_flag in '' yes
13732 # Use a header file that comes with gcc, so configuring glibc
13733 # with a fresh cross-compiler works.
13734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13735 # <limits.h> exists even on freestanding compilers.
13736 # On the NeXT, cc -E runs the code through the compiler's parser,
13737 # not just through cpp. "Syntax error" is here to catch this case.
13738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h. */
13741 # include <limits.h>
13743 # include <assert.h>
13747 if ac_fn_cxx_try_cpp "$LINENO"; then :
13750 # Broken: fails on valid input.
13753 rm -f conftest.err conftest.i conftest.$ac_ext
13755 # OK, works on sane cases. Now check whether nonexistent headers
13756 # can be detected and how.
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13759 #include <ac_nonexistent.h>
13761 if ac_fn_cxx_try_cpp "$LINENO"; then :
13762 # Broken: success on invalid input.
13765 # Passes both tests.
13769 rm -f conftest.err conftest.i conftest.$ac_ext
13772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13773 rm -f conftest.i conftest.err conftest.$ac_ext
13774 if $ac_preproc_ok; then :
13779 ac_cv_prog_CXXCPP=$CXXCPP
13782 CXXCPP=$ac_cv_prog_CXXCPP
13784 ac_cv_prog_CXXCPP=$CXXCPP
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13787 $as_echo "$CXXCPP" >&6; }
13788 ac_preproc_ok=false
13789 for ac_cxx_preproc_warn_flag in '' yes
13791 # Use a header file that comes with gcc, so configuring glibc
13792 # with a fresh cross-compiler works.
13793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13794 # <limits.h> exists even on freestanding compilers.
13795 # On the NeXT, cc -E runs the code through the compiler's parser,
13796 # not just through cpp. "Syntax error" is here to catch this case.
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13800 # include <limits.h>
13802 # include <assert.h>
13806 if ac_fn_cxx_try_cpp "$LINENO"; then :
13809 # Broken: fails on valid input.
13812 rm -f conftest.err conftest.i conftest.$ac_ext
13814 # OK, works on sane cases. Now check whether nonexistent headers
13815 # can be detected and how.
13816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817 /* end confdefs.h. */
13818 #include <ac_nonexistent.h>
13820 if ac_fn_cxx_try_cpp "$LINENO"; then :
13821 # Broken: success on invalid input.
13824 # Passes both tests.
13828 rm -f conftest.err conftest.i conftest.$ac_ext
13831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13832 rm -f conftest.i conftest.err conftest.$ac_ext
13833 if $ac_preproc_ok; then :
13836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13838 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13839 See \`config.log' for more details" "$LINENO" 5; }
13843 ac_cpp='$CPP $CPPFLAGS'
13844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13849 _lt_caught_CXX_error=yes
13853 ac_cpp='$CXXCPP $CPPFLAGS'
13854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13858 archive_cmds_need_lc_CXX=no
13859 allow_undefined_flag_CXX=
13860 always_export_symbols_CXX=no
13861 archive_expsym_cmds_CXX=
13862 compiler_needs_object_CXX=no
13863 export_dynamic_flag_spec_CXX=
13864 hardcode_direct_CXX=no
13865 hardcode_direct_absolute_CXX=no
13866 hardcode_libdir_flag_spec_CXX=
13867 hardcode_libdir_flag_spec_ld_CXX=
13868 hardcode_libdir_separator_CXX=
13869 hardcode_minus_L_CXX=no
13870 hardcode_shlibpath_var_CXX=unsupported
13871 hardcode_automatic_CXX=no
13872 inherit_rpath_CXX=no
13874 module_expsym_cmds_CXX=
13875 link_all_deplibs_CXX=unknown
13876 old_archive_cmds_CXX=$old_archive_cmds
13877 reload_flag_CXX=$reload_flag
13878 reload_cmds_CXX=$reload_cmds
13879 no_undefined_flag_CXX=
13880 whole_archive_flag_spec_CXX=
13881 enable_shared_with_static_runtimes_CXX=no
13883 # Source file extension for C++ test sources.
13886 # Object file extension for compiled C++ test sources.
13890 # No sense in running all these tests if we already determined that
13891 # the CXX compiler isn't working. Some variables (like enable_shared)
13892 # are currently assumed to apply to all compilers on this platform,
13893 # and will be corrupted by setting them based on a non-working compiler.
13894 if test "$_lt_caught_CXX_error" != yes; then
13895 # Code to be used in simple compile tests
13896 lt_simple_compile_test_code="int some_variable = 0;"
13898 # Code to be used in simple link tests
13899 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13901 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13908 # If no C compiler was specified, use CC.
13911 # If no C compiler flags were specified, use CFLAGS.
13912 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13914 # Allow CC to be a program name with arguments.
13918 # save warnings/boilerplate of simple test code
13919 ac_outfile=conftest.$ac_objext
13920 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13921 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13922 _lt_compiler_boilerplate=`cat conftest.err`
13925 ac_outfile=conftest.$ac_objext
13926 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13927 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13928 _lt_linker_boilerplate=`cat conftest.err`
13932 # Allow CC to be a program name with arguments.
13934 lt_save_CFLAGS=$CFLAGS
13938 lt_save_with_gnu_ld=$with_gnu_ld
13939 lt_save_path_LD=$lt_cv_path_LD
13940 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13941 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13943 $as_unset lt_cv_prog_gnu_ld
13945 if test -n "${lt_cv_path_LDCXX+set}"; then
13946 lt_cv_path_LD=$lt_cv_path_LDCXX
13948 $as_unset lt_cv_path_LD
13950 test -z "${LDCXX+set}" || LD=$LDCXX
13955 for cc_temp in $compiler""; do
13957 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13958 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13963 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13966 if test -n "$compiler"; then
13967 # We don't want -fno-exception when compiling C++ code, so set the
13968 # no_builtin_flag separately
13969 if test "$GXX" = yes; then
13970 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13972 lt_prog_compiler_no_builtin_flag_CXX=
13975 if test "$GXX" = yes; then
13976 # Set up default GNU C++ configuration
13980 # Check whether --with-gnu-ld was given.
13981 if test "${with_gnu_ld+set}" = set; then :
13982 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13988 if test "$GCC" = yes; then
13989 # Check if gcc -print-prog-name=ld gives a path.
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13991 $as_echo_n "checking for ld used by $CC... " >&6; }
13994 # gcc leaves a trailing carriage return which upsets mingw
13995 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13997 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14000 # Accept absolute paths.
14002 re_direlt='/[^/][^/]*/\.\./'
14003 # Canonicalize the pathname of ld
14004 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14005 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14006 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14008 test -z "$LD" && LD="$ac_prog"
14011 # If it fails, then pretend we aren't using GCC.
14015 # If it is relative, then search for the first ld in PATH.
14016 with_gnu_ld=unknown
14019 elif test "$with_gnu_ld" = yes; then
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14021 $as_echo_n "checking for GNU ld... " >&6; }
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14024 $as_echo_n "checking for non-GNU ld... " >&6; }
14026 if ${lt_cv_path_LD+:} false; then :
14027 $as_echo_n "(cached) " >&6
14029 if test -z "$LD"; then
14030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14031 for ac_dir in $PATH; do
14033 test -z "$ac_dir" && ac_dir=.
14034 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14035 lt_cv_path_LD="$ac_dir/$ac_prog"
14036 # Check to see if the program is GNU ld. I'd rather use --version,
14037 # but apparently some variants of GNU ld only accept -v.
14038 # Break only if it was the GNU/non-GNU ld that we prefer.
14039 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14040 *GNU* | *'with BFD'*)
14041 test "$with_gnu_ld" != no && break
14044 test "$with_gnu_ld" != yes && break
14051 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14055 LD="$lt_cv_path_LD"
14056 if test -n "$LD"; then
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14058 $as_echo "$LD" >&6; }
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061 $as_echo "no" >&6; }
14063 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14065 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14066 if ${lt_cv_prog_gnu_ld+:} false; then :
14067 $as_echo_n "(cached) " >&6
14069 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14070 case `$LD -v 2>&1 </dev/null` in
14071 *GNU* | *'with BFD'*)
14072 lt_cv_prog_gnu_ld=yes
14075 lt_cv_prog_gnu_ld=no
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14080 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14081 with_gnu_ld=$lt_cv_prog_gnu_ld
14089 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14090 # archiving commands below assume that GNU ld is being used.
14091 if test "$with_gnu_ld" = yes; then
14092 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14093 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14095 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14096 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14098 # If archive_cmds runs LD, not CC, wlarc should be empty
14099 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14100 # investigate it a little bit more. (MM)
14103 # ancient GNU ld didn't support --whole-archive et. al.
14104 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14105 $GREP 'no-whole-archive' > /dev/null; then
14106 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14108 whole_archive_flag_spec_CXX=
14114 # A generic and very simple default shared library creation
14115 # command for GNU C++ for the case where it uses the native
14116 # linker, instead of GNU ld. If possible, this setting should
14117 # overridden to take advantage of the native linker features on
14118 # the platform it is being used on.
14119 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14122 # Commands to make compiler produce verbose output that lists
14123 # what "hidden" libraries, object files and flags are used when
14124 # linking a shared library.
14125 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14133 # PORTME: fill in a description of your system's C++ link characteristics
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14135 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14139 # FIXME: insert proper C++ library support
14143 if test "$host_cpu" = ia64; then
14144 # On IA64, the linker does run time linking by default, so we don't
14145 # have to do anything special.
14146 aix_use_runtimelinking=no
14147 exp_sym_flag='-Bexport'
14150 aix_use_runtimelinking=no
14152 # Test if we are trying to use run time linking or normal
14153 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14154 # need to do runtime linking.
14155 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14156 for ld_flag in $LDFLAGS; do
14159 aix_use_runtimelinking=yes
14167 exp_sym_flag='-bexport'
14168 no_entry_flag='-bnoentry'
14171 # When large executables or shared objects are built, AIX ld can
14172 # have problems creating the table of contents. If linking a library
14173 # or program results in "error TOC overflow" add -mminimal-toc to
14174 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14175 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14177 archive_cmds_CXX=''
14178 hardcode_direct_CXX=yes
14179 hardcode_direct_absolute_CXX=yes
14180 hardcode_libdir_separator_CXX=':'
14181 link_all_deplibs_CXX=yes
14182 file_list_spec_CXX='${wl}-f,'
14184 if test "$GXX" = yes; then
14185 case $host_os in aix4.[012]|aix4.[012].*)
14186 # We only want to do this on AIX 4.2 and lower, the check
14187 # below for broken collect2 doesn't work under 4.3+
14188 collect2name=`${CC} -print-prog-name=collect2`
14189 if test -f "$collect2name" &&
14190 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14192 # We have reworked collect2
14195 # We have old collect2
14196 hardcode_direct_CXX=unsupported
14197 # It fails to find uninstalled libraries when the uninstalled
14198 # path is not listed in the libpath. Setting hardcode_minus_L
14199 # to unsupported forces relinking
14200 hardcode_minus_L_CXX=yes
14201 hardcode_libdir_flag_spec_CXX='-L$libdir'
14202 hardcode_libdir_separator_CXX=
14205 shared_flag='-shared'
14206 if test "$aix_use_runtimelinking" = yes; then
14207 shared_flag="$shared_flag "'${wl}-G'
14211 if test "$host_cpu" = ia64; then
14212 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14213 # chokes on -Wl,-G. The following line is correct:
14216 if test "$aix_use_runtimelinking" = yes; then
14217 shared_flag='${wl}-G'
14219 shared_flag='${wl}-bM:SRE'
14224 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14225 # It seems that -bexpall does not export symbols beginning with
14226 # underscore (_), so it is better to generate a list of symbols to
14228 always_export_symbols_CXX=yes
14229 if test "$aix_use_runtimelinking" = yes; then
14230 # Warning - without using the other runtime loading flags (-brtl),
14231 # -berok will link without error, but may produce a broken library.
14232 allow_undefined_flag_CXX='-berok'
14233 # Determine the default libpath from the value encoded in an empty
14235 if test "${lt_cv_aix_libpath+set}" = set; then
14236 aix_libpath=$lt_cv_aix_libpath
14238 if ${lt_cv_aix_libpath__CXX+:} false; then :
14239 $as_echo_n "(cached) " >&6
14241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242 /* end confdefs.h. */
14252 if ac_fn_cxx_try_link "$LINENO"; then :
14254 lt_aix_libpath_sed='
14255 /Import File Strings/,/^$/ {
14257 s/^0 *\([^ ]*\) *$/\1/
14261 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14262 # Check for a 64-bit object if we didn't find anything.
14263 if test -z "$lt_cv_aix_libpath__CXX"; then
14264 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14267 rm -f core conftest.err conftest.$ac_objext \
14268 conftest$ac_exeext conftest.$ac_ext
14269 if test -z "$lt_cv_aix_libpath__CXX"; then
14270 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14275 aix_libpath=$lt_cv_aix_libpath__CXX
14278 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14280 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14282 if test "$host_cpu" = ia64; then
14283 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14284 allow_undefined_flag_CXX="-z nodefs"
14285 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"
14287 # Determine the default libpath from the value encoded in an
14288 # empty executable.
14289 if test "${lt_cv_aix_libpath+set}" = set; then
14290 aix_libpath=$lt_cv_aix_libpath
14292 if ${lt_cv_aix_libpath__CXX+:} false; then :
14293 $as_echo_n "(cached) " >&6
14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h. */
14306 if ac_fn_cxx_try_link "$LINENO"; then :
14308 lt_aix_libpath_sed='
14309 /Import File Strings/,/^$/ {
14311 s/^0 *\([^ ]*\) *$/\1/
14315 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14316 # Check for a 64-bit object if we didn't find anything.
14317 if test -z "$lt_cv_aix_libpath__CXX"; then
14318 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14321 rm -f core conftest.err conftest.$ac_objext \
14322 conftest$ac_exeext conftest.$ac_ext
14323 if test -z "$lt_cv_aix_libpath__CXX"; then
14324 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14329 aix_libpath=$lt_cv_aix_libpath__CXX
14332 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14333 # Warning - without using the other run time loading flags,
14334 # -berok will link without error, but may produce a broken library.
14335 no_undefined_flag_CXX=' ${wl}-bernotok'
14336 allow_undefined_flag_CXX=' ${wl}-berok'
14337 if test "$with_gnu_ld" = yes; then
14338 # We only use this code for GNU lds that support --whole-archive.
14339 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14341 # Exported symbols can be pulled into shared objects from archives
14342 whole_archive_flag_spec_CXX='$convenience'
14344 archive_cmds_need_lc_CXX=yes
14345 # This is similar to how AIX traditionally builds its shared
14347 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'
14353 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14354 allow_undefined_flag_CXX=unsupported
14355 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14356 # support --undefined. This deserves some investigation. FIXME
14357 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14364 case $cc_basename in
14366 # FIXME: insert proper C++ library support
14372 cygwin* | mingw* | pw32* | cegcc*)
14373 case $GXX,$cc_basename in
14376 # hardcode_libdir_flag_spec is actually meaningless, as there is
14377 # no search path for DLLs.
14378 hardcode_libdir_flag_spec_CXX=' '
14379 allow_undefined_flag_CXX=unsupported
14380 always_export_symbols_CXX=yes
14381 file_list_spec_CXX='@'
14382 # Tell ltmain to make .lib files, not .a files.
14384 # Tell ltmain to make .dll files, not .so files.
14386 # FIXME: Setting linknames here is a bad hack.
14387 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14388 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14389 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14391 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14393 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14395 # The linker will not automatically build a static lib if we build a DLL.
14396 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14397 enable_shared_with_static_runtimes_CXX=yes
14399 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14400 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14401 lt_tool_outputfile="@TOOL_OUTPUT@"~
14402 case $lt_outputfile in
14405 lt_outputfile="$lt_outputfile.exe"
14406 lt_tool_outputfile="$lt_tool_outputfile.exe"
14409 func_to_tool_file "$lt_outputfile"~
14410 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14411 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14412 $RM "$lt_outputfile.manifest";
14417 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14418 # as there is no search path for DLLs.
14419 hardcode_libdir_flag_spec_CXX='-L$libdir'
14420 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14421 allow_undefined_flag_CXX=unsupported
14422 always_export_symbols_CXX=no
14423 enable_shared_with_static_runtimes_CXX=yes
14425 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14426 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'
14427 # If the export-symbols file already is a .def file (1st line
14428 # is EXPORTS), use it as is; otherwise, prepend...
14429 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14430 cp $export_symbols $output_objdir/$soname.def;
14432 echo EXPORTS > $output_objdir/$soname.def;
14433 cat $export_symbols >> $output_objdir/$soname.def;
14435 $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'
14442 darwin* | rhapsody*)
14445 archive_cmds_need_lc_CXX=no
14446 hardcode_direct_CXX=no
14447 hardcode_automatic_CXX=yes
14448 hardcode_shlibpath_var_CXX=unsupported
14449 if test "$lt_cv_ld_force_load" = "yes"; then
14450 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14452 whole_archive_flag_spec_CXX=''
14454 link_all_deplibs_CXX=yes
14455 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14456 case $cc_basename in
14457 ifort*) _lt_dar_can_shared=yes ;;
14458 *) _lt_dar_can_shared=$GCC ;;
14460 if test "$_lt_dar_can_shared" = "yes"; then
14461 output_verbose_link_cmd=func_echo_all
14462 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14463 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14464 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14465 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14466 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14467 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${_lt_dsymutil}"
14468 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
14478 case $cc_basename in
14480 # FIXME: insert proper C++ library support
14484 # Green Hills C++ Compiler
14485 # FIXME: insert proper C++ library support
14489 # FIXME: insert proper C++ library support
14496 # C++ shared libraries reported to be fairly broken before
14502 archive_cmds_need_lc_CXX=no
14505 freebsd* | dragonfly*)
14506 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14515 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14516 link_all_deplibs_CXX=yes
14520 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14521 hardcode_libdir_separator_CXX=:
14522 export_dynamic_flag_spec_CXX='${wl}-E'
14523 hardcode_direct_CXX=yes
14524 hardcode_minus_L_CXX=yes # Not in the search PATH,
14525 # but as the default
14526 # location of the library.
14528 case $cc_basename in
14530 # FIXME: insert proper C++ library support
14534 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'
14535 # Commands to make compiler produce verbose output that lists
14536 # what "hidden" libraries, object files and flags are used when
14537 # linking a shared library.
14539 # There doesn't appear to be a way to prevent this compiler from
14540 # explicitly linking system object files so we need to strip them
14541 # from the output so that they don't get included in the library
14543 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14546 if test "$GXX" = yes; then
14547 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
14549 # FIXME: insert proper C++ library support
14557 if test $with_gnu_ld = no; then
14558 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14559 hardcode_libdir_separator_CXX=:
14565 export_dynamic_flag_spec_CXX='${wl}-E'
14571 hardcode_direct_CXX=no
14572 hardcode_shlibpath_var_CXX=no
14575 hardcode_direct_CXX=yes
14576 hardcode_direct_absolute_CXX=yes
14577 hardcode_minus_L_CXX=yes # Not in the search PATH,
14578 # but as the default
14579 # location of the library.
14583 case $cc_basename in
14585 # FIXME: insert proper C++ library support
14591 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14594 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14597 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14600 # Commands to make compiler produce verbose output that lists
14601 # what "hidden" libraries, object files and flags are used when
14602 # linking a shared library.
14604 # There doesn't appear to be a way to prevent this compiler from
14605 # explicitly linking system object files so we need to strip them
14606 # from the output so that they don't get included in the library
14608 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; func_echo_all "$list"'
14611 if test "$GXX" = yes; then
14612 if test $with_gnu_ld = no; then
14615 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14618 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14621 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14626 # FIXME: insert proper C++ library support
14634 hardcode_direct_CXX=no
14635 hardcode_shlibpath_var_CXX=no
14636 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14637 export_dynamic_flag_spec_CXX='${wl}-E'
14638 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14639 # Instead, shared libraries are loaded at an image base (0x10000000 by
14640 # default) and relocated if they conflict, which is a slow very memory
14641 # consuming and fragmenting process. To avoid this, we pick a random,
14642 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14643 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14644 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'
14645 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'
14648 case $cc_basename in
14651 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14653 # Archives containing C++ object files must be created using
14654 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14655 # necessary to make sure instantiated templates are included
14657 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14660 if test "$GXX" = yes; then
14661 if test "$with_gnu_ld" = no; then
14662 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14664 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14667 link_all_deplibs_CXX=yes
14670 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14671 hardcode_libdir_separator_CXX=:
14672 inherit_rpath_CXX=yes
14675 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14676 case $cc_basename in
14678 # Kuck and Associates, Inc. (KAI) C++ Compiler
14680 # KCC will only create a shared library if the output file
14681 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14682 # to its proper name (with version) after linking.
14683 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'
14684 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'
14685 # Commands to make compiler produce verbose output that lists
14686 # what "hidden" libraries, object files and flags are used when
14687 # linking a shared library.
14689 # There doesn't appear to be a way to prevent this compiler from
14690 # explicitly linking system object files so we need to strip them
14691 # from the output so that they don't get included in the library
14693 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; func_echo_all "$list"'
14695 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14696 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14698 # Archives containing C++ object files must be created using
14699 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14700 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14705 # version 8.0 and above of icpc choke on multiply defined symbols
14706 # if we add $predep_objects and $postdep_objects, however 7.1 and
14707 # earlier do not add the objects themselves.
14708 case `$CC -V 2>&1` in
14710 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14711 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'
14713 *) # Version 8.0 or newer
14716 ia64*) tmp_idyn=' -i_dynamic';;
14718 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14719 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'
14722 archive_cmds_need_lc_CXX=no
14723 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14724 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14725 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14728 # Portland Group C++ compiler
14730 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14731 prelink_cmds_CXX='tpldir=Template.dir~
14733 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14734 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14735 old_archive_cmds_CXX='tpldir=Template.dir~
14737 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14738 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14740 archive_cmds_CXX='tpldir=Template.dir~
14742 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14743 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14744 archive_expsym_cmds_CXX='tpldir=Template.dir~
14746 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14747 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14749 *) # Version 6 and above use weak symbols
14750 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14751 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'
14755 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14756 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14757 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14761 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14762 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'
14764 runpath_var=LD_RUN_PATH
14765 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14766 hardcode_libdir_separator_CXX=:
14768 # Commands to make compiler produce verbose output that lists
14769 # what "hidden" libraries, object files and flags are used when
14770 # linking a shared library.
14772 # There doesn't appear to be a way to prevent this compiler from
14773 # explicitly linking system object files so we need to strip them
14774 # from the output so that they don't get included in the library
14776 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
14778 xl* | mpixl* | bgxl*)
14779 # IBM XL 8.0 on PPC, with GNU ld
14780 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14781 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14782 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14783 if test "x$supports_anon_versioning" = xyes; then
14784 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14785 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14786 echo "local: *; };" >> $output_objdir/$libname.ver~
14787 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14791 case `$CC -V 2>&1 | sed 5q` in
14794 no_undefined_flag_CXX=' -zdefs'
14795 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14796 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14797 hardcode_libdir_flag_spec_CXX='-R$libdir'
14798 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14799 compiler_needs_object_CXX=yes
14801 # Not sure whether something based on
14802 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14804 output_verbose_link_cmd='func_echo_all'
14806 # Archives containing C++ object files must be created using
14807 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14808 # necessary to make sure instantiated templates are included
14810 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14818 # FIXME: insert proper C++ library support
14823 # FIXME: insert proper C++ library support
14828 case $cc_basename in
14830 # FIXME: insert proper C++ library support
14834 # FIXME: insert proper C++ library support
14841 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14842 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14844 hardcode_libdir_flag_spec_CXX='-R$libdir'
14845 hardcode_direct_CXX=yes
14846 hardcode_shlibpath_var_CXX=no
14848 # Workaround some broken pre-1.5 toolchains
14849 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14857 # C++ shared libraries are fairly broken
14862 if test -f /usr/libexec/ld.so; then
14863 hardcode_direct_CXX=yes
14864 hardcode_shlibpath_var_CXX=no
14865 hardcode_direct_absolute_CXX=yes
14866 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14867 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14869 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14870 export_dynamic_flag_spec_CXX='${wl}-E'
14871 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14873 output_verbose_link_cmd=func_echo_all
14879 osf3* | osf4* | osf5*)
14880 case $cc_basename in
14882 # Kuck and Associates, Inc. (KAI) C++ Compiler
14884 # KCC will only create a shared library if the output file
14885 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14886 # to its proper name (with version) after linking.
14887 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'
14889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14890 hardcode_libdir_separator_CXX=:
14892 # Archives containing C++ object files must be created using
14893 # the KAI C++ compiler.
14895 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14896 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14900 # Rational C++ 2.4.1
14901 # FIXME: insert proper C++ library support
14907 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14908 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14909 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14912 allow_undefined_flag_CXX=' -expect_unresolved \*'
14913 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14914 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14915 echo "-hidden">> $lib.exp~
14916 $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~
14918 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14922 hardcode_libdir_separator_CXX=:
14924 # Commands to make compiler produce verbose output that lists
14925 # what "hidden" libraries, object files and flags are used when
14926 # linking a shared library.
14928 # There doesn't appear to be a way to prevent this compiler from
14929 # explicitly linking system object files so we need to strip them
14930 # from the output so that they don't get included in the library
14932 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
14935 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14936 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14939 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14942 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14946 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14947 hardcode_libdir_separator_CXX=:
14949 # Commands to make compiler produce verbose output that lists
14950 # what "hidden" libraries, object files and flags are used when
14951 # linking a shared library.
14952 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14955 # FIXME: insert proper C++ library support
14963 # FIXME: insert proper C++ library support
14968 case $cc_basename in
14971 # FIXME: insert proper C++ library support
14976 # FIXME: insert proper C++ library support
14980 # FIXME: insert proper C++ library support
14987 case $cc_basename in
14989 # Sun C++ 4.2, 5.x and Centerline C++
14990 archive_cmds_need_lc_CXX=yes
14991 no_undefined_flag_CXX=' -zdefs'
14992 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14993 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14994 $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'
14996 hardcode_libdir_flag_spec_CXX='-R$libdir'
14997 hardcode_shlibpath_var_CXX=no
14999 solaris2.[0-5] | solaris2.[0-5].*) ;;
15001 # The compiler driver will combine and reorder linker options,
15002 # but understands `-z linker_flag'.
15003 # Supported since Solaris 2.6 (maybe 2.5.1?)
15004 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15007 link_all_deplibs_CXX=yes
15009 output_verbose_link_cmd='func_echo_all'
15011 # Archives containing C++ object files must be created using
15012 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15013 # necessary to make sure instantiated templates are included
15015 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15018 # Green Hills C++ Compiler
15019 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15021 # The C++ compiler must be used to create the archive.
15022 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15025 # GNU C++ compiler with Solaris linker
15026 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15027 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15028 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15029 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15030 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15031 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15033 # Commands to make compiler produce verbose output that lists
15034 # what "hidden" libraries, object files and flags are used when
15035 # linking a shared library.
15036 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15038 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15040 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15041 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15042 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15044 # Commands to make compiler produce verbose output that lists
15045 # what "hidden" libraries, object files and flags are used when
15046 # linking a shared library.
15047 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15050 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15052 solaris2.[0-5] | solaris2.[0-5].*) ;;
15054 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15062 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15063 no_undefined_flag_CXX='${wl}-z,text'
15064 archive_cmds_need_lc_CXX=no
15065 hardcode_shlibpath_var_CXX=no
15066 runpath_var='LD_RUN_PATH'
15068 case $cc_basename in
15070 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15071 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15074 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15075 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15080 sysv5* | sco3.2v5* | sco5v6*)
15081 # Note: We can NOT use -z defs as we might desire, because we do not
15082 # link with -lc, and that would cause any symbols used from libc to
15083 # always be unresolved, which means just about no library would
15084 # ever link correctly. If we're not using GNU ld we use -z text
15085 # though, which does catch some bad symbols but isn't as heavy-handed
15087 no_undefined_flag_CXX='${wl}-z,text'
15088 allow_undefined_flag_CXX='${wl}-z,nodefs'
15089 archive_cmds_need_lc_CXX=no
15090 hardcode_shlibpath_var_CXX=no
15091 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15092 hardcode_libdir_separator_CXX=':'
15093 link_all_deplibs_CXX=yes
15094 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15095 runpath_var='LD_RUN_PATH'
15097 case $cc_basename in
15099 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15100 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15101 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15102 '"$old_archive_cmds_CXX"
15103 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15104 '"$reload_cmds_CXX"
15107 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15108 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15114 case $cc_basename in
15116 # NonStop-UX NCC 3.20
15117 # FIXME: insert proper C++ library support
15121 # FIXME: insert proper C++ library support
15128 # FIXME: insert proper C++ library support
15133 # FIXME: insert proper C++ library support
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15139 $as_echo "$ld_shlibs_CXX" >&6; }
15140 test "$ld_shlibs_CXX" = no && can_build_shared=no
15146 ## There is no encapsulation within the following macros, do not change
15147 ## the running order or otherwise move them around unless you know exactly
15148 ## what you are doing...
15149 # Dependencies to place before and after the object being linked:
15150 predep_objects_CXX=
15151 postdep_objects_CXX=
15154 compiler_lib_search_path_CXX=
15156 cat > conftest.$ac_ext <<_LT_EOF
15160 Foo (void) { a = 0; }
15167 _lt_libdeps_save_CFLAGS=$CFLAGS
15168 case "$CC $CFLAGS " in #(
15169 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15170 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15174 (eval $ac_compile) 2>&5
15176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15177 test $ac_status = 0; }; then
15178 # Parse the compiler output and extract the necessary
15179 # objects, libraries and library flags.
15181 # Sentinel used to keep track of whether or not we are before
15182 # the conftest object file.
15183 pre_test_object_deps_done=no
15185 for p in `eval "$output_verbose_link_cmd"`; do
15186 case ${prev}${p} in
15189 # Some compilers place space between "-{L,R}" and the path.
15190 # Remove the space.
15191 if test $p = "-L" ||
15192 test $p = "-R"; then
15197 # Expand the sysroot to ease extracting the directories later.
15198 if test -z "$prev"; then
15200 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15201 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15202 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15206 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15208 if test "$pre_test_object_deps_done" = no; then
15211 # Internal compiler library paths should come after those
15212 # provided the user. The postdeps already come after the
15213 # user supplied libs so there is no need to process them.
15214 if test -z "$compiler_lib_search_path_CXX"; then
15215 compiler_lib_search_path_CXX="${prev}${p}"
15217 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15220 # The "-l" case would never come before the object being
15221 # linked, so don't bother handling this case.
15224 if test -z "$postdeps_CXX"; then
15225 postdeps_CXX="${prev}${p}"
15227 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15233 *.lto.$objext) ;; # Ignore GCC LTO objects
15235 # This assumes that the test object file only shows up
15236 # once in the compiler output.
15237 if test "$p" = "conftest.$objext"; then
15238 pre_test_object_deps_done=yes
15242 if test "$pre_test_object_deps_done" = no; then
15243 if test -z "$predep_objects_CXX"; then
15244 predep_objects_CXX="$p"
15246 predep_objects_CXX="$predep_objects_CXX $p"
15249 if test -z "$postdep_objects_CXX"; then
15250 postdep_objects_CXX="$p"
15252 postdep_objects_CXX="$postdep_objects_CXX $p"
15257 *) ;; # Ignore the rest.
15265 echo "libtool.m4: error: problem compiling CXX test program"
15268 $RM -f confest.$objext
15269 CFLAGS=$_lt_libdeps_save_CFLAGS
15271 # PORTME: override above test on systems where it is broken
15274 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15275 # hack all around it, let's just trust "g++" to DTRT.
15276 predep_objects_CXX=
15277 postdep_objects_CXX=
15282 case `$CC -V 2>&1 | sed 5q` in
15286 # The more standards-conforming stlport4 library is
15287 # incompatible with the Cstd library. Avoid specifying
15288 # it if it's in CXXFLAGS. Ignore libCrun as
15289 # -library=stlport4 depends on it.
15290 case " $CXX $CXXFLAGS " in
15291 *" -library=stlport4 "*)
15292 solaris_use_stlport4=yes
15296 if test "$solaris_use_stlport4" != yes; then
15297 postdeps_CXX='-library=Cstd -library=Crun'
15304 case $cc_basename in
15306 # The more standards-conforming stlport4 library is
15307 # incompatible with the Cstd library. Avoid specifying
15308 # it if it's in CXXFLAGS. Ignore libCrun as
15309 # -library=stlport4 depends on it.
15310 case " $CXX $CXXFLAGS " in
15311 *" -library=stlport4 "*)
15312 solaris_use_stlport4=yes
15316 # Adding this requires a known-good setup of shared libraries for
15317 # Sun compiler versions before 5.6, else PIC objects from an old
15318 # archive will be linked into the output, leading to subtle bugs.
15319 if test "$solaris_use_stlport4" != yes; then
15320 postdeps_CXX='-library=Cstd -library=Crun'
15328 case " $postdeps_CXX " in
15329 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15331 compiler_lib_search_dirs_CXX=
15332 if test -n "${compiler_lib_search_path_CXX}"; then
15333 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15366 lt_prog_compiler_wl_CXX=
15367 lt_prog_compiler_pic_CXX=
15368 lt_prog_compiler_static_CXX=
15371 # C++ specific cases for pic, static, wl, etc.
15372 if test "$GXX" = yes; then
15373 lt_prog_compiler_wl_CXX='-Wl,'
15374 lt_prog_compiler_static_CXX='-static'
15378 # All AIX code is PIC.
15379 if test "$host_cpu" = ia64; then
15380 # AIX 5 now supports IA64 processor
15381 lt_prog_compiler_static_CXX='-Bstatic'
15388 # see comment about AmigaOS4 .so support
15389 lt_prog_compiler_pic_CXX='-fPIC'
15392 # FIXME: we need at least 68020 code to build shared libraries, but
15393 # adding the `-m68020' flag to GCC prevents building anything better,
15395 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15400 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15401 # PIC is the default for these OSes.
15403 mingw* | cygwin* | os2* | pw32* | cegcc*)
15404 # This hack is so that the source file can tell whether it is being
15405 # built for inclusion in a dll (and should export symbols for example).
15406 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15407 # (--disable-auto-import) libraries
15408 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15410 darwin* | rhapsody*)
15411 # PIC is the default on this platform
15412 # Common symbols not allowed in MH_DYLIB files
15413 lt_prog_compiler_pic_CXX='-fno-common'
15416 # DJGPP does not support shared libraries at all
15417 lt_prog_compiler_pic_CXX=
15420 # PIC is the default for Haiku.
15421 # The "-static" flag exists, but is broken.
15422 lt_prog_compiler_static_CXX=
15425 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15426 # Instead, we relocate shared libraries at runtime.
15429 if test -d /usr/nec; then
15430 lt_prog_compiler_pic_CXX=-Kconform_pic
15434 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15435 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15436 # sets the default TLS model and affects inlining.
15441 lt_prog_compiler_pic_CXX='-fPIC'
15446 # QNX uses GNU C++, but need to define -shared option too, otherwise
15447 # it will coredump.
15448 lt_prog_compiler_pic_CXX='-fPIC -shared'
15451 lt_prog_compiler_pic_CXX='-fPIC'
15457 # All AIX code is PIC.
15458 if test "$host_cpu" = ia64; then
15459 # AIX 5 now supports IA64 processor
15460 lt_prog_compiler_static_CXX='-Bstatic'
15462 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15466 case $cc_basename in
15468 # Green Hills C++ Compiler
15469 # _LT_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"
15473 mingw* | cygwin* | os2* | pw32* | cegcc*)
15474 # This hack is so that the source file can tell whether it is being
15475 # built for inclusion in a dll (and should export symbols for example).
15476 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15479 case $cc_basename in
15481 lt_prog_compiler_pic_CXX='-KPIC'
15484 # Green Hills C++ Compiler
15485 lt_prog_compiler_pic_CXX='-pic'
15491 freebsd* | dragonfly*)
15492 # FreeBSD uses GNU C++
15494 hpux9* | hpux10* | hpux11*)
15495 case $cc_basename in
15497 lt_prog_compiler_wl_CXX='-Wl,'
15498 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15499 if test "$host_cpu" != ia64; then
15500 lt_prog_compiler_pic_CXX='+Z'
15504 lt_prog_compiler_wl_CXX='-Wl,'
15505 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15511 lt_prog_compiler_pic_CXX='+Z'
15520 # This is c89, which is MS Visual C++ (no shared libs)
15521 # Anyone wants to do a port?
15523 irix5* | irix6* | nonstopux*)
15524 case $cc_basename in
15526 lt_prog_compiler_wl_CXX='-Wl,'
15527 lt_prog_compiler_static_CXX='-non_shared'
15528 # CC pic flag -KPIC is the default.
15534 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15535 case $cc_basename in
15538 lt_prog_compiler_wl_CXX='--backend -Wl,'
15539 lt_prog_compiler_pic_CXX='-fPIC'
15542 # old Intel C++ for x86_64 which still supported -KPIC.
15543 lt_prog_compiler_wl_CXX='-Wl,'
15544 lt_prog_compiler_pic_CXX='-KPIC'
15545 lt_prog_compiler_static_CXX='-static'
15548 # Intel C++, used to be incompatible with GCC.
15549 # ICC 10 doesn't accept -KPIC any more.
15550 lt_prog_compiler_wl_CXX='-Wl,'
15551 lt_prog_compiler_pic_CXX='-fPIC'
15552 lt_prog_compiler_static_CXX='-static'
15555 # Portland Group C++ compiler
15556 lt_prog_compiler_wl_CXX='-Wl,'
15557 lt_prog_compiler_pic_CXX='-fpic'
15558 lt_prog_compiler_static_CXX='-Bstatic'
15562 # Make sure the PIC flag is empty. It appears that all Alpha
15563 # Linux and Compaq Tru64 Unix objects are PIC.
15564 lt_prog_compiler_pic_CXX=
15565 lt_prog_compiler_static_CXX='-non_shared'
15567 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15568 # IBM XL 8.0, 9.0 on PPC and BlueGene
15569 lt_prog_compiler_wl_CXX='-Wl,'
15570 lt_prog_compiler_pic_CXX='-qpic'
15571 lt_prog_compiler_static_CXX='-qstaticlink'
15574 case `$CC -V 2>&1 | sed 5q` in
15577 lt_prog_compiler_pic_CXX='-KPIC'
15578 lt_prog_compiler_static_CXX='-Bstatic'
15579 lt_prog_compiler_wl_CXX='-Qoption ld '
15590 case $cc_basename in
15592 lt_prog_compiler_pic_CXX='-W c,exportall'
15601 # QNX uses GNU C++, but need to define -shared option too, otherwise
15602 # it will coredump.
15603 lt_prog_compiler_pic_CXX='-fPIC -shared'
15605 osf3* | osf4* | osf5*)
15606 case $cc_basename in
15608 lt_prog_compiler_wl_CXX='--backend -Wl,'
15611 # Rational C++ 2.4.1
15612 lt_prog_compiler_pic_CXX='-pic'
15615 # Digital/Compaq C++
15616 lt_prog_compiler_wl_CXX='-Wl,'
15617 # Make sure the PIC flag is empty. It appears that all Alpha
15618 # Linux and Compaq Tru64 Unix objects are PIC.
15619 lt_prog_compiler_pic_CXX=
15620 lt_prog_compiler_static_CXX='-non_shared'
15629 case $cc_basename in
15631 # Sun C++ 4.2, 5.x and Centerline C++
15632 lt_prog_compiler_pic_CXX='-KPIC'
15633 lt_prog_compiler_static_CXX='-Bstatic'
15634 lt_prog_compiler_wl_CXX='-Qoption ld '
15637 # Green Hills C++ Compiler
15638 lt_prog_compiler_pic_CXX='-PIC'
15645 case $cc_basename in
15648 lt_prog_compiler_pic_CXX='-pic'
15649 lt_prog_compiler_static_CXX='-Bstatic'
15653 lt_prog_compiler_pic_CXX='-pic'
15659 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15660 case $cc_basename in
15662 lt_prog_compiler_wl_CXX='-Wl,'
15663 lt_prog_compiler_pic_CXX='-KPIC'
15664 lt_prog_compiler_static_CXX='-Bstatic'
15669 case $cc_basename in
15671 # NonStop-UX NCC 3.20
15672 lt_prog_compiler_pic_CXX='-KPIC'
15681 lt_prog_compiler_can_build_shared_CXX=no
15687 # For platforms which do not support PIC, -DPIC is meaningless:
15689 lt_prog_compiler_pic_CXX=
15692 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15697 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15698 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15699 $as_echo_n "(cached) " >&6
15701 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15704 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15705 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15708 # Check to make sure the PIC flag actually works.
15710 if test -n "$lt_prog_compiler_pic_CXX"; then
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15712 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15713 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15714 $as_echo_n "(cached) " >&6
15716 lt_cv_prog_compiler_pic_works_CXX=no
15717 ac_outfile=conftest.$ac_objext
15718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15719 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15720 # Insert the option either (1) after the last *FLAGS variable, or
15721 # (2) before a word containing "conftest.", or (3) at the end.
15722 # Note that $ac_compile itself does not contain backslashes and begins
15723 # with a dollar sign (not a hyphen), so the echo should work correctly.
15724 # The option is referenced via a variable to avoid confusing sed.
15725 lt_compile=`echo "$ac_compile" | $SED \
15726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15728 -e 's:$: $lt_compiler_flag:'`
15729 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15730 (eval "$lt_compile" 2>conftest.err)
15732 cat conftest.err >&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 if (exit $ac_status) && test -s "$ac_outfile"; then
15735 # The compiler can only warn and ignore the option if not recognized
15736 # So say no if there are warnings other than the usual output.
15737 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15739 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15740 lt_cv_prog_compiler_pic_works_CXX=yes
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15747 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15749 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15750 case $lt_prog_compiler_pic_CXX in
15752 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15755 lt_prog_compiler_pic_CXX=
15756 lt_prog_compiler_can_build_shared_CXX=no
15766 # Check to make sure the static flag actually works.
15768 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15770 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15771 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15772 $as_echo_n "(cached) " >&6
15774 lt_cv_prog_compiler_static_works_CXX=no
15775 save_LDFLAGS="$LDFLAGS"
15776 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15777 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15778 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15779 # The linker can only warn and ignore the option if not recognized
15780 # So say no if there are warnings
15781 if test -s conftest.err; then
15782 # Append any errors to the config.log.
15783 cat conftest.err 1>&5
15784 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15786 if diff conftest.exp conftest.er2 >/dev/null; then
15787 lt_cv_prog_compiler_static_works_CXX=yes
15790 lt_cv_prog_compiler_static_works_CXX=yes
15794 LDFLAGS="$save_LDFLAGS"
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15798 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15800 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15803 lt_prog_compiler_static_CXX=
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15810 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15811 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15812 $as_echo_n "(cached) " >&6
15814 lt_cv_prog_compiler_c_o_CXX=no
15815 $RM -r conftest 2>/dev/null
15819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15821 lt_compiler_flag="-o out/conftest2.$ac_objext"
15822 # Insert the option either (1) after the last *FLAGS variable, or
15823 # (2) before a word containing "conftest.", or (3) at the end.
15824 # Note that $ac_compile itself does not contain backslashes and begins
15825 # with a dollar sign (not a hyphen), so the echo should work correctly.
15826 lt_compile=`echo "$ac_compile" | $SED \
15827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15829 -e 's:$: $lt_compiler_flag:'`
15830 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15831 (eval "$lt_compile" 2>out/conftest.err)
15833 cat out/conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15837 # The compiler can only warn and ignore the option if not recognized
15838 # So say no if there are warnings
15839 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15840 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15841 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15842 lt_cv_prog_compiler_c_o_CXX=yes
15847 # SGI C++ compiler will create directory out/ii_files/ for
15848 # template instantiation
15849 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15850 $RM out/* && rmdir out
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15857 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15862 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15863 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15864 $as_echo_n "(cached) " >&6
15866 lt_cv_prog_compiler_c_o_CXX=no
15867 $RM -r conftest 2>/dev/null
15871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15873 lt_compiler_flag="-o out/conftest2.$ac_objext"
15874 # Insert the option either (1) after the last *FLAGS variable, or
15875 # (2) before a word containing "conftest.", or (3) at the end.
15876 # Note that $ac_compile itself does not contain backslashes and begins
15877 # with a dollar sign (not a hyphen), so the echo should work correctly.
15878 lt_compile=`echo "$ac_compile" | $SED \
15879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15881 -e 's:$: $lt_compiler_flag:'`
15882 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15883 (eval "$lt_compile" 2>out/conftest.err)
15885 cat out/conftest.err >&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15889 # The compiler can only warn and ignore the option if not recognized
15890 # So say no if there are warnings
15891 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15892 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15893 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15894 lt_cv_prog_compiler_c_o_CXX=yes
15899 # SGI C++ compiler will create directory out/ii_files/ for
15900 # template instantiation
15901 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15902 $RM out/* && rmdir out
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15909 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15914 hard_links="nottested"
15915 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15916 # do not overwrite the value of need_locks provided by the user
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15918 $as_echo_n "checking if we can lock with hard links... " >&6; }
15921 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15923 ln conftest.a conftest.b 2>&5 || hard_links=no
15924 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15926 $as_echo "$hard_links" >&6; }
15927 if test "$hard_links" = no; then
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15929 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15939 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15941 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15942 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15945 # If we're using GNU nm, then we don't want the "-C" option.
15946 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15947 # Also, AIX nm treats weak defined symbols like other global defined
15948 # symbols, whereas GNU nm marks them as "W".
15949 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15950 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15952 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'
15956 export_symbols_cmds_CXX="$ltdll_cmds"
15958 cygwin* | mingw* | cegcc*)
15959 case $cc_basename in
15962 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15963 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15968 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15973 $as_echo "$ld_shlibs_CXX" >&6; }
15974 test "$ld_shlibs_CXX" = no && can_build_shared=no
15976 with_gnu_ld_CXX=$with_gnu_ld
15984 # Do we need to explicitly link libc?
15986 case "x$archive_cmds_need_lc_CXX" in
15988 # Assume -lc should be added
15989 archive_cmds_need_lc_CXX=yes
15991 if test "$enable_shared" = yes && test "$GCC" = yes; then
15992 case $archive_cmds_CXX in
15994 # FIXME: we may have to deal with multi-command sequences.
15997 # Test whether the compiler implicitly links with -lc since on some
15998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15999 # to ld, don't add -lc before -lgcc.
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16001 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16002 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16003 $as_echo_n "(cached) " >&6
16006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16009 (eval $ac_compile) 2>&5
16011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16012 test $ac_status = 0; } 2>conftest.err; then
16015 libobjs=conftest.$ac_objext
16017 wl=$lt_prog_compiler_wl_CXX
16018 pic_flag=$lt_prog_compiler_pic_CXX
16024 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16025 allow_undefined_flag_CXX=
16026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16027 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16030 test $ac_status = 0; }
16032 lt_cv_archive_cmds_need_lc_CXX=no
16034 lt_cv_archive_cmds_need_lc_CXX=yes
16036 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16038 cat conftest.err 1>&5
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16044 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16045 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16116 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16118 library_names_spec=
16119 libname_spec='lib$name'
16123 postuninstall_cmds=
16127 shlibpath_overrides_runpath=unknown
16129 dynamic_linker="$host_os ld.so"
16130 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16131 need_lib_prefix=unknown
16132 hardcode_into_libs=no
16134 # when you set need_version to no, make sure it does not cause -set_version
16135 # flags to be left without arguments
16136 need_version=unknown
16141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16142 shlibpath_var=LIBPATH
16144 # AIX 3 has no versioning support, so we append a major version to the name.
16145 soname_spec='${libname}${release}${shared_ext}$major'
16152 hardcode_into_libs=yes
16153 if test "$host_cpu" = ia64; then
16154 # AIX 5 supports IA64
16155 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16156 shlibpath_var=LD_LIBRARY_PATH
16158 # With GCC up to 2.95.x, collect2 would create an import file
16159 # for dependence libraries. The import file would start with
16160 # the line `#! .'. This would cause the generated library to
16161 # depend on `.', always an invalid library. This was fixed in
16162 # development snapshots of GCC prior to 3.0.
16164 aix4 | aix4.[01] | aix4.[01].*)
16165 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16167 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16170 can_build_shared=no
16174 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16175 # soname into executable. Probably we can add versioning support to
16176 # collect2, so additional links can be useful in future.
16177 if test "$aix_use_runtimelinking" = yes; then
16178 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16179 # instead of lib<name>.a to let people know that these are not
16180 # typical AIX shared libraries.
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16183 # We preserve .a as extension for shared libraries through AIX4.2
16184 # and later when we are not doing run time linking.
16185 library_names_spec='${libname}${release}.a $libname.a'
16186 soname_spec='${libname}${release}${shared_ext}$major'
16188 shlibpath_var=LIBPATH
16195 # Since July 2007 AmigaOS4 officially supports .so libraries.
16196 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16200 library_names_spec='$libname.ixlibrary $libname.a'
16201 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16202 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
16208 library_names_spec='${libname}${shared_ext}'
16209 dynamic_linker="$host_os ld.so"
16210 shlibpath_var=LIBRARY_PATH
16216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217 soname_spec='${libname}${release}${shared_ext}$major'
16218 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16219 shlibpath_var=LD_LIBRARY_PATH
16220 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16221 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16222 # the default ld.so.conf also contains /usr/contrib/lib and
16223 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16224 # libtool to hard-code these into programs
16227 cygwin* | mingw* | pw32* | cegcc*)
16228 version_type=windows
16233 case $GCC,$cc_basename in
16236 library_names_spec='$libname.dll.a'
16237 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16238 postinstall_cmds='base_file=`basename \${file}`~
16239 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16240 dldir=$destdir/`dirname \$dlpath`~
16241 test -d \$dldir || mkdir -p \$dldir~
16242 $install_prog $dir/$dlname \$dldir/$dlname~
16243 chmod a+x \$dldir/$dlname~
16244 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16245 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16247 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16248 dlpath=$dir/\$dldll~
16250 shlibpath_overrides_runpath=yes
16254 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16255 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16259 # MinGW DLLs use traditional 'lib' prefix
16260 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16263 # pw32 DLLs use 'pw' prefix rather than 'lib'
16264 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16267 dynamic_linker='Win32 ld.exe'
16272 libname_spec='$name'
16273 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16274 library_names_spec='${libname}.dll.lib'
16278 sys_lib_search_path_spec=
16281 for lt_path in $LIB
16284 # Let DOS variable expansion print the short 8.3 style file name.
16285 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16286 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16289 # Convert to MSYS style.
16290 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16293 # Convert to unix form, then to dos form, then back to unix form
16294 # but this time dos style (no spaces!) so that the unix form looks
16295 # like /cygdrive/c/PROGRA~1:/cygdr...
16296 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16297 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16298 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16301 sys_lib_search_path_spec="$LIB"
16302 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16303 # It is most probably a Windows format PATH.
16304 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16306 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16308 # FIXME: find the short name or the path components, as spaces are
16309 # common. (e.g. "Program Files" -> "PROGRA~1")
16313 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16314 postinstall_cmds='base_file=`basename \${file}`~
16315 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16316 dldir=$destdir/`dirname \$dlpath`~
16317 test -d \$dldir || mkdir -p \$dldir~
16318 $install_prog $dir/$dlname \$dldir/$dlname'
16319 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16320 dlpath=$dir/\$dldll~
16322 shlibpath_overrides_runpath=yes
16323 dynamic_linker='Win32 link.exe'
16327 # Assume MSVC wrapper
16328 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16329 dynamic_linker='Win32 ld.exe'
16332 # FIXME: first we should search . and the directory the executable is in
16336 darwin* | rhapsody*)
16337 dynamic_linker="$host_os dyld"
16338 version_type=darwin
16341 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16342 soname_spec='${libname}${release}${major}$shared_ext'
16343 shlibpath_overrides_runpath=yes
16344 shlibpath_var=DYLD_LIBRARY_PATH
16345 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16347 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16355 soname_spec='${libname}${release}${shared_ext}$major'
16356 shlibpath_var=LD_LIBRARY_PATH
16363 freebsd* | dragonfly*)
16364 # DragonFly does not have aout. When/if they implement a new
16365 # versioning mechanism, adjust this.
16366 if test -x /usr/bin/objformat; then
16367 objformat=`/usr/bin/objformat`
16370 freebsd[123]*) objformat=aout ;;
16371 *) objformat=elf ;;
16374 version_type=freebsd-$objformat
16375 case $version_type in
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16382 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16386 shlibpath_var=LD_LIBRARY_PATH
16389 shlibpath_overrides_runpath=yes
16391 freebsd3.[01]* | freebsdelf3.[01]*)
16392 shlibpath_overrides_runpath=yes
16393 hardcode_into_libs=yes
16395 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16396 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16397 shlibpath_overrides_runpath=no
16398 hardcode_into_libs=yes
16400 *) # from 4.6 on, and DragonFly
16401 shlibpath_overrides_runpath=yes
16402 hardcode_into_libs=yes
16411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16412 soname_spec='${libname}${release}${shared_ext}$major'
16413 shlibpath_var=LD_LIBRARY_PATH
16414 hardcode_into_libs=yes
16421 dynamic_linker="$host_os runtime_loader"
16422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16423 soname_spec='${libname}${release}${shared_ext}$major'
16424 shlibpath_var=LIBRARY_PATH
16425 shlibpath_overrides_runpath=yes
16426 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16427 hardcode_into_libs=yes
16430 hpux9* | hpux10* | hpux11*)
16431 # Give a soname corresponding to the major version so that dld.sl refuses to
16432 # link against other versions.
16439 hardcode_into_libs=yes
16440 dynamic_linker="$host_os dld.so"
16441 shlibpath_var=LD_LIBRARY_PATH
16442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16444 soname_spec='${libname}${release}${shared_ext}$major'
16445 if test "X$HPUX_IA64_MODE" = X32; then
16446 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16448 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16454 hardcode_into_libs=yes
16455 dynamic_linker="$host_os dld.sl"
16456 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16459 soname_spec='${libname}${release}${shared_ext}$major'
16460 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16465 dynamic_linker="$host_os dld.sl"
16466 shlibpath_var=SHLIB_PATH
16467 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16469 soname_spec='${libname}${release}${shared_ext}$major'
16472 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16473 postinstall_cmds='chmod 555 $lib'
16474 # or fails outright, so override atomically:
16475 install_override_mode=555
16482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16483 soname_spec='${libname}${release}${shared_ext}$major'
16484 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16485 shlibpath_var=LD_LIBRARY_PATH
16486 shlibpath_overrides_runpath=no
16487 hardcode_into_libs=yes
16490 irix5* | irix6* | nonstopux*)
16492 nonstopux*) version_type=nonstopux ;;
16494 if test "$lt_cv_prog_gnu_ld" = yes; then
16502 soname_spec='${libname}${release}${shared_ext}$major'
16503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16505 irix5* | nonstopux*)
16506 libsuff= shlibsuff=
16509 case $LD in # libtool.m4 will add one of these switches to LD
16510 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16511 libsuff= shlibsuff= libmagic=32-bit;;
16512 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16513 libsuff=32 shlibsuff=N32 libmagic=N32;;
16514 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16515 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16516 *) libsuff= shlibsuff= libmagic=never-match;;
16520 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16521 shlibpath_overrides_runpath=no
16522 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16523 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16524 hardcode_into_libs=yes
16527 # No shared lib support for Linux oldld, aout, or coff.
16528 linux*oldld* | linux*aout* | linux*coff*)
16532 # This must be Linux ELF.
16533 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16538 soname_spec='${libname}${release}${shared_ext}$major'
16539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16540 shlibpath_var=LD_LIBRARY_PATH
16541 shlibpath_overrides_runpath=no
16543 # Some binutils ld are patched to set DT_RUNPATH
16544 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16545 $as_echo_n "(cached) " >&6
16547 lt_cv_shlibpath_overrides_runpath=no
16548 save_LDFLAGS=$LDFLAGS
16549 save_libdir=$libdir
16550 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16551 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h. */
16563 if ac_fn_cxx_try_link "$LINENO"; then :
16564 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16565 lt_cv_shlibpath_overrides_runpath=yes
16568 rm -f core conftest.err conftest.$ac_objext \
16569 conftest$ac_exeext conftest.$ac_ext
16570 LDFLAGS=$save_LDFLAGS
16571 libdir=$save_libdir
16575 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16577 # This implies no fast_install, which is unacceptable.
16578 # Some rework will be needed to allow for fast_install
16579 # before this can be enabled.
16580 hardcode_into_libs=yes
16582 # Add ABI-specific directories to the system library path.
16583 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16585 # Append ld.so.conf contents to the search path
16586 if test -f /etc/ld.so.conf; then
16587 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16588 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16592 # We used to test for /lib/ld.so.1 and disable shared libraries on
16593 # powerpc, because MkLinux only supported shared libraries with the
16594 # GNU dynamic linker. Since this was broken with cross compilers,
16595 # most powerpc-linux boxes support dynamic linking these days and
16596 # people can always --disable-shared, the test was removed, and we
16597 # assume the GNU/Linux dynamic linker is in use.
16598 dynamic_linker='GNU/Linux ld.so'
16605 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16608 dynamic_linker='NetBSD (a.out) ld.so'
16610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16611 soname_spec='${libname}${release}${shared_ext}$major'
16612 dynamic_linker='NetBSD ld.elf_so'
16614 shlibpath_var=LD_LIBRARY_PATH
16615 shlibpath_overrides_runpath=yes
16616 hardcode_into_libs=yes
16621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16622 shlibpath_var=LD_LIBRARY_PATH
16623 shlibpath_overrides_runpath=yes
16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16631 soname_spec='${libname}${release}${shared_ext}$major'
16632 shlibpath_var=LD_LIBRARY_PATH
16633 shlibpath_overrides_runpath=no
16634 hardcode_into_libs=yes
16635 dynamic_linker='ldqnx.so'
16640 sys_lib_dlsearch_path_spec="/usr/lib"
16642 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16644 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16645 *) need_version=no ;;
16647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16649 shlibpath_var=LD_LIBRARY_PATH
16650 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16652 openbsd2.[89] | openbsd2.[89].*)
16653 shlibpath_overrides_runpath=no
16656 shlibpath_overrides_runpath=yes
16660 shlibpath_overrides_runpath=yes
16665 libname_spec='$name'
16668 library_names_spec='$libname${shared_ext} $libname.a'
16669 dynamic_linker='OS/2 ld.exe'
16670 shlibpath_var=LIBPATH
16673 osf3* | osf4* | osf5*)
16677 soname_spec='${libname}${release}${shared_ext}$major'
16678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16679 shlibpath_var=LD_LIBRARY_PATH
16680 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16681 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693 soname_spec='${libname}${release}${shared_ext}$major'
16694 shlibpath_var=LD_LIBRARY_PATH
16695 shlibpath_overrides_runpath=yes
16696 hardcode_into_libs=yes
16697 # ldd complains unless libraries are executable
16698 postinstall_cmds='chmod +x $lib'
16703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16704 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16705 shlibpath_var=LD_LIBRARY_PATH
16706 shlibpath_overrides_runpath=yes
16707 if test "$with_gnu_ld" = yes; then
16715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16716 soname_spec='${libname}${release}${shared_ext}$major'
16717 shlibpath_var=LD_LIBRARY_PATH
16718 case $host_vendor in
16720 shlibpath_overrides_runpath=no
16722 runpath_var=LD_RUN_PATH
16730 shlibpath_overrides_runpath=no
16731 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16737 if test -d /usr/nec ;then
16739 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16740 soname_spec='$libname${shared_ext}.$major'
16741 shlibpath_var=LD_LIBRARY_PATH
16745 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16746 version_type=freebsd-elf
16749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16750 soname_spec='${libname}${release}${shared_ext}$major'
16751 shlibpath_var=LD_LIBRARY_PATH
16752 shlibpath_overrides_runpath=yes
16753 hardcode_into_libs=yes
16754 if test "$with_gnu_ld" = yes; then
16755 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16757 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16760 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16764 sys_lib_dlsearch_path_spec='/usr/lib'
16768 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16773 shlibpath_var=LD_LIBRARY_PATH
16774 shlibpath_overrides_runpath=no
16775 hardcode_into_libs=yes
16780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16781 soname_spec='${libname}${release}${shared_ext}$major'
16782 shlibpath_var=LD_LIBRARY_PATH
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16790 $as_echo "$dynamic_linker" >&6; }
16791 test "$dynamic_linker" = no && can_build_shared=no
16793 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16794 if test "$GCC" = yes; then
16795 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16798 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16799 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16801 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16802 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16843 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16844 hardcode_action_CXX=
16845 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16846 test -n "$runpath_var_CXX" ||
16847 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16849 # We can hardcode non-existent directories.
16850 if test "$hardcode_direct_CXX" != no &&
16851 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16852 # have to relink, otherwise we might link with an installed library
16853 # when we should be linking with a yet-to-be-installed one
16854 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16855 test "$hardcode_minus_L_CXX" != no; then
16856 # Linking always hardcodes the temporary library directory.
16857 hardcode_action_CXX=relink
16859 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16860 hardcode_action_CXX=immediate
16863 # We cannot hardcode anything, or else we can only hardcode existing
16865 hardcode_action_CXX=unsupported
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16868 $as_echo "$hardcode_action_CXX" >&6; }
16870 if test "$hardcode_action_CXX" = relink ||
16871 test "$inherit_rpath_CXX" = yes; then
16872 # Fast installation is not supported
16873 enable_fast_install=no
16874 elif test "$shlibpath_overrides_runpath" = yes ||
16875 test "$enable_shared" = no; then
16876 # Fast installation is not necessary
16877 enable_fast_install=needless
16886 fi # test -n "$compiler"
16889 CFLAGS=$lt_save_CFLAGS
16893 with_gnu_ld=$lt_save_with_gnu_ld
16894 lt_cv_path_LDCXX=$lt_cv_path_LD
16895 lt_cv_path_LD=$lt_save_path_LD
16896 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16897 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16898 fi # test "$_lt_caught_CXX_error" != yes
16901 ac_cpp='$CPP $CPPFLAGS'
16902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16918 ac_config_commands="$ac_config_commands libtool"
16923 # Only expand once:
16926 if test "x$CC" != xcc; then
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
16928 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
16931 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
16933 set dummy $CC; ac_cc=`$as_echo "$2" |
16934 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16935 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
16936 $as_echo_n "(cached) " >&6
16938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939 /* end confdefs.h. */
16949 # Make sure it works both with $CC and with simple cc.
16950 # We do the test twice because some compilers refuse to overwrite an
16951 # existing .o file with -o, though they will create one.
16952 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16954 if { { case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16959 $as_echo "$ac_try_echo"; } >&5
16960 (eval "$ac_try") 2>&5
16962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16963 test $ac_status = 0; } &&
16964 test -f conftest2.$ac_objext && { { case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16969 $as_echo "$ac_try_echo"; } >&5
16970 (eval "$ac_try") 2>&5
16972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16973 test $ac_status = 0; };
16975 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
16976 if test "x$CC" != xcc; then
16977 # Test first that cc exists at all.
16978 if { ac_try='cc -c conftest.$ac_ext >&5'
16979 { { case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16984 $as_echo "$ac_try_echo"; } >&5
16985 (eval "$ac_try") 2>&5
16987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16988 test $ac_status = 0; }; }; then
16989 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16991 if { { case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16996 $as_echo "$ac_try_echo"; } >&5
16997 (eval "$ac_try") 2>&5
16999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17000 test $ac_status = 0; } &&
17001 test -f conftest2.$ac_objext && { { case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17006 $as_echo "$ac_try_echo"; } >&5
17007 (eval "$ac_try") 2>&5
17009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17010 test $ac_status = 0; };
17015 # cc exists but doesn't like -o.
17016 eval ac_cv_prog_cc_${ac_cc}_c_o=no
17021 eval ac_cv_prog_cc_${ac_cc}_c_o=no
17023 rm -f core conftest*
17026 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17028 $as_echo "yes" >&6; }
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17031 $as_echo "no" >&6; }
17033 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
17037 # FIXME: we rely on the cache variable name because
17038 # there is no other way.
17040 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17041 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
17042 if test "$am_t" != yes; then
17043 # Losing compiler, so override with the script.
17044 # FIXME: It is wrong to rewrite CC.
17045 # But if we don't then we get into trouble of one sort or another.
17046 # A longer-term fix would be to have automake use am__CC in this case,
17047 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
17048 CC="$am_aux_dir/compile $CC"
17053 if test "x$cross_compiling" = "xno"; then
17054 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
17056 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
17061 if test -n "$ac_tool_prefix"; then
17062 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17063 set dummy ${ac_tool_prefix}ar; ac_word=$2
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17065 $as_echo_n "checking for $ac_word... " >&6; }
17066 if ${ac_cv_prog_AR+:} false; then :
17067 $as_echo_n "(cached) " >&6
17069 if test -n "$AR"; then
17070 ac_cv_prog_AR="$AR" # Let the user override the test.
17072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17073 for as_dir in $PATH
17076 test -z "$as_dir" && as_dir=.
17077 for ac_exec_ext in '' $ac_executable_extensions; do
17078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17079 ac_cv_prog_AR="${ac_tool_prefix}ar"
17080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17090 if test -n "$AR"; then
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
17092 $as_echo "$AR" >&6; }
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17095 $as_echo "no" >&6; }
17100 if test -z "$ac_cv_prog_AR"; then
17102 # Extract the first word of "ar", so it can be a program name with args.
17103 set dummy ar; ac_word=$2
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17105 $as_echo_n "checking for $ac_word... " >&6; }
17106 if ${ac_cv_prog_ac_ct_AR+:} false; then :
17107 $as_echo_n "(cached) " >&6
17109 if test -n "$ac_ct_AR"; then
17110 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17113 for as_dir in $PATH
17116 test -z "$as_dir" && as_dir=.
17117 for ac_exec_ext in '' $ac_executable_extensions; do
17118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17119 ac_cv_prog_ac_ct_AR="ar"
17120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17129 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17130 if test -n "$ac_ct_AR"; then
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
17132 $as_echo "$ac_ct_AR" >&6; }
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17135 $as_echo "no" >&6; }
17138 if test "x$ac_ct_AR" = x; then
17141 case $cross_compiling:$ac_tool_warned in
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17145 ac_tool_warned=yes ;;
17150 AR="$ac_cv_prog_AR"
17153 if test -n "$ac_tool_prefix"; then
17154 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
17155 set dummy ${ac_tool_prefix}ld; ac_word=$2
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17157 $as_echo_n "checking for $ac_word... " >&6; }
17158 if ${ac_cv_prog_LD+:} false; then :
17159 $as_echo_n "(cached) " >&6
17161 if test -n "$LD"; then
17162 ac_cv_prog_LD="$LD" # Let the user override the test.
17164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17165 for as_dir in $PATH
17168 test -z "$as_dir" && as_dir=.
17169 for ac_exec_ext in '' $ac_executable_extensions; do
17170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17171 ac_cv_prog_LD="${ac_tool_prefix}ld"
17172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17182 if test -n "$LD"; then
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17184 $as_echo "$LD" >&6; }
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17187 $as_echo "no" >&6; }
17192 if test -z "$ac_cv_prog_LD"; then
17194 # Extract the first word of "ld", so it can be a program name with args.
17195 set dummy ld; ac_word=$2
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17197 $as_echo_n "checking for $ac_word... " >&6; }
17198 if ${ac_cv_prog_ac_ct_LD+:} false; then :
17199 $as_echo_n "(cached) " >&6
17201 if test -n "$ac_ct_LD"; then
17202 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
17204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17205 for as_dir in $PATH
17208 test -z "$as_dir" && as_dir=.
17209 for ac_exec_ext in '' $ac_executable_extensions; do
17210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17211 ac_cv_prog_ac_ct_LD="ld"
17212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17221 ac_ct_LD=$ac_cv_prog_ac_ct_LD
17222 if test -n "$ac_ct_LD"; then
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
17224 $as_echo "$ac_ct_LD" >&6; }
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17227 $as_echo "no" >&6; }
17230 if test "x$ac_ct_LD" = x; then
17233 case $cross_compiling:$ac_tool_warned in
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17237 ac_tool_warned=yes ;;
17242 LD="$ac_cv_prog_LD"
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17247 $as_echo_n "checking for ANSI C header files... " >&6; }
17248 if ${ac_cv_header_stdc+:} false; then :
17249 $as_echo_n "(cached) " >&6
17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252 /* end confdefs.h. */
17253 #include <stdlib.h>
17254 #include <stdarg.h>
17255 #include <string.h>
17266 if ac_fn_c_try_compile "$LINENO"; then :
17267 ac_cv_header_stdc=yes
17269 ac_cv_header_stdc=no
17271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17273 if test $ac_cv_header_stdc = yes; then
17274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17276 /* end confdefs.h. */
17277 #include <string.h>
17280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17281 $EGREP "memchr" >/dev/null 2>&1; then :
17284 ac_cv_header_stdc=no
17290 if test $ac_cv_header_stdc = yes; then
17291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h. */
17294 #include <stdlib.h>
17297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17298 $EGREP "free" >/dev/null 2>&1; then :
17301 ac_cv_header_stdc=no
17307 if test $ac_cv_header_stdc = yes; then
17308 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17309 if test "$cross_compiling" = yes; then :
17312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313 /* end confdefs.h. */
17315 #include <stdlib.h>
17316 #if ((' ' & 0x0FF) == 0x020)
17317 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17318 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17320 # define ISLOWER(c) \
17321 (('a' <= (c) && (c) <= 'i') \
17322 || ('j' <= (c) && (c) <= 'r') \
17323 || ('s' <= (c) && (c) <= 'z'))
17324 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17327 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17332 for (i = 0; i < 256; i++)
17333 if (XOR (islower (i), ISLOWER (i))
17334 || toupper (i) != TOUPPER (i))
17339 if ac_fn_c_try_run "$LINENO"; then :
17342 ac_cv_header_stdc=no
17344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17345 conftest.$ac_objext conftest.beam conftest.$ac_ext
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17351 $as_echo "$ac_cv_header_stdc" >&6; }
17352 if test $ac_cv_header_stdc = yes; then
17354 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc2" >&5
17360 $as_echo_n "checking for GNU libc2... " >&6; }
17361 if ${knfsd_cv_glibc2+:} false; then :
17362 $as_echo_n "(cached) " >&6
17364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365 /* end confdefs.h. */
17367 #include <features.h>
17368 #if !defined(__GLIBC__)
17373 if ac_fn_c_try_cpp "$LINENO"; then :
17374 knfsd_cv_glibc2=yes
17378 rm -f conftest.err conftest.i conftest.$ac_ext
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $knfsd_cv_glibc2" >&5
17382 $as_echo "$knfsd_cv_glibc2" >&6; }
17383 if test $knfsd_cv_glibc2 = yes; then
17384 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17385 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD signal semantics" >&5
17390 $as_echo_n "checking for BSD signal semantics... " >&6; }
17391 if ${knfsd_cv_bsd_signals+:} false; then :
17392 $as_echo_n "(cached) " >&6
17394 if test "$cross_compiling" = yes; then :
17397 *linux*) knfsd_cv_bsd_signals=no;;
17398 *bsd*) knfsd_cv_bsd_signals=yes;;
17399 *) as_fn_error $? "unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" "$LINENO" 5;;
17403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17404 /* end confdefs.h. */
17406 #include <signal.h>
17407 #include <unistd.h>
17408 #include <sys/wait.h>
17410 static int counter = 0;
17411 static RETSIGTYPE handler(int num) { counter++; }
17416 if ((s = fork()) < 0) return 1;
17418 if (wait(&s) < 0) return 1;
17419 return WIFSIGNALED(s)? 1 : 0;
17422 signal(SIGHUP, handler);
17423 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
17424 return (counter == 2)? 0 : 1;
17428 if ac_fn_c_try_run "$LINENO"; then :
17429 knfsd_cv_bsd_signals=yes
17431 knfsd_cv_bsd_signals=no
17433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17434 conftest.$ac_objext conftest.beam conftest.$ac_ext
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $knfsd_cv_bsd_signals" >&5
17439 $as_echo "$knfsd_cv_bsd_signals" >&6; }
17440 test $knfsd_cv_bsd_signals = yes &&
17441 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
17446 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
17447 if test "x$ac_cv_func_gethostbyname" = xyes; then :
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
17451 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
17452 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
17453 $as_echo_n "(cached) " >&6
17455 ac_check_lib_save_LIBS=$LIBS
17457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17458 /* end confdefs.h. */
17460 /* Override any GCC internal prototype to avoid an error.
17461 Use char because int might match the return type of a GCC
17462 builtin and then its argument prototype would still apply. */
17466 char gethostbyname ();
17470 return gethostbyname ();
17475 if ac_fn_c_try_link "$LINENO"; then :
17476 ac_cv_lib_nsl_gethostbyname=yes
17478 ac_cv_lib_nsl_gethostbyname=no
17480 rm -f core conftest.err conftest.$ac_objext \
17481 conftest$ac_exeext conftest.$ac_ext
17482 LIBS=$ac_check_lib_save_LIBS
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
17485 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
17486 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
17494 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
17495 if test "x$ac_cv_func_connect" = xyes; then :
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
17499 $as_echo_n "checking for connect in -lsocket... " >&6; }
17500 if ${ac_cv_lib_socket_connect+:} false; then :
17501 $as_echo_n "(cached) " >&6
17503 ac_check_lib_save_LIBS=$LIBS
17504 LIBS="-lsocket $LIBNSL $LIBS"
17505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17506 /* end confdefs.h. */
17508 /* Override any GCC internal prototype to avoid an error.
17509 Use char because int might match the return type of a GCC
17510 builtin and then its argument prototype would still apply. */
17523 if ac_fn_c_try_link "$LINENO"; then :
17524 ac_cv_lib_socket_connect=yes
17526 ac_cv_lib_socket_connect=no
17528 rm -f core conftest.err conftest.$ac_objext \
17529 conftest$ac_exeext conftest.$ac_ext
17530 LIBS=$ac_check_lib_save_LIBS
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
17533 $as_echo "$ac_cv_lib_socket_connect" >&6; }
17534 if test "x$ac_cv_lib_socket_connect" = xyes; then :
17535 LIBSOCKET="-lsocket"
17537 as_fn_error $? "Function 'socket' not found." "$LINENO" 5
17543 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
17544 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
17547 as_fn_error $? "Function 'getaddrinfo' not found." "$LINENO" 5
17551 ac_fn_c_check_func "$LINENO" "getrpcbynumber" "ac_cv_func_getrpcbynumber"
17552 if test "x$ac_cv_func_getrpcbynumber" = xyes; then :
17555 as_fn_error $? "Function 'getrpcbynumber' not found." "$LINENO" 5
17559 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
17560 if test "x$ac_cv_func_getservbyname" = xyes; then :
17563 as_fn_error $? "Function 'getservbyname' not found." "$LINENO" 5
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
17568 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
17569 if ${ac_cv_lib_crypt_crypt+:} false; then :
17570 $as_echo_n "(cached) " >&6
17572 ac_check_lib_save_LIBS=$LIBS
17573 LIBS="-lcrypt $LIBS"
17574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17575 /* end confdefs.h. */
17577 /* Override any GCC internal prototype to avoid an error.
17578 Use char because int might match the return type of a GCC
17579 builtin and then its argument prototype would still apply. */
17592 if ac_fn_c_try_link "$LINENO"; then :
17593 ac_cv_lib_crypt_crypt=yes
17595 ac_cv_lib_crypt_crypt=no
17597 rm -f core conftest.err conftest.$ac_objext \
17598 conftest$ac_exeext conftest.$ac_ext
17599 LIBS=$ac_check_lib_save_LIBS
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
17602 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
17603 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlclose in -ldl" >&5
17609 $as_echo_n "checking for dlclose in -ldl... " >&6; }
17610 if ${ac_cv_lib_dl_dlclose+:} false; then :
17611 $as_echo_n "(cached) " >&6
17613 ac_check_lib_save_LIBS=$LIBS
17615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17616 /* end confdefs.h. */
17618 /* Override any GCC internal prototype to avoid an error.
17619 Use char because int might match the return type of a GCC
17620 builtin and then its argument prototype would still apply. */
17633 if ac_fn_c_try_link "$LINENO"; then :
17634 ac_cv_lib_dl_dlclose=yes
17636 ac_cv_lib_dl_dlclose=no
17638 rm -f core conftest.err conftest.$ac_objext \
17639 conftest$ac_exeext conftest.$ac_ext
17640 LIBS=$ac_check_lib_save_LIBS
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlclose" >&5
17643 $as_echo "$ac_cv_lib_dl_dlclose" >&6; }
17644 if test "x$ac_cv_lib_dl_dlclose" = xyes; then :
17649 if test "$enable_nfsv4" = yes; then
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for event_dispatch in -levent" >&5
17653 $as_echo_n "checking for event_dispatch in -levent... " >&6; }
17654 if ${ac_cv_lib_event_event_dispatch+:} false; then :
17655 $as_echo_n "(cached) " >&6
17657 ac_check_lib_save_LIBS=$LIBS
17658 LIBS="-levent $LIBS"
17659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17660 /* end confdefs.h. */
17662 /* Override any GCC internal prototype to avoid an error.
17663 Use char because int might match the return type of a GCC
17664 builtin and then its argument prototype would still apply. */
17668 char event_dispatch ();
17672 return event_dispatch ();
17677 if ac_fn_c_try_link "$LINENO"; then :
17678 ac_cv_lib_event_event_dispatch=yes
17680 ac_cv_lib_event_event_dispatch=no
17682 rm -f core conftest.err conftest.$ac_objext \
17683 conftest$ac_exeext conftest.$ac_ext
17684 LIBS=$ac_check_lib_save_LIBS
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_event_dispatch" >&5
17687 $as_echo "$ac_cv_lib_event_event_dispatch" >&6; }
17688 if test "x$ac_cv_lib_event_event_dispatch" = xyes; then :
17691 as_fn_error $? "libevent not found." "$LINENO" 5
17696 for ac_header in event.h
17698 ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default"
17699 if test "x$ac_cv_header_event_h" = xyes; then :
17700 cat >>confdefs.h <<_ACEOF
17701 #define HAVE_EVENT_H 1
17705 as_fn_error $? "libevent headers not found." "$LINENO" 5
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
17716 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
17717 if ${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+:} false; then :
17718 $as_echo_n "(cached) " >&6
17720 ac_check_lib_save_LIBS=$LIBS
17721 LIBS="-lnfsidmap $LIBS"
17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723 /* end confdefs.h. */
17725 /* Override any GCC internal prototype to avoid an error.
17726 Use char because int might match the return type of a GCC
17727 builtin and then its argument prototype would still apply. */
17731 char nfs4_init_name_mapping ();
17735 return nfs4_init_name_mapping ();
17740 if ac_fn_c_try_link "$LINENO"; then :
17741 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
17743 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
17745 rm -f core conftest.err conftest.$ac_objext \
17746 conftest$ac_exeext conftest.$ac_ext
17747 LIBS=$ac_check_lib_save_LIBS
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
17750 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
17751 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = xyes; then :
17752 LIBNFSIDMAP=-lnfsidmap
17754 as_fn_error $? "libnfsidmap not found." "$LINENO" 5
17758 for ac_header in nfsidmap.h
17760 ac_fn_c_check_header_mongrel "$LINENO" "nfsidmap.h" "ac_cv_header_nfsidmap_h" "$ac_includes_default"
17761 if test "x$ac_cv_header_nfsidmap_h" = xyes; then :
17762 cat >>confdefs.h <<_ACEOF
17763 #define HAVE_NFSIDMAP_H 1
17767 as_fn_error $? "libnfsidmap headers not found." "$LINENO" 5
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_set_debug in -lnfsidmap" >&5
17774 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
17775 if ${ac_cv_lib_nfsidmap_nfs4_set_debug+:} false; then :
17776 $as_echo_n "(cached) " >&6
17778 ac_check_lib_save_LIBS=$LIBS
17779 LIBS="-lnfsidmap $LIBS"
17780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17781 /* end confdefs.h. */
17783 /* Override any GCC internal prototype to avoid an error.
17784 Use char because int might match the return type of a GCC
17785 builtin and then its argument prototype would still apply. */
17789 char nfs4_set_debug ();
17793 return nfs4_set_debug ();
17798 if ac_fn_c_try_link "$LINENO"; then :
17799 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
17801 ac_cv_lib_nfsidmap_nfs4_set_debug=no
17803 rm -f core conftest.err conftest.$ac_objext \
17804 conftest$ac_exeext conftest.$ac_ext
17805 LIBS=$ac_check_lib_save_LIBS
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
17808 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
17809 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = xyes; then :
17811 $as_echo "#define HAVE_NFS4_SET_DEBUG 1" >>confdefs.h
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_owner_to_uid in -lnfsidmap" >&5
17817 $as_echo_n "checking for nfs4_owner_to_uid in -lnfsidmap... " >&6; }
17818 if ${ac_cv_lib_nfsidmap_nfs4_owner_to_uid+:} false; then :
17819 $as_echo_n "(cached) " >&6
17821 ac_check_lib_save_LIBS=$LIBS
17822 LIBS="-lnfsidmap $LIBS"
17823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17824 /* end confdefs.h. */
17826 /* Override any GCC internal prototype to avoid an error.
17827 Use char because int might match the return type of a GCC
17828 builtin and then its argument prototype would still apply. */
17832 char nfs4_owner_to_uid ();
17836 return nfs4_owner_to_uid ();
17841 if ac_fn_c_try_link "$LINENO"; then :
17842 ac_cv_lib_nfsidmap_nfs4_owner_to_uid=yes
17844 ac_cv_lib_nfsidmap_nfs4_owner_to_uid=no
17846 rm -f core conftest.err conftest.$ac_objext \
17847 conftest$ac_exeext conftest.$ac_ext
17848 LIBS=$ac_check_lib_save_LIBS
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&5
17851 $as_echo "$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&6; }
17852 if test "x$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = xyes; then :
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for keyctl_instantiate in -lkeyutils" >&5
17864 $as_echo_n "checking for keyctl_instantiate in -lkeyutils... " >&6; }
17865 if ${ac_cv_lib_keyutils_keyctl_instantiate+:} false; then :
17866 $as_echo_n "(cached) " >&6
17868 ac_check_lib_save_LIBS=$LIBS
17869 LIBS="-lkeyutils $LIBS"
17870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17871 /* end confdefs.h. */
17873 /* Override any GCC internal prototype to avoid an error.
17874 Use char because int might match the return type of a GCC
17875 builtin and then its argument prototype would still apply. */
17879 char keyctl_instantiate ();
17883 return keyctl_instantiate ();
17888 if ac_fn_c_try_link "$LINENO"; then :
17889 ac_cv_lib_keyutils_keyctl_instantiate=yes
17891 ac_cv_lib_keyutils_keyctl_instantiate=no
17893 rm -f core conftest.err conftest.$ac_objext \
17894 conftest$ac_exeext conftest.$ac_ext
17895 LIBS=$ac_check_lib_save_LIBS
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_keyctl_instantiate" >&5
17898 $as_echo "$ac_cv_lib_keyutils_keyctl_instantiate" >&6; }
17899 if test "x$ac_cv_lib_keyutils_keyctl_instantiate" = xyes; then :
17900 LIBKEYUTILS=-lkeyutils
17905 for ac_header in keyutils.h
17907 ac_fn_c_check_header_mongrel "$LINENO" "keyutils.h" "ac_cv_header_keyutils_h" "$ac_includes_default"
17908 if test "x$ac_cv_header_keyutils_h" = xyes; then :
17909 cat >>confdefs.h <<_ACEOF
17910 #define HAVE_KEYUTILS_H 1
17921 for ac_header in sqlite3.h
17923 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
17924 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
17925 cat >>confdefs.h <<_ACEOF
17926 #define HAVE_SQLITE3_H 1
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_libversion_number in -lsqlite3" >&5
17935 $as_echo_n "checking for sqlite3_libversion_number in -lsqlite3... " >&6; }
17936 if ${ac_cv_lib_sqlite3_sqlite3_libversion_number+:} false; then :
17937 $as_echo_n "(cached) " >&6
17939 ac_check_lib_save_LIBS=$LIBS
17940 LIBS="-lsqlite3 $LIBS"
17941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942 /* end confdefs.h. */
17944 /* Override any GCC internal prototype to avoid an error.
17945 Use char because int might match the return type of a GCC
17946 builtin and then its argument prototype would still apply. */
17950 char sqlite3_libversion_number ();
17954 return sqlite3_libversion_number ();
17959 if ac_fn_c_try_link "$LINENO"; then :
17960 ac_cv_lib_sqlite3_sqlite3_libversion_number=yes
17962 ac_cv_lib_sqlite3_sqlite3_libversion_number=no
17964 rm -f core conftest.err conftest.$ac_objext \
17965 conftest$ac_exeext conftest.$ac_ext
17966 LIBS=$ac_check_lib_save_LIBS
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_libversion_number" >&5
17969 $as_echo "$ac_cv_lib_sqlite3_sqlite3_libversion_number" >&6; }
17970 if test "x$ac_cv_lib_sqlite3_sqlite3_libversion_number" = xyes; then :
17971 LIBSQLITE=-lsqlite3
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable sqlite3 version" >&5
17977 $as_echo_n "checking for suitable sqlite3 version... " >&6; }
17979 if ${libsqlite3_cv_is_recent+:} false; then :
17980 $as_echo_n "(cached) " >&6
17985 if test "$cross_compiling" = yes; then :
17986 libsqlite3_cv_is_recent=unknown
17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17989 /* end confdefs.h. */
17992 #include <sqlite3.h>
17995 int vers = sqlite3_libversion_number();
17997 return vers != SQLITE_VERSION_NUMBER ||
18002 if ac_fn_c_try_run "$LINENO"; then :
18003 libsqlite3_cv_is_recent=yes
18005 libsqlite3_cv_is_recent=no
18007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18008 conftest.$ac_objext conftest.beam conftest.$ac_ext
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsqlite3_cv_is_recent" >&5
18016 $as_echo "$libsqlite3_cv_is_recent" >&6; }
18017 if test "$libsqlite3_cv_is_recent" = "yes"; then
18018 CONFIG_SQLITE3_TRUE=
18019 CONFIG_SQLITE3_FALSE='#'
18021 CONFIG_SQLITE3_TRUE='#'
18022 CONFIG_SQLITE3_FALSE=
18027 if test "$enable_nfsdcld" = "yes"; then
18028 for ac_header in libgen.h sys/inotify.h
18030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18031 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18032 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18033 cat >>confdefs.h <<_ACEOF
18034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18038 as_fn_error $? "Cannot find header needed for nfsdcld" "$LINENO" 5
18044 if test "$libsqlite3_cv_is_recent" != "yes" ; then
18045 as_fn_error $? "nfsdcld requires sqlite3" "$LINENO" 5
18049 if test "$enable_nfsdcld" = "yes" ; then
18050 CONFIG_NFSDCLD_TRUE=
18051 CONFIG_NFSDCLD_FALSE='#'
18053 CONFIG_NFSDCLD_TRUE='#'
18054 CONFIG_NFSDCLD_FALSE=
18058 if test "$enable_gss" = yes; then
18065 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18066 if test -n "$ac_tool_prefix"; then
18067 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18068 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18070 $as_echo_n "checking for $ac_word... " >&6; }
18071 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18072 $as_echo_n "(cached) " >&6
18074 case $PKG_CONFIG in
18076 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18080 for as_dir in $PATH
18083 test -z "$as_dir" && as_dir=.
18084 for ac_exec_ext in '' $ac_executable_extensions; do
18085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18086 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18097 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18098 if test -n "$PKG_CONFIG"; then
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18100 $as_echo "$PKG_CONFIG" >&6; }
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18103 $as_echo "no" >&6; }
18108 if test -z "$ac_cv_path_PKG_CONFIG"; then
18109 ac_pt_PKG_CONFIG=$PKG_CONFIG
18110 # Extract the first word of "pkg-config", so it can be a program name with args.
18111 set dummy pkg-config; ac_word=$2
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18113 $as_echo_n "checking for $ac_word... " >&6; }
18114 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18115 $as_echo_n "(cached) " >&6
18117 case $ac_pt_PKG_CONFIG in
18119 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18123 for as_dir in $PATH
18126 test -z "$as_dir" && as_dir=.
18127 for ac_exec_ext in '' $ac_executable_extensions; do
18128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18129 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18140 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18141 if test -n "$ac_pt_PKG_CONFIG"; then
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18143 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18146 $as_echo "no" >&6; }
18149 if test "x$ac_pt_PKG_CONFIG" = x; then
18152 case $cross_compiling:$ac_tool_warned in
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18156 ac_tool_warned=yes ;;
18158 PKG_CONFIG=$ac_pt_PKG_CONFIG
18161 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18165 if test -n "$PKG_CONFIG"; then
18166 _pkg_min_version=0.9.0
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18168 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18169 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18171 $as_echo "yes" >&6; }
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18174 $as_echo "no" >&6; }
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSGLUE" >&5
18183 $as_echo_n "checking for GSSGLUE... " >&6; }
18185 if test -n "$GSSGLUE_CFLAGS"; then
18186 pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
18187 elif test -n "$PKG_CONFIG"; then
18188 if test -n "$PKG_CONFIG" && \
18189 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.3\""; } >&5
18190 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.3") 2>&5
18192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18193 test $ac_status = 0; }; then
18194 pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.3" 2>/dev/null`
18201 if test -n "$GSSGLUE_LIBS"; then
18202 pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
18203 elif test -n "$PKG_CONFIG"; then
18204 if test -n "$PKG_CONFIG" && \
18205 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.3\""; } >&5
18206 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.3") 2>&5
18208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18209 test $ac_status = 0; }; then
18210 pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.3" 2>/dev/null`
18220 if test $pkg_failed = yes; then
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18222 $as_echo "no" >&6; }
18224 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18225 _pkg_short_errors_supported=yes
18227 _pkg_short_errors_supported=no
18229 if test $_pkg_short_errors_supported = yes; then
18230 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgssglue >= 0.3" 2>&1`
18232 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgssglue >= 0.3" 2>&1`
18234 # Put the nasty error message in config.log where it belongs
18235 echo "$GSSGLUE_PKG_ERRORS" >&5
18237 as_fn_error $? "Package requirements (libgssglue >= 0.3) were not met:
18239 $GSSGLUE_PKG_ERRORS
18241 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18242 installed software in a non-standard prefix.
18244 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
18245 and GSSGLUE_LIBS to avoid the need to call pkg-config.
18246 See the pkg-config man page for more details." "$LINENO" 5
18248 elif test $pkg_failed = untried; then
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18250 $as_echo "no" >&6; }
18251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18253 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18254 is in your PATH or set the PKG_CONFIG environment variable to the full
18255 path to pkg-config.
18257 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
18258 and GSSGLUE_LIBS to avoid the need to call pkg-config.
18259 See the pkg-config man page for more details.
18261 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18262 See \`config.log' for more details" "$LINENO" 5; }
18265 GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
18266 GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18268 $as_echo "yes" >&6; }
18272 if test "$enable_tirpc" = no; then
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPCSECGSS" >&5
18276 $as_echo_n "checking for RPCSECGSS... " >&6; }
18278 if test -n "$RPCSECGSS_CFLAGS"; then
18279 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
18280 elif test -n "$PKG_CONFIG"; then
18281 if test -n "$PKG_CONFIG" && \
18282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\""; } >&5
18283 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
18285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18286 test $ac_status = 0; }; then
18287 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
18294 if test -n "$RPCSECGSS_LIBS"; then
18295 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
18296 elif test -n "$PKG_CONFIG"; then
18297 if test -n "$PKG_CONFIG" && \
18298 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\""; } >&5
18299 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
18301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18302 test $ac_status = 0; }; then
18303 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
18313 if test $pkg_failed = yes; then
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18315 $as_echo "no" >&6; }
18317 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18318 _pkg_short_errors_supported=yes
18320 _pkg_short_errors_supported=no
18322 if test $_pkg_short_errors_supported = yes; then
18323 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librpcsecgss >= 0.16" 2>&1`
18325 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "librpcsecgss >= 0.16" 2>&1`
18327 # Put the nasty error message in config.log where it belongs
18328 echo "$RPCSECGSS_PKG_ERRORS" >&5
18330 as_fn_error $? "Package requirements (librpcsecgss >= 0.16) were not met:
18332 $RPCSECGSS_PKG_ERRORS
18334 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18335 installed software in a non-standard prefix.
18337 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
18338 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
18339 See the pkg-config man page for more details." "$LINENO" 5
18341 elif test $pkg_failed = untried; then
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18343 $as_echo "no" >&6; }
18344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18346 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18347 is in your PATH or set the PKG_CONFIG environment variable to the full
18348 path to pkg-config.
18350 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
18351 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
18352 See the pkg-config man page for more details.
18354 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18355 See \`config.log' for more details" "$LINENO" 5; }
18358 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
18359 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18361 $as_echo "yes" >&6; }
18370 if test "$enable_nfsv41" = yes; then
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_create in -ldevmapper" >&5
18372 $as_echo_n "checking for dm_task_create in -ldevmapper... " >&6; }
18373 if ${ac_cv_lib_devmapper_dm_task_create+:} false; then :
18374 $as_echo_n "(cached) " >&6
18376 ac_check_lib_save_LIBS=$LIBS
18377 LIBS="-ldevmapper $LIBS"
18378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h. */
18381 /* Override any GCC internal prototype to avoid an error.
18382 Use char because int might match the return type of a GCC
18383 builtin and then its argument prototype would still apply. */
18387 char dm_task_create ();
18391 return dm_task_create ();
18396 if ac_fn_c_try_link "$LINENO"; then :
18397 ac_cv_lib_devmapper_dm_task_create=yes
18399 ac_cv_lib_devmapper_dm_task_create=no
18401 rm -f core conftest.err conftest.$ac_objext \
18402 conftest$ac_exeext conftest.$ac_ext
18403 LIBS=$ac_check_lib_save_LIBS
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_create" >&5
18406 $as_echo "$ac_cv_lib_devmapper_dm_task_create" >&6; }
18407 if test "x$ac_cv_lib_devmapper_dm_task_create" = xyes; then :
18408 LIBDEVMAPPER="-ldevmapper"
18410 as_fn_error $? "libdevmapper needed" "$LINENO" 5
18413 ac_fn_c_check_header_mongrel "$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
18414 if test "x$ac_cv_header_libdevmapper_h" = xyes; then :
18417 as_fn_error $? "Cannot find devmapper header file libdevmapper.h" "$LINENO" 5
18423 if test "$ac_cv_header_keyutils_h$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = "yesyes"; then
18424 CONFIG_NFSIDMAP_TRUE=
18425 CONFIG_NFSIDMAP_FALSE='#'
18427 CONFIG_NFSIDMAP_TRUE='#'
18428 CONFIG_NFSIDMAP_FALSE=
18433 if test "$knfsd_cv_glibc2" = no; then
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
18435 $as_echo_n "checking for daemon in -lbsd... " >&6; }
18436 if ${ac_cv_lib_bsd_daemon+:} false; then :
18437 $as_echo_n "(cached) " >&6
18439 ac_check_lib_save_LIBS=$LIBS
18441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18442 /* end confdefs.h. */
18444 /* Override any GCC internal prototype to avoid an error.
18445 Use char because int might match the return type of a GCC
18446 builtin and then its argument prototype would still apply. */
18459 if ac_fn_c_try_link "$LINENO"; then :
18460 ac_cv_lib_bsd_daemon=yes
18462 ac_cv_lib_bsd_daemon=no
18464 rm -f core conftest.err conftest.$ac_objext \
18465 conftest$ac_exeext conftest.$ac_ext
18466 LIBS=$ac_check_lib_save_LIBS
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
18469 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
18470 if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
18476 if test "$choose_blkid" != no; then
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_library_version in -lblkid" >&5
18478 $as_echo_n "checking for blkid_get_library_version in -lblkid... " >&6; }
18479 if ${ac_cv_lib_blkid_blkid_get_library_version+:} false; then :
18480 $as_echo_n "(cached) " >&6
18482 ac_check_lib_save_LIBS=$LIBS
18483 LIBS="-lblkid $LIBS"
18484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18485 /* end confdefs.h. */
18487 /* Override any GCC internal prototype to avoid an error.
18488 Use char because int might match the return type of a GCC
18489 builtin and then its argument prototype would still apply. */
18493 char blkid_get_library_version ();
18497 return blkid_get_library_version ();
18502 if ac_fn_c_try_link "$LINENO"; then :
18503 ac_cv_lib_blkid_blkid_get_library_version=yes
18505 ac_cv_lib_blkid_blkid_get_library_version=no
18507 rm -f core conftest.err conftest.$ac_objext \
18508 conftest$ac_exeext conftest.$ac_ext
18509 LIBS=$ac_check_lib_save_LIBS
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
18512 $as_echo "$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
18513 if test "x$ac_cv_lib_blkid_blkid_get_library_version" = xyes; then :
18516 as_fn_error $? "libblkid needed" "$LINENO" 5
18519 ac_fn_c_check_header_mongrel "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
18520 if test "x$ac_cv_header_blkid_blkid_h" = xyes; then :
18523 as_fn_error $? "Cannot find libblkid header file blkid/blkid.h" "$LINENO" 5
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable libblkid version" >&5
18529 $as_echo_n "checking for suitable libblkid version... " >&6; }
18530 if ${libblkid_cv_is_recent+:} false; then :
18531 $as_echo_n "(cached) " >&6
18536 if test "$cross_compiling" = yes; then :
18537 libblkid_cv_is_recent=unknown
18539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18540 /* end confdefs.h. */
18542 #include <blkid/blkid.h>
18545 int vers = blkid_get_library_version(0, 0);
18546 return vers >= 140 ? 0 : 1;
18550 if ac_fn_c_try_run "$LINENO"; then :
18551 libblkid_cv_is_recent=yes
18553 libblkid_cv_is_recent=no
18555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18556 conftest.$ac_objext conftest.beam conftest.$ac_ext
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libblkid_cv_is_recent" >&5
18563 $as_echo "$libblkid_cv_is_recent" >&6; }
18565 if test $choose_blkid = yes; then
18567 test $libblkid_cv_is_recent = no && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libblkid is old and may cause mountd to leak memory" >&5
18568 $as_echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
18570 if test $libblkid_cv_is_recent = yes
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uuid support disabled as libblkid is too old" >&5
18574 $as_echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
18578 cat >>confdefs.h <<_ACEOF
18579 #define USE_BLKID $use_blkid
18589 if test "$enable_libmount" != no; then
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mnt_context_do_mount in -lmount" >&5
18591 $as_echo_n "checking for mnt_context_do_mount in -lmount... " >&6; }
18592 if ${ac_cv_lib_mount_mnt_context_do_mount+:} false; then :
18593 $as_echo_n "(cached) " >&6
18595 ac_check_lib_save_LIBS=$LIBS
18596 LIBS="-lmount $LIBS"
18597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18598 /* end confdefs.h. */
18600 /* Override any GCC internal prototype to avoid an error.
18601 Use char because int might match the return type of a GCC
18602 builtin and then its argument prototype would still apply. */
18606 char mnt_context_do_mount ();
18610 return mnt_context_do_mount ();
18615 if ac_fn_c_try_link "$LINENO"; then :
18616 ac_cv_lib_mount_mnt_context_do_mount=yes
18618 ac_cv_lib_mount_mnt_context_do_mount=no
18620 rm -f core conftest.err conftest.$ac_objext \
18621 conftest$ac_exeext conftest.$ac_ext
18622 LIBS=$ac_check_lib_save_LIBS
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mount_mnt_context_do_mount" >&5
18625 $as_echo "$ac_cv_lib_mount_mnt_context_do_mount" >&6; }
18626 if test "x$ac_cv_lib_mount_mnt_context_do_mount" = xyes; then :
18629 as_fn_error $? "libmount needed" "$LINENO" 5
18632 ac_fn_c_check_header_mongrel "$LINENO" "libmount/libmount.h" "ac_cv_header_libmount_libmount_h" "$ac_includes_default"
18633 if test "x$ac_cv_header_libmount_libmount_h" = xyes; then :
18636 as_fn_error $? "Cannot find libmount header file libmount/libmount.h" "$LINENO" 5
18641 if test "$enable_libmount" = "yes"; then
18642 CONFIG_LIBMOUNT_TRUE=
18643 CONFIG_LIBMOUNT_FALSE='#'
18645 CONFIG_LIBMOUNT_TRUE='#'
18646 CONFIG_LIBMOUNT_FALSE=
18651 if test "$enable_gss" = yes; then
18652 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
18653 if test "x$ac_cv_func_getnameinfo" = xyes; then :
18656 as_fn_error $? "GSSAPI support requires 'getnameinfo' function" "$LINENO" 5
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
18663 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
18664 if ${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+:} false; then :
18665 $as_echo_n "(cached) " >&6
18667 ac_check_lib_save_LIBS=$LIBS
18668 LIBS="-lnfsidmap $LIBS"
18669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18670 /* end confdefs.h. */
18672 /* Override any GCC internal prototype to avoid an error.
18673 Use char because int might match the return type of a GCC
18674 builtin and then its argument prototype would still apply. */
18678 char nfs4_init_name_mapping ();
18682 return nfs4_init_name_mapping ();
18687 if ac_fn_c_try_link "$LINENO"; then :
18688 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
18690 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
18692 rm -f core conftest.err conftest.$ac_objext \
18693 conftest$ac_exeext conftest.$ac_ext
18694 LIBS=$ac_check_lib_save_LIBS
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
18697 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
18698 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = xyes; then :
18699 LIBNFSIDMAP=-lnfsidmap
18701 as_fn_error $? "libnfsidmap not found." "$LINENO" 5
18705 for ac_header in nfsidmap.h
18707 ac_fn_c_check_header_mongrel "$LINENO" "nfsidmap.h" "ac_cv_header_nfsidmap_h" "$ac_includes_default"
18708 if test "x$ac_cv_header_nfsidmap_h" = xyes; then :
18709 cat >>confdefs.h <<_ACEOF
18710 #define HAVE_NFSIDMAP_H 1
18714 as_fn_error $? "libnfsidmap headers not found." "$LINENO" 5
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_set_debug in -lnfsidmap" >&5
18721 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
18722 if ${ac_cv_lib_nfsidmap_nfs4_set_debug+:} false; then :
18723 $as_echo_n "(cached) " >&6
18725 ac_check_lib_save_LIBS=$LIBS
18726 LIBS="-lnfsidmap $LIBS"
18727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728 /* end confdefs.h. */
18730 /* Override any GCC internal prototype to avoid an error.
18731 Use char because int might match the return type of a GCC
18732 builtin and then its argument prototype would still apply. */
18736 char nfs4_set_debug ();
18740 return nfs4_set_debug ();
18745 if ac_fn_c_try_link "$LINENO"; then :
18746 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
18748 ac_cv_lib_nfsidmap_nfs4_set_debug=no
18750 rm -f core conftest.err conftest.$ac_objext \
18751 conftest$ac_exeext conftest.$ac_ext
18752 LIBS=$ac_check_lib_save_LIBS
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
18755 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
18756 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = xyes; then :
18758 $as_echo "#define HAVE_NFS4_SET_DEBUG 1" >>confdefs.h
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_owner_to_uid in -lnfsidmap" >&5
18764 $as_echo_n "checking for nfs4_owner_to_uid in -lnfsidmap... " >&6; }
18765 if ${ac_cv_lib_nfsidmap_nfs4_owner_to_uid+:} false; then :
18766 $as_echo_n "(cached) " >&6
18768 ac_check_lib_save_LIBS=$LIBS
18769 LIBS="-lnfsidmap $LIBS"
18770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18771 /* end confdefs.h. */
18773 /* Override any GCC internal prototype to avoid an error.
18774 Use char because int might match the return type of a GCC
18775 builtin and then its argument prototype would still apply. */
18779 char nfs4_owner_to_uid ();
18783 return nfs4_owner_to_uid ();
18788 if ac_fn_c_try_link "$LINENO"; then :
18789 ac_cv_lib_nfsidmap_nfs4_owner_to_uid=yes
18791 ac_cv_lib_nfsidmap_nfs4_owner_to_uid=no
18793 rm -f core conftest.err conftest.$ac_objext \
18794 conftest$ac_exeext conftest.$ac_ext
18795 LIBS=$ac_check_lib_save_LIBS
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&5
18798 $as_echo "$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&6; }
18799 if test "x$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = xyes; then :
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos v5" >&5
18810 $as_echo_n "checking for Kerberos v5... " >&6; }
18812 # Check whether --with-krb5 was given.
18813 if test "${with_krb5+set}" = set; then :
18814 withval=$with_krb5; case "$withval" in
18819 krb5_with="$withval"
18826 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
18827 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
18829 if test -f $dir/bin/krb5-config; then
18830 K5CONFIG=$dir/bin/krb5-config
18831 elif test -f "/usr/kerberos/bin/krb5-config"; then
18832 K5CONFIG="/usr/kerberos/bin/krb5-config"
18833 elif test -f "/usr/lib/mit/bin/krb5-config"; then
18834 K5CONFIG="/usr/lib/mit/bin/krb5-config"
18836 if test "$K5CONFIG" != ""; then
18837 KRBCFLAGS=`$K5CONFIG --cflags`
18838 KRBLIBS=`$K5CONFIG --libs`
18839 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
18841 cat >>confdefs.h <<_ACEOF
18842 #define KRB5_VERSION $K5VERS
18845 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
18846 \( -f $dir/lib/libgssapi_krb5.a -o \
18847 -f $dir/lib64/libgssapi_krb5.a -o \
18848 -f $dir/lib64/libgssapi_krb5.so -o \
18849 -f $dir/lib/libgssapi_krb5.so \) ; then
18851 $as_echo "#define HAVE_KRB5 1" >>confdefs.h
18854 if test $K5VERS -le 131; then
18856 $as_echo "#define USE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18859 gssapi_lib=gssapi_krb5
18861 elif test \( -f $dir/include/heim_err.h -o\
18862 -f $dir/include/heimdal/heim_err.h \) -a \
18863 -f $dir/lib/libroken.a; then
18865 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18873 if test "x$KRBDIR" = "x"; then
18874 if test "x$krb5_with" = "x"; then
18875 as_fn_error $? "Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" "$LINENO" 5
18877 as_fn_error $? "Kerberos v5 with GSS support not found at $krb5_with" "$LINENO" 5
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRBDIR" >&5
18881 $as_echo "$KRBDIR" >&6; }
18883 echo "The current KRBDIR is $KRBDIR"
18884 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
18885 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
18887 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
18890 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
18893 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
18895 $as_echo_n "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... " >&6; }
18896 if eval \${$as_ac_Lib+:} false; then :
18897 $as_echo_n "(cached) " >&6
18899 ac_check_lib_save_LIBS=$LIBS
18900 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18902 /* end confdefs.h. */
18904 /* Override any GCC internal prototype to avoid an error.
18905 Use char because int might match the return type of a GCC
18906 builtin and then its argument prototype would still apply. */
18910 char gss_krb5_export_lucid_sec_context ();
18914 return gss_krb5_export_lucid_sec_context ();
18919 if ac_fn_c_try_link "$LINENO"; then :
18920 eval "$as_ac_Lib=yes"
18922 eval "$as_ac_Lib=no"
18924 rm -f core conftest.err conftest.$ac_objext \
18925 conftest$ac_exeext conftest.$ac_ext
18926 LIBS=$ac_check_lib_save_LIBS
18928 eval ac_res=\$$as_ac_Lib
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18930 $as_echo "$ac_res" >&6; }
18931 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18933 $as_echo "#define HAVE_LUCID_CONTEXT_SUPPORT 1" >>confdefs.h
18937 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
18939 $as_echo_n "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... " >&6; }
18940 if eval \${$as_ac_Lib+:} false; then :
18941 $as_echo_n "(cached) " >&6
18943 ac_check_lib_save_LIBS=$LIBS
18944 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18946 /* end confdefs.h. */
18948 /* Override any GCC internal prototype to avoid an error.
18949 Use char because int might match the return type of a GCC
18950 builtin and then its argument prototype would still apply. */
18954 char gss_krb5_set_allowable_enctypes ();
18958 return gss_krb5_set_allowable_enctypes ();
18963 if ac_fn_c_try_link "$LINENO"; then :
18964 eval "$as_ac_Lib=yes"
18966 eval "$as_ac_Lib=no"
18968 rm -f core conftest.err conftest.$ac_objext \
18969 conftest$ac_exeext conftest.$ac_ext
18970 LIBS=$ac_check_lib_save_LIBS
18972 eval ac_res=\$$as_ac_Lib
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18974 $as_echo "$ac_res" >&6; }
18975 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18977 $as_echo "#define HAVE_SET_ALLOWABLE_ENCTYPES 1" >>confdefs.h
18981 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
18983 $as_echo_n "checking for gss_krb5_ccache_name in -l$gssapi_lib... " >&6; }
18984 if eval \${$as_ac_Lib+:} false; then :
18985 $as_echo_n "(cached) " >&6
18987 ac_check_lib_save_LIBS=$LIBS
18988 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18990 /* end confdefs.h. */
18992 /* Override any GCC internal prototype to avoid an error.
18993 Use char because int might match the return type of a GCC
18994 builtin and then its argument prototype would still apply. */
18998 char gss_krb5_ccache_name ();
19002 return gss_krb5_ccache_name ();
19007 if ac_fn_c_try_link "$LINENO"; then :
19008 eval "$as_ac_Lib=yes"
19010 eval "$as_ac_Lib=no"
19012 rm -f core conftest.err conftest.$ac_objext \
19013 conftest$ac_exeext conftest.$ac_ext
19014 LIBS=$ac_check_lib_save_LIBS
19016 eval ac_res=\$$as_ac_Lib
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19018 $as_echo "$ac_res" >&6; }
19019 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19021 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
19026 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_error_message in -l$gssapi_lib" >&5
19028 $as_echo_n "checking for krb5_get_error_message in -l$gssapi_lib... " >&6; }
19029 if eval \${$as_ac_Lib+:} false; then :
19030 $as_echo_n "(cached) " >&6
19032 ac_check_lib_save_LIBS=$LIBS
19033 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
19034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19035 /* end confdefs.h. */
19037 /* Override any GCC internal prototype to avoid an error.
19038 Use char because int might match the return type of a GCC
19039 builtin and then its argument prototype would still apply. */
19043 char krb5_get_error_message ();
19047 return krb5_get_error_message ();
19052 if ac_fn_c_try_link "$LINENO"; then :
19053 eval "$as_ac_Lib=yes"
19055 eval "$as_ac_Lib=no"
19057 rm -f core conftest.err conftest.$ac_objext \
19058 conftest$ac_exeext conftest.$ac_ext
19059 LIBS=$ac_check_lib_save_LIBS
19061 eval ac_res=\$$as_ac_Lib
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19063 $as_echo "$ac_res" >&6; }
19064 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19066 $as_echo "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
19071 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
19073 $as_echo_n "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... " >&6; }
19074 if eval \${$as_ac_Lib+:} false; then :
19075 $as_echo_n "(cached) " >&6
19077 ac_check_lib_save_LIBS=$LIBS
19078 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
19079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19080 /* end confdefs.h. */
19082 /* Override any GCC internal prototype to avoid an error.
19083 Use char because int might match the return type of a GCC
19084 builtin and then its argument prototype would still apply. */
19088 char krb5_get_init_creds_opt_set_addressless ();
19092 return krb5_get_init_creds_opt_set_addressless ();
19097 if ac_fn_c_try_link "$LINENO"; then :
19098 eval "$as_ac_Lib=yes"
19100 eval "$as_ac_Lib=no"
19102 rm -f core conftest.err conftest.$ac_objext \
19103 conftest$ac_exeext conftest.$ac_ext
19104 LIBS=$ac_check_lib_save_LIBS
19106 eval ac_res=\$$as_ac_Lib
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19108 $as_echo "$ac_res" >&6; }
19109 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19111 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1" >>confdefs.h
19116 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
19118 $as_echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
19131 if test "$enable_tirpc" = no; then
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authgss_create_default in -lrpcsecgss" >&5
19134 $as_echo_n "checking for authgss_create_default in -lrpcsecgss... " >&6; }
19135 if ${ac_cv_lib_rpcsecgss_authgss_create_default+:} false; then :
19136 $as_echo_n "(cached) " >&6
19138 ac_check_lib_save_LIBS=$LIBS
19139 LIBS="-lrpcsecgss $LIBS"
19140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19141 /* end confdefs.h. */
19143 /* Override any GCC internal prototype to avoid an error.
19144 Use char because int might match the return type of a GCC
19145 builtin and then its argument prototype would still apply. */
19149 char authgss_create_default ();
19153 return authgss_create_default ();
19158 if ac_fn_c_try_link "$LINENO"; then :
19159 ac_cv_lib_rpcsecgss_authgss_create_default=yes
19161 ac_cv_lib_rpcsecgss_authgss_create_default=no
19163 rm -f core conftest.err conftest.$ac_objext \
19164 conftest$ac_exeext conftest.$ac_ext
19165 LIBS=$ac_check_lib_save_LIBS
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
19168 $as_echo "$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
19169 if test "x$ac_cv_lib_rpcsecgss_authgss_create_default" = xyes; then :
19172 as_fn_error $? "librpcsecgss not found." "$LINENO" 5
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authgss_set_debug_level in -lrpcsecgss" >&5
19177 $as_echo_n "checking for authgss_set_debug_level in -lrpcsecgss... " >&6; }
19178 if ${ac_cv_lib_rpcsecgss_authgss_set_debug_level+:} false; then :
19179 $as_echo_n "(cached) " >&6
19181 ac_check_lib_save_LIBS=$LIBS
19182 LIBS="-lrpcsecgss $LIBS"
19183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19184 /* end confdefs.h. */
19186 /* Override any GCC internal prototype to avoid an error.
19187 Use char because int might match the return type of a GCC
19188 builtin and then its argument prototype would still apply. */
19192 char authgss_set_debug_level ();
19196 return authgss_set_debug_level ();
19201 if ac_fn_c_try_link "$LINENO"; then :
19202 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
19204 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
19206 rm -f core conftest.err conftest.$ac_objext \
19207 conftest$ac_exeext conftest.$ac_ext
19208 LIBS=$ac_check_lib_save_LIBS
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
19211 $as_echo "$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
19212 if test "x$ac_cv_lib_rpcsecgss_authgss_set_debug_level" = xyes; then :
19214 $as_echo "#define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1" >>confdefs.h
19227 if test "$enable_ipv6" = yes; then
19229 if test "$enable_tirpc" = no; then
19230 as_fn_error $? "'--enable-ipv6' requires TIRPC support." "$LINENO" 5
19233 for ac_func in getifaddrs getnameinfo
19235 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19236 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19237 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19238 cat >>confdefs.h <<_ACEOF
19239 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19243 as_fn_error $? "Missing library functions needed for IPv6." "$LINENO" 5
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindresvport_sa in -ltirpc" >&5
19249 $as_echo_n "checking for bindresvport_sa in -ltirpc... " >&6; }
19250 if ${ac_cv_lib_tirpc_bindresvport_sa+:} false; then :
19251 $as_echo_n "(cached) " >&6
19253 ac_check_lib_save_LIBS=$LIBS
19254 LIBS="-ltirpc $LIBS"
19255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19256 /* end confdefs.h. */
19258 /* Override any GCC internal prototype to avoid an error.
19259 Use char because int might match the return type of a GCC
19260 builtin and then its argument prototype would still apply. */
19264 char bindresvport_sa ();
19268 return bindresvport_sa ();
19273 if ac_fn_c_try_link "$LINENO"; then :
19274 ac_cv_lib_tirpc_bindresvport_sa=yes
19276 ac_cv_lib_tirpc_bindresvport_sa=no
19278 rm -f core conftest.err conftest.$ac_objext \
19279 conftest$ac_exeext conftest.$ac_ext
19280 LIBS=$ac_check_lib_save_LIBS
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_bindresvport_sa" >&5
19283 $as_echo "$ac_cv_lib_tirpc_bindresvport_sa" >&6; }
19284 if test "x$ac_cv_lib_tirpc_bindresvport_sa" = xyes; then :
19287 as_fn_error $? "Missing library functions needed for IPv6." "$LINENO" 5
19294 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
19295 malloc.h memory.h netdb.h netinet/in.h paths.h \
19296 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
19297 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
19298 syslog.h unistd.h com_err.h et/com_err.h \
19299 ifaddrs.h nfs-plugin.h
19301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19302 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19303 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19304 cat >>confdefs.h <<_ACEOF
19305 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19314 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19315 if ${ac_cv_c_const+:} false; then :
19316 $as_echo_n "(cached) " >&6
19318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19319 /* end confdefs.h. */
19324 /* FIXME: Include the comments suggested by Paul. */
19325 #ifndef __cplusplus
19326 /* Ultrix mips cc rejects this. */
19327 typedef int charset[2];
19329 /* SunOS 4.1.1 cc rejects this. */
19330 char const *const *pcpcc;
19332 /* NEC SVR4.0.2 mips cc rejects this. */
19333 struct point {int x, y;};
19334 static struct point const zero = {0,0};
19335 /* AIX XL C 1.02.0.0 rejects this.
19336 It does not let you subtract one const X* pointer from another in
19337 an arm of an if-expression whose if-part is not a constant
19339 const char *g = "string";
19340 pcpcc = &g + (g ? g-g : 0);
19341 /* HPUX 7.0 cc rejects these. */
19343 ppc = (char**) pcpcc;
19344 pcpcc = (char const *const *) ppc;
19345 { /* SCO 3.2v4 cc rejects this. */
19347 char const *s = 0 ? (char *) 0 : (char const *) 0;
19352 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19353 int x[] = {25, 17};
19354 const int *foo = &x[0];
19357 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19358 typedef const int *iptr;
19362 { /* AIX XL C 1.02.0.0 rejects this saying
19363 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19364 struct s { int j; const int *ap[3]; };
19365 struct s *b; b->j = 5;
19367 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19368 const int foo = 10;
19369 if (!foo) return 0;
19371 return !cs[0] && !zero.x;
19378 if ac_fn_c_try_compile "$LINENO"; then :
19383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19386 $as_echo "$ac_cv_c_const" >&6; }
19387 if test $ac_cv_c_const = no; then
19389 $as_echo "#define const /**/" >>confdefs.h
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19394 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19395 if ${ac_cv_type_uid_t+:} false; then :
19396 $as_echo_n "(cached) " >&6
19398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19399 /* end confdefs.h. */
19400 #include <sys/types.h>
19403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19404 $EGREP "uid_t" >/dev/null 2>&1; then :
19405 ac_cv_type_uid_t=yes
19407 ac_cv_type_uid_t=no
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19413 $as_echo "$ac_cv_type_uid_t" >&6; }
19414 if test $ac_cv_type_uid_t = no; then
19416 $as_echo "#define uid_t int" >>confdefs.h
19419 $as_echo "#define gid_t int" >>confdefs.h
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19424 $as_echo_n "checking for inline... " >&6; }
19425 if ${ac_cv_c_inline+:} false; then :
19426 $as_echo_n "(cached) " >&6
19429 for ac_kw in inline __inline__ __inline; do
19430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19431 /* end confdefs.h. */
19432 #ifndef __cplusplus
19434 static $ac_kw foo_t static_foo () {return 0; }
19435 $ac_kw foo_t foo () {return 0; }
19439 if ac_fn_c_try_compile "$LINENO"; then :
19440 ac_cv_c_inline=$ac_kw
19442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19443 test "$ac_cv_c_inline" != no && break
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19448 $as_echo "$ac_cv_c_inline" >&6; }
19450 case $ac_cv_c_inline in
19453 case $ac_cv_c_inline in
19455 *) ac_val=$ac_cv_c_inline;;
19457 cat >>confdefs.h <<_ACEOF
19458 #ifndef __cplusplus
19459 #define inline $ac_val
19465 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19466 if test "x$ac_cv_type_off_t" = xyes; then :
19470 cat >>confdefs.h <<_ACEOF
19471 #define off_t long int
19476 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19477 if test "x$ac_cv_type_pid_t" = xyes; then :
19481 cat >>confdefs.h <<_ACEOF
19487 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19488 if test "x$ac_cv_type_size_t" = xyes; then :
19492 cat >>confdefs.h <<_ACEOF
19493 #define size_t unsigned int
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19499 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19500 if ${ac_cv_header_time+:} false; then :
19501 $as_echo_n "(cached) " >&6
19503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19504 /* end confdefs.h. */
19505 #include <sys/types.h>
19506 #include <sys/time.h>
19512 if ((struct tm *) 0)
19518 if ac_fn_c_try_compile "$LINENO"; then :
19519 ac_cv_header_time=yes
19521 ac_cv_header_time=no
19523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19526 $as_echo "$ac_cv_header_time" >&6; }
19527 if test $ac_cv_header_time = yes; then
19529 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19534 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19535 if ${ac_cv_struct_tm+:} false; then :
19536 $as_echo_n "(cached) " >&6
19538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19539 /* end confdefs.h. */
19540 #include <sys/types.h>
19547 int *p = &tm.tm_sec;
19553 if ac_fn_c_try_compile "$LINENO"; then :
19554 ac_cv_struct_tm=time.h
19556 ac_cv_struct_tm=sys/time.h
19558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19561 $as_echo "$ac_cv_struct_tm" >&6; }
19562 if test $ac_cv_struct_tm = sys/time.h; then
19564 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19569 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19570 # for constant arguments. Useless!
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19572 $as_echo_n "checking for working alloca.h... " >&6; }
19573 if ${ac_cv_working_alloca_h+:} false; then :
19574 $as_echo_n "(cached) " >&6
19576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19577 /* end confdefs.h. */
19578 #include <alloca.h>
19582 char *p = (char *) alloca (2 * sizeof (int));
19588 if ac_fn_c_try_link "$LINENO"; then :
19589 ac_cv_working_alloca_h=yes
19591 ac_cv_working_alloca_h=no
19593 rm -f core conftest.err conftest.$ac_objext \
19594 conftest$ac_exeext conftest.$ac_ext
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19597 $as_echo "$ac_cv_working_alloca_h" >&6; }
19598 if test $ac_cv_working_alloca_h = yes; then
19600 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19605 $as_echo_n "checking for alloca... " >&6; }
19606 if ${ac_cv_func_alloca_works+:} false; then :
19607 $as_echo_n "(cached) " >&6
19609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19610 /* end confdefs.h. */
19612 # define alloca __builtin_alloca
19615 # include <malloc.h>
19616 # define alloca _alloca
19618 # ifdef HAVE_ALLOCA_H
19619 # include <alloca.h>
19624 # ifndef alloca /* predefined by HP cc +Olibcalls */
19625 void *alloca (size_t);
19635 char *p = (char *) alloca (1);
19641 if ac_fn_c_try_link "$LINENO"; then :
19642 ac_cv_func_alloca_works=yes
19644 ac_cv_func_alloca_works=no
19646 rm -f core conftest.err conftest.$ac_objext \
19647 conftest$ac_exeext conftest.$ac_ext
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19650 $as_echo "$ac_cv_func_alloca_works" >&6; }
19652 if test $ac_cv_func_alloca_works = yes; then
19654 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19657 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19658 # that cause trouble. Some versions do not even contain alloca or
19659 # contain a buggy version. If you still want to use their alloca,
19660 # use ar to extract alloca.o from them instead of compiling alloca.c.
19662 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19664 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19668 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19669 if ${ac_cv_os_cray+:} false; then :
19670 $as_echo_n "(cached) " >&6
19672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19673 /* end confdefs.h. */
19674 #if defined CRAY && ! defined CRAY2
19681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19682 $EGREP "webecray" >/dev/null 2>&1; then :
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19691 $as_echo "$ac_cv_os_cray" >&6; }
19692 if test $ac_cv_os_cray = yes; then
19693 for ac_func in _getb67 GETB67 getb67; do
19694 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19695 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19696 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19698 cat >>confdefs.h <<_ACEOF
19699 #define CRAY_STACKSEG_END $ac_func
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19709 $as_echo_n "checking stack direction for C alloca... " >&6; }
19710 if ${ac_cv_c_stack_direction+:} false; then :
19711 $as_echo_n "(cached) " >&6
19713 if test "$cross_compiling" = yes; then :
19714 ac_cv_c_stack_direction=0
19716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19717 /* end confdefs.h. */
19718 $ac_includes_default
19720 find_stack_direction ()
19722 static char *addr = 0;
19727 return find_stack_direction ();
19730 return (&dummy > addr) ? 1 : -1;
19736 return find_stack_direction () < 0;
19739 if ac_fn_c_try_run "$LINENO"; then :
19740 ac_cv_c_stack_direction=1
19742 ac_cv_c_stack_direction=-1
19744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19745 conftest.$ac_objext conftest.beam conftest.$ac_ext
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19750 $as_echo "$ac_cv_c_stack_direction" >&6; }
19751 cat >>confdefs.h <<_ACEOF
19752 #define STACK_DIRECTION $ac_cv_c_stack_direction
19758 ac_header_dirent=no
19759 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19760 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19762 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19763 if eval \${$as_ac_Header+:} false; then :
19764 $as_echo_n "(cached) " >&6
19766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19767 /* end confdefs.h. */
19768 #include <sys/types.h>
19780 if ac_fn_c_try_compile "$LINENO"; then :
19781 eval "$as_ac_Header=yes"
19783 eval "$as_ac_Header=no"
19785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19787 eval ac_res=\$$as_ac_Header
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19789 $as_echo "$ac_res" >&6; }
19790 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19791 cat >>confdefs.h <<_ACEOF
19792 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19795 ac_header_dirent=$ac_hdr; break
19799 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19800 if test $ac_header_dirent = dirent.h; then
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19802 $as_echo_n "checking for library containing opendir... " >&6; }
19803 if ${ac_cv_search_opendir+:} false; then :
19804 $as_echo_n "(cached) " >&6
19806 ac_func_search_save_LIBS=$LIBS
19807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19808 /* end confdefs.h. */
19810 /* Override any GCC internal prototype to avoid an error.
19811 Use char because int might match the return type of a GCC
19812 builtin and then its argument prototype would still apply. */
19825 for ac_lib in '' dir; do
19826 if test -z "$ac_lib"; then
19827 ac_res="none required"
19830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19832 if ac_fn_c_try_link "$LINENO"; then :
19833 ac_cv_search_opendir=$ac_res
19835 rm -f core conftest.err conftest.$ac_objext \
19837 if ${ac_cv_search_opendir+:} false; then :
19841 if ${ac_cv_search_opendir+:} false; then :
19844 ac_cv_search_opendir=no
19846 rm conftest.$ac_ext
19847 LIBS=$ac_func_search_save_LIBS
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19850 $as_echo "$ac_cv_search_opendir" >&6; }
19851 ac_res=$ac_cv_search_opendir
19852 if test "$ac_res" != no; then :
19853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19859 $as_echo_n "checking for library containing opendir... " >&6; }
19860 if ${ac_cv_search_opendir+:} false; then :
19861 $as_echo_n "(cached) " >&6
19863 ac_func_search_save_LIBS=$LIBS
19864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19865 /* end confdefs.h. */
19867 /* Override any GCC internal prototype to avoid an error.
19868 Use char because int might match the return type of a GCC
19869 builtin and then its argument prototype would still apply. */
19882 for ac_lib in '' x; do
19883 if test -z "$ac_lib"; then
19884 ac_res="none required"
19887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19889 if ac_fn_c_try_link "$LINENO"; then :
19890 ac_cv_search_opendir=$ac_res
19892 rm -f core conftest.err conftest.$ac_objext \
19894 if ${ac_cv_search_opendir+:} false; then :
19898 if ${ac_cv_search_opendir+:} false; then :
19901 ac_cv_search_opendir=no
19903 rm conftest.$ac_ext
19904 LIBS=$ac_func_search_save_LIBS
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19907 $as_echo "$ac_cv_search_opendir" >&6; }
19908 ac_res=$ac_cv_search_opendir
19909 if test "$ac_res" != no; then :
19910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
19917 $as_echo_n "checking whether closedir returns void... " >&6; }
19918 if ${ac_cv_func_closedir_void+:} false; then :
19919 $as_echo_n "(cached) " >&6
19921 if test "$cross_compiling" = yes; then :
19922 ac_cv_func_closedir_void=yes
19924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19925 /* end confdefs.h. */
19926 $ac_includes_default
19927 #include <$ac_header_dirent>
19928 #ifndef __cplusplus
19935 return closedir (opendir (".")) != 0;
19940 if ac_fn_c_try_run "$LINENO"; then :
19941 ac_cv_func_closedir_void=no
19943 ac_cv_func_closedir_void=yes
19945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19946 conftest.$ac_objext conftest.beam conftest.$ac_ext
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
19951 $as_echo "$ac_cv_func_closedir_void" >&6; }
19952 if test $ac_cv_func_closedir_void = yes; then
19954 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
19959 $as_echo_n "checking for error_at_line... " >&6; }
19960 if ${ac_cv_lib_error_at_line+:} false; then :
19961 $as_echo_n "(cached) " >&6
19963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19964 /* end confdefs.h. */
19969 error_at_line (0, 0, "", 0, "an error occurred");
19974 if ac_fn_c_try_link "$LINENO"; then :
19975 ac_cv_lib_error_at_line=yes
19977 ac_cv_lib_error_at_line=no
19979 rm -f core conftest.err conftest.$ac_objext \
19980 conftest$ac_exeext conftest.$ac_ext
19982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
19983 $as_echo "$ac_cv_lib_error_at_line" >&6; }
19984 if test $ac_cv_lib_error_at_line = no; then
19985 case " $LIBOBJS " in
19986 *" error.$ac_objext "* ) ;;
19987 *) LIBOBJS="$LIBOBJS error.$ac_objext"
19993 for ac_header in vfork.h
19995 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19996 if test "x$ac_cv_header_vfork_h" = xyes; then :
19997 cat >>confdefs.h <<_ACEOF
19998 #define HAVE_VFORK_H 1
20005 for ac_func in fork vfork
20007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20010 cat >>confdefs.h <<_ACEOF
20011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20017 if test "x$ac_cv_func_fork" = xyes; then
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20019 $as_echo_n "checking for working fork... " >&6; }
20020 if ${ac_cv_func_fork_works+:} false; then :
20021 $as_echo_n "(cached) " >&6
20023 if test "$cross_compiling" = yes; then :
20024 ac_cv_func_fork_works=cross
20026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20027 /* end confdefs.h. */
20028 $ac_includes_default
20033 /* By Ruediger Kuhlmann. */
20034 return fork () < 0;
20040 if ac_fn_c_try_run "$LINENO"; then :
20041 ac_cv_func_fork_works=yes
20043 ac_cv_func_fork_works=no
20045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20046 conftest.$ac_objext conftest.beam conftest.$ac_ext
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20051 $as_echo "$ac_cv_func_fork_works" >&6; }
20054 ac_cv_func_fork_works=$ac_cv_func_fork
20056 if test "x$ac_cv_func_fork_works" = xcross; then
20058 *-*-amigaos* | *-*-msdosdjgpp*)
20059 # Override, as these systems have only a dummy fork() stub
20060 ac_cv_func_fork_works=no
20063 ac_cv_func_fork_works=yes
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20067 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20069 ac_cv_func_vfork_works=$ac_cv_func_vfork
20070 if test "x$ac_cv_func_vfork" = xyes; then
20071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20072 $as_echo_n "checking for working vfork... " >&6; }
20073 if ${ac_cv_func_vfork_works+:} false; then :
20074 $as_echo_n "(cached) " >&6
20076 if test "$cross_compiling" = yes; then :
20077 ac_cv_func_vfork_works=cross
20079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20080 /* end confdefs.h. */
20081 /* Thanks to Paul Eggert for this test. */
20082 $ac_includes_default
20083 #include <sys/wait.h>
20084 #ifdef HAVE_VFORK_H
20085 # include <vfork.h>
20087 /* On some sparc systems, changes by the child to local and incoming
20088 argument registers are propagated back to the parent. The compiler
20089 is told about this with #include <vfork.h>, but some compilers
20090 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20091 static variable whose address is put into a register that is
20092 clobbered by the vfork. */
20095 sparc_address_test (int arg)
20097 sparc_address_test (arg) int arg;
20100 static pid_t child;
20118 pid_t parent = getpid ();
20121 sparc_address_test (0);
20126 /* Here is another test for sparc vfork register problems. This
20127 test uses lots of local variables, at least as many local
20128 variables as main has allocated so far including compiler
20129 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20130 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20131 reuse the register of parent for one of the local variables,
20132 since it will think that parent can't possibly be used any more
20133 in this routine. Assigning to the local variable will thus
20134 munge parent in the parent process. */
20136 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20137 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20138 /* Convince the compiler that p..p7 are live; otherwise, it might
20139 use the same hardware register for all 8 local variables. */
20140 if (p != p1 || p != p2 || p != p3 || p != p4
20141 || p != p5 || p != p6 || p != p7)
20144 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20145 from child file descriptors. If the child closes a descriptor
20146 before it execs or exits, this munges the parent's descriptor
20147 as well. Test for this by closing stdout in the child. */
20148 _exit(close(fileno(stdout)) != 0);
20153 while (wait(&status) != child)
20156 /* Was there some problem with vforking? */
20159 /* Did the child fail? (This shouldn't happen.) */
20162 /* Did the vfork/compiler bug occur? */
20163 || parent != getpid()
20165 /* Did the file descriptor bug occur? */
20166 || fstat(fileno(stdout), &st) != 0
20171 if ac_fn_c_try_run "$LINENO"; then :
20172 ac_cv_func_vfork_works=yes
20174 ac_cv_func_vfork_works=no
20176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20177 conftest.$ac_objext conftest.beam conftest.$ac_ext
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
20182 $as_echo "$ac_cv_func_vfork_works" >&6; }
20185 if test "x$ac_cv_func_fork_works" = xcross; then
20186 ac_cv_func_vfork_works=$ac_cv_func_vfork
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20188 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20191 if test "x$ac_cv_func_vfork_works" = xyes; then
20193 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
20197 $as_echo "#define vfork fork" >>confdefs.h
20200 if test "x$ac_cv_func_fork_works" = xyes; then
20202 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20207 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20208 if ${ac_cv_type_getgroups+:} false; then :
20209 $as_echo_n "(cached) " >&6
20211 if test "$cross_compiling" = yes; then :
20212 ac_cv_type_getgroups=cross
20214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20215 /* end confdefs.h. */
20216 /* Thanks to Mike Rendell for this test. */
20217 $ac_includes_default
20220 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20225 gid_t gidset[NGID];
20227 union { gid_t gval; long int lval; } val;
20230 for (i = 0; i < NGID; i++)
20231 gidset[i] = val.gval;
20232 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20234 /* Exit non-zero if getgroups seems to require an array of ints. This
20235 happens when gid_t is short int but getgroups modifies an array
20237 return n > 0 && gidset[n] != val.gval;
20240 if ac_fn_c_try_run "$LINENO"; then :
20241 ac_cv_type_getgroups=gid_t
20243 ac_cv_type_getgroups=int
20245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20246 conftest.$ac_objext conftest.beam conftest.$ac_ext
20249 if test $ac_cv_type_getgroups = cross; then
20250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20251 /* end confdefs.h. */
20252 #include <unistd.h>
20255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20256 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20257 ac_cv_type_getgroups=gid_t
20259 ac_cv_type_getgroups=int
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20266 $as_echo "$ac_cv_type_getgroups" >&6; }
20268 cat >>confdefs.h <<_ACEOF
20269 #define GETGROUPS_T $ac_cv_type_getgroups
20273 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
20274 if test "x$ac_cv_func_getgroups" = xyes; then :
20279 # If we don't yet have getgroups, see if it's in -lbsd.
20280 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
20282 if test $ac_cv_func_getgroups = no; then
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
20284 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
20285 if ${ac_cv_lib_bsd_getgroups+:} false; then :
20286 $as_echo_n "(cached) " >&6
20288 ac_check_lib_save_LIBS=$LIBS
20290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20291 /* end confdefs.h. */
20293 /* Override any GCC internal prototype to avoid an error.
20294 Use char because int might match the return type of a GCC
20295 builtin and then its argument prototype would still apply. */
20303 return getgroups ();
20308 if ac_fn_c_try_link "$LINENO"; then :
20309 ac_cv_lib_bsd_getgroups=yes
20311 ac_cv_lib_bsd_getgroups=no
20313 rm -f core conftest.err conftest.$ac_objext \
20314 conftest$ac_exeext conftest.$ac_ext
20315 LIBS=$ac_check_lib_save_LIBS
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
20318 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
20319 if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
20320 GETGROUPS_LIB=-lbsd
20325 # Run the program to test the functionality of the system-supplied
20326 # getgroups function only if there is such a function.
20327 if test $ac_cv_func_getgroups = yes; then
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
20329 $as_echo_n "checking for working getgroups... " >&6; }
20330 if ${ac_cv_func_getgroups_works+:} false; then :
20331 $as_echo_n "(cached) " >&6
20333 if test "$cross_compiling" = yes; then :
20334 ac_cv_func_getgroups_works=no
20336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20337 /* end confdefs.h. */
20338 $ac_includes_default
20342 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
20343 return getgroups (0, 0) == -1;
20348 if ac_fn_c_try_run "$LINENO"; then :
20349 ac_cv_func_getgroups_works=yes
20351 ac_cv_func_getgroups_works=no
20353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20354 conftest.$ac_objext conftest.beam conftest.$ac_ext
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
20360 $as_echo "$ac_cv_func_getgroups_works" >&6; }
20362 ac_cv_func_getgroups_works=no
20364 if test $ac_cv_func_getgroups_works = yes; then
20366 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
20371 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
20372 # -lseq on Dynix/PTX, -lgen on Unixware.
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
20374 $as_echo_n "checking for library containing getmntent... " >&6; }
20375 if ${ac_cv_search_getmntent+:} false; then :
20376 $as_echo_n "(cached) " >&6
20378 ac_func_search_save_LIBS=$LIBS
20379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20380 /* end confdefs.h. */
20382 /* Override any GCC internal prototype to avoid an error.
20383 Use char because int might match the return type of a GCC
20384 builtin and then its argument prototype would still apply. */
20392 return getmntent ();
20397 for ac_lib in '' sun seq gen; do
20398 if test -z "$ac_lib"; then
20399 ac_res="none required"
20402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20404 if ac_fn_c_try_link "$LINENO"; then :
20405 ac_cv_search_getmntent=$ac_res
20407 rm -f core conftest.err conftest.$ac_objext \
20409 if ${ac_cv_search_getmntent+:} false; then :
20413 if ${ac_cv_search_getmntent+:} false; then :
20416 ac_cv_search_getmntent=no
20418 rm conftest.$ac_ext
20419 LIBS=$ac_func_search_save_LIBS
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
20422 $as_echo "$ac_cv_search_getmntent" >&6; }
20423 ac_res=$ac_cv_search_getmntent
20424 if test "$ac_res" != no; then :
20425 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20426 ac_cv_func_getmntent=yes
20428 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
20431 ac_cv_func_getmntent=no
20435 if test $ac_cv_c_compiler_gnu = yes; then
20436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
20437 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
20438 if ${ac_cv_prog_gcc_traditional+:} false; then :
20439 $as_echo_n "(cached) " >&6
20441 ac_pattern="Autoconf.*'x'"
20442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20443 /* end confdefs.h. */
20447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20448 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20449 ac_cv_prog_gcc_traditional=yes
20451 ac_cv_prog_gcc_traditional=no
20456 if test $ac_cv_prog_gcc_traditional = no; then
20457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20458 /* end confdefs.h. */
20459 #include <termio.h>
20462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20463 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20464 ac_cv_prog_gcc_traditional=yes
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20471 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20472 if test $ac_cv_prog_gcc_traditional = yes; then
20473 CC="$CC -traditional"
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
20478 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
20479 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
20480 $as_echo_n "(cached) " >&6
20482 rm -f conftest.sym conftest.file
20483 echo >conftest.file
20484 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20485 if test "$cross_compiling" = yes; then :
20486 ac_cv_func_lstat_dereferences_slashed_symlink=no
20488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20489 /* end confdefs.h. */
20490 $ac_includes_default
20495 /* Linux will dereference the symlink and fail, as required by POSIX.
20496 That is better in the sense that it means we will not
20497 have to compile and use the lstat wrapper. */
20498 return lstat ("conftest.sym/", &sbuf) == 0;
20503 if ac_fn_c_try_run "$LINENO"; then :
20504 ac_cv_func_lstat_dereferences_slashed_symlink=yes
20506 ac_cv_func_lstat_dereferences_slashed_symlink=no
20508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20509 conftest.$ac_objext conftest.beam conftest.$ac_ext
20513 # If the `ln -s' command failed, then we probably don't even
20514 # have an lstat function.
20515 ac_cv_func_lstat_dereferences_slashed_symlink=no
20517 rm -f conftest.sym conftest.file
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20521 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
20523 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20525 cat >>confdefs.h <<_ACEOF
20526 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20530 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
20531 case " $LIBOBJS " in
20532 *" lstat.$ac_objext "* ) ;;
20533 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
20540 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
20541 if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
20542 $as_echo_n "(cached) " >&6
20544 if test "$cross_compiling" = yes; then :
20545 ac_cv_func_lstat_empty_string_bug=yes
20547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20548 /* end confdefs.h. */
20549 $ac_includes_default
20554 return lstat ("", &sbuf) == 0;
20559 if ac_fn_c_try_run "$LINENO"; then :
20560 ac_cv_func_lstat_empty_string_bug=no
20562 ac_cv_func_lstat_empty_string_bug=yes
20564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20565 conftest.$ac_objext conftest.beam conftest.$ac_ext
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
20570 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
20571 if test $ac_cv_func_lstat_empty_string_bug = yes; then
20572 case " $LIBOBJS " in
20573 *" lstat.$ac_objext "* ) ;;
20574 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20579 cat >>confdefs.h <<_ACEOF
20580 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
20586 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
20587 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
20588 $as_echo_n "(cached) " >&6
20590 rm -f conftest.sym conftest.file
20591 echo >conftest.file
20592 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20593 if test "$cross_compiling" = yes; then :
20594 ac_cv_func_lstat_dereferences_slashed_symlink=no
20596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20597 /* end confdefs.h. */
20598 $ac_includes_default
20603 /* Linux will dereference the symlink and fail, as required by POSIX.
20604 That is better in the sense that it means we will not
20605 have to compile and use the lstat wrapper. */
20606 return lstat ("conftest.sym/", &sbuf) == 0;
20611 if ac_fn_c_try_run "$LINENO"; then :
20612 ac_cv_func_lstat_dereferences_slashed_symlink=yes
20614 ac_cv_func_lstat_dereferences_slashed_symlink=no
20616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20617 conftest.$ac_objext conftest.beam conftest.$ac_ext
20621 # If the `ln -s' command failed, then we probably don't even
20622 # have an lstat function.
20623 ac_cv_func_lstat_dereferences_slashed_symlink=no
20625 rm -f conftest.sym conftest.file
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20629 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
20631 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20633 cat >>confdefs.h <<_ACEOF
20634 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20638 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
20639 case " $LIBOBJS " in
20640 *" lstat.$ac_objext "* ) ;;
20641 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
20648 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
20649 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
20650 $as_echo_n "(cached) " >&6
20652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20653 /* end confdefs.h. */
20654 #include <sys/types.h>
20658 return makedev(0, 0);
20663 if ac_fn_c_try_link "$LINENO"; then :
20664 ac_cv_header_sys_types_h_makedev=yes
20666 ac_cv_header_sys_types_h_makedev=no
20668 rm -f core conftest.err conftest.$ac_objext \
20669 conftest$ac_exeext conftest.$ac_ext
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
20673 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
20675 if test $ac_cv_header_sys_types_h_makedev = no; then
20676 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
20677 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
20679 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
20685 if test $ac_cv_header_sys_mkdev_h = no; then
20686 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
20687 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
20689 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
20699 $as_echo_n "checking for working memcmp... " >&6; }
20700 if ${ac_cv_func_memcmp_working+:} false; then :
20701 $as_echo_n "(cached) " >&6
20703 if test "$cross_compiling" = yes; then :
20704 ac_cv_func_memcmp_working=no
20706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20707 /* end confdefs.h. */
20708 $ac_includes_default
20713 /* Some versions of memcmp are not 8-bit clean. */
20714 char c0 = '\100', c1 = '\200', c2 = '\201';
20715 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20718 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20719 or more and with at least one buffer not starting on a 4-byte boundary.
20720 William Lewis provided this test program. */
20725 for (i = 0; i < 4; i++)
20729 strcpy (a, "--------01111111");
20730 strcpy (b, "--------10000000");
20731 if (memcmp (a, b, 16) >= 0)
20741 if ac_fn_c_try_run "$LINENO"; then :
20742 ac_cv_func_memcmp_working=yes
20744 ac_cv_func_memcmp_working=no
20746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20747 conftest.$ac_objext conftest.beam conftest.$ac_ext
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
20752 $as_echo "$ac_cv_func_memcmp_working" >&6; }
20753 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
20754 *" memcmp.$ac_objext "* ) ;;
20755 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
20761 for ac_header in sys/select.h sys/socket.h
20763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20764 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20765 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20766 cat >>confdefs.h <<_ACEOF
20767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
20775 $as_echo_n "checking types of arguments for select... " >&6; }
20776 if ${ac_cv_func_select_args+:} false; then :
20777 $as_echo_n "(cached) " >&6
20779 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
20780 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
20781 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
20782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20783 /* end confdefs.h. */
20784 $ac_includes_default
20785 #ifdef HAVE_SYS_SELECT_H
20786 # include <sys/select.h>
20788 #ifdef HAVE_SYS_SOCKET_H
20789 # include <sys/socket.h>
20795 extern int select ($ac_arg1,
20796 $ac_arg234, $ac_arg234, $ac_arg234,
20802 if ac_fn_c_try_compile "$LINENO"; then :
20803 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
20805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20809 # Provide a safe default value.
20810 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
20814 $as_echo "$ac_cv_func_select_args" >&6; }
20815 ac_save_IFS=$IFS; IFS=','
20816 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
20820 cat >>confdefs.h <<_ACEOF
20821 #define SELECT_TYPE_ARG1 $1
20825 cat >>confdefs.h <<_ACEOF
20826 #define SELECT_TYPE_ARG234 ($2)
20830 cat >>confdefs.h <<_ACEOF
20831 #define SELECT_TYPE_ARG5 ($3)
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20837 $as_echo_n "checking return type of signal handlers... " >&6; }
20838 if ${ac_cv_type_signal+:} false; then :
20839 $as_echo_n "(cached) " >&6
20841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20842 /* end confdefs.h. */
20843 #include <sys/types.h>
20844 #include <signal.h>
20849 return *(signal (0, 0)) (0) == 1;
20854 if ac_fn_c_try_compile "$LINENO"; then :
20855 ac_cv_type_signal=int
20857 ac_cv_type_signal=void
20859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20862 $as_echo "$ac_cv_type_signal" >&6; }
20864 cat >>confdefs.h <<_ACEOF
20865 #define RETSIGTYPE $ac_cv_type_signal
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
20870 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
20871 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
20872 $as_echo_n "(cached) " >&6
20874 if test "$cross_compiling" = yes; then :
20875 ac_cv_func_stat_empty_string_bug=yes
20877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20878 /* end confdefs.h. */
20879 $ac_includes_default
20884 return stat ("", &sbuf) == 0;
20889 if ac_fn_c_try_run "$LINENO"; then :
20890 ac_cv_func_stat_empty_string_bug=no
20892 ac_cv_func_stat_empty_string_bug=yes
20894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20895 conftest.$ac_objext conftest.beam conftest.$ac_ext
20899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
20900 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
20901 if test $ac_cv_func_stat_empty_string_bug = yes; then
20902 case " $LIBOBJS " in
20903 *" stat.$ac_objext "* ) ;;
20904 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
20909 cat >>confdefs.h <<_ACEOF
20910 #define HAVE_STAT_EMPTY_STRING_BUG 1
20915 for ac_func in vprintf
20917 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
20918 if test "x$ac_cv_func_vprintf" = xyes; then :
20919 cat >>confdefs.h <<_ACEOF
20920 #define HAVE_VPRINTF 1
20923 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
20924 if test "x$ac_cv_func__doprnt" = xyes; then :
20926 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
20934 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
20935 gethostbyaddr gethostbyname gethostname getmntent \
20936 getnameinfo getrpcbyname getifaddrs \
20937 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
20938 realpath rmdir select socket strcasecmp strchr strdup \
20939 strerror strrchr strtol strtoul sigprocmask
20941 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20942 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20943 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20944 cat >>confdefs.h <<_ACEOF
20945 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20953 # The cast to long int works around a bug in the HP C Compiler
20954 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20955 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20956 # This bug is HP SR number 8606223364.
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
20958 $as_echo_n "checking size of short... " >&6; }
20959 if ${ac_cv_sizeof_short+:} false; then :
20960 $as_echo_n "(cached) " >&6
20962 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
20965 if test "$ac_cv_type_short" = yes; then
20966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20968 as_fn_error 77 "cannot compute sizeof (short)
20969 See \`config.log' for more details" "$LINENO" 5; }
20971 ac_cv_sizeof_short=0
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
20977 $as_echo "$ac_cv_sizeof_short" >&6; }
20981 cat >>confdefs.h <<_ACEOF
20982 #define SIZEOF_SHORT $ac_cv_sizeof_short
20986 # The cast to long int works around a bug in the HP C Compiler
20987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20989 # This bug is HP SR number 8606223364.
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
20991 $as_echo_n "checking size of int... " >&6; }
20992 if ${ac_cv_sizeof_int+:} false; then :
20993 $as_echo_n "(cached) " >&6
20995 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
20998 if test "$ac_cv_type_int" = yes; then
20999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21001 as_fn_error 77 "cannot compute sizeof (int)
21002 See \`config.log' for more details" "$LINENO" 5; }
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
21010 $as_echo "$ac_cv_sizeof_int" >&6; }
21014 cat >>confdefs.h <<_ACEOF
21015 #define SIZEOF_INT $ac_cv_sizeof_int
21019 # The cast to long int works around a bug in the HP C Compiler
21020 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21021 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21022 # This bug is HP SR number 8606223364.
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21024 $as_echo_n "checking size of long... " >&6; }
21025 if ${ac_cv_sizeof_long+:} false; then :
21026 $as_echo_n "(cached) " >&6
21028 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
21031 if test "$ac_cv_type_long" = yes; then
21032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21034 as_fn_error 77 "cannot compute sizeof (long)
21035 See \`config.log' for more details" "$LINENO" 5; }
21037 ac_cv_sizeof_long=0
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21043 $as_echo "$ac_cv_sizeof_long" >&6; }
21047 cat >>confdefs.h <<_ACEOF
21048 #define SIZEOF_LONG $ac_cv_sizeof_long
21052 # The cast to long int works around a bug in the HP C Compiler
21053 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21054 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21055 # This bug is HP SR number 8606223364.
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
21057 $as_echo_n "checking size of size_t... " >&6; }
21058 if ${ac_cv_sizeof_size_t+:} false; then :
21059 $as_echo_n "(cached) " >&6
21061 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
21064 if test "$ac_cv_type_size_t" = yes; then
21065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21067 as_fn_error 77 "cannot compute sizeof (size_t)
21068 See \`config.log' for more details" "$LINENO" 5; }
21070 ac_cv_sizeof_size_t=0
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
21076 $as_echo "$ac_cv_sizeof_size_t" >&6; }
21080 cat >>confdefs.h <<_ACEOF
21081 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21085 # The cast to long int works around a bug in the HP C Compiler
21086 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21087 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21088 # This bug is HP SR number 8606223364.
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of socklen_t" >&5
21090 $as_echo_n "checking size of socklen_t... " >&6; }
21091 if ${ac_cv_sizeof_socklen_t+:} false; then :
21092 $as_echo_n "(cached) " >&6
21094 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (socklen_t))" "ac_cv_sizeof_socklen_t" "$ac_includes_default"; then :
21097 if test "$ac_cv_type_socklen_t" = yes; then
21098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21100 as_fn_error 77 "cannot compute sizeof (socklen_t)
21101 See \`config.log' for more details" "$LINENO" 5; }
21103 ac_cv_sizeof_socklen_t=0
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_socklen_t" >&5
21109 $as_echo "$ac_cv_sizeof_socklen_t" >&6; }
21113 cat >>confdefs.h <<_ACEOF
21114 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
21121 cat >>confdefs.h <<_ACEOF
21122 #define NFS_STATEDIR "$statedir"
21126 cat >>confdefs.h <<_ACEOF
21127 #define NSM_DEFAULT_STATEDIR "$statdpath"
21131 if test "x$cross_compiling" = "xno"; then
21132 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
21133 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
21134 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
21135 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
21137 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
21138 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
21139 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
21140 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
21158 my_am_cflags="-Wall -Wextra -Wstrict-prototypes $ARCHFLAGS -pipe"
21160 AM_CFLAGS="$my_am_cflags"
21163 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
21164 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
21167 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 support/nsm/Makefile tools/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile tools/mountstats/Makefile tools/nfs-iostat/Makefile utils/Makefile utils/blkmapd/Makefile utils/nfsdcld/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/nfsidmap/Makefile utils/showmount/Makefile utils/statd/Makefile utils/osd_login/Makefile tests/Makefile tests/nsm_client/Makefile"
21169 cat >confcache <<\_ACEOF
21170 # This file is a shell script that caches the results of configure
21171 # tests run on this system so they can be shared between configure
21172 # scripts and configure runs, see configure's option --config-cache.
21173 # It is not useful on other systems. If it contains results you don't
21174 # want to keep, you may remove or edit it.
21176 # config.status only pays attention to the cache file if you give it
21177 # the --recheck option to rerun configure.
21179 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21180 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21181 # following values.
21185 # The following way of writing the cache mishandles newlines in values,
21186 # but we know of no workaround that is simple, portable, and efficient.
21187 # So, we kill variables containing newlines.
21188 # Ultrix sh set writes to stderr and can't be redirected directly,
21189 # and sets the high bit in the cache file unless we assign to the vars.
21191 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21192 eval ac_val=\$$ac_var
21196 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21197 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21200 _ | IFS | as_nl) ;; #(
21201 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21202 *) { eval $ac_var=; unset $ac_var;} ;;
21208 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21209 *${as_nl}ac_space=\ *)
21210 # `set' does not quote correctly, so add quotes: double-quote
21211 # substitution turns \\\\ into \\, and sed turns \\ into \.
21214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21217 # `set' quotes correctly as required by POSIX, so do not add quotes.
21218 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21227 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21229 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21231 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21232 if test -w "$cache_file"; then
21233 if test "x$cache_file" != "x/dev/null"; then
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21235 $as_echo "$as_me: updating cache $cache_file" >&6;}
21236 if test ! -f "$cache_file" || test -h "$cache_file"; then
21237 cat confcache >"$cache_file"
21239 case $cache_file in #(
21241 mv -f confcache "$cache_file"$$ &&
21242 mv -f "$cache_file"$$ "$cache_file" ;; #(
21244 mv -f confcache "$cache_file" ;;
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21250 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21255 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21256 # Let make expand exec_prefix.
21257 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21259 DEFS=-DHAVE_CONFIG_H
21264 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21265 # 1. Remove the extension, and $U if already installed.
21266 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21267 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21268 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21269 # will be set to the directory where LIBOBJS objects are built.
21270 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21271 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21273 LIBOBJS=$ac_libobjs
21275 LTLIBOBJS=$ac_ltlibobjs
21278 if test -n "$EXEEXT"; then
21280 am__EXEEXT_FALSE='#'
21282 am__EXEEXT_TRUE='#'
21286 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21287 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21290 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
21291 as_fn_error $? "conditional \"CONFIG_NFSV4\" was never defined.
21292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21294 if test -z "${CONFIG_NFSV41_TRUE}" && test -z "${CONFIG_NFSV41_FALSE}"; then
21295 as_fn_error $? "conditional \"CONFIG_NFSV41\" was never defined.
21296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21298 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
21299 as_fn_error $? "conditional \"CONFIG_GSS\" was never defined.
21300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21302 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
21303 as_fn_error $? "conditional \"CONFIG_RPCGEN\" was never defined.
21304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21306 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
21307 as_fn_error $? "conditional \"CONFIG_MOUNT\" was never defined.
21308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21310 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
21311 as_fn_error $? "conditional \"CONFIG_IPV6\" was never defined.
21312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21314 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
21315 as_fn_error $? "conditional \"MOUNT_CONFIG\" was never defined.
21316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21318 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
21319 as_fn_error $? "conditional \"MOUNT_CONFIG\" was never defined.
21320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21322 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21323 as_fn_error $? "conditional \"AMDEP\" was never defined.
21324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21326 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21327 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21330 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21331 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21334 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21335 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21338 if test -z "${CONFIG_SQLITE3_TRUE}" && test -z "${CONFIG_SQLITE3_FALSE}"; then
21339 as_fn_error $? "conditional \"CONFIG_SQLITE3\" was never defined.
21340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21342 if test -z "${CONFIG_NFSDCLD_TRUE}" && test -z "${CONFIG_NFSDCLD_FALSE}"; then
21343 as_fn_error $? "conditional \"CONFIG_NFSDCLD\" was never defined.
21344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21346 if test -z "${CONFIG_NFSIDMAP_TRUE}" && test -z "${CONFIG_NFSIDMAP_FALSE}"; then
21347 as_fn_error $? "conditional \"CONFIG_NFSIDMAP\" was never defined.
21348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21350 if test -z "${CONFIG_LIBMOUNT_TRUE}" && test -z "${CONFIG_LIBMOUNT_FALSE}"; then
21351 as_fn_error $? "conditional \"CONFIG_LIBMOUNT\" was never defined.
21352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21355 : "${CONFIG_STATUS=./config.status}"
21357 ac_clean_files_save=$ac_clean_files
21358 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21360 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21362 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21364 # Generated by $as_me.
21365 # Run this file to recreate the current configuration.
21366 # Compiler output produced by configure, useful for debugging
21367 # configure, is in config.log if it exists.
21370 ac_cs_recheck=false
21373 SHELL=\${CONFIG_SHELL-$SHELL}
21376 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21377 ## -------------------- ##
21378 ## M4sh Initialization. ##
21379 ## -------------------- ##
21381 # Be more Bourne compatible
21382 DUALCASE=1; export DUALCASE # for MKS sh
21383 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21386 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21387 # is contrary to our usage. Disable this feature.
21388 alias -g '${1+"$@"}'='"$@"'
21389 setopt NO_GLOB_SUBST
21391 case `(set -o) 2>/dev/null` in #(
21403 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21404 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21405 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21406 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21407 # Prefer a ksh shell builtin over an external printf program on Solaris,
21408 # but without wasting forks for bash or zsh.
21409 if test -z "$BASH_VERSION$ZSH_VERSION" \
21410 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21411 as_echo='print -r --'
21412 as_echo_n='print -rn --'
21413 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21414 as_echo='printf %s\n'
21415 as_echo_n='printf %s'
21417 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21418 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21419 as_echo_n='/usr/ucb/echo -n'
21421 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21422 as_echo_n_body='eval
21426 expr "X$arg" : "X\\(.*\\)$as_nl";
21427 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21429 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21431 export as_echo_n_body
21432 as_echo_n='sh -c $as_echo_n_body as_echo'
21434 export as_echo_body
21435 as_echo='sh -c $as_echo_body as_echo'
21438 # The user is always right.
21439 if test "${PATH_SEPARATOR+set}" != set; then
21441 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21442 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21449 # We need space, tab and new line, in precisely that order. Quoting is
21450 # there to prevent editors from complaining about space-tab.
21451 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21452 # splitting by setting IFS to empty value.)
21455 # Find who we are. Look in the path if we contain no directory separator.
21458 *[\\/]* ) as_myself=$0 ;;
21459 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21460 for as_dir in $PATH
21463 test -z "$as_dir" && as_dir=.
21464 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21470 # We did not find ourselves, most probably we were run as `sh COMMAND'
21471 # in which case we are not to be found in the path.
21472 if test "x$as_myself" = x; then
21475 if test ! -f "$as_myself"; then
21476 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21480 # Unset variables that we do not need and which cause bugs (e.g. in
21481 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21482 # suppresses any "Segmentation fault" message there. '((' could
21483 # trigger a bug in pdksh 5.2.14.
21484 for as_var in BASH_ENV ENV MAIL MAILPATH
21485 do eval test x\${$as_var+set} = xset \
21486 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21499 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21502 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21503 # ----------------------------------------
21504 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21505 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21506 # script with STATUS, using 1 if that was 0.
21509 as_status=$1; test $as_status -eq 0 && as_status=1
21511 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21512 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21514 $as_echo "$as_me: error: $2" >&2
21515 as_fn_exit $as_status
21519 # as_fn_set_status STATUS
21520 # -----------------------
21521 # Set $? to STATUS, without forking.
21522 as_fn_set_status ()
21525 } # as_fn_set_status
21527 # as_fn_exit STATUS
21528 # -----------------
21529 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21533 as_fn_set_status $1
21539 # Portably unset VAR.
21542 { eval $1=; unset $1;}
21544 as_unset=as_fn_unset
21545 # as_fn_append VAR VALUE
21546 # ----------------------
21547 # Append the text in VALUE to the end of the definition contained in VAR. Take
21548 # advantage of any shell optimizations that allow amortized linear growth over
21549 # repeated appends, instead of the typical quadratic growth present in naive
21551 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21552 eval 'as_fn_append ()
21563 # as_fn_arith ARG...
21564 # ------------------
21565 # Perform arithmetic evaluation on the ARGs, and store the result in the
21566 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21567 # must be portable across $(()) and expr.
21568 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21569 eval 'as_fn_arith ()
21576 as_val=`expr "$@" || test $? -eq 1`
21581 if expr a : '\(a\)' >/dev/null 2>&1 &&
21582 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21588 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21589 as_basename=basename
21594 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21600 as_me=`$as_basename -- "$0" ||
21601 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21602 X"$0" : 'X\(//\)$' \| \
21603 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21605 sed '/^.*\/\([^/][^/]*\)\/*$/{
21619 # Avoid depending upon Character Ranges.
21620 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21621 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21622 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21623 as_cr_digits='0123456789'
21624 as_cr_alnum=$as_cr_Letters$as_cr_digits
21626 ECHO_C= ECHO_N= ECHO_T=
21627 case `echo -n x` in #(((((
21629 case `echo 'xy\c'` in
21630 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21632 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21639 rm -f conf$$ conf$$.exe conf$$.file
21640 if test -d conf$$.dir; then
21641 rm -f conf$$.dir/conf$$.file
21644 mkdir conf$$.dir 2>/dev/null
21646 if (echo >conf$$.file) 2>/dev/null; then
21647 if ln -s conf$$.file conf$$ 2>/dev/null; then
21649 # ... but there are two gotchas:
21650 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21651 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21652 # In both cases, we have to default to `cp -p'.
21653 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21655 elif ln conf$$.file conf$$ 2>/dev/null; then
21663 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21664 rmdir conf$$.dir 2>/dev/null
21669 # Create "$as_dir" as a directory, including parents if necessary.
21674 -*) as_dir=./$as_dir;;
21676 test -d "$as_dir" || eval $as_mkdir_p || {
21680 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21681 *) as_qdir=$as_dir;;
21683 as_dirs="'$as_qdir' $as_dirs"
21684 as_dir=`$as_dirname -- "$as_dir" ||
21685 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21686 X"$as_dir" : 'X\(//\)[^/]' \| \
21687 X"$as_dir" : 'X\(//\)$' \| \
21688 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21689 $as_echo X"$as_dir" |
21690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21694 /^X\(\/\/\)[^/].*/{
21707 test -d "$as_dir" && break
21709 test -z "$as_dirs" || eval "mkdir $as_dirs"
21710 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21714 if mkdir -p . 2>/dev/null; then
21715 as_mkdir_p='mkdir -p "$as_dir"'
21717 test -d ./-p && rmdir ./-p
21721 if test -x / >/dev/null 2>&1; then
21722 as_test_x='test -x'
21724 if ls -dL / >/dev/null 2>&1; then
21731 if test -d "$1"; then
21737 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21738 ???[sx]*):;;*)false;;esac;fi
21742 as_executable_p=$as_test_x
21744 # Sed expression to map a string onto a valid CPP name.
21745 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21747 # Sed expression to map a string onto a valid variable name.
21748 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21752 ## ----------------------------------- ##
21753 ## Main body of $CONFIG_STATUS script. ##
21754 ## ----------------------------------- ##
21756 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21759 # Save the log message, to keep $0 and so on meaningful, and to
21760 # report actual input values of CONFIG_FILES etc. instead of their
21761 # values after options handling.
21763 This file was extended by linux nfs-utils $as_me 1.2.6, which was
21764 generated by GNU Autoconf 2.68. Invocation command line was
21766 CONFIG_FILES = $CONFIG_FILES
21767 CONFIG_HEADERS = $CONFIG_HEADERS
21768 CONFIG_LINKS = $CONFIG_LINKS
21769 CONFIG_COMMANDS = $CONFIG_COMMANDS
21772 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21777 case $ac_config_files in *"
21778 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21781 case $ac_config_headers in *"
21782 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21787 # Files that config.status was made for.
21788 config_files="$ac_config_files"
21789 config_headers="$ac_config_headers"
21790 config_commands="$ac_config_commands"
21794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21796 \`$as_me' instantiates files and other configuration actions
21797 from templates according to the current configuration. Unless the files
21798 and actions are specified as TAGs, all are instantiated by default.
21800 Usage: $0 [OPTION]... [TAG]...
21802 -h, --help print this help, then exit
21803 -V, --version print version number and configuration settings, then exit
21804 --config print configuration, then exit
21805 -q, --quiet, --silent
21806 do not print progress messages
21807 -d, --debug don't remove temporary files
21808 --recheck update $as_me by reconfiguring in the same conditions
21809 --file=FILE[:TEMPLATE]
21810 instantiate the configuration file FILE
21811 --header=FILE[:TEMPLATE]
21812 instantiate the configuration header FILE
21814 Configuration files:
21817 Configuration headers:
21820 Configuration commands:
21823 Report bugs to <linux-nfs@vger.kernel.org>."
21826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21827 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21829 linux nfs-utils config.status 1.2.6
21830 configured by $0, generated by GNU Autoconf 2.68,
21831 with options \\"\$ac_cs_config\\"
21833 Copyright (C) 2010 Free Software Foundation, Inc.
21834 This config.status script is free software; the Free Software Foundation
21835 gives unlimited permission to copy, distribute and modify it."
21842 test -n "\$AWK" || AWK=awk
21845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21846 # The default lists apply if the user does not specify any file.
21852 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21853 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21857 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21869 # Handling of the options.
21870 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21872 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21873 $as_echo "$ac_cs_version"; exit ;;
21874 --config | --confi | --conf | --con | --co | --c )
21875 $as_echo "$ac_cs_config"; exit ;;
21876 --debug | --debu | --deb | --de | --d | -d )
21878 --file | --fil | --fi | --f )
21881 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21882 '') as_fn_error $? "missing file argument" ;;
21884 as_fn_append CONFIG_FILES " '$ac_optarg'"
21885 ac_need_defaults=false;;
21886 --header | --heade | --head | --hea )
21889 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21891 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21892 ac_need_defaults=false;;
21894 # Conflict between --help and --header
21895 as_fn_error $? "ambiguous option: \`$1'
21896 Try \`$0 --help' for more information.";;
21897 --help | --hel | -h )
21898 $as_echo "$ac_cs_usage"; exit ;;
21899 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21900 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21903 # This is an error.
21904 -*) as_fn_error $? "unrecognized option: \`$1'
21905 Try \`$0 --help' for more information." ;;
21907 *) as_fn_append ac_config_targets " $1"
21908 ac_need_defaults=false ;;
21914 ac_configure_extra_args=
21916 if $ac_cs_silent; then
21918 ac_configure_extra_args="$ac_configure_extra_args --silent"
21922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21923 if \$ac_cs_recheck; then
21924 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21926 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21927 CONFIG_SHELL='$SHELL'
21928 export CONFIG_SHELL
21933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21937 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21938 ## Running $as_me. ##
21944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21948 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21951 # The HP-UX ksh and POSIX shell print the target directory to stdout
21952 # if CDPATH is set.
21953 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21955 sed_quote_subst='$sed_quote_subst'
21956 double_quote_subst='$double_quote_subst'
21957 delay_variable_subst='$delay_variable_subst'
21958 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21959 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21960 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21961 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21962 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21963 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21964 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21965 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21966 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21967 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21968 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21969 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21970 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21971 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21972 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21973 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21974 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21975 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21976 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21977 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21978 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21979 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21980 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21981 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21982 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21983 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21984 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21985 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21986 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21987 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21988 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21989 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21990 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21991 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21992 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21993 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21994 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21995 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21996 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21997 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21998 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21999 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22000 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22001 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22002 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22003 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22004 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22005 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22006 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22007 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22008 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22009 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22010 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22011 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22012 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22013 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
22014 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22015 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22016 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22017 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22018 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22019 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22020 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22021 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22022 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22023 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22024 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22025 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22026 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22027 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22028 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22029 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22030 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22031 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22032 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22033 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22034 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22035 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22036 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22037 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22038 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22039 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22040 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22041 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22042 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22043 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22044 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22045 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22046 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22047 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22048 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
22049 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22050 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22051 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22052 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22053 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22054 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22055 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22056 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22057 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22058 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22059 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22060 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22061 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22062 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22063 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22064 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22065 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22066 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22067 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22068 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22069 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22070 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22071 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22072 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22073 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22074 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22075 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22076 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22077 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22078 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22079 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22080 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22081 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22082 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22083 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22084 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22085 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22086 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22087 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22088 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22089 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22090 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22091 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22092 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22093 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22094 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22095 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22096 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22097 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22098 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22099 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22100 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22101 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22102 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22103 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22104 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22105 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22106 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22107 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22108 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22109 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22110 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22111 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22112 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22113 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22114 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22115 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22116 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22117 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22118 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22119 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22120 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
22121 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22122 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22123 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22124 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22125 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22126 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22127 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22128 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22129 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22130 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22131 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22132 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22133 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22134 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22135 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22136 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22137 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22138 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22139 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22140 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22141 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22142 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22145 LTCFLAGS='$LTCFLAGS'
22146 compiler='$compiler_DEFAULT'
22148 # A function that is used when there is no print builtin or printf.
22149 func_fallback_echo ()
22151 eval 'cat <<_LTECHO_EOF
22156 # Quote evaled strings.
22170 deplibs_check_method \
22175 sharedlib_from_linklib_cmd \
22178 archiver_list_spec \
22184 lt_cv_sys_global_symbol_pipe \
22185 lt_cv_sys_global_symbol_to_cdecl \
22186 lt_cv_sys_global_symbol_to_c_name_address \
22187 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22188 nm_file_list_spec \
22189 lt_prog_compiler_no_builtin_flag \
22190 lt_prog_compiler_pic \
22191 lt_prog_compiler_wl \
22192 lt_prog_compiler_static \
22193 lt_cv_prog_compiler_c_o \
22202 export_dynamic_flag_spec \
22203 whole_archive_flag_spec \
22204 compiler_needs_object \
22206 allow_undefined_flag \
22207 no_undefined_flag \
22208 hardcode_libdir_flag_spec \
22209 hardcode_libdir_flag_spec_ld \
22210 hardcode_libdir_separator \
22214 variables_saved_for_relink \
22216 library_names_spec \
22218 install_override_mode \
22222 compiler_lib_search_dirs \
22227 compiler_lib_search_path \
22231 lt_prog_compiler_no_builtin_flag_CXX \
22232 lt_prog_compiler_pic_CXX \
22233 lt_prog_compiler_wl_CXX \
22234 lt_prog_compiler_static_CXX \
22235 lt_cv_prog_compiler_c_o_CXX \
22236 export_dynamic_flag_spec_CXX \
22237 whole_archive_flag_spec_CXX \
22238 compiler_needs_object_CXX \
22240 allow_undefined_flag_CXX \
22241 no_undefined_flag_CXX \
22242 hardcode_libdir_flag_spec_CXX \
22243 hardcode_libdir_flag_spec_ld_CXX \
22244 hardcode_libdir_separator_CXX \
22245 exclude_expsyms_CXX \
22246 include_expsyms_CXX \
22247 file_list_spec_CXX \
22248 compiler_lib_search_dirs_CXX \
22249 predep_objects_CXX \
22250 postdep_objects_CXX \
22253 compiler_lib_search_path_CXX; do
22254 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22255 *[\\\\\\\`\\"\\\$]*)
22256 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22259 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22264 # Double-quote double-evaled strings.
22265 for var in reload_cmds \
22266 old_postinstall_cmds \
22267 old_postuninstall_cmds \
22269 extract_expsyms_cmds \
22270 old_archive_from_new_cmds \
22271 old_archive_from_expsyms_cmds \
22273 archive_expsym_cmds \
22275 module_expsym_cmds \
22276 export_symbols_cmds \
22280 postuninstall_cmds \
22282 sys_lib_search_path_spec \
22283 sys_lib_dlsearch_path_spec \
22285 old_archive_cmds_CXX \
22286 old_archive_from_new_cmds_CXX \
22287 old_archive_from_expsyms_cmds_CXX \
22289 archive_expsym_cmds_CXX \
22291 module_expsym_cmds_CXX \
22292 export_symbols_cmds_CXX \
22294 postlink_cmds_CXX; do
22295 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22296 *[\\\\\\\`\\"\\\$]*)
22297 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22300 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22305 ac_aux_dir='$ac_aux_dir'
22306 xsi_shell='$xsi_shell'
22307 lt_shell_append='$lt_shell_append'
22309 # See if we are running on zsh, and set the options which allow our
22310 # commands through without removal of \ escapes INIT.
22311 if test -n "\${ZSH_VERSION+set}" ; then
22312 setopt NO_GLOB_SUBST
22318 TIMESTAMP='$TIMESTAMP'
22329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22331 # Handling of arguments.
22332 for ac_config_target in $ac_config_targets
22334 case $ac_config_target in
22335 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22336 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
22337 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22338 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22339 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
22340 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
22341 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
22342 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
22343 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
22344 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
22345 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
22346 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
22347 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
22348 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
22349 "support/nsm/Makefile") CONFIG_FILES="$CONFIG_FILES support/nsm/Makefile" ;;
22350 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22351 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
22352 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
22353 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
22354 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
22355 "tools/mountstats/Makefile") CONFIG_FILES="$CONFIG_FILES tools/mountstats/Makefile" ;;
22356 "tools/nfs-iostat/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nfs-iostat/Makefile" ;;
22357 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
22358 "utils/blkmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/blkmapd/Makefile" ;;
22359 "utils/nfsdcld/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsdcld/Makefile" ;;
22360 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
22361 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
22362 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
22363 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
22364 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
22365 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
22366 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
22367 "utils/nfsidmap/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsidmap/Makefile" ;;
22368 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
22369 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
22370 "utils/osd_login/Makefile") CONFIG_FILES="$CONFIG_FILES utils/osd_login/Makefile" ;;
22371 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22372 "tests/nsm_client/Makefile") CONFIG_FILES="$CONFIG_FILES tests/nsm_client/Makefile" ;;
22374 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22379 # If the user did not use the arguments to specify the items to instantiate,
22380 # then the envvar interface is used. Set only those that are not.
22381 # We use the long form for the default assignment because of an extremely
22382 # bizarre bug on SunOS 4.1.3.
22383 if $ac_need_defaults; then
22384 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22385 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22386 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22389 # Have a temporary directory for convenience. Make it in the build tree
22390 # simply because there is no reason against having it here, and in addition,
22391 # creating and moving files from /tmp can sometimes cause problems.
22392 # Hook for its removal unless debugging.
22393 # Note that there is a small window in which the directory will not be cleaned:
22394 # after its creation but before its name has been assigned to `$tmp'.
22398 trap 'exit_status=$?
22399 : "${ac_tmp:=$tmp}"
22400 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22402 trap 'as_fn_exit 1' 1 2 13 15
22404 # Create a (secure) tmp directory for tmp files.
22407 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22411 tmp=./conf$$-$RANDOM
22412 (umask 077 && mkdir "$tmp")
22413 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22416 # Set up the scripts for CONFIG_FILES section.
22417 # No need to generate them if there are no CONFIG_FILES.
22418 # This happens for instance with `./config.status config.h'.
22419 if test -n "$CONFIG_FILES"; then
22422 ac_cr=`echo X | tr X '\015'`
22423 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22424 # But we know of no other shell where ac_cr would be empty at this
22425 # point, so we can use a bashism as a fallback.
22426 if test "x$ac_cr" = x; then
22427 eval ac_cr=\$\'\\r\'
22429 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22430 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22433 ac_cs_awk_cr=$ac_cr
22436 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22441 echo "cat >conf$$subs.awk <<_ACEOF" &&
22442 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22444 } >conf$$subs.sh ||
22445 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22446 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22448 for ac_last_try in false false false false false :; do
22449 . ./conf$$subs.sh ||
22450 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22452 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22453 if test $ac_delim_n = $ac_delim_num; then
22455 elif $ac_last_try; then
22456 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22461 rm -f conf$$subs.sh
22463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22464 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22468 s/^/S["/; s/!.*/"]=/
22478 s/\(.\{148\}\)..*/\1/
22480 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22485 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22492 s/\(.\{148\}\)..*/\1/
22494 s/["\\]/\\&/g; s/^/"/; s/$/"/
22498 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22503 ' <conf$$subs.awk | sed '
22508 ' >>$CONFIG_STATUS || ac_write_fail=1
22509 rm -f conf$$subs.awk
22510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22512 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22513 for (key in S) S_is_set[key] = 1
22519 nfields = split(line, field, "@")
22521 len = length(field[1])
22522 for (i = 2; i < nfields; i++) {
22524 keylen = length(key)
22525 if (S_is_set[key]) {
22527 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22528 len += length(value) + length(field[++i])
22539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22540 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22541 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22544 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22545 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22548 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22549 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22550 # trailing colons and then remove the whole line if VPATH becomes empty
22551 # (actually we leave an empty line to preserve line numbers).
22552 if test "x$srcdir" = x.; then
22553 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22572 fi # test -n "$CONFIG_FILES"
22574 # Set up the scripts for CONFIG_HEADERS section.
22575 # No need to generate them if there are no CONFIG_HEADERS.
22576 # This happens for instance with `./config.status Makefile'.
22577 if test -n "$CONFIG_HEADERS"; then
22578 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22582 # Transform confdefs.h into an awk script `defines.awk', embedded as
22583 # here-document in config.status, that substitutes the proper values into
22584 # config.h.in to produce config.h.
22586 # Create a delimiter string that does not exist in confdefs.h, to ease
22587 # handling of long lines.
22589 for ac_last_try in false false :; do
22590 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22591 if test -z "$ac_tt"; then
22593 elif $ac_last_try; then
22594 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22596 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22600 # For the awk script, D is an array of macro values keyed by name,
22601 # likewise P contains macro parameters if any. Preserve backslash
22602 # newline sequences.
22604 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22606 s/.\{148\}/&'"$ac_delim"'/g
22609 s/^[ ]*#[ ]*define[ ][ ]*/ /
22616 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22618 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22622 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22623 D["\1"]=" \3\\\\\\n"\\/p
22625 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22630 s/.\{148\}/&'"$ac_delim"'/g
22635 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22638 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22640 ' <confdefs.h | sed '
22641 s/'"$ac_delim"'/"\\\
22642 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22645 for (key in D) D_is_set[key] = 1
22648 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22650 split(line, arg, " ")
22651 if (arg[1] == "#") {
22655 defundef = substr(arg[1], 2)
22658 split(mac1, mac2, "(") #)
22660 prefix = substr(line, 1, index(line, defundef) - 1)
22661 if (D_is_set[macro]) {
22662 # Preserve the white space surrounding the "#".
22663 print prefix "define", macro P[macro] D[macro]
22666 # Replace #undef with comments. This is necessary, for example,
22667 # in the case of _POSIX_SOURCE, which is predefined and required
22668 # on some systems where configure will not decide to define it.
22669 if (defundef == "undef") {
22670 print "/*", prefix defundef, macro, "*/"
22678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22679 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22680 fi # test -n "$CONFIG_HEADERS"
22683 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22688 :[FHLC]) ac_mode=$ac_tag; continue;;
22690 case $ac_mode$ac_tag in
22692 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22693 :[FH]-) ac_tag=-:-;;
22694 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22711 -) ac_f="$ac_tmp/stdin";;
22712 *) # Look for the file first in the build tree, then in the source tree
22713 # (if the path is not absolute). The absolute path cannot be DOS-style,
22714 # because $ac_f cannot contain `:'.
22718 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22720 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22722 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22723 as_fn_append ac_file_inputs " '$ac_f'"
22726 # Let's still pretend it is `configure' which instantiates (i.e., don't
22727 # use $as_me), people would be surprised to read:
22728 # /* config.h. Generated by config.status. */
22729 configure_input='Generated from '`
22730 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22732 if test x"$ac_file" != x-; then
22733 configure_input="$ac_file. $configure_input"
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22735 $as_echo "$as_me: creating $ac_file" >&6;}
22737 # Neutralize special characters interpreted by sed in replacement strings.
22738 case $configure_input in #(
22739 *\&* | *\|* | *\\* )
22740 ac_sed_conf_input=`$as_echo "$configure_input" |
22741 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22742 *) ac_sed_conf_input=$configure_input;;
22746 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22752 ac_dir=`$as_dirname -- "$ac_file" ||
22753 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22754 X"$ac_file" : 'X\(//\)[^/]' \| \
22755 X"$ac_file" : 'X\(//\)$' \| \
22756 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22757 $as_echo X"$ac_file" |
22758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22762 /^X\(\/\/\)[^/].*/{
22775 as_dir="$ac_dir"; as_fn_mkdir_p
22779 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22781 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22782 # A ".." for each directory in $ac_dir_suffix.
22783 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22784 case $ac_top_builddir_sub in
22785 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22786 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22789 ac_abs_top_builddir=$ac_pwd
22790 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22791 # for backward compatibility:
22792 ac_top_builddir=$ac_top_build_prefix
22795 .) # We are building in place.
22797 ac_top_srcdir=$ac_top_builddir_sub
22798 ac_abs_top_srcdir=$ac_pwd ;;
22799 [\\/]* | ?:[\\/]* ) # Absolute name.
22800 ac_srcdir=$srcdir$ac_dir_suffix;
22801 ac_top_srcdir=$srcdir
22802 ac_abs_top_srcdir=$srcdir ;;
22803 *) # Relative name.
22804 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22805 ac_top_srcdir=$ac_top_build_prefix$srcdir
22806 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22808 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22818 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22819 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22821 ac_MKDIR_P=$MKDIR_P
22823 [\\/$]* | ?:[\\/]* ) ;;
22824 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22829 # If the template does not know about datarootdir, expand it.
22830 # FIXME: This hack should be removed a few years after 2.60.
22831 ac_datarootdir_hack=; ac_datarootdir_seen=
22842 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22843 *datarootdir*) ac_datarootdir_seen=yes;;
22844 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22846 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22849 ac_datarootdir_hack='
22850 s&@datadir@&$datadir&g
22851 s&@docdir@&$docdir&g
22852 s&@infodir@&$infodir&g
22853 s&@localedir@&$localedir&g
22854 s&@mandir@&$mandir&g
22855 s&\\\${datarootdir}&$datarootdir&g' ;;
22859 # Neutralize VPATH when `$srcdir' = `.'.
22860 # Shell code in configure.ac might set extrasub.
22861 # FIXME: do we really want to maintain this feature?
22862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22863 ac_sed_extra="$ac_vpsub
22866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22869 s|@configure_input@|$ac_sed_conf_input|;t t
22870 s&@top_builddir@&$ac_top_builddir_sub&;t t
22871 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22872 s&@srcdir@&$ac_srcdir&;t t
22873 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22874 s&@top_srcdir@&$ac_top_srcdir&;t t
22875 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22876 s&@builddir@&$ac_builddir&;t t
22877 s&@abs_builddir@&$ac_abs_builddir&;t t
22878 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22879 s&@INSTALL@&$ac_INSTALL&;t t
22880 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22881 $ac_datarootdir_hack
22883 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22884 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22886 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22887 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22888 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22889 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22891 which seems to be undefined. Please make sure it is defined" >&5
22892 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22893 which seems to be undefined. Please make sure it is defined" >&2;}
22895 rm -f "$ac_tmp/stdin"
22897 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22898 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22906 if test x"$ac_file" != x-; then
22908 $as_echo "/* $configure_input */" \
22909 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22910 } >"$ac_tmp/config.h" \
22911 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22912 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22914 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22917 mv "$ac_tmp/config.h" "$ac_file" \
22918 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22921 $as_echo "/* $configure_input */" \
22922 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22923 || as_fn_error $? "could not create -" "$LINENO" 5
22925 # Compute "$ac_file"'s index in $config_headers.
22928 for _am_header in $config_headers :; do
22929 case $_am_header in
22930 $_am_arg | $_am_arg:* )
22933 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22936 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22937 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22938 X"$_am_arg" : 'X\(//\)[^/]' \| \
22939 X"$_am_arg" : 'X\(//\)$' \| \
22940 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22941 $as_echo X"$_am_arg" |
22942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22946 /^X\(\/\/\)[^/].*/{
22958 s/.*/./; q'`/stamp-h$_am_stamp_count
22961 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22962 $as_echo "$as_me: executing $ac_file commands" >&6;}
22967 case $ac_file$ac_mode in
22968 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22969 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22970 # are listed without --file. Let's play safe and only enable the eval
22971 # if we detect the quoting.
22972 case $CONFIG_FILES in
22973 *\'*) eval set x "$CONFIG_FILES" ;;
22974 *) set x $CONFIG_FILES ;;
22979 # Strip MF so we end up with the name of the file.
22980 mf=`echo "$mf" | sed -e 's/:.*$//'`
22981 # Check whether this is an Automake generated Makefile or not.
22982 # We used to match only the files named `Makefile.in', but
22983 # some people rename them; so instead we look at the file content.
22984 # Grep'ing the first line is not enough: some people post-process
22985 # each Makefile.in and add a new line on top of each file to say so.
22986 # Grep'ing the whole file is not good either: AIX grep has a line
22987 # limit of 2048, but all sed's we know have understand at least 4000.
22988 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22989 dirpart=`$as_dirname -- "$mf" ||
22990 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22991 X"$mf" : 'X\(//\)[^/]' \| \
22992 X"$mf" : 'X\(//\)$' \| \
22993 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22999 /^X\(\/\/\)[^/].*/{
23015 # Extract the definition of DEPDIR, am__include, and am__quote
23016 # from the Makefile without running `make'.
23017 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23018 test -z "$DEPDIR" && continue
23019 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23020 test -z "am__include" && continue
23021 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23022 # When using ansi2knr, U may be empty or an underscore; expand it
23023 U=`sed -n 's/^U = //p' < "$mf"`
23024 # Find all dependency output files, they are included files with
23025 # $(DEPDIR) in their names. We invoke sed twice because it is the
23026 # simplest approach to changing $(DEPDIR) to its actual value in the
23028 for file in `sed -n "
23029 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23030 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23031 # Make sure the directory exists.
23032 test -f "$dirpart/$file" && continue
23033 fdir=`$as_dirname -- "$file" ||
23034 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23035 X"$file" : 'X\(//\)[^/]' \| \
23036 X"$file" : 'X\(//\)$' \| \
23037 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23038 $as_echo X"$file" |
23039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23043 /^X\(\/\/\)[^/].*/{
23056 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23057 # echo "creating $dirpart/$file"
23058 echo '# dummy' > "$dirpart/$file"
23065 # See if we are running on zsh, and set the options which allow our
23066 # commands through without removal of \ escapes.
23067 if test -n "${ZSH_VERSION+set}" ; then
23068 setopt NO_GLOB_SUBST
23071 cfgfile="${ofile}T"
23072 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23075 cat <<_LT_EOF >> "$cfgfile"
23078 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23079 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23080 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23081 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23083 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23084 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
23086 # Written by Gordon Matzigkeit, 1996
23088 # This file is part of GNU Libtool.
23090 # GNU Libtool is free software; you can redistribute it and/or
23091 # modify it under the terms of the GNU General Public License as
23092 # published by the Free Software Foundation; either version 2 of
23093 # the License, or (at your option) any later version.
23095 # As a special exception to the GNU General Public License,
23096 # if you distribute this file as part of a program or library that
23097 # is built using GNU Libtool, you may include this file under the
23098 # same distribution terms that you use for the rest of that program.
23100 # GNU Libtool is distributed in the hope that it will be useful,
23101 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23102 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23103 # GNU General Public License for more details.
23105 # You should have received a copy of the GNU General Public License
23106 # along with GNU Libtool; see the file COPYING. If not, a copy
23107 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23108 # obtained by writing to the Free Software Foundation, Inc.,
23109 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23112 # The names of the tagged configurations supported by this script.
23113 available_tags="CXX "
23115 # ### BEGIN LIBTOOL CONFIG
23117 # Which release of libtool.m4 was used?
23118 macro_version=$macro_version
23119 macro_revision=$macro_revision
23121 # Whether or not to build shared libraries.
23122 build_libtool_libs=$enable_shared
23124 # Whether or not to build static libraries.
23125 build_old_libs=$enable_static
23127 # What type of objects to build.
23130 # Whether or not to optimize for fast installation.
23131 fast_install=$enable_fast_install
23133 # Shell to use when invoking shell scripts.
23136 # An echo program that protects backslashes.
23140 host_alias=$host_alias
23144 # The build system.
23145 build_alias=$build_alias
23149 # A sed program that does not truncate output.
23152 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23153 Xsed="\$SED -e 1s/^X//"
23155 # A grep program that handles long lines.
23161 # A literal string matcher.
23164 # A BSD- or MS-compatible name lister.
23167 # Whether we need soft or hard links.
23170 # What is the maximum length of a command?
23171 max_cmd_len=$max_cmd_len
23173 # Object file suffix (normally "o").
23176 # Executable file suffix (normally "").
23179 # whether the shell understands "unset".
23182 # turn spaces into newlines.
23185 # turn newlines into spaces.
23188 # convert \$build file names to \$host format.
23189 to_host_file_cmd=$lt_cv_to_host_file_cmd
23191 # convert \$build files to toolchain format.
23192 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23194 # An object symbol dumper.
23195 OBJDUMP=$lt_OBJDUMP
23197 # Method to check whether dependent libraries are shared objects.
23198 deplibs_check_method=$lt_deplibs_check_method
23200 # Command to use when deplibs_check_method = "file_magic".
23201 file_magic_cmd=$lt_file_magic_cmd
23203 # How to find potential files when deplibs_check_method = "file_magic".
23204 file_magic_glob=$lt_file_magic_glob
23206 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23207 want_nocaseglob=$lt_want_nocaseglob
23209 # DLL creation program.
23210 DLLTOOL=$lt_DLLTOOL
23212 # Command to associate shared and link libraries.
23213 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23218 # Flags to create an archive.
23219 AR_FLAGS=$lt_AR_FLAGS
23221 # How to feed a file listing to the archiver.
23222 archiver_list_spec=$lt_archiver_list_spec
23224 # A symbol stripping program.
23227 # Commands used to install an old-style archive.
23229 old_postinstall_cmds=$lt_old_postinstall_cmds
23230 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23232 # Whether to use a lock for old archive extraction.
23233 lock_old_archive_extraction=$lock_old_archive_extraction
23238 # LTCC compiler flags.
23239 LTCFLAGS=$lt_CFLAGS
23241 # Take the output of nm and produce a listing of raw symbols and C names.
23242 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23244 # Transform the output of nm in a proper C declaration.
23245 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23247 # Transform the output of nm in a C name address pair.
23248 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23250 # Transform the output of nm in a C name address pair when lib prefix is needed.
23251 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23253 # Specify filename containing input files for \$NM.
23254 nm_file_list_spec=$lt_nm_file_list_spec
23256 # The root where to search for dependent libraries,and in which our libraries should be installed.
23257 lt_sysroot=$lt_sysroot
23259 # The name of the directory that contains temporary libtool files.
23262 # Used to examine libraries when file_magic_cmd begins with "file".
23263 MAGIC_CMD=$MAGIC_CMD
23265 # Must we lock files when doing compilation?
23266 need_locks=$lt_need_locks
23269 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23271 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23272 DSYMUTIL=$lt_DSYMUTIL
23274 # Tool to change global to local symbols on Mac OS X.
23277 # Tool to manipulate fat objects and archives on Mac OS X.
23280 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23283 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23284 OTOOL64=$lt_OTOOL64
23286 # Old archive suffix (normally "a").
23289 # Shared library suffix (normally ".so").
23290 shrext_cmds=$lt_shrext_cmds
23292 # The commands to extract the exported symbol list from a shared archive.
23293 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23295 # Variables whose values should be saved in libtool wrapper scripts and
23296 # restored at link time.
23297 variables_saved_for_relink=$lt_variables_saved_for_relink
23299 # Do we need the "lib" prefix for modules?
23300 need_lib_prefix=$need_lib_prefix
23302 # Do we need a version for libraries?
23303 need_version=$need_version
23305 # Library versioning type.
23306 version_type=$version_type
23308 # Shared library runtime path variable.
23309 runpath_var=$runpath_var
23311 # Shared library path variable.
23312 shlibpath_var=$shlibpath_var
23314 # Is shlibpath searched before the hard-coded library search path?
23315 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23317 # Format of library name prefix.
23318 libname_spec=$lt_libname_spec
23320 # List of archive names. First name is the real one, the rest are links.
23321 # The last name is the one that the linker finds with -lNAME
23322 library_names_spec=$lt_library_names_spec
23324 # The coded name of the library, if different from the real name.
23325 soname_spec=$lt_soname_spec
23327 # Permission mode override for installation of shared libraries.
23328 install_override_mode=$lt_install_override_mode
23330 # Command to use after installation of a shared archive.
23331 postinstall_cmds=$lt_postinstall_cmds
23333 # Command to use after uninstallation of a shared archive.
23334 postuninstall_cmds=$lt_postuninstall_cmds
23336 # Commands used to finish a libtool library installation in a directory.
23337 finish_cmds=$lt_finish_cmds
23339 # As "finish_cmds", except a single script fragment to be evaled but
23341 finish_eval=$lt_finish_eval
23343 # Whether we should hardcode library paths into libraries.
23344 hardcode_into_libs=$hardcode_into_libs
23346 # Compile-time system search path for libraries.
23347 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23349 # Run-time system search path for libraries.
23350 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23352 # Whether dlopen is supported.
23353 dlopen_support=$enable_dlopen
23355 # Whether dlopen of programs is supported.
23356 dlopen_self=$enable_dlopen_self
23358 # Whether dlopen of statically linked programs is supported.
23359 dlopen_self_static=$enable_dlopen_self_static
23361 # Commands to strip libraries.
23362 old_striplib=$lt_old_striplib
23363 striplib=$lt_striplib
23366 # The linker used to build libraries.
23369 # How to create reloadable object files.
23370 reload_flag=$lt_reload_flag
23371 reload_cmds=$lt_reload_cmds
23373 # Commands used to build an old-style archive.
23374 old_archive_cmds=$lt_old_archive_cmds
23376 # A language specific compiler.
23379 # Is the compiler the GNU compiler?
23382 # Compiler flag to turn off builtin functions.
23383 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23385 # Additional compiler flags for building library objects.
23386 pic_flag=$lt_lt_prog_compiler_pic
23388 # How to pass a linker flag through the compiler.
23389 wl=$lt_lt_prog_compiler_wl
23391 # Compiler flag to prevent dynamic linking.
23392 link_static_flag=$lt_lt_prog_compiler_static
23394 # Does compiler simultaneously support -c and -o options?
23395 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23397 # Whether or not to add -lc for building shared libraries.
23398 build_libtool_need_lc=$archive_cmds_need_lc
23400 # Whether or not to disallow shared libs when runtime libs are static.
23401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23403 # Compiler flag to allow reflexive dlopens.
23404 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23406 # Compiler flag to generate shared objects directly from archives.
23407 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23409 # Whether the compiler copes with passing no objects directly.
23410 compiler_needs_object=$lt_compiler_needs_object
23412 # Create an old-style archive from a shared archive.
23413 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23415 # Create a temporary old-style archive to link instead of a shared archive.
23416 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23418 # Commands used to build a shared archive.
23419 archive_cmds=$lt_archive_cmds
23420 archive_expsym_cmds=$lt_archive_expsym_cmds
23422 # Commands used to build a loadable module if different from building
23423 # a shared archive.
23424 module_cmds=$lt_module_cmds
23425 module_expsym_cmds=$lt_module_expsym_cmds
23427 # Whether we are building with GNU ld or not.
23428 with_gnu_ld=$lt_with_gnu_ld
23430 # Flag that allows shared libraries with undefined symbols to be built.
23431 allow_undefined_flag=$lt_allow_undefined_flag
23433 # Flag that enforces no undefined symbols.
23434 no_undefined_flag=$lt_no_undefined_flag
23436 # Flag to hardcode \$libdir into a binary during linking.
23437 # This must work even if \$libdir does not exist
23438 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23440 # If ld is used when linking, flag to hardcode \$libdir into a binary
23441 # during linking. This must work even if \$libdir does not exist.
23442 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23444 # Whether we need a single "-rpath" flag with a separated argument.
23445 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23447 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23448 # DIR into the resulting binary.
23449 hardcode_direct=$hardcode_direct
23451 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23452 # DIR into the resulting binary and the resulting library dependency is
23453 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23454 # library is relocated.
23455 hardcode_direct_absolute=$hardcode_direct_absolute
23457 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23458 # into the resulting binary.
23459 hardcode_minus_L=$hardcode_minus_L
23461 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23462 # into the resulting binary.
23463 hardcode_shlibpath_var=$hardcode_shlibpath_var
23465 # Set to "yes" if building a shared library automatically hardcodes DIR
23466 # into the library and all subsequent libraries and executables linked
23468 hardcode_automatic=$hardcode_automatic
23470 # Set to yes if linker adds runtime paths of dependent libraries
23471 # to runtime path list.
23472 inherit_rpath=$inherit_rpath
23474 # Whether libtool must link a program against all its dependency libraries.
23475 link_all_deplibs=$link_all_deplibs
23477 # Set to "yes" if exported symbols are required.
23478 always_export_symbols=$always_export_symbols
23480 # The commands to list exported symbols.
23481 export_symbols_cmds=$lt_export_symbols_cmds
23483 # Symbols that should not be listed in the preloaded symbols.
23484 exclude_expsyms=$lt_exclude_expsyms
23486 # Symbols that must always be exported.
23487 include_expsyms=$lt_include_expsyms
23489 # Commands necessary for linking programs (against libraries) with templates.
23490 prelink_cmds=$lt_prelink_cmds
23492 # Commands necessary for finishing linking programs.
23493 postlink_cmds=$lt_postlink_cmds
23495 # Specify filename containing input files.
23496 file_list_spec=$lt_file_list_spec
23498 # How to hardcode a shared library path into an executable.
23499 hardcode_action=$hardcode_action
23501 # The directories searched by this compiler when creating a shared library.
23502 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23504 # Dependencies to place before and after the objects being linked to
23505 # create a shared library.
23506 predep_objects=$lt_predep_objects
23507 postdep_objects=$lt_postdep_objects
23508 predeps=$lt_predeps
23509 postdeps=$lt_postdeps
23511 # The library search path used internally by the compiler when linking
23512 # a shared library.
23513 compiler_lib_search_path=$lt_compiler_lib_search_path
23515 # ### END LIBTOOL CONFIG
23521 cat <<\_LT_EOF >> "$cfgfile"
23522 # AIX sometimes has problems with the GCC collect2 program. For some
23523 # reason, if we set the COLLECT_NAMES environment variable, the problems
23524 # vanish in a puff of smoke.
23525 if test "X${COLLECT_NAMES+set}" != Xset; then
23527 export COLLECT_NAMES
23534 ltmain="$ac_aux_dir/ltmain.sh"
23537 # We use sed instead of cat because bash on DJGPP gets confused if
23538 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23539 # text mode, it properly converts lines to CR/LF. This bash problem
23540 # is reportedly fixed, but why not run on old versions too?
23541 sed '$q' "$ltmain" >> "$cfgfile" \
23542 || (rm -f "$cfgfile"; exit 1)
23544 if test x"$xsi_shell" = xyes; then
23545 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23549 \ */*) func_dirname_result="${1%/*}${2}" ;;\
23550 \ * ) func_dirname_result="${3}" ;;\
23552 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23553 && mv -f "$cfgfile.tmp" "$cfgfile" \
23554 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23555 test 0 -eq $? || _lt_function_replace_fail=:
23558 sed -e '/^func_basename ()$/,/^} # func_basename /c\
23561 \ func_basename_result="${1##*/}"\
23562 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23563 && mv -f "$cfgfile.tmp" "$cfgfile" \
23564 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23565 test 0 -eq $? || _lt_function_replace_fail=:
23568 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23569 func_dirname_and_basename ()\
23572 \ */*) func_dirname_result="${1%/*}${2}" ;;\
23573 \ * ) func_dirname_result="${3}" ;;\
23575 \ func_basename_result="${1##*/}"\
23576 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23577 && mv -f "$cfgfile.tmp" "$cfgfile" \
23578 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23579 test 0 -eq $? || _lt_function_replace_fail=:
23582 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23585 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23586 \ # positional parameters, so assign one to ordinary parameter first.\
23587 \ func_stripname_result=${3}\
23588 \ func_stripname_result=${func_stripname_result#"${1}"}\
23589 \ func_stripname_result=${func_stripname_result%"${2}"}\
23590 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23591 && mv -f "$cfgfile.tmp" "$cfgfile" \
23592 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23593 test 0 -eq $? || _lt_function_replace_fail=:
23596 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23597 func_split_long_opt ()\
23599 \ func_split_long_opt_name=${1%%=*}\
23600 \ func_split_long_opt_arg=${1#*=}\
23601 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23602 && mv -f "$cfgfile.tmp" "$cfgfile" \
23603 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23604 test 0 -eq $? || _lt_function_replace_fail=:
23607 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23608 func_split_short_opt ()\
23610 \ func_split_short_opt_arg=${1#??}\
23611 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23612 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23613 && mv -f "$cfgfile.tmp" "$cfgfile" \
23614 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23615 test 0 -eq $? || _lt_function_replace_fail=:
23618 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23622 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23623 \ *) func_lo2o_result=${1} ;;\
23625 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23626 && mv -f "$cfgfile.tmp" "$cfgfile" \
23627 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23628 test 0 -eq $? || _lt_function_replace_fail=:
23631 sed -e '/^func_xform ()$/,/^} # func_xform /c\
23634 func_xform_result=${1%.*}.lo\
23635 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23636 && mv -f "$cfgfile.tmp" "$cfgfile" \
23637 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23638 test 0 -eq $? || _lt_function_replace_fail=:
23641 sed -e '/^func_arith ()$/,/^} # func_arith /c\
23644 func_arith_result=$(( $* ))\
23645 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23646 && mv -f "$cfgfile.tmp" "$cfgfile" \
23647 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23648 test 0 -eq $? || _lt_function_replace_fail=:
23651 sed -e '/^func_len ()$/,/^} # func_len /c\
23654 func_len_result=${#1}\
23655 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23656 && mv -f "$cfgfile.tmp" "$cfgfile" \
23657 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23658 test 0 -eq $? || _lt_function_replace_fail=:
23662 if test x"$lt_shell_append" = xyes; then
23663 sed -e '/^func_append ()$/,/^} # func_append /c\
23666 eval "${1}+=\\${2}"\
23667 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23668 && mv -f "$cfgfile.tmp" "$cfgfile" \
23669 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23670 test 0 -eq $? || _lt_function_replace_fail=:
23673 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23674 func_append_quoted ()\
23676 \ func_quote_for_eval "${2}"\
23677 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23678 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23679 && mv -f "$cfgfile.tmp" "$cfgfile" \
23680 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23681 test 0 -eq $? || _lt_function_replace_fail=:
23684 # Save a `func_append' function call where possible by direct use of '+='
23685 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23686 && mv -f "$cfgfile.tmp" "$cfgfile" \
23687 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23688 test 0 -eq $? || _lt_function_replace_fail=:
23690 # Save a `func_append' function call even when '+=' is not available
23691 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23692 && mv -f "$cfgfile.tmp" "$cfgfile" \
23693 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23694 test 0 -eq $? || _lt_function_replace_fail=:
23697 if test x"$_lt_function_replace_fail" = x":"; then
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23699 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23703 mv -f "$cfgfile" "$ofile" ||
23704 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23708 cat <<_LT_EOF >> "$ofile"
23710 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23712 # The linker used to build libraries.
23715 # How to create reloadable object files.
23716 reload_flag=$lt_reload_flag_CXX
23717 reload_cmds=$lt_reload_cmds_CXX
23719 # Commands used to build an old-style archive.
23720 old_archive_cmds=$lt_old_archive_cmds_CXX
23722 # A language specific compiler.
23723 CC=$lt_compiler_CXX
23725 # Is the compiler the GNU compiler?
23728 # Compiler flag to turn off builtin functions.
23729 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23731 # Additional compiler flags for building library objects.
23732 pic_flag=$lt_lt_prog_compiler_pic_CXX
23734 # How to pass a linker flag through the compiler.
23735 wl=$lt_lt_prog_compiler_wl_CXX
23737 # Compiler flag to prevent dynamic linking.
23738 link_static_flag=$lt_lt_prog_compiler_static_CXX
23740 # Does compiler simultaneously support -c and -o options?
23741 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23743 # Whether or not to add -lc for building shared libraries.
23744 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23746 # Whether or not to disallow shared libs when runtime libs are static.
23747 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23749 # Compiler flag to allow reflexive dlopens.
23750 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23752 # Compiler flag to generate shared objects directly from archives.
23753 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23755 # Whether the compiler copes with passing no objects directly.
23756 compiler_needs_object=$lt_compiler_needs_object_CXX
23758 # Create an old-style archive from a shared archive.
23759 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23761 # Create a temporary old-style archive to link instead of a shared archive.
23762 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23764 # Commands used to build a shared archive.
23765 archive_cmds=$lt_archive_cmds_CXX
23766 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23768 # Commands used to build a loadable module if different from building
23769 # a shared archive.
23770 module_cmds=$lt_module_cmds_CXX
23771 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23773 # Whether we are building with GNU ld or not.
23774 with_gnu_ld=$lt_with_gnu_ld_CXX
23776 # Flag that allows shared libraries with undefined symbols to be built.
23777 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23779 # Flag that enforces no undefined symbols.
23780 no_undefined_flag=$lt_no_undefined_flag_CXX
23782 # Flag to hardcode \$libdir into a binary during linking.
23783 # This must work even if \$libdir does not exist
23784 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23786 # If ld is used when linking, flag to hardcode \$libdir into a binary
23787 # during linking. This must work even if \$libdir does not exist.
23788 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
23790 # Whether we need a single "-rpath" flag with a separated argument.
23791 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23793 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23794 # DIR into the resulting binary.
23795 hardcode_direct=$hardcode_direct_CXX
23797 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23798 # DIR into the resulting binary and the resulting library dependency is
23799 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23800 # library is relocated.
23801 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23803 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23804 # into the resulting binary.
23805 hardcode_minus_L=$hardcode_minus_L_CXX
23807 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23808 # into the resulting binary.
23809 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23811 # Set to "yes" if building a shared library automatically hardcodes DIR
23812 # into the library and all subsequent libraries and executables linked
23814 hardcode_automatic=$hardcode_automatic_CXX
23816 # Set to yes if linker adds runtime paths of dependent libraries
23817 # to runtime path list.
23818 inherit_rpath=$inherit_rpath_CXX
23820 # Whether libtool must link a program against all its dependency libraries.
23821 link_all_deplibs=$link_all_deplibs_CXX
23823 # Set to "yes" if exported symbols are required.
23824 always_export_symbols=$always_export_symbols_CXX
23826 # The commands to list exported symbols.
23827 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23829 # Symbols that should not be listed in the preloaded symbols.
23830 exclude_expsyms=$lt_exclude_expsyms_CXX
23832 # Symbols that must always be exported.
23833 include_expsyms=$lt_include_expsyms_CXX
23835 # Commands necessary for linking programs (against libraries) with templates.
23836 prelink_cmds=$lt_prelink_cmds_CXX
23838 # Commands necessary for finishing linking programs.
23839 postlink_cmds=$lt_postlink_cmds_CXX
23841 # Specify filename containing input files.
23842 file_list_spec=$lt_file_list_spec_CXX
23844 # How to hardcode a shared library path into an executable.
23845 hardcode_action=$hardcode_action_CXX
23847 # The directories searched by this compiler when creating a shared library.
23848 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23850 # Dependencies to place before and after the objects being linked to
23851 # create a shared library.
23852 predep_objects=$lt_predep_objects_CXX
23853 postdep_objects=$lt_postdep_objects_CXX
23854 predeps=$lt_predeps_CXX
23855 postdeps=$lt_postdeps_CXX
23857 # The library search path used internally by the compiler when linking
23858 # a shared library.
23859 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23861 # ### END LIBTOOL TAG CONFIG: CXX
23872 ac_clean_files=$ac_clean_files_save
23874 test $ac_write_fail = 0 ||
23875 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23878 # configure is writing to config.log, and then calls config.status.
23879 # config.status does its own redirection, appending to config.log.
23880 # Unfortunately, on DOS this fails, as config.log is still kept open
23881 # by configure, so config.status won't be able to write to it; its
23882 # output is simply discarded. So we exec the FD to /dev/null,
23883 # effectively closing config.log, so it can be properly (re)opened and
23884 # appended to by config.status. When coming back to configure, we
23885 # need to make the FD available again.
23886 if test "$no_create" != yes; then
23888 ac_config_status_args=
23889 test "$silent" = yes &&
23890 ac_config_status_args="$ac_config_status_args --quiet"
23892 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23894 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23895 # would make configure fail if this is the last instruction.
23896 $ac_cs_success || as_fn_exit 1
23898 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23900 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}